From 8ec07fa4748c834ff5a59c4084a8407f3ac31d06 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sun, 11 May 2025 20:53:00 -0400 Subject: [PATCH 01/24] resolved error decoding exceptions --- .github/workflows/precompile_binaries.yml | 4 +- .metadata | 21 +- CHANGELOG.md | 2 + README.md | 2 +- example/analysis_options.yaml | 28 + example/integration_test/bolt11_test.dart | 13 +- example/integration_test/bolt12_test.dart | 256 +- example/ios/Podfile.lock | 8 +- example/ios/Runner/AppDelegate.swift | 2 +- example/ios/RunnerTests/RunnerTests.swift | 26 + example/lib/main.dart | 38 +- example/macos/.gitignore | 7 + example/macos/Flutter/Flutter-Debug.xcconfig | 2 + .../macos/Flutter/Flutter-Release.xcconfig | 2 + .../Flutter/GeneratedPluginRegistrant.swift | 12 + example/macos/Podfile | 43 + example/macos/Podfile.lock | 29 + .../macos/Runner.xcodeproj/project.pbxproj | 803 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/xcschemes/Runner.xcscheme | 98 + .../contents.xcworkspacedata | 10 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + example/macos/Runner/AppDelegate.swift | 9 + .../AppIcon.appiconset/Contents.json | 68 + .../AppIcon.appiconset/app_icon_1024.png | Bin 0 -> 102994 bytes .../AppIcon.appiconset/app_icon_128.png | Bin 0 -> 5680 bytes .../AppIcon.appiconset/app_icon_16.png | Bin 0 -> 520 bytes .../AppIcon.appiconset/app_icon_256.png | Bin 0 -> 14142 bytes .../AppIcon.appiconset/app_icon_32.png | Bin 0 -> 1066 bytes .../AppIcon.appiconset/app_icon_512.png | Bin 0 -> 36406 bytes .../AppIcon.appiconset/app_icon_64.png | Bin 0 -> 2218 bytes example/macos/Runner/Base.lproj/MainMenu.xib | 343 + example/macos/Runner/Configs/AppInfo.xcconfig | 14 + example/macos/Runner/Configs/Debug.xcconfig | 2 + example/macos/Runner/Configs/Release.xcconfig | 2 + .../macos/Runner/Configs/Warnings.xcconfig | 13 + .../macos/Runner/DebugProfile.entitlements | 14 + example/macos/Runner/Info.plist | 32 + example/macos/Runner/MainFlutterWindow.swift | 15 + example/macos/Runner/Release.entitlements | 10 + example/macos/RunnerTests/RunnerTests.swift | 27 + example/pubspec.lock | 34 +- flutter_rust_bridge.yaml | 4 +- ios/Assets/.gitkeep | 0 ios/Classes/frb_generated.h | 732 +- ios/ldk_node.podspec | 40 +- lib/ldk_node.dart | 84 +- lib/src/generated/api/bolt11.dart | 54 +- lib/src/generated/api/bolt12.dart | 75 +- lib/src/generated/api/builder.dart | 42 +- lib/src/generated/api/graph.dart | 24 +- lib/src/generated/api/node.dart | 140 +- lib/src/generated/api/on_chain.dart | 22 +- lib/src/generated/api/spontaneous.dart | 29 +- lib/src/generated/api/types.dart | 381 +- lib/src/generated/api/types.freezed.dart | 2830 ++- lib/src/generated/api/unified_qr.dart | 92 + lib/src/generated/api/unified_qr.freezed.dart | 521 + lib/src/generated/frb_generated.dart | 3838 ++- lib/src/generated/frb_generated.io.dart | 3374 ++- lib/src/generated/lib.dart | 8 +- lib/src/generated/utils/error.dart | 172 +- lib/src/generated/utils/error.freezed.dart | 20171 +++++++++------- lib/src/root.dart | 743 +- lib/src/utils/default_services.dart | 6 + lib/src/utils/exceptions.dart | 39 +- lib/src/utils/{utils.dart => frb.dart} | 2 - macos/Classes/EnforceBundling.swift | 4 + macos/Classes/frb_generated.h | 1417 ++ macos/Classes/ldk_node.c | 0 macos/ldk_node.podspec | 39 + makefile | 9 +- pubspec.yaml | 6 +- rust/Cargo.lock | 354 +- rust/Cargo.toml | 6 +- rust/cargokit.yaml | 2 +- rust/src/api/bolt11.rs | 89 +- rust/src/api/bolt12.rs | 159 +- rust/src/api/builder.rs | 171 +- rust/src/api/graph.rs | 30 +- rust/src/api/mod.rs | 1 + rust/src/api/node.rs | 181 +- rust/src/api/on_chain.rs | 30 +- rust/src/api/spontaneous.rs | 34 +- rust/src/api/types.rs | 515 +- rust/src/api/unified_qr.rs | 97 + rust/src/frb_generated.rs | 7661 +++++- rust/src/utils/error.rs | 201 +- 88 files changed, 32448 insertions(+), 13986 deletions(-) create mode 100644 example/analysis_options.yaml create mode 100644 example/ios/RunnerTests/RunnerTests.swift create mode 100644 example/macos/.gitignore create mode 100644 example/macos/Flutter/Flutter-Debug.xcconfig create mode 100644 example/macos/Flutter/Flutter-Release.xcconfig create mode 100644 example/macos/Flutter/GeneratedPluginRegistrant.swift create mode 100644 example/macos/Podfile create mode 100644 example/macos/Podfile.lock create mode 100644 example/macos/Runner.xcodeproj/project.pbxproj create mode 100644 example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme create mode 100644 example/macos/Runner.xcworkspace/contents.xcworkspacedata create mode 100644 example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 example/macos/Runner/AppDelegate.swift create mode 100644 example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png create mode 100644 example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png create mode 100644 example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png create mode 100644 example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png create mode 100644 example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png create mode 100644 example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png create mode 100644 example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png create mode 100644 example/macos/Runner/Base.lproj/MainMenu.xib create mode 100644 example/macos/Runner/Configs/AppInfo.xcconfig create mode 100644 example/macos/Runner/Configs/Debug.xcconfig create mode 100644 example/macos/Runner/Configs/Release.xcconfig create mode 100644 example/macos/Runner/Configs/Warnings.xcconfig create mode 100644 example/macos/Runner/DebugProfile.entitlements create mode 100644 example/macos/Runner/Info.plist create mode 100644 example/macos/Runner/MainFlutterWindow.swift create mode 100644 example/macos/Runner/Release.entitlements create mode 100644 example/macos/RunnerTests/RunnerTests.swift create mode 100644 ios/Assets/.gitkeep create mode 100644 lib/src/generated/api/unified_qr.dart create mode 100644 lib/src/generated/api/unified_qr.freezed.dart rename lib/src/utils/{utils.dart => frb.dart} (92%) create mode 100644 macos/Classes/EnforceBundling.swift create mode 100644 macos/Classes/frb_generated.h create mode 100644 macos/Classes/ldk_node.c create mode 100644 macos/ldk_node.podspec create mode 100644 rust/src/api/unified_qr.rs diff --git a/.github/workflows/precompile_binaries.yml b/.github/workflows/precompile_binaries.yml index 70f9010..6be31d7 100644 --- a/.github/workflows/precompile_binaries.yml +++ b/.github/workflows/precompile_binaries.yml @@ -1,6 +1,6 @@ on: push: - branches: [main, v0.3.0] + branches: [main, v0.3.1] name: Precompile Binaries @@ -43,4 +43,4 @@ jobs: working-directory: cargokit/build_tool env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} - PRIVATE_KEY: ${{ secrets.CARGOKIT_PRIVATE_KEY }} + PRIVATE_KEY: ${{ secrets.CARGOKIT_PRIVATE_KEY }} \ No newline at end of file diff --git a/.metadata b/.metadata index bc5a677..8813477 100644 --- a/.metadata +++ b/.metadata @@ -1,11 +1,11 @@ # This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # -# This file should be version controlled. +# This file should be version controlled and should not be manually edited. version: - revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849 - channel: stable + revision: "761747bfc538b5af34aa0d3fac380f1bc331ec49" + channel: "stable" project_type: plugin @@ -13,14 +13,17 @@ project_type: plugin migration: platforms: - platform: root - create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849 - base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849 + create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49 + base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49 - platform: android - create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849 - base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849 + create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49 + base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49 - platform: ios - create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849 - base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849 + create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49 + base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49 + - platform: macos + create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49 + base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49 # User provided section diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d6ca06..41f28fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## [0.4.2] + ## [0.3.0] Updated `flutter_rust_bridge` to `2.0.0`. #### APIs added diff --git a/README.md b/README.md index c7cda5e..340ff8c 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ To use the `ldk_node` package in your project, add it as a dependency in your pr ```dart dependencies: - ldk_node: ^0.3.0 + ldk_node: ^0.4.2 ``` or add from pub.dev using `pub add` command diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml new file mode 100644 index 0000000..0d29021 --- /dev/null +++ b/example/analysis_options.yaml @@ -0,0 +1,28 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at https://dart.dev/lints. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/example/integration_test/bolt11_test.dart b/example/integration_test/bolt11_test.dart index d5476f5..9d1d7cc 100644 --- a/example/integration_test/bolt11_test.dart +++ b/example/integration_test/bolt11_test.dart @@ -15,23 +15,23 @@ void main() { final ldkCache = "${directory.path}/ldk_cache"; final aliceStoragePath = "$ldkCache/integration/alice"; debugPrint('Alice Storage Path: $aliceStoragePath'); - final alice_builder = ldk.Builder.mutinynet() + final aliceBuilder = ldk.Builder.mutinynet() .setEntropyBip39Mnemonic( mnemonic: ldk.Mnemonic( seedPhrase: "replace force spring cruise nothing select glass erupt medal raise consider pull")) .setStorageDirPath(aliceStoragePath); - final aliceNode = await alice_builder.build(); + final aliceNode = await aliceBuilder.build(); await aliceNode.start(); final bobStoragePath = "$ldkCache/integration/bob"; - final bob_builder = ldk.Builder.mutinynet() + final bobBuilder = ldk.Builder.mutinynet() .setEntropyBip39Mnemonic( mnemonic: ldk.Mnemonic( seedPhrase: "skin hospital fee risk health theory actor kiwi solution desert unhappy hello")) .setStorageDirPath(bobStoragePath); debugPrint('Bob Storage Path: $bobStoragePath'); - final bobNode = await bob_builder.build(); + final bobNode = await bobBuilder.build(); await bobNode.start(); debugPrint("Manually syncing Alice's node"); await aliceNode.syncWallets(); @@ -46,15 +46,14 @@ void main() { debugPrint("Bob's onChain balance ${bobBalance.toString()}"); final bobBolt11PaymentHandler = await bobNode.bolt11Payment(); - final bobJitInvoice = await bobBolt11PaymentHandler.receiveViaJitChannel( + await bobBolt11PaymentHandler.receiveViaJitChannel( amountMsat: satsToMsats(10000), description: 'test', expirySecs: 9000, ); debugPrint("Bob's onChain balance ${bobBalance.toString()}"); final aliceBolt11PaymentHandler = await aliceNode.bolt11Payment(); - final aliceJitInvoice = - await aliceBolt11PaymentHandler.receiveViaJitChannel( + await aliceBolt11PaymentHandler.receiveViaJitChannel( amountMsat: satsToMsats(10000), description: 'test', expirySecs: 9000, diff --git a/example/integration_test/bolt12_test.dart b/example/integration_test/bolt12_test.dart index af1ca93..435e49f 100644 --- a/example/integration_test/bolt12_test.dart +++ b/example/integration_test/bolt12_test.dart @@ -15,150 +15,160 @@ void main() { 'http://10.0.2.2:30000' : 'http://127.0.0.1:30000'; final regTestClient = BtcClient(""); + final esploraConfig = ldk.EsploraSyncConfig( + onchainWalletSyncIntervalSecs: BigInt.from(60), + lightningWalletSyncIntervalSecs: BigInt.from(60), + feeRateCacheUpdateIntervalSecs: BigInt.from(600)); Future initLdkConfig( String path, ldk.SocketAddress address) async { final directory = await getApplicationDocumentsDirectory(); final nodePath = "${directory.path}/ldk_cache/integration/regtest/$path"; final config = ldk.Config( - probingLiquidityLimitMultiplier: BigInt.from(3), - trustedPeers0Conf: [], - storageDirPath: nodePath, - network: ldk.Network.regtest, - listeningAddresses: [address], - onchainWalletSyncIntervalSecs: BigInt.from(60), - walletSyncIntervalSecs: BigInt.from(20), - feeRateCacheUpdateIntervalSecs: BigInt.from(600), - logLevel: ldk.LogLevel.debug, - defaultCltvExpiryDelta: 144); + probingLiquidityLimitMultiplier: BigInt.from(3), + trustedPeers0Conf: [], + storageDirPath: nodePath, + network: ldk.Network.regtest, + listeningAddresses: [address], + logLevel: ldk.LogLevel.debug, + ); return config; } IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - testWidgets('full_cycle', (WidgetTester tester) async { - final aliceConfig = await initLdkConfig( - 'alice', ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3003)); - final alice_builder = ldk.Builder.fromConfig(config: aliceConfig) - .setEntropyBip39Mnemonic( - mnemonic: ldk.Mnemonic( - seedPhrase: - "replace force spring cruise nothing select glass erupt medal raise consider pull")) - .setEsploraServer(esploraUrl); - final aliceNode = await alice_builder.build(); - await aliceNode.start(); - final bobConfig = await initLdkConfig( - 'bob', ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3004)); + group('bolt11_integration', () { + setUp(() async {}); + testWidgets('full_cycle', (WidgetTester tester) async { + final aliceConfig = await initLdkConfig('alice', + const ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3003)); + final aliceBuilder = ldk.Builder.fromConfig(config: aliceConfig) + .setEntropyBip39Mnemonic( + mnemonic: ldk.Mnemonic( + seedPhrase: + "replace force spring cruise nothing select glass erupt medal raise consider pull")) + .setChainSourceEsplora( + esploraServerUrl: esploraUrl, syncConfig: esploraConfig); + final aliceNode = await aliceBuilder.build(); + await aliceNode.start(); + final bobConfig = await initLdkConfig( + 'bob', const ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3004)); - final bob_builder = ldk.Builder.fromConfig(config: bobConfig) - .setEntropyBip39Mnemonic( - mnemonic: ldk.Mnemonic( - seedPhrase: - "skin hospital fee risk health theory actor kiwi solution desert unhappy hello")) - .setEsploraServer(esploraUrl); - final bobNode = await bob_builder.build(); - await bobNode.start(); - // loading bitcoin core wallet - await regTestClient.loadWallet(); - debugPrint("Manually syncing Alice's node"); - await Future.wait([aliceNode.syncWallets()]); + final bobBuilder = ldk.Builder.fromConfig(config: bobConfig) + .setEntropyBip39Mnemonic( + mnemonic: ldk.Mnemonic( + seedPhrase: + "skin hospital fee risk health theory actor kiwi solution desert unhappy hello")) + .setChainSourceEsplora( + esploraServerUrl: esploraUrl, syncConfig: esploraConfig); + final bobNode = await bobBuilder.build(); + await bobNode.start(); + // loading bitcoin core wallet + await regTestClient.loadWallet(); + debugPrint("Manually syncing Alice's node"); + await Future.wait([aliceNode.syncWallets()]); - debugPrint("Manually syncing Bob's node"); - await Future.wait([bobNode.syncWallets()]); + debugPrint("Manually syncing Bob's node"); + await Future.wait([bobNode.syncWallets()]); - debugPrint("syncing complete"); + debugPrint("syncing complete"); - final aliceNodeAddress = - await (await aliceNode.onChainPayment()).newAddress(); - final bobNodeAddress = await (await bobNode.onChainPayment()).newAddress(); - debugPrint(aliceNodeAddress.s); - debugPrint(bobNodeAddress.s); - await regTestClient.generate(11, aliceNodeAddress.s); - await regTestClient.generate(11, bobNodeAddress.s); - debugPrint("Manually syncing Alice's node"); - await Future.wait([aliceNode.syncWallets()]); + final aliceNodeAddress = + await (await aliceNode.onChainPayment()).newAddress(); + final bobNodeAddress = + await (await bobNode.onChainPayment()).newAddress(); + debugPrint(aliceNodeAddress.s); + debugPrint(bobNodeAddress.s); + await regTestClient.generate(11, aliceNodeAddress.s); + await regTestClient.generate(11, bobNodeAddress.s); + debugPrint("Manually syncing Alice's node"); + await Future.wait([aliceNode.syncWallets()]); - debugPrint("Manually syncing Bob's node"); - await Future.wait([bobNode.syncWallets()]); - debugPrint("syncing complete"); - debugPrint( - "Alice's onChain Balance:${(await aliceNode.listBalances()).spendableOnchainBalanceSats}"); - debugPrint( - "Bob's onChain Balance:${(await bobNode.listBalances()).spendableOnchainBalanceSats}"); + debugPrint("Manually syncing Bob's node"); + await Future.wait([bobNode.syncWallets()]); + debugPrint("syncing complete"); + debugPrint( + "Alice's onChain Balance:${(await aliceNode.listBalances()).spendableOnchainBalanceSats}"); + debugPrint( + "Bob's onChain Balance:${(await bobNode.listBalances()).spendableOnchainBalanceSats}"); - debugPrint("Opening channel from aliceNode to bobNode"); - final bobNodeId = await bobNode.nodeId(); - final funding_amount_sat = 10000; - final push_msat = (funding_amount_sat / 2) * 1000; - final userChannelId = await aliceNode.connectOpenChannel( + debugPrint("Opening channel from aliceNode to bobNode"); + final bobNodeId = await bobNode.nodeId(); + const fundingAmountSat = 10000; + const pushMsat = (fundingAmountSat / 2) * 1000; + final userChannelId = await aliceNode.openChannel( socketAddress: (await bobNode.listeningAddresses())!.first, nodeId: bobNodeId, - channelAmountSats: BigInt.from(funding_amount_sat), - pushToCounterpartyMsat: BigInt.from(push_msat), - announceChannel: true); - debugPrint("Channel created; id: ${userChannelId.data}"); - final alicePeers = await aliceNode.listPeers(); - final aliceChannels = await aliceNode.listChannels(); - expect( - (alicePeers.where((e) => e.nodeId.hex == bobNodeId.hex)).toList() != [], - true); + channelAmountSats: BigInt.from(fundingAmountSat), + pushToCounterpartyMsat: BigInt.from(pushMsat), + ); + debugPrint("Channel created; id: ${userChannelId.data}"); + final alicePeers = await aliceNode.listPeers(); + final aliceChannels = await aliceNode.listChannels(); + expect( + (alicePeers.where((e) => e.nodeId.hex == bobNodeId.hex)).toList() != + [], + true); - await regTestClient.generate(11, aliceNodeAddress.s); - expect( - (aliceChannels.where((e) => e.counterpartyNodeId.hex == bobNodeId.hex)) - .where((f) => f.isUsable && f.isChannelReady) - .toList() != - [], - true); + await regTestClient.generate(11, aliceNodeAddress.s); + expect( + (aliceChannels + .where((e) => e.counterpartyNodeId.hex == bobNodeId.hex)) + .where((f) => f.isUsable && f.isChannelReady) + .toList() != + [], + true); - debugPrint("waiting for latest node announcement broadcast timestamp"); - while ((await bobNode.status()).latestNodeAnnouncementBroadcastTimestamp == - null) { - await Future.delayed(Duration(milliseconds: 5)); - } - final payment1ExpectedAmountMsat = BigInt.from(1000000000); - final bobNodeBol12Handler = await bobNode.bolt12Payment(); - final aliceNodeBol12Handler = await aliceNode.bolt12Payment(); + debugPrint("waiting for latest node announcement broadcast timestamp"); + while ( + (await bobNode.status()).latestNodeAnnouncementBroadcastTimestamp == + null) { + await Future.delayed(const Duration(milliseconds: 5)); + } + final payment1ExpectedAmountMsat = BigInt.from(1000000000); + final bobNodeBol12Handler = await bobNode.bolt12Payment(); + final aliceNodeBol12Handler = await aliceNode.bolt12Payment(); - final offer1 = await bobNodeBol12Handler.receive( - amountMsat: payment1ExpectedAmountMsat, description: "payment_1"); - final payment1Id = await aliceNodeBol12Handler.send(offer: offer1); - debugPrint("payment_1 successful: ${payment1Id.field0}"); - expect((await aliceNode.listPayments()).length == 1, true); - final offerAmountMsat = 100000000; + final offer1 = await bobNodeBol12Handler.receive( + amountMsat: payment1ExpectedAmountMsat, description: "payment_1"); + final payment1Id = await aliceNodeBol12Handler.send(offer: offer1); + debugPrint("payment_1 successful: ${payment1Id.field0}"); + expect((await aliceNode.listPayments()).length == 1, true); + const offerAmountMsat = 100000000; - final payment2ExpectedAmountMsat = offerAmountMsat + 10000; - final offer2 = await bobNodeBol12Handler.receive( - amountMsat: BigInt.from(offerAmountMsat), description: "payment_2"); - final payment2Id = await aliceNodeBol12Handler.sendUsingAmount( - offer: offer2, amountMsat: BigInt.from(payment2ExpectedAmountMsat)); - debugPrint("payment_2 successful: ${payment2Id.field0}"); - expect( - ((await aliceNode.listPayments()) - .where((e) => listEquals(e.id.field0, payment2Id.field0))) - .length == - 1, - true); - // Now bobNode refunds the amount aliceNode just overpaid. - final overPaidAmount = payment2ExpectedAmountMsat - offerAmountMsat; - final payment2Refund = await bobNodeBol12Handler.initiateRefund( - amountMsat: BigInt.from(overPaidAmount), expirySecs: 3600); - final payment2RefundInvoice = await aliceNodeBol12Handler - .requestRefundPayment(refund: payment2Refund); - debugPrint("payment_2 refund successful: ${payment2RefundInvoice.data}"); - final bobNodePayment3Id = (await bobNode.listPayments()) - .firstWhere((p) => p.amountMsat == BigInt.from(overPaidAmount)) - .id; - expect( - ((await bobNode.listPayments()).where( - (e) => listEquals(e.id.field0, bobNodePayment3Id.field0))) - .length == - 1, - true); - await aliceNode.closeChannel( - counterpartyNodeId: bobNodeId, userChannelId: userChannelId); - await aliceNode.stop(); - await bobNode.stop(); - expect((await aliceNode.status()).isRunning, false); - expect((await bobNode.status()).isRunning, false); + const payment2ExpectedAmountMsat = offerAmountMsat + 10000; + final offer2 = await bobNodeBol12Handler.receive( + amountMsat: BigInt.from(offerAmountMsat), description: "payment_2"); + final payment2Id = await aliceNodeBol12Handler.sendUsingAmount( + offer: offer2, amountMsat: BigInt.from(payment2ExpectedAmountMsat)); + debugPrint("payment_2 successful: ${payment2Id.field0}"); + expect( + ((await aliceNode.listPayments()) + .where((e) => listEquals(e.id.field0, payment2Id.field0))) + .length == + 1, + true); + // Now bobNode refunds the amount aliceNode just overpaid. + const overPaidAmount = payment2ExpectedAmountMsat - offerAmountMsat; + final payment2Refund = await bobNodeBol12Handler.initiateRefund( + amountMsat: BigInt.from(overPaidAmount), expirySecs: 3600); + final payment2RefundInvoice = await aliceNodeBol12Handler + .requestRefundPayment(refund: payment2Refund); + debugPrint("payment_2 refund successful: ${payment2RefundInvoice.data}"); + final bobNodePayment3Id = (await bobNode.listPayments()) + .firstWhere((p) => p.amountMsat == BigInt.from(overPaidAmount)) + .id; + expect( + ((await bobNode.listPayments()).where( + (e) => listEquals(e.id.field0, bobNodePayment3Id.field0))) + .length == + 1, + true); + await aliceNode.closeChannel( + counterpartyNodeId: bobNodeId, userChannelId: userChannelId); + await aliceNode.stop(); + await bobNode.stop(); + expect((await aliceNode.status()).isRunning, false); + expect((await bobNode.status()).isRunning, false); + }); }); } diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index f5e3f3f..e080d42 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -2,7 +2,7 @@ PODS: - Flutter (1.0.0) - integration_test (0.0.1): - Flutter - - ldk_node (0.3.0): + - ldk_node (0.4.2): - Flutter - path_provider_foundation (0.0.1): - Flutter @@ -26,10 +26,10 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 - integration_test: ce0a3ffa1de96d1a89ca0ac26fca7ea18a749ef4 - ldk_node: fffac5d5afd55ed30034da12cdaca29f41b3fdd2 + integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573 + ldk_node: af81fe38d9cc72b0d9c58f614aa1ea9b3cbb7a4f path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048 -COCOAPODS: 1.14.3 +COCOAPODS: 1.15.2 diff --git a/example/ios/Runner/AppDelegate.swift b/example/ios/Runner/AppDelegate.swift index 70693e4..b636303 100644 --- a/example/ios/Runner/AppDelegate.swift +++ b/example/ios/Runner/AppDelegate.swift @@ -1,7 +1,7 @@ import UIKit import Flutter -@UIApplicationMain +@main @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, diff --git a/example/ios/RunnerTests/RunnerTests.swift b/example/ios/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..1abf37f --- /dev/null +++ b/example/ios/RunnerTests/RunnerTests.swift @@ -0,0 +1,26 @@ +import Flutter +import UIKit +import XCTest + +@testable import ldk_node + +// This demonstrates a simple unit test of the Swift portion of this plugin's implementation. +// +// See https://developer.apple.com/documentation/xctest for more information about using XCTest. + +class RunnerTests: XCTestCase { + + func testGetPlatformVersion() { + let plugin = LdkNodePlugin() + + let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: []) + + let resultExpectation = expectation(description: "result block must be called.") + plugin.handle(call) { result in + XCTAssertEqual(result as! String, "iOS " + UIDevice.current.systemVersion) + resultExpectation.fulfill() + } + waitForExpectations(timeout: 1) + } + +} diff --git a/example/lib/main.dart b/example/lib/main.dart index be07783..57cf8b4 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -27,6 +27,10 @@ class _MyAppState extends State { ldk.UserChannelId? userChannelId; String esploraUrl = "https://mutinynet.ltbl.io/api"; + final esploraConfig = ldk.EsploraSyncConfig( + onchainWalletSyncIntervalSecs: BigInt.from(60), + lightningWalletSyncIntervalSecs: BigInt.from(60), + feeRateCacheUpdateIntervalSecs: BigInt.from(600)); /* // For local esplora server @@ -46,11 +50,12 @@ class _MyAppState extends State { String path, ldk.SocketAddress address, String mnemonic) async { final directory = await getApplicationDocumentsDirectory(); final nodeStorageDir = "${directory.path}/ldk_cache/$path"; - print(nodeStorageDir); + debugPrint(nodeStorageDir); // For a node on the mutiny network with default config and service ldk.Builder builder = ldk.Builder.mutinynet() .setEntropyBip39Mnemonic(mnemonic: ldk.Mnemonic(seedPhrase: mnemonic)) - .setEsploraServer(esploraUrl) + .setChainSourceEsplora( + syncConfig: esploraConfig, esploraServerUrl: esploraUrl) .setStorageDirPath(nodeStorageDir) .setListeningAddresses([address]); return builder; @@ -59,7 +64,7 @@ class _MyAppState extends State { Future initAliceNode() async { aliceNode = await (await createBuilder( 'alice_mutinynet', - ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3003), + const ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3003), "cart super leaf clinic pistol plug replace close super tooth wealth usage")) .build(); await startNode(aliceNode); @@ -73,7 +78,7 @@ class _MyAppState extends State { initBobNode() async { bobNode = await (await createBuilder( 'bob_mutinynet', - ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3004), + const ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3004), "puppy interest whip tonight dad never sudden response push zone pig patch")) .build(); await startNode(bobNode); @@ -88,7 +93,7 @@ class _MyAppState extends State { try { node.start(); } on ldk.NodeException catch (e) { - print(e.toString()); + debugPrint(e.toString()); } } @@ -190,24 +195,23 @@ class _MyAppState extends State { closeChannel() async { await aliceNode.closeChannel( userChannelId: userChannelId!, - counterpartyNodeId: ldk.PublicKey( + counterpartyNodeId: const ldk.PublicKey( hex: '02465ed5be53d04fde66c9418ff14a5f2267723810176c9212b722e542dc1afb1b', )); } connectOpenChannel() async { - final funding_amount_sat = 80000; - final push_msat = (funding_amount_sat / 2) * 1000; - userChannelId = await aliceNode.connectOpenChannel( - channelAmountSats: BigInt.from(funding_amount_sat), - announceChannel: true, - socketAddress: ldk.SocketAddress.hostname( + const fundingAmountSat = 80000; + const pushMsat = (fundingAmountSat / 2) * 1000; + userChannelId = await aliceNode.openChannel( + channelAmountSats: BigInt.from(fundingAmountSat), + socketAddress: const ldk.SocketAddress.hostname( addr: '45.79.52.207', port: 9735, ), - pushToCounterpartyMsat: BigInt.from(push_msat), - nodeId: ldk.PublicKey( + pushToCounterpartyMsat: BigInt.from(pushMsat), + nodeId: const ldk.PublicKey( hex: '02465ed5be53d04fde66c9418ff14a5f2267723810176c9212b722e542dc1afb1b', )); @@ -223,7 +227,7 @@ class _MyAppState extends State { amountMsat: BigInt.from(25000 * 1000), description: 'asdf', expirySecs: 9217); - print(invoice!.signedRawInvoice); + debugPrint(invoice!.signedRawInvoice); setState(() { displayText = invoice!.signedRawInvoice; }); @@ -248,7 +252,7 @@ class _MyAppState extends State { } }, paymentFailed: (e) { if (kDebugMode) { - print("paymentFailed: ${e.paymentHash.data}"); + print("paymentFailed: ${e.paymentHash?.data.toList()}"); } }, paymentReceived: (e) { if (kDebugMode) { @@ -284,7 +288,7 @@ class _MyAppState extends State { debugShowCheckedModeBanner: false, home: Scaffold( appBar: PreferredSize( - preferredSize: const Size(double.infinity, kToolbarHeight * 1.8), + preferredSize: const Size(double.infinity, kToolbarHeight * 2), child: Container( padding: const EdgeInsets.only(right: 20, left: 20, top: 40), color: Colors.blue, diff --git a/example/macos/.gitignore b/example/macos/.gitignore new file mode 100644 index 0000000..746adbb --- /dev/null +++ b/example/macos/.gitignore @@ -0,0 +1,7 @@ +# Flutter-related +**/Flutter/ephemeral/ +**/Pods/ + +# Xcode-related +**/dgph +**/xcuserdata/ diff --git a/example/macos/Flutter/Flutter-Debug.xcconfig b/example/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 0000000..4b81f9b --- /dev/null +++ b/example/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/example/macos/Flutter/Flutter-Release.xcconfig b/example/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 0000000..5caa9d1 --- /dev/null +++ b/example/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/example/macos/Flutter/GeneratedPluginRegistrant.swift b/example/macos/Flutter/GeneratedPluginRegistrant.swift new file mode 100644 index 0000000..e777c67 --- /dev/null +++ b/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -0,0 +1,12 @@ +// +// Generated file. Do not edit. +// + +import FlutterMacOS +import Foundation + +import path_provider_foundation + +func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) +} diff --git a/example/macos/Podfile b/example/macos/Podfile new file mode 100644 index 0000000..1f811a9 --- /dev/null +++ b/example/macos/Podfile @@ -0,0 +1,43 @@ +platform :osx, '14.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_macos_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_macos_build_settings(target) + end +end diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock new file mode 100644 index 0000000..19c4d7d --- /dev/null +++ b/example/macos/Podfile.lock @@ -0,0 +1,29 @@ +PODS: + - FlutterMacOS (1.0.0) + - ldk_node (0.4.2): + - FlutterMacOS + - path_provider_foundation (0.0.1): + - Flutter + - FlutterMacOS + +DEPENDENCIES: + - FlutterMacOS (from `Flutter/ephemeral`) + - ldk_node (from `Flutter/ephemeral/.symlinks/plugins/ldk_node/macos`) + - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) + +EXTERNAL SOURCES: + FlutterMacOS: + :path: Flutter/ephemeral + ldk_node: + :path: Flutter/ephemeral/.symlinks/plugins/ldk_node/macos + path_provider_foundation: + :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin + +SPEC CHECKSUMS: + FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 + ldk_node: 5a403de99ac15768c18094edf01bcfdfcd83b766 + path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 + +PODFILE CHECKSUM: 6acf97521436d16fc31cd5e1a02000905acdb3ae + +COCOAPODS: 1.15.2 diff --git a/example/macos/Runner.xcodeproj/project.pbxproj b/example/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..f5ff27f --- /dev/null +++ b/example/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,803 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 019CAB8E422FD5687DD50F27 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 926F8F888E54E84D031BECF7 /* Pods_Runner.framework */; }; + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + A247249F333420B5D85EC3BE /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6A73FB1E10D9CDAF6CD17572 /* Pods_RunnerTests.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 15E60F17AB184AB3754D9031 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 312364241A54A4B1AB6D15AB /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* ldk_node_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ldk_node_example.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 49DCC3568BBF6B82C6D4919B /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; + 5EF03BA14AF6262407AFA9F9 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; + 6A73FB1E10D9CDAF6CD17572 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 90DA87C03BE3C122AD13CB55 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + 926F8F888E54E84D031BECF7 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + A96335A33F24DD725B02D26F /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 331C80D2294CF70F00263BE5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A247249F333420B5D85EC3BE /* Pods_RunnerTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 019CAB8E422FD5687DD50F27 /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C80D6294CF71000263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C80D7294CF71000263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 331C80D6294CF71000263BE5 /* RunnerTests */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + 73785121AA25D0B1BF51D8B3 /* Pods */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* ldk_node_example.app */, + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + 73785121AA25D0B1BF51D8B3 /* Pods */ = { + isa = PBXGroup; + children = ( + 312364241A54A4B1AB6D15AB /* Pods-Runner.debug.xcconfig */, + 90DA87C03BE3C122AD13CB55 /* Pods-Runner.release.xcconfig */, + 15E60F17AB184AB3754D9031 /* Pods-Runner.profile.xcconfig */, + A96335A33F24DD725B02D26F /* Pods-RunnerTests.debug.xcconfig */, + 49DCC3568BBF6B82C6D4919B /* Pods-RunnerTests.release.xcconfig */, + 5EF03BA14AF6262407AFA9F9 /* Pods-RunnerTests.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 926F8F888E54E84D031BECF7 /* Pods_Runner.framework */, + 6A73FB1E10D9CDAF6CD17572 /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C80D4294CF70F00263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 7430C805B04424894D90E7C7 /* [CP] Check Pods Manifest.lock */, + 331C80D1294CF70F00263BE5 /* Sources */, + 331C80D2294CF70F00263BE5 /* Frameworks */, + 331C80D3294CF70F00263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C80DA294CF71000263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 868731A67886D349FA21F9D0 /* [CP] Check Pods Manifest.lock */, + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + 42B082EA6CA27F51D5356B0B /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* ldk_node_example.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C80D4294CF70F00263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 33CC10EC2044A3C60003C045; + }; + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 331C80D4294CF70F00263BE5 /* RunnerTests */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C80D3294CF70F00263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; + }; + 42B082EA6CA27F51D5356B0B /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 7430C805B04424894D90E7C7 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 868731A67886D349FA21F9D0 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C80D1294CF70F00263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; + }; + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 331C80DB294CF71000263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A96335A33F24DD725B02D26F /* Pods-RunnerTests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkNodeExample.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ldk_node_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ldk_node_example"; + }; + name = Debug; + }; + 331C80DC294CF71000263BE5 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 49DCC3568BBF6B82C6D4919B /* Pods-RunnerTests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkNodeExample.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ldk_node_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ldk_node_example"; + }; + name = Release; + }; + 331C80DD294CF71000263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5EF03BA14AF6262407AFA9F9 /* Pods-RunnerTests.profile.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkNodeExample.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ldk_node_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ldk_node_example"; + }; + name = Profile; + }; + 338D0CE9231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + "EXCLUDED_ARCHS[sdk=*]" = armv7; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Profile; + }; + 338D0CEA231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Profile; + }; + 338D0CEB231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 33CC10F92044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + "EXCLUDED_ARCHS[sdk=*]" = armv7; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 33CC10FA2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + "EXCLUDED_ARCHS[sdk=*]" = armv7; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.14; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 33CC10FC2044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 33CC10FD2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 33CC111C2044C6BA0003C045 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 33CC111D2044C6BA0003C045 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C80DB294CF71000263BE5 /* Debug */, + 331C80DC294CF71000263BE5 /* Release */, + 331C80DD294CF71000263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug */, + 33CC10FA2044A3C60003C045 /* Release */, + 338D0CE9231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug */, + 33CC10FD2044A3C60003C045 /* Release */, + 338D0CEA231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug */, + 33CC111D2044C6BA0003C045 /* Release */, + 338D0CEB231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..c32e1c5 --- /dev/null +++ b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/example/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..21a3cc1 --- /dev/null +++ b/example/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/example/macos/Runner/AppDelegate.swift b/example/macos/Runner/AppDelegate.swift new file mode 100644 index 0000000..8e02df2 --- /dev/null +++ b/example/macos/Runner/AppDelegate.swift @@ -0,0 +1,9 @@ +import Cocoa +import FlutterMacOS + +@main +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } +} diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..a2ec33f --- /dev/null +++ b/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png new file mode 100644 index 0000000000000000000000000000000000000000..82b6f9d9a33e198f5747104729e1fcef999772a5 GIT binary patch literal 102994 zcmeEugo5nb1G~3xi~y`}h6XHx5j$(L*3|5S2UfkG$|UCNI>}4f?MfqZ+HW-sRW5RKHEm z^unW*Xx{AH_X3Xdvb%C(Bh6POqg==@d9j=5*}oEny_IS;M3==J`P0R!eD6s~N<36C z*%-OGYqd0AdWClO!Z!}Y1@@RkfeiQ$Ib_ z&fk%T;K9h`{`cX3Hu#?({4WgtmkR!u3ICS~|NqH^fdNz>51-9)OF{|bRLy*RBv#&1 z3Oi_gk=Y5;>`KbHf~w!`u}!&O%ou*Jzf|Sf?J&*f*K8cftMOKswn6|nb1*|!;qSrlw= zr-@X;zGRKs&T$y8ENnFU@_Z~puu(4~Ir)>rbYp{zxcF*!EPS6{(&J}qYpWeqrPWW< zfaApz%<-=KqxrqLLFeV3w0-a0rEaz9&vv^0ZfU%gt9xJ8?=byvNSb%3hF^X_n7`(fMA;C&~( zM$cQvQ|g9X)1AqFvbp^B{JEX$o;4iPi?+v(!wYrN{L}l%e#5y{j+1NMiT-8=2VrCP zmFX9=IZyAYA5c2!QO96Ea-6;v6*$#ZKM-`%JCJtrA3d~6h{u+5oaTaGE)q2b+HvdZ zvHlY&9H&QJ5|uG@wDt1h99>DdHy5hsx)bN`&G@BpxAHh$17yWDyw_jQhhjSqZ=e_k z_|r3=_|`q~uA47y;hv=6-o6z~)gO}ZM9AqDJsR$KCHKH;QIULT)(d;oKTSPDJ}Jx~G#w-(^r<{GcBC*~4bNjfwHBumoPbU}M)O za6Hc2ik)2w37Yyg!YiMq<>Aov?F2l}wTe+>h^YXcK=aesey^i)QC_p~S zp%-lS5%)I29WfywP(r4@UZ@XmTkqo51zV$|U|~Lcap##PBJ}w2b4*kt7x6`agP34^ z5fzu_8rrH+)2u*CPcr6I`gL^cI`R2WUkLDE5*PX)eJU@H3HL$~o_y8oMRoQ0WF9w| z6^HZDKKRDG2g;r8Z4bn+iJNFV(CG;K-j2>aj229gl_C6n12Jh$$h!}KVhn>*f>KcH z;^8s3t(ccVZ5<{>ZJK@Z`hn_jL{bP8Yn(XkwfRm?GlEHy=T($8Z1Mq**IM`zxN9>-yXTjfB18m_$E^JEaYn>pj`V?n#Xu;Z}#$- zw0Vw;T*&9TK$tKI7nBk9NkHzL++dZ^;<|F6KBYh2+XP-b;u`Wy{~79b%IBZa3h*3^ zF&BKfQ@Ej{7ku_#W#mNJEYYp=)bRMUXhLy2+SPMfGn;oBsiG_6KNL8{p1DjuB$UZB zA)a~BkL)7?LJXlCc}bB~j9>4s7tlnRHC5|wnycQPF_jLl!Avs2C3^lWOlHH&v`nGd zf&U!fn!JcZWha`Pl-B3XEe;(ks^`=Z5R zWyQR0u|do2`K3ec=YmWGt5Bwbu|uBW;6D8}J3{Uep7_>L6b4%(d=V4m#(I=gkn4HT zYni3cnn>@F@Wr<hFAY3Y~dW+3bte;70;G?kTn4Aw5nZ^s5|47 z4$rCHCW%9qa4)4vE%^QPMGf!ET!^LutY$G zqdT(ub5T5b+wi+OrV}z3msoy<4)`IPdHsHJggmog0K*pFYMhH!oZcgc5a)WmL?;TPSrerTVPp<#s+imF3v#!FuBNNa`#6 z!GdTCF|IIpz#(eV^mrYKThA4Bnv&vQet@%v9kuRu3EHx1-2-it@E`%9#u`)HRN#M? z7aJ{wzKczn#w^`OZ>Jb898^Xxq)0zd{3Tu7+{-sge-rQ z&0PME&wIo6W&@F|%Z8@@N3)@a_ntJ#+g{pUP7i?~3FirqU`rdf8joMG^ld?(9b7Iv z>TJgBg#)(FcW)h!_if#cWBh}f+V08GKyg|$P#KTS&%=!+0a%}O${0$i)kn9@G!}En zv)_>s?glPiLbbx)xk(lD-QbY(OP3;MSXM5E*P&_`Zks2@46n|-h$Y2L7B)iH{GAAq19h5-y0q>d^oy^y+soJu9lXxAe%jcm?=pDLFEG2kla40e!5a}mpe zdL=WlZ=@U6{>g%5a+y-lx)01V-x;wh%F{=qy#XFEAqcd+m}_!lQ)-9iiOL%&G??t| z?&NSdaLqdPdbQs%y0?uIIHY7rw1EDxtQ=DU!i{)Dkn~c$LG5{rAUYM1j5*G@oVn9~ zizz{XH(nbw%f|wI=4rw^6mNIahQpB)OQy10^}ACdLPFc2@ldVi|v@1nWLND?)53O5|fg`RZW&XpF&s3@c-R?aad!$WoH6u0B|}zt)L($E^@U- zO#^fxu9}Zw7Xl~nG1FVM6DZSR0*t!4IyUeTrnp@?)Z)*!fhd3)&s(O+3D^#m#bAem zpf#*aiG_0S^ofpm@9O7j`VfLU0+{$x!u^}3!zp=XST0N@DZTp!7LEVJgqB1g{psNr za0uVmh3_9qah14@M_pi~vAZ#jc*&aSm$hCNDsuQ-zPe&*Ii#2=2gP+DP4=DY z_Y0lUsyE6yaV9)K)!oI6+*4|spx2at*30CAx~6-5kfJzQ`fN8$!lz%hz^J6GY?mVH zbYR^JZ(Pmj6@vy-&!`$5soyy-NqB^8cCT40&R@|6s@m+ZxPs=Bu77-+Os7+bsz4nA3DrJ8#{f98ZMaj-+BD;M+Jk?pgFcZIb}m9N z{ct9T)Kye&2>l^39O4Q2@b%sY?u#&O9PO4@t0c$NUXG}(DZJ<;_oe2~e==3Z1+`Zo zFrS3ns-c}ZognVBHbg#e+1JhC(Yq7==rSJQ8J~}%94(O#_-zJKwnBXihl#hUd9B_>+T& z7eHHPRC?5ONaUiCF7w|{J`bCWS7Q&xw-Sa={j-f)n5+I=9s;E#fBQB$`DDh<^mGiF zu-m_k+)dkBvBO(VMe2O4r^sf3;sk9K!xgXJU>|t9Vm8Ty;fl5pZzw z9j|}ZD}6}t;20^qrS?YVPuPRS<39d^y0#O1o_1P{tN0?OX!lc-ICcHI@2#$cY}_CY zev|xdFcRTQ_H)1fJ7S0*SpPs8e{d+9lR~IZ^~dKx!oxz?=Dp!fD`H=LH{EeC8C&z-zK$e=!5z8NL=4zx2{hl<5z*hEmO=b-7(k5H`bA~5gT30Sjy`@-_C zKM}^so9Ti1B;DovHByJkTK87cfbF16sk-G>`Q4-txyMkyQS$d}??|Aytz^;0GxvOs zPgH>h>K+`!HABVT{sYgzy3CF5ftv6hI-NRfgu613d|d1cg^jh+SK7WHWaDX~hlIJ3 z>%WxKT0|Db1N-a4r1oPKtF--^YbP=8Nw5CNt_ZnR{N(PXI>Cm$eqi@_IRmJ9#)~ZHK_UQ8mi}w^`+4$OihUGVz!kW^qxnCFo)-RIDbA&k-Y=+*xYv5y4^VQ9S)4W5Pe?_RjAX6lS6Nz#!Hry=+PKx2|o_H_3M`}Dq{Bl_PbP(qel~P@=m}VGW*pK96 zI@fVag{DZHi}>3}<(Hv<7cVfWiaVLWr@WWxk5}GDEbB<+Aj;(c>;p1qmyAIj+R!`@#jf$ zy4`q23L-72Zs4j?W+9lQD;CYIULt%;O3jPWg2a%Zs!5OW>5h1y{Qof!p&QxNt5=T( zd5fy&7=hyq;J8%86YBOdc$BbIFxJx>dUyTh`L z-oKa=OhRK9UPVRWS`o2x53bAv+py)o)kNL6 z9W1Dlk-g6Ht@-Z^#6%`9S9`909^EMj?9R^4IxssCY-hYzei^TLq7Cj>z$AJyaU5=z zl!xiWvz0U8kY$etrcp8mL;sYqGZD!Hs-U2N{A|^oEKA482v1T%cs%G@X9M?%lX)p$ zZoC7iYTPe8yxY0Jne|s)fCRe1mU=Vb1J_&WcIyP|x4$;VSVNC`M+e#oOA`#h>pyU6 z?7FeVpk`Hsu`~T3i<_4<5fu?RkhM;@LjKo6nX>pa%8dSdgPO9~Jze;5r>Tb1Xqh5q z&SEdTXevV@PT~!O6z|oypTk7Qq+BNF5IQ(8s18c=^0@sc8Gi|3e>VKCsaZ?6=rrck zl@oF5Bd0zH?@15PxSJIRroK4Wa?1o;An;p0#%ZJ^tI=(>AJ2OY0GP$E_3(+Zz4$AQ zW)QWl<4toIJ5TeF&gNXs>_rl}glkeG#GYbHHOv-G!%dJNoIKxn)FK$5&2Zv*AFic! z@2?sY&I*PSfZ8bU#c9fdIJQa_cQijnj39-+hS@+~e*5W3bj%A}%p9N@>*tCGOk+cF zlcSzI6j%Q|2e>QG3A<86w?cx6sBtLNWF6_YR?~C)IC6_10SNoZUHrCpp6f^*+*b8` zlx4ToZZuI0XW1W)24)92S)y0QZa);^NRTX6@gh8@P?^=#2dV9s4)Q@K+gnc{6|C}& zDLHr7nDOLrsH)L@Zy{C_2UrYdZ4V{|{c8&dRG;wY`u>w%$*p>PO_}3`Y21pk?8Wtq zGwIXTulf7AO2FkPyyh2TZXM1DJv>hI`}x`OzQI*MBc#=}jaua&czSkI2!s^rOci|V zFkp*Vbiz5vWa9HPFXMi=BV&n3?1?%8#1jq?p^3wAL`jgcF)7F4l<(H^!i=l-(OTDE zxf2p71^WRIExLf?ig0FRO$h~aA23s#L zuZPLkm>mDwBeIu*C7@n@_$oSDmdWY7*wI%aL73t~`Yu7YwE-hxAATmOi0dmB9|D5a zLsR7OQcA0`vN9m0L|5?qZ|jU+cx3_-K2!K$zDbJ$UinQy<9nd5ImWW5n^&=Gg>Gsh zY0u?m1e^c~Ug39M{{5q2L~ROq#c{eG8Oy#5h_q=#AJj2Yops|1C^nv0D1=fBOdfAG z%>=vl*+_w`&M7{qE#$xJJp_t>bSh7Mpc(RAvli9kk3{KgG5K@a-Ue{IbU{`umXrR3ra5Y7xiX42+Q%N&-0#`ae_ z#$Y6Wa++OPEDw@96Zz##PFo9sADepQe|hUy!Zzc2C(L`k9&=a8XFr+!hIS>D2{pdGP1SzwyaGLiH3j--P>U#TWw90t8{8Bt%m7Upspl#=*hS zhy|(XL6HOqBW}Og^tLX7 z+`b^L{O&oqjwbxDDTg2B;Yh2(fW>%S5Pg8^u1p*EFb z`(fbUM0`afawYt%VBfD&b3MNJ39~Ldc@SAuzsMiN%E}5{uUUBc7hc1IUE~t-Y9h@e7PC|sv$xGx=hZiMXNJxz5V(np%6u{n24iWX#!8t#>Ob$in<>dw96H)oGdTHnU zSM+BPss*5)Wz@+FkooMxxXZP1{2Nz7a6BB~-A_(c&OiM)UUNoa@J8FGxtr$)`9;|O z(Q?lq1Q+!E`}d?KemgC!{nB1JJ!B>6J@XGQp9NeQvtbM2n7F%v|IS=XWPVZY(>oq$ zf=}8O_x`KOxZoGnp=y24x}k6?gl_0dTF!M!T`={`Ii{GnT1jrG9gPh)R=RZG8lIR| z{ZJ6`x8n|y+lZuy${fuEDTAf`OP!tGySLXD}ATJO5UoZv|Xo3%7O~L63+kw}v)Ci=&tWx3bQJfL@5O18CbPlkR^IcKA zy1=^Vl-K-QBP?9^R`@;czcUw;Enbbyk@vJQB>BZ4?;DM%BUf^eZE+sOy>a){qCY6Y znYy;KGpch-zf=5|p#SoAV+ie8M5(Xg-{FoLx-wZC9IutT!(9rJ8}=!$!h%!J+vE2e z(sURwqCC35v?1>C1L)swfA^sr16{yj7-zbT6Rf26-JoEt%U?+|rQ zeBuGohE?@*!zR9)1P|3>KmJSgK*fOt>N>j}LJB`>o(G#Dduvx7@DY7};W7K;Yj|8O zGF<+gTuoIKe7Rf+LQG3-V1L^|E;F*}bQ-{kuHq}| ze_NwA7~US19sAZ)@a`g*zkl*ykv2v3tPrb4Og2#?k6Lc7@1I~+ew48N&03hW^1Cx+ zfk5Lr4-n=#HYg<7ka5i>2A@ZeJ60gl)IDX!!p zzfXZQ?GrT>JEKl7$SH!otzK6=0dIlqN)c23YLB&Krf9v-{@V8p+-e2`ujFR!^M%*; ze_7(Jh$QgoqwB!HbX=S+^wqO15O_TQ0-qX8f-|&SOuo3ZE{{9Jw5{}>MhY}|GBhO& zv48s_B=9aYQfa;d>~1Z$y^oUUaDer>7ve5+Gf?rIG4GZ!hRKERlRNgg_C{W_!3tsI2TWbX8f~MY)1Q`6Wj&JJ~*;ay_0@e zzx+mE-pu8{cEcVfBqsnm=jFU?H}xj@%CAx#NO>3 z_re3Rq%d1Y7VkKy{=S73&p;4^Praw6Y59VCP6M?!Kt7{v#DG#tz?E)`K95gH_mEvb z%$<~_mQ$ad?~&T=O0i0?`YSp?E3Dj?V>n+uTRHAXn`l!pH9Mr}^D1d@mkf+;(tV45 zH_yfs^kOGLXlN*0GU;O&{=awxd?&`{JPRr$z<1HcAO2K`K}92$wC}ky&>;L?#!(`w z68avZGvb728!vgw>;8Z8I@mLtI`?^u6R>sK4E7%=y)jpmE$fH!Dj*~(dy~-2A5Cm{ zl{1AZw`jaDmfvaB?jvKwz!GC}@-Dz|bFm1OaPw(ia#?>vF7Y5oh{NVbyD~cHB1KFn z9C@f~X*Wk3>sQH9#D~rLPslAd26@AzMh=_NkH_yTNXx6-AdbAb z{Ul89YPHslD?xAGzOlQ*aMYUl6#efCT~WI zOvyiewT=~l1W(_2cEd(8rDywOwjM-7P9!8GCL-1<9KXXO=6%!9=W++*l1L~gRSxLVd8K=A7&t52ql=J&BMQu{fa6y zXO_e>d?4X)xp2V8e3xIQGbq@+vo#&n>-_WreTTW0Yr?|YRPP43cDYACMQ(3t6(?_k zfgDOAU^-pew_f5U#WxRXB30wcfDS3;k~t@b@w^GG&<5n$Ku?tT(%bQH(@UHQGN)N|nfC~7?(etU`}XB)$>KY;s=bYGY#kD%i9fz= z2nN9l?UPMKYwn9bX*^xX8Y@%LNPFU>s#Ea1DaP%bSioqRWi9JS28suTdJycYQ+tW7 zrQ@@=13`HS*dVKaVgcem-45+buD{B;mUbY$YYULhxK)T{S?EB<8^YTP$}DA{(&)@S zS#<8S96y9K2!lG^VW-+CkfXJIH;Vo6wh)N}!08bM$I7KEW{F6tqEQ?H@(U zAqfi%KCe}2NUXALo;UN&k$rU0BLNC$24T_mcNY(a@lxR`kqNQ0z%8m>`&1ro40HX} z{{3YQ;2F9JnVTvDY<4)x+88i@MtXE6TBd7POk&QfKU-F&*C`isS(T_Q@}K)=zW#K@ zbXpcAkTT-T5k}Wj$dMZl7=GvlcCMt}U`#Oon1QdPq%>9J$rKTY8#OmlnNWBYwafhx zqFnym@okL#Xw>4SeRFejBnZzY$jbO)e^&&sHBgMP%Ygfi!9_3hp17=AwLBNFTimf0 zw6BHNXw19Jg_Ud6`5n#gMpqe%9!QB^_7wAYv8nrW94A{*t8XZu0UT&`ZHfkd(F{Px zD&NbRJP#RX<=+sEeGs2`9_*J2OlECpR;4uJie-d__m*(aaGE}HIo+3P{my@;a~9Y$ zHBXVJ83#&@o6{M+pE9^lI<4meLLFN_3rwgR4IRyp)~OF0n+#ORrcJ2_On9-78bWbG zuCO0esc*n1X3@p1?lN{qWS?l7J$^jbpeel{w~51*0CM+q9@9X=>%MF(ce~om(}?td zjkUmdUR@LOn-~6LX#=@a%rvj&>DFEoQscOvvC@&ZB5jVZ-;XzAshwx$;Qf@U41W=q zOSSjQGQV8Qi3*4DngNMIM&Cxm7z*-K`~Bl(TcEUxjQ1c=?)?wF8W1g;bAR%sM#LK( z_Op?=P%)Z+J!>vpN`By0$?B~Out%P}kCriDq@}In&fa_ZyKV+nLM0E?hfxuu%ciUz z>yAk}OydbWNl7{)#112j&qmw;*Uj&B;>|;Qwfc?5wIYIHH}s6Mve@5c5r+y)jK9i( z_}@uC(98g)==AGkVN?4>o@w=7x9qhW^ zB(b5%%4cHSV?3M?k&^py)j*LK16T^Ef4tb05-h-tyrjt$5!oo4spEfXFK7r_Gfv7#x$bsR7T zs;dqxzUg9v&GjsQGKTP*=B(;)be2aN+6>IUz+Hhw-n>^|`^xu*xvjGPaDoFh2W4-n z@Wji{5Y$m>@Vt7TE_QVQN4*vcfWv5VY-dT0SV=l=8LAEq1go*f zkjukaDV=3kMAX6GAf0QOQHwP^{Z^=#Lc)sh`QB)Ftl&31jABvq?8!3bt7#8vxB z53M{4{GR4Hl~;W3r}PgXSNOt477cO62Yj(HcK&30zsmWpvAplCtpp&mC{`2Ue*Bwu zF&UX1;w%`Bs1u%RtGPFl=&sHu@Q1nT`z={;5^c^^S~^?2-?<|F9RT*KQmfgF!7=wD@hytxbD;=9L6PZrK*1<4HMObNWehA62DtTy)q5H|57 z9dePuC!1;0MMRRl!S@VJ8qG=v^~aEU+}2Qx``h1LII!y{crP2ky*R;Cb;g|r<#ryo zju#s4dE?5CTIZKc*O4^3qWflsQ(voX>(*_JP7>Q&$%zCAIBTtKC^JUi@&l6u&t0hXMXjz_y!;r@?k|OU9aD%938^TZ>V? zqJmom_6dz4DBb4Cgs_Ef@}F%+cRCR%UMa9pi<-KHN;t#O@cA%(LO1Rb=h?5jiTs93 zPLR78p+3t>z4|j=<>2i4b`ketv}9Ax#B0)hn7@bFl;rDfP8p7u9XcEb!5*PLKB(s7wQC2kzI^@ae)|DhNDmSy1bOLid%iIap@24A(q2XI!z_hkl-$1T10 z+KKugG4-}@u8(P^S3PW4x>an;XWEF-R^gB{`t8EiP{ZtAzoZ!JRuMRS__-Gg#Qa3{<;l__CgsF+nfmFNi}p z>rV!Y6B@cC>1up)KvaEQiAvQF!D>GCb+WZsGHjDeWFz?WVAHP65aIA8u6j6H35XNYlyy8>;cWe3ekr};b;$9)0G`zsc9LNsQ&D?hvuHRpBxH)r-1t9|Stc*u<}Ol&2N+wPMom}d15_TA=Aprp zjN-X3*Af$7cDWMWp##kOH|t;c2Pa9Ml4-)o~+7P;&q8teF-l}(Jt zTGKOQqJTeT!L4d}Qw~O0aanA$Vn9Rocp-MO4l*HK)t%hcp@3k0%&_*wwpKD6ThM)R z8k}&7?)YS1ZYKMiy?mn>VXiuzX7$Ixf7EW8+C4K^)m&eLYl%#T=MC;YPvD&w#$MMf zQ=>`@rh&&r!@X&v%ZlLF42L_c=5dSU^uymKVB>5O?AouR3vGv@ei%Z|GX5v1GK2R* zi!!}?+-8>J$JH^fPu@)E6(}9$d&9-j51T^n-e0Ze%Q^)lxuex$IL^XJ&K2oi`wG}QVGk2a7vC4X?+o^z zsCK*7`EUfSuQA*K@Plsi;)2GrayQOG9OYF82Hc@6aNN5ulqs1Of-(iZQdBI^U5of^ zZg2g=Xtad7$hfYu6l~KDQ}EU;oIj(3nO#u9PDz=eO3(iax7OCmgT2p_7&^3q zg7aQ;Vpng*)kb6=sd5?%j5Dm|HczSChMo8HHq_L8R;BR5<~DVyU$8*Tk5}g0eW5x7 z%d)JFZ{(Y<#OTKLBA1fwLM*fH7Q~7Sc2Ne;mVWqt-*o<;| z^1@vo_KTYaMnO$7fbLL+qh#R$9bvnpJ$RAqG+z8h|} z3F5iwG*(sCn9Qbyg@t0&G}3fE0jGq3J!JmG2K&$urx^$z95) z7h?;4vE4W=v)uZ*Eg3M^6f~|0&T)2D;f+L_?M*21-I1pnK(pT$5l#QNlT`SidYw~o z{`)G)Asv#cue)Ax1RNWiRUQ(tQ(bzd-f2U4xlJK+)ZWBxdq#fp=A>+Qc%-tl(c)`t z$e2Ng;Rjvnbu7((;v4LF9Y1?0el9hi!g>G{^37{ z`^s-03Z5jlnD%#Mix19zkU_OS|86^_x4<0(*YbPN}mi-$L?Z4K(M|2&VV*n*ZYN_UqI?eKZi3!b)i z%n3dzUPMc-dc|q}TzvPy!VqsEWCZL(-eURDRG4+;Eu!LugSSI4Fq$Ji$Dp08`pfP_C5Yx~`YKcywlMG;$F z)R5!kVml_Wv6MSpeXjG#g?kJ0t_MEgbXlUN3k|JJ%N>|2xn8yN>>4qxh!?dGI}s|Y zDTKd^JCrRSN+%w%D_uf=Tj6wIV$c*g8D96jb^Kc#>5Fe-XxKC@!pIJw0^zu;`_yeb zhUEm-G*C=F+jW%cP(**b61fTmPn2WllBr4SWNdKe*P8VabZsh0-R|?DO=0x`4_QY) zR7sthW^*BofW7{Sak&S1JdiG?e=SfL24Y#w_)xrBVhGB-13q$>mFU|wd9Xqe-o3{6 zSn@@1@&^)M$rxb>UmFuC+pkio#T;mSnroMVZJ%nZ!uImi?%KsIX#@JU2VY(`kGb1A z7+1MEG)wd@)m^R|a2rXeviv$!emwcY(O|M*xV!9%tBzarBOG<4%gI9SW;Um_gth4=gznYzOFd)y8e+3APCkL)i-OI`;@7-mCJgE`js(M} z;~ZcW{{FMVVO)W>VZ}ILouF#lWGb%Couu}TI4kubUUclW@jEn6B_^v!Ym*(T*4HF9 zWhNKi8%sS~viSdBtnrq!-Dc5(G^XmR>DFx8jhWvR%*8!m*b*R8e1+`7{%FACAK`7 zzdy8TmBh?FVZ0vtw6npnWwM~XjF2fNvV#ZlGG z?FxHkXHN>JqrBYoPo$)zNC7|XrQfcqmEXWud~{j?La6@kbHG@W{xsa~l1=%eLly8B z4gCIH05&Y;6O2uFSopNqP|<$ml$N40^ikxw0`o<~ywS1(qKqQN!@?Ykl|bE4M?P+e zo$^Vs_+x)iuw?^>>`$&lOQOUkZ5>+OLnRA)FqgpDjW&q*WAe(_mAT6IKS9;iZBl8M z<@=Y%zcQUaSBdrs27bVK`c$)h6A1GYPS$y(FLRD5Yl8E3j0KyH08#8qLrsc_qlws; znMV%Zq8k+&T2kf%6ZO^2=AE9>?a587g%-={X}IS~P*I(NeCF9_9&`)|ok0iiIun zo+^odT0&Z4k;rn7I1v87=z!zKU(%gfB$(1mrRYeO$sbqM22Kq68z9wgdg8HBxp>_< zn9o%`f?sVO=IN#5jSX&CGODWlZfQ9A)njK2O{JutYwRZ?n0G_p&*uwpE`Md$iQxrd zoQfF^b8Ou)+3BO_3_K5y*~?<(BF@1l+@?Z6;^;U>qlB)cdro;rxOS1M{Az$s^9o5sXDCg8yD<=(pKI*0e zLk>@lo#&s0)^*Q+G)g}C0IErqfa9VbL*Qe=OT@&+N8m|GJF7jd83vY#SsuEv2s{Q> z>IpoubNs>D_5?|kXGAPgF@mb_9<%hjU;S0C8idI)a=F#lPLuQJ^7OnjJlH_Sks9JD zMl1td%YsWq3YWhc;E$H1<0P$YbSTqs`JKY%(}svsifz|h8BHguL82dBl+z0^YvWk8 zGy;7Z0v5_FJ2A$P0wIr)lD?cPR%cz>kde!=W%Ta^ih+Dh4UKdf7ip?rBz@%y2&>`6 zM#q{JXvW9ZlaSk1oD!n}kSmcDa2v6T^Y-dy+#fW^y>eS8_%<7tWXUp8U@s$^{JFfKMjDAvR z$YmVB;n3ofl!ro9RNT!TpQpcycXCR}$9k5>IPWDXEenQ58os?_weccrT+Bh5sLoiH zZ_7~%t(vT)ZTEO= zb0}@KaD{&IyK_sd8b$`Qz3%UA`nSo zn``!BdCeN!#^G;lK@G2ron*0jQhbdw)%m$2;}le@z~PSLnU-z@tL)^(p%P>OO^*Ff zNRR9oQ`W+x^+EU+3BpluwK77|B3=8QyT|$V;02bn_LF&3LhLA<#}{{)jE)}CiW%VEU~9)SW+=F%7U-iYlQ&q!#N zwI2{(h|Pi&<8_fqvT*}FLN^0CxN}#|3I9G_xmVg$gbn2ZdhbmGk7Q5Q2Tm*ox8NMo zv`iaZW|ZEOMyQga5fts?&T-eCCC9pS0mj7v0SDkD=*^MxurP@89v&Z#3q{FM!a_nr zb?KzMv`BBFOew>4!ft@A&(v-kWXny-j#egKef|#!+3>26Qq0 zv!~8ev4G`7Qk>V1TaMT-&ziqoY3IJp8_S*%^1j73D|=9&;tDZH^!LYFMmME4*Wj(S zRt~Q{aLb_O;wi4u&=}OYuj}Lw*j$@z*3>4&W{)O-oi@9NqdoU!=U%d|se&h?^$Ip# z)BY+(1+cwJz!yy4%l(aLC;T!~Ci>yAtXJb~b*yr&v7f{YCU8P|N1v~H`xmGsG)g)y z4%mv=cPd`s7a*#OR7f0lpD$ueP>w8qXj0J&*7xX+U!uat5QNk>zwU$0acn5p=$88L=jn_QCSYkTV;1~(yUem#0gB`FeqY98sf=>^@ z_MCdvylv~WL%y_%y_FE1)j;{Szj1+K7Lr_y=V+U zk6Tr;>XEqlEom~QGL!a+wOf(@ZWoxE<$^qHYl*H1a~kk^BLPn785%nQb$o;Cuz0h& za9LMx^bKEbPS%e8NM33Jr|1T|ELC(iE!FUci38xW_Y7kdHid#2ie+XZhP;2!Z;ZAM zB_cXKm)VrPK!SK|PY00Phwrpd+x0_Aa;}cDQvWKrwnQrqz##_gvHX2ja?#_{f#;bz`i>C^^ zTLDy;6@HZ~XQi7rph!mz9k!m;KchA)uMd`RK4WLK7)5Rl48m#l>b(#`WPsl<0j z-sFkSF6>Nk|LKnHtZ`W_NnxZP62&w)S(aBmmjMDKzF%G;3Y?FUbo?>b5;0j8Lhtc4 zr*8d5Y9>g@FFZaViw7c16VsHcy0u7M%6>cG1=s=Dtx?xMJSKIu9b6GU8$uSzf43Y3 zYq|U+IWfH;SM~*N1v`KJo!|yfLxTFS?oHsr3qvzeVndVV^%BWmW6re_S!2;g<|Oao z+N`m#*i!)R%i1~NO-xo{qpwL0ZrL7hli;S z3L0lQ_z}z`fdK39Mg~Zd*%mBdD;&5EXa~@H(!###L`ycr7gW`f)KRuqyHL3|uyy3h zSS^td#E&Knc$?dXs*{EnPYOp^-vjAc-h4z#XkbG&REC7;0>z^^Z}i8MxGKerEY z>l?(wReOlXEsNE5!DO&ZWyxY)gG#FSZs%fXuzA~XIAPVp-%yb2XLSV{1nH6{)5opg z(dZKckn}Q4Li-e=eUDs1Psg~5zdn1>ql(*(nn6)iD*OcVkwmKL(A{fix(JhcVB&}V zVt*Xb!{gzvV}dc446>(D=SzfCu7KB`oMjv6kPzSv&B>>HLSJP|wN`H;>oRw*tl#N) z*zZ-xwM7D*AIsBfgqOjY1Mp9aq$kRa^dZU_xw~KxP;|q(m+@e+YSn~`wEJzM|Ippb zzb@%;hB7iH4op9SqmX?j!KP2chsb79(mFossBO-Zj8~L}9L%R%Bw<`^X>hjkCY5SG z7lY!8I2mB#z)1o;*3U$G)3o0A&{0}#B;(zPd2`OF`Gt~8;0Re8nIseU z_yzlf$l+*-wT~_-cYk$^wTJ@~7i@u(CZs9FVkJCru<*yK8&>g+t*!JqCN6RH%8S-P zxH8+Cy#W?!;r?cLMC(^BtAt#xPNnwboI*xWw#T|IW^@3|q&QYY6Ehxoh@^URylR|T zne-Y6ugE^7p5bkRDWIh)?JH5V^ub82l-LuVjDr7UT^g`q4dB&mBFRWGL_C?hoeL(% zo}ocH5t7|1Mda}T!^{Qt9vmA2ep4)dQSZO>?Eq8}qRp&ZJ?-`Tnw+MG(eDswP(L*X3ahC2Ad0_wD^ff9hfzb%Jd`IXx5 zae@NMzBXJDwJS?7_%!TB^E$N8pvhOHDK$7YiOelTY`6KX8hK6YyT$tk*adwN>s^Kp zwM3wGVPhwKU*Yq-*BCs}l`l#Tej(NQ>jg*S0TN%D+GcF<14Ms6J`*yMY;W<-mMN&-K>((+P}+t+#0KPGrzjP zJ~)=Bcz%-K!L5ozIWqO(LM)l_9lVOc4*S65&DKM#TqsiWNG{(EZQw!bc>qLW`=>p-gVJ;T~aN2D_- z{>SZC=_F+%hNmH6ub%Ykih0&YWB!%sd%W5 zHC2%QMP~xJgt4>%bU>%6&uaDtSD?;Usm}ari0^fcMhi_)JZgb1g5j zFl4`FQ*%ROfYI}e7RIq^&^a>jZF23{WB`T>+VIxj%~A-|m=J7Va9FxXV^%UwccSZd zuWINc-g|d6G5;95*%{e;9S(=%yngpfy+7ao|M7S|Jb0-4+^_q-uIqVS&ufU880UDH*>(c)#lt2j zzvIEN>>$Y(PeALC-D?5JfH_j+O-KWGR)TKunsRYKLgk7eu4C{iF^hqSz-bx5^{z0h ze2+u>Iq0J4?)jIo)}V!!m)%)B;a;UfoJ>VRQ*22+ncpe9f4L``?v9PH&;5j{WF?S_C>Lq>nkChZB zjF8(*v0c(lU^ZI-)_uGZnnVRosrO4`YinzI-RSS-YwjYh3M`ch#(QMNw*)~Et7Qpy z{d<3$4FUAKILq9cCZpjvKG#yD%-juhMj>7xIO&;c>_7qJ%Ae8Z^m)g!taK#YOW3B0 zKKSMOd?~G4h}lrZbtPk)n*iOC1~mDhASGZ@N{G|dF|Q^@1ljhe=>;wusA&NvY*w%~ zl+R6B^1yZiF)YN>0ms%}qz-^U-HVyiN3R9k1q4)XgDj#qY4CE0)52%evvrrOc898^ z*^)XFR?W%g0@?|6Mxo1ZBp%(XNv_RD-<#b^?-Fs+NL^EUW=iV|+Vy*F%;rBz~pN7%-698U-VMfGEVnmEz7fL1p)-5sLT zL;Iz>FCLM$p$c}g^tbkGK1G$IALq1Gd|We@&TtW!?4C7x4l*=4oF&&sr0Hu`x<5!m zhX&&Iyjr?AkNXU_5P_b^Q3U9sy#f6ZF@2C96$>1k*E-E%DjwvA{VL0PdU~suN~DZo zm{T!>sRdp`Ldpp9olrH@(J$QyGq!?#o1bUo=XP2OEuT3`XzI>s^0P{manUaE4pI%! zclQq;lbT;nx7v3tR9U)G39h?ryrxzd0xq4KX7nO?piJZbzT_CU&O=T(Vt;>jm?MgC z2vUL#*`UcMsx%w#vvjdamHhmN!(y-hr~byCA-*iCD};#l+bq;gkwQ0oN=AyOf@8ow>Pj<*A~2*dyjK}eYdN);%!t1 z6Y=|cuEv-|5BhA?n2Db@4s%y~(%Wse4&JXw=HiO48%c6LB~Z0SL1(k^9y?ax%oj~l zf7(`iAYLdPRq*ztFC z7VtAb@s{as%&Y;&WnyYl+6Wm$ru*u!MKIg_@01od-iQft0rMjIj8e7P9eKvFnx_X5 zd%pDg-|8<>T2Jdqw>AII+fe?CgP+fL(m0&U??QL8YzSjV{SFi^vW~;wN@or_(q<0Y zRt~L}#JRcHOvm$CB)T1;;7U>m%)QYBLTR)KTARw%zoDxgssu5#v{UEVIa<>{8dtkm zXgbCGp$tfue+}#SD-PgiNT{Zu^YA9;4BnM(wZ9-biRo_7pN}=aaimjYgC=;9@g%6< zxol5sT_$<8{LiJ6{l1+sV)Z_QdbsfEAEMw!5*zz6)Yop?T0DMtR_~wfta)E6_G@k# zZRP11D}$ir<`IQ`<(kGfAS?O-DzCyuzBq6dxGTNNTK?r^?zT30mLY!kQ=o~Hv*k^w zvq!LBjW=zzIi%UF@?!g9vt1CqdwV(-2LYy2=E@Z?B}JDyVkluHtzGsWuI1W5svX~K z&?UJ45$R7g>&}SFnLnmw09R2tUgmr_w6mM9C}8GvQX>nL&5R#xBqnp~Se(I>R42`T zqZe9p6G(VzNB3QD><8+y%{e%6)sZDRXTR|MI zM#eZmao-~_`N|>Yf;a;7yvd_auTG#B?Vz5D1AHx=zpVUFe7*hME z+>KH5h1In8hsVhrstc>y0Q!FHR)hzgl+*Q&5hU9BVJlNGRkXiS&06eOBV^dz3;4d5 zeYX%$62dNOprZV$px~#h1RH?_E%oD6y;J;pF%~y8M)8pQ0olYKj6 zE+hd|7oY3ot=j9ZZ))^CCPADL6Jw%)F@A{*coMApcA$7fZ{T@3;WOQ352F~q6`Mgi z$RI6$8)a`Aaxy<8Bc;{wlDA%*%(msBh*xy$L-cBJvQ8hj#FCyT^%+Phw1~PaqyDou^JR0rxDkSrmAdjeYDFDZ`E z)G3>XtpaSPDlydd$RGHg;#4|4{aP5c_Om z2u5xgnhnA)K%8iU==}AxPxZCYC)lyOlj9as#`5hZ=<6<&DB%i_XCnt5=pjh?iusH$ z>)E`@HNZcAG&RW3Ys@`Ci{;8PNzE-ZsPw$~Wa!cP$ye+X6;9ceE}ah+3VY7Mx}#0x zbqYa}eO*FceiY2jNS&2cH9Y}(;U<^^cWC5Ob&)dZedvZA9HewU3R;gRQ)}hUdf+~Q zS_^4ds*W1T#bxS?%RH&<739q*n<6o|mV;*|1s>ly-Biu<2*{!!0#{_234&9byvn0* z5=>{95Zfb{(?h_Jk#ocR$FZ78O*UTOxld~0UF!kyGM|nH%B*qf)Jy}N!uT9NGeM19 z-@=&Y0yGGo_dw!FD>juk%P$6$qJkj}TwLBoefi;N-$9LAeV|)|-ET&culW9Sb_pc_ zp{cXI0>I0Jm_i$nSvGnYeLSSj{ccVS2wyL&0x~&5v;3Itc82 z5lIAkfn~wcY-bQB$G!ufWt%qO;P%&2B_R5UKwYxMemIaFm)qF1rA zc>gEihb=jBtsXCi0T%J37s&kt*3$s7|6)L(%UiY)6axuk{6RWIS8^+u;)6!R?Sgap z9|6<0bx~AgVi|*;zL@2x>Pbt2Bz*uv4x-`{F)XatTs`S>unZ#P^ZiyjpfL_q2z^fqgR-fbOcG=Y$q>ozkw1T6dH8-)&ww+z?E0 zR|rV(9bi6zpX3Ub>PrPK!{X>e$C66qCXAeFm)Y+lX8n2Olt7PNs*1^si)j!QmFV#t z0P2fyf$N^!dyTot&`Ew5{i5u<8D`8U`qs(KqaWq5iOF3x2!-z65-|HsyYz(MAKZ?< zCpQR;E)wn%s|&q(LVm0Ab>gdmCFJeKwVTnv@Js%!At;I=A>h=l=p^&<4;Boc{$@h< z38v`3&2wJtka@M}GS%9!+SpJ}sdtoYzMevVbnH+d_eMxN@~~ zZq@k)7V5f8u!yAX2qF3qjS7g%n$JuGrMhQF!&S^7(%Y{rP*w2FWj(v_J{+Hg*}wdWOd~pHQ19&n3RWeljK9W%sz&Y3Tm3 zR`>6YR54%qBHGa)2xbs`9cs_EsNHxsfraEgZ)?vrtooeA0sPKJK7an){ngtV@{SBa zkO6ORr1_Xqp+`a0e}sC*_y(|RKS13ikmHp3C^XkE@&wjbGWrt^INg^9lDz#B;bHiW zkK4{|cg08b!yHFSgPca5)vF&gqCgeu+c82%&FeM^Bb}GUxLy-zo)}N;#U?sJ2?G2BNe*9u_7kE5JeY!it=f`A_4gV3} z`M!HXZy#gN-wS!HvHRqpCHUmjiM;rVvpkC!voImG%OFVN3k(QG@X%e``VJSJ@Z7tb z*Onlf>z^D+&$0!4`IE$;2-NSO9HQWd+UFW(r;4hh;(j^p4H-~6OE!HQp^96v?{9Zt z;@!ZcccV%C2s6FMP#qvo4kG6C04A>XILt>JW}%0oE&HM5f6 zYLD!;My>CW+j<~=Wzev{aYtx2ZNw|ptTFV(4;9`6Tmbz6K1)fv4qPXa2mtoPt&c?P zhmO+*o8uP3ykL6E$il00@TDf6tOW7fmo?Oz_6GU^+5J=c22bWyuH#aNj!tT-^IHrJ zu{aqTYw@q;&$xDE*_kl50Jb*dp`(-^p={z}`rqECTi~3 z>0~A7L6X)=L5p#~$V}gxazgGT7$3`?a)zen>?TvAuQ+KAIAJ-s_v}O6@`h9n-sZk> z`3{IJeb2qu9w=P*@q>iC`5wea`KxCxrx{>(4{5P+!cPg|pn~;n@DiZ0Y>;k5mnKeS z!LIfT4{Lgd=MeysR5YiQKCeNhUQ;Os1kAymg6R!u?j%LF z4orCszIq_n52ulpes{(QN|zirdtBsc{9^Z72Ycb2ht?G^opkT_#|4$wa9`)8k3ilU z%ntAi`nakS1r10;#k^{-ZGOD&Z2|k=p40hRh5D7(&JG#Cty|ECOvwsSHkkSa)36$4 z?;v#%@D(=Raw(HP5s>#4Bm?f~n1@ebH}2tv#7-0l-i^H#H{PC|F@xeNS+Yw{F-&wH z07)bj8MaE6`|6NoqKM~`4%X> zKFl&7g1$Z3HB>lxn$J`P`6GSb6CE6_^NA1V%=*`5O!zP$a7Vq)IwJAki~XBLf=4TF zPYSL}>4nOGZ`fyHChq)jy-f{PKFp6$plHB2=;|>%Z^%)ecVue(*mf>EH_uO^+_zm? zJATFa9SF~tFwR#&0xO{LLf~@}s_xvCPU8TwIJgBs%FFzjm`u?1699RTui;O$rrR{# z1^MqMl5&6)G%@_k*$U5Kxq84!AdtbZ!@8FslBML}<`(Jr zenXrC6bFJP=R^FMBg7P?Pww-!a%G@kJH_zezKvuWU0>m1uyy}#Vf<$>u?Vzo3}@O% z1JR`B?~Tx2)Oa|{DQ_)y9=oY%haj!80GNHw3~qazgU-{|q+Bl~H94J!a%8UR?XsZ@ z0*ZyQugyru`V9b(0OrJOKISfi89bSVR zQy<+i_1XY}4>|D%X_`IKZUPz6=TDb)t1mC9eg(Z=tv zq@|r37AQM6A%H%GaH3szv1L^ku~H%5_V*fv$UvHl*yN4iaqWa69T2G8J2f3kxc7UE zOia@p0YNu_q-IbT%RwOi*|V|&)e5B-u>4=&n@`|WzH}BK4?33IPpXJg%`b=dr_`hU z8JibW_3&#uIN_#D&hX<)x(__jUT&lIH$!txEC@cXv$7yB&Rgu){M`9a`*PH} zRcU)pMWI2O?x;?hzR{WdzKt^;_pVGJAKKd)F$h;q=Vw$MP1XSd<;Mu;EU5ffyKIg+ z&n-Nb?h-ERN7(fix`htopPIba?0Gd^y(4EHvfF_KU<4RpN0PgVxt%7Yo99X*Pe|zR z?ytK&5qaZ$0KSS$3ZNS$$k}y(2(rCl=cuYZg{9L?KVgs~{?5adxS))Upm?LDo||`H zV)$`FF3icFmxcQshXX*1k*w3O+NjBR-AuE70=UYM*7>t|I-oix=bzDwp2*RoIwBp@r&vZukG; zyi-2zdyWJ3+E?{%?>e2Ivk`fAn&Ho(KhGSVE4C-zxM-!j01b~mTr>J|5={PrZHOgO zw@ND3=z(J7D>&C7aw{zT>GHhL2BmUX0GLt^=31RRPSnjoUO9LYzh_yegyPoAKhAQE z>#~O27dR4&LdQiak6={9_{LN}Z>;kyVYKH^d^*!`JVSXJlx#&r4>VnP$zb{XoTb=> zZsLvh>keP3fkLTIDdpf-@(ADfq4=@X=&n>dyU0%dwD{zsjCWc;r`-e~X$Q3NTz_TJ zOXG|LMQQIjGXY3o5tBm9>k6y<6XNO<=9H@IXF;63rzsC=-VuS*$E{|L_i;lZmHOD< zY92;>4spdeRn4L6pY4oUKZG<~+8U-q7ZvNOtW0i*6Q?H`9#U3M*k#4J;ek(MwF02x zUo1wgq9o6XG#W^mxl>pAD)Ll-V5BNsdVQ&+QS0+K+?H-gIBJ-ccB1=M_hxB6qcf`C zJ?!q!J4`kLhAMry4&a_0}up{CFevcjBl|N(uDM^N5#@&-nQt2>z*U}eJGi}m5f}l|IRVj-Q;a>wcLpK5RRWJ> zysdd$)Nv0tS?b~bw1=gvz3L_ZAIdDDPj)y|bp1;LE`!av!rODs-tlc}J#?erTgXRX z$@ph%*~_wr^bQYHM7<7=Q=45v|Hk7T=mDpW@OwRy3A_v`ou@JX5h!VI*e((v*5Aq3 zVYfB4<&^Dq5%^?~)NcojqK`(VXP$`#w+&VhQOn%;4pCkz;NEH6-FPHTQ+7I&JE1+Ozq-g43AEZV>ceQ^9PCx zZG@OlEF~!Lq@5dttlr%+gNjRyMwJdJU(6W_KpuVnd{3Yle(-p#6erIRc${l&qx$HA z89&sp=rT7MJ=DuTL1<5{)wtUfpPA|Gr6Q2T*=%2RFm@jyo@`@^*{5{lFPgv>84|pv z%y{|cVNz&`9C*cUely>-PRL)lHVErAKPO!NQ3<&l5(>Vp(MuJnrOf^4qpIa!o3D7( z1bjn#Vv$#or|s7Hct5D@%;@48mM%ISY7>7@ft8f?q~{s)@BqGiupoK1BAg?PyaDQ1 z`YT8{0Vz{zBwJ={I4)#ny{RP{K1dqzAaQN_aaFC%Z>OZ|^VhhautjDavGtsQwx@WH zr|1UKk^+X~S*RjCY_HN!=Jx>b6J8`Q(l4y|mc<6jnkHVng^Wk(A13-;AhawATsmmE#H%|8h}f1frs2x@Fwa_|ea+$tdG2Pz{7 z!ox^w^>^Cv4e{Xo7EQ7bxCe8U+LZG<_e$RnR?p3t?s^1Mb!ieB z#@45r*PTc_yjh#P=O8Zogo+>1#|a2nJvhOjIqKK1U&6P)O%5s~M;99O<|Y9zomWTL z666lK^QW`)cXV_^Y05yQZH3IRCW%25BHAM$c0>w`x!jh^15Zp6xYb!LoQ zr+RukTw0X2mxN%K0%=8|JHiaA3pg5+GMfze%9o5^#upx0M?G9$+P^DTx7~qq9$Qoi zV$o)yy zuUq>3c{_q+HA5OhdN*@*RkxRuD>Bi{Ttv_hyaaB;XhB%mJ2Cb{yL;{Zu@l{N?!GKE7es6_9J{9 zO(tmc0ra2;@oC%SS-8|D=omQ$-Dj>S)Utkthh{ovD3I%k}HoranSepC_yco2Q8 zY{tAuPIhD{X`KbhQIr%!t+GeH%L%q&p z3P%<-S0YY2Emjc~Gb?!su85}h_qdu5XN2XJUM}X1k^!GbwuUPT(b$Ez#LkG6KEWQB z7R&IF4srHe$g2R-SB;inW9T{@+W+~wi7VQd?}7||zi!&V^~o0kM^aby7YE_-B63^d zf_uo8#&C77HBautt_YH%v6!Q>H?}(0@4pv>cM6_7dHJ)5JdyV0Phi!)vz}dv{*n;t zf(+#Hdr=f8DbJqbMez)(n>@QT+amJ7g&w6vZ-vG^H1v~aZqG~u!1D(O+jVAG0EQ*aIsr*bsBdbD`)i^FNJ z&B@yxqPFCRGT#}@dmu-{0vp47xk(`xNM6E=7QZ5{tg6}#zFrd8Pb_bFg7XP{FsYP8 zbvWqG6#jfg*4gvY9!gJxJ3l2UjP}+#QMB(*(?Y&Q4PO`EknE&Cb~Yb@lCbk;-KY)n zzbjS~W5KZ3FV%y>S#$9Sqi$FIBCw`GfPDP|G=|y32VV-g@a1D&@%_oAbB@cAUx#aZ zlAPTJ{iz#Qda8(aNZE&0q+8r3&z_Ln)b=5a%U|OEcc3h1f&8?{b8ErEbilrun}mh3 z$1o^$-XzIiH|iGoJA`w`o|?w3m*NX|sd$`Mt+f*!hyJvQ2fS*&!SYn^On-M|pHGlu z4SC5bM7f6BAkUhGuN*w`97LLkbCx=p@K5RL2p>YpDtf{WTD|d3ucb6iVZ-*DRtoEA zCC5(x)&e=giR_id>5bE^l%Mxx>0@FskpCD4oq@%-Fg$8IcdRwkfn;DsjoX(v;mt3d z_4Mnf#Ft4x!bY!7Hz?RRMq9;5FzugD(sbt4up~6j?-or+ch~y_PqrM2hhTToJjR_~ z)E1idgt7EW>G*9%Q^K;o_#uFjX!V2pwfpgi>}J&p_^QlZki!@#dkvR`p?bckC`J*g z=%3PkFT3HAX2Q+dShHUbb1?ZcK8U7oaufLTCB#1W{=~k0Jabgv>q|H+GU=f-y|{p4 zwN|AE+YbCgx=7vlXE?@gkXW9PaqbO#GB=4$o0FkNT#EI?aLVd2(qnPK$Yh%YD%v(mdwn}bgsxyIBI^)tY?&G zi^2JfClZ@4b{xFjyTY?D61w@*ez2@5rWLpG#34id?>>oPg{`4F-l`7Lg@D@Hc}On} zx%BO4MsLYosLGACJ-d?ifZ35r^t*}wde>AAWO*J-X%jvD+gL9`u`r=kP zyeJ%FqqKfz8e_3K(M1RmB?gIYi{W7Z<THP2ihue0mbpu5n(x_l|e1tw(q!#m5lmef6ktqIb${ zV+ee#XRU}_dDDUiV@opHZ@EbQ<9qIZJMDsZDkW0^t3#j`S)G#>N^ZBs8k+FJhAfu< z%u!$%dyP3*_+jUvCf-%{x#MyDAK?#iPfE<(@Q0H7;a125eD%I(+!x1f;Sy`e<9>nm zQH4czZDQmW7^n>jL)@P@aAuAF$;I7JZE5a8~AJI5CNDqyf$gjloKR7C?OPt9yeH}n5 zNF8Vhmd%1O>T4EZD&0%Dt7YWNImmEV{7QF(dy!>q5k>Kh&Xy8hcBMUvVV~Xn8O&%{ z&q=JCYw#KlwM8%cu-rNadu(P~i3bM<_a{3!J*;vZhR6dln6#eW0^0kN)Vv3!bqM`w z{@j*eyzz=743dgFPY`Cx3|>ata;;_hQ3RJd+kU}~p~aphRx`03B>g4*~f%hUV+#D9rYRbsGD?jkB^$3XcgB|3N1L& zrmk9&Dg450mAd=Q_p?gIy5Zx7vRL?*rpNq76_rysFo)z)tp0B;7lSb9G5wX1vC9Lc z5Q8tb-alolVNWFsxO_=12o}X(>@Mwz1mkYh1##(qQwN=7VKz?61kay8A9(94Ky(4V zq6qd2+4a20Z0QRrmp6C?4;%U?@MatfXnkj&U6bP_&2Ny}BF%4{QhNx*Tabik9Y-~Z z@0WV6XD}aI(%pN}oW$X~Qo_R#+1$@J8(31?zM`#e`#(0f<-AZ^={^NgH#lc?oi(Mu zMk|#KR^Q;V@?&(sh5)D;-fu)rx%gXZ1&5)MR+Mhssy+W>V%S|PRNyTAd}74<(#J>H zR(1BfM%eIv0+ngHH6(i`?-%_4!6PpK*0X)79SX0X$`lv_q>9(E2kkkP;?c@rW2E^Q zs<;`9dg|lDMNECFrD3jTM^Mn-C$44}9d9Kc z#>*k&e#25;D^%82^1d@Yt{Y91MbEu0C}-;HR4+IaCeZ`l?)Q8M2~&E^FvJ?EBJJ(% zz1>tCW-E~FB}DI}z#+fUo+=kQME^=eH>^%V8w)dh*ugPFdhMUi3R2Cg}Zak4!k_8YW(JcR-)hY8C zXja}R7@%Q0&IzQTk@M|)2ViZDNCDRLNI)*lH%SDa^2TG4;%jE4n`8`aQAA$0SPH2@ z)2eWZuP26+uGq+m8F0fZn)X^|bNe z#f{qYZS!(CdBdM$N2(JH_a^b#R2=>yVf%JI_ieRFB{w&|o9txwMrVxv+n78*aXFGb z>Rkj2yq-ED<)A46T9CL^$iPynv`FoEhUM10@J+UZ@+*@_gyboQ>HY9CiwTUo7OM=w zd~$N)1@6U8H#Zu(wGLa_(Esx%h@*pmm5Y9OX@CY`3kPYPQx@z8yAgtm(+agDU%4?c zy8pR4SYbu8vY?JX6HgVq7|f=?w(%`m-C+a@E{euXo>XrGmkmFGzktI*rj*8D z)O|CHKXEzH{~iS+6)%ybRD|JRQ6j<+u_+=SgnJP%K+4$st+~XCVcAjI9e5`RYq$n{ zzy!X9Nv7>T4}}BZpSj9G9|(4ei-}Du<_IZw+CB`?fd$w^;=j8?vlp(#JOWiHaXJjB0Q00RHJ@sG6N#y^H7t^&V} z;VrDI4?75G$q5W9mV=J2iP24NHJy&d|HWHva>FaS#3AO?+ohh1__FMx;?`f{HG3v0 ztiO^Wanb>U4m9eLhoc_2B(ca@YdnHMB*~aYO+AE(&qh@?WukLbf_y z>*3?Xt-lxr?#}y%kTv+l8;!q?Hq8XSU+1E8x~o@9$)zO2z9K#(t`vPDri`mKhv|sh z{KREcy`#pnV>cTT7dm7M9B@9qJRt3lfo(C`CNkIq@>|2<(yn!AmVN?ST zbX_`JjtWa3&N*U{K7FYX8})*D#2@KBae` zhKS~s!r%SrXdhCsv~sF}7?ocyS?afya6%rDBu6g^b2j#TOGp^1zrMR}|70Z>CeYq- z1o|-=FBKlu{@;pm@QQJ_^!&hzi;0Z_Ho){x3O1KQ#TYk=rAt9`YKC0Y^}8GWIN{QW znYJyVTrmNvl!L=YS1G8BAxGmMUPi+Q7yb0XfG`l+L1NQVSbe^BICYrD;^(rke{jWCEZOtVv3xFze!=Z&(7}!)EcN;v0Dbit?RJ6bOr;N$ z=nk8}H<kCEE+IK3z<+3mkn4q!O7TMWpKShWWWM)X*)m6k%3luF6c>zOsFccvfLWf zH+mNkh!H@vR#~oe=ek}W3!71z$Dlj0c(%S|sJr>rvw!x;oCek+8f8s!U{DmfHcNpO z9>(IKOMfJwv?ey`V2ysSx2Npeh_x#bMh)Ngdj$al;5~R7Ac5R2?*f{hI|?{*$0qU- zY$6}ME%OGh^zA^z9zJUs-?a4ni8cw_{cYED*8x{bWg!Fn9)n;E9@B+t;#k}-2_j@# zg#b%R(5_SJAOtfgFCBZc`n<&z6)%nOIu@*yo!a% zpLg#36KBN$01W{b;qWN`Tp(T#jh%;Zp_zpS64lvBVY2B#UK)p`B4Oo)IO3Z&D6<3S zfF?ZdeNEnzE{}#gyuv)>;z6V{!#bx)` zY;hL*f(WVD*D9A4$WbRKF2vf;MoZVdhfWbWhr{+Db5@M^A4wrFReuWWimA4qp`GgoL2`W4WPUL5A=y3Y3P z%G?8lLUhqo@wJW8VDT`j&%YY7xh51NpVYlsrk_i4J|pLO(}(b8_>%U2M`$iVRDc-n zQiOdJbroQ%*vhN{!{pL~N|cfGooK_jTJCA3g_qs4c#6a&_{&$OoSQr_+-O^mKP=Fu zGObEx`7Qyu{nHTGNj(XSX*NPtAILL(0%8Jh)dQh+rtra({;{W2=f4W?Qr3qHi*G6B zOEj7%nw^sPy^@05$lOCjAI)?%B%&#cZ~nC|=g1r!9W@C8T0iUc%T*ne z)&u$n>Ue3FN|hv+VtA+WW)odO-sdtDcHfJ7s&|YCPfWaVHpTGN46V7Lx@feE#Od%0XwiZy40plD%{xl+K04*se zw@X4&*si2Z_0+FU&1AstR)7!Th(fdaOlsWh`d!y=+3m!QC$Zlkg8gnz!}_B7`+wSz z&kD?6{zPnE3uo~Tv8mLP%RaNt2hcCJBq=0T>%MW~Q@Tpt2pPP1?KcywH>in5@ zx+5;xu-ltFfo5vLU;2>r$-KCHjwGR&1XZ0YNyrXXAUK!FLM_7mV&^;;X^*YH(FLRr z`0Jjg7wiq2bisa`CG%o9i)o1`uG?oFjU_Zrv1S^ipz$G-lc^X@~6*)#%nn+RbgksJfl{w=k31(q>7a!PCMp5YY{+Neh~mo zG-3dd!0cy`F!nWR?=9f_KP$X?Lz&cLGm_ohy-|u!VhS1HG~e7~xKpYOh=GmiiU;nu zrZ5tWfan3kp-q_vO)}vY6a$19Q6UL0r znJ+iSHN-&w@vDEZ0V%~?(XBr|jz&vrBNLOngULxtH(Rp&U*rMY42n;05F11xh?k;n_DX2$4|vWIkXnbwfC z=ReH=(O~a;VEgVO?>qsP*#eOC9Y<_9Yt<6X}X{PyF7UXIA$f)>NR5P&4G_Ygq(9TwwQH*P>Rq>3T4I+t2X(b5ogXBAfNf!xiF#Gilm zp2h{&D4k!SkKz-SBa%F-ZoVN$7GX2o=(>vkE^j)BDSGXw?^%RS9F)d_4}PN+6MlI8*Uk7a28CZ)Gp*EK)`n5i z){aq=0SFSO-;sw$nAvJU-$S-cW?RSc7kjEBvWDr1zxb1J7i;!i+3PQwb=)www?7TZ zE~~u)vO>#55eLZW;)F(f0KFf8@$p)~llV{nO7K_Nq-+S^h%QV_CnXLi)p*Pq&`s!d zK2msiR;Hk_rO8`kqe_jfTmmv|$MMo0ll}mI)PO4!ikVd(ZThhi&4ZwK?tD-}noj}v zBJ?jH-%VS|=t)HuTk?J1XaDUjd_5p1kPZi6y#F6$lLeRQbj4hsr=hX z4tXkX2d5DeLMcAYTeYm|u(XvG5JpW}hcOs4#s8g#ihK%@hVz|kL=nfiBqJ{*E*WhC zht3mi$P3a(O5JiDq$Syu9p^HY&9~<#H89D8 zJm84@%TaL_BZ+qy8+T3_pG7Q%z80hnjN;j>S=&WZWF48PDD%55lVuC0%#r5(+S;WH zS7!HEzmn~)Ih`gE`faPRjPe^t%g=F ztpGVW=Cj5ZkpghCf~`ar0+j@A=?3(j@7*pq?|9)n*B4EQTA1xj<+|(Y72?m7F%&&& zdO44owDBPT(8~RO=dT-K4#Ja@^4_0v$O3kn73p6$s?mCmVDUZ+Xl@QcpR6R3B$=am z%>`r9r2Z79Q#RNK?>~lwk^nQlR=Hr-ji$Ss3ltbmB)x@0{VzHL-rxVO(++@Yr@Iu2 zTEX)_9sVM>cX$|xuqz~Y8F-(n;KLAfi*63M7mh&gsPR>N0pd9h!0bm%nA?Lr zS#iEmG|wQd^BSDMk0k?G>S-uE$vtKEF8Dq}%vLD07zK4RLoS?%F1^oZZI$0W->7Z# z?v&|a`u#UD=_>i~`kzBGaPj!mYX5g?3RC4$5EV*j0sV)>H#+$G6!ci=6`)85LWR=FCp-NUff`;2zG9nU6F~ z;3ZyE*>*LvUgae+uMf}aV}V*?DCM>{o31+Sx~6+sz;TI(VmIpDrN3z+BUj`oGGgLP z>h9~MP}Pw#YwzfGP8wSkz`V#}--6}7S9yZvb{;SX?6PM_KuYpbi~*=teZr-ga2QqIz{QrEyZ@>eN*qmy;N@FCBbRNEeeoTmQyrX;+ zCkaJ&vOIbc^2BD6_H+Mrcl?Nt7O{xz9R_L0ZPV_u!sz+TKbXmhK)0QWoe-_HwtKJ@@7=L+ z+K8hhf=4vbdg3GqGN<;v-SMIzvX=Z`WUa_91Yf89^#`G(f-Eq>odB^p-Eqx}ENk#&MxJ+%~Ad2-*`1LNT>2INPw?*V3&kE;tt?rQyBw? zI+xJD04GTz1$7~KMnfpkPRW>f%n|0YCML@ODe`10;^DXX-|Hb*IE%_Vi#Pn9@#ufA z_8NY*1U%VseqYrSm?%>F@`laz+f?+2cIE4Jg6 z_VTcx|DSEA`g!R%RS$2dSRM|9VQClsW-G<~=j5T`pTbu-x6O`R z98b;}`rPM(2={YiytrqX+uh65f?%XiPp`;4CcMT*E*dQJ+if9^D>c_Dk8A(cE<#r=&!& z_`Z01=&MEE+2@yr!|#El=yM}v>i=?w^2E_FLPy(*4A9XmCNy>cBWdx3U>1RylsItO z4V8T$z3W-qqq*H`@}lYpfh=>C!tieKhoMGUi)EpWDr;yIL&fy};Y&l|)f^QE*k~4C zH>y`Iu%#S)z)YUqWO%el*Z)ME#p{1_8-^~6UF;kBTW zMQ!eXQuzkR#}j{qb(y9^Y!X7&T}}-4$%4w@w=;w+>Z%uifR9OoQ>P?0d9xpcwa>7kTv2U zT-F?3`Q`7xOR!gS@j>7In>_h){j#@@(ynYh;nB~}+N6qO(JO1xA z@59Pxc#&I~I64slNR?#hB-4XE>EFU@lUB*D)tu%uEa))B#eJ@ZOX0hIulfnDQz-y8 z`CX@(O%_VC{Ogh&ot``jlDL%R!f>-8yq~oLGxBO?+tQb5%k@a9zTs!+=NOwSVH-cR zqFo^jHeXDA_!rx$NzdP;>{-j5w3QUrR<;}=u2|FBJ;D#v{SK@Z6mjeV7_kFmWt95$ zeGaF{IU?U>?W`jzrG_9=9}yN*LKyzz))PLE+)_jc#4Rd$yFGol;NIk(qO1$5VXR)+ zxF7%f4=Q!NzR>DVXUB&nUT&>Nyf+5QRF+Z`X-bB*7=`|Go5D1&h~ zflKLw??kpiRm0h3|1GvySC2^#kcFz^5{79KKlq@`(leBa=_4CgV9sSHr{RIJ^KwR_ zY??M}-x^=MD+9`v@I3jue=OCn0kxno#6i>b(XKk_XTp_LpI}X*UA<#* zsgvq@yKTe_dTh>q1aeae@8yur08S(Q^8kXkP_ty48V$pX#y9)FQa~E7P7}GP_CbCm zc2dQxTeW(-~Y6}im24*XOC8ySfH*HMEnW3 z4CXp8iK(Nk<^D$g0kUW`8PXn2kdcDk-H@P0?G8?|YVlIFb?a>QunCx%B9TzsqQQ~HD!UO7zq^V!v9jho_FUob&Hxi ztU1nNOK)a!gkb-K4V^QVX05*>-^i|{b`hhvQLyj`E1vAnj0fbqqO%r z6Q;X1x0dL~GqMv%8QindZ4CZ%7pYQW~ z9)I*#Gjref-q(4Z*E#1c&rE0-_(4;_M(V7rgH_7H;ps1s%GBmU z{4a|X##j#XUF2n({v?ZUUAP5k>+)^F)7n-npbV3jAlY8V3*W=fwroDS$c&r$>8aH` zH+irV{RG3^F3oW2&E%5hXgMH9>$WlqX76Cm+iFmFC-DToTa`AcuN9S!SB+BT-IA#3P)JW1m~Cuwjs`Ep(wDXE4oYmt*aU z!Naz^lM}B)JFp7ejro7MU9#cI>wUoi{lylR2~s)3M!6a=_W~ITXCPd@U9W)qA5(mdOf zd3PntGPJyRX<9cgX?(9~TZB5FdEHW~gkJXY51}?s4ZT_VEdwOwD{T2E-B>oC8|_ZwsPNj=-q(-kwy%xX2K0~H z{*+W`-)V`7@c#Iuaef=?RR2O&x>W0A^xSwh5MsjTz(DVG-EoD@asu<>72A_h<39_# zawWVU<9t{r*e^u-5Q#SUI6dV#p$NYEGyiowT>>d*or=Ps!H$-3={bB|An$GPkP5F1 zTnu=ktmF|6E*>ZQvk^~DX(k!N`tiLut*?3FZhs$NUEa4ccDw66-~P;x+0b|<!ZN7Z%A`>2tN#CdoG>((QR~IV_Gj^Yh%!HdA~4C3jOXaqb6Ou z21T~Wmi9F6(_K0@KR@JDTh3-4mv2=T7&ML<+$4;b9SAtv*Uu`0>;VVZHB{4?aIl3J zL(rMfk?1V@l)fy{J5DhVlj&cWKJCcrpOAad(7mC6#%|Sn$VwMjtx6RDx1zbQ|Ngg8N&B56DGhu;dYg$Z{=YmCNn+?ceDclp65c_RnKs4*vefnhudSlrCy6-96vSB4_sFAj# zftzECwmNEOtED^NUt{ZDjT7^g>k1w<=af>+0)%NA;IPq6qx&ya7+QAu=pk8t>KTm` zEBj9J*2t|-(h)xc>Us*jHs)w9qmA>8@u21UqzKk*Ei#0kCeW6o z-2Q+Tvt25IUkb}-_LgD1_FUJ!U8@8OC^9(~Kd*0#zr*8IQkD)6Keb(XFai5*DYf~` z@U?-{)9X&BTf!^&@^rjmvea#9OE~m(D>qfM?CFT9Q4RxqhO0sA7S)=--^*Q=kNh7Y zq%2mu_d_#23d`+v`Ol263CZ<;D%D8Njj6L4T`S*^{!lPL@pXSm>2;~Da- zBX97TS{}exvSva@J5FJVCM$j4WDQuME`vTw>PWS0!;J7R+Kq zVUy6%#n5f7EV(}J#FhDpts;>=d6ow!yhJj8j>MJ@Wr_?x30buuutIG97L1A*QFT$c ziC5rBS;#qj=~yP-yWm-p(?llTwDuhS^f&<(9vA9@UhMH2-Fe_YAG$NvK6X{!mvPK~ zuEA&PA}meylmaIbbJXDOzuIn8cJNCV{tUA<$Vb?57JyAM`*GpEfMmFq>)6$E(9e1@W`l|R%-&}38#bl~levA#fx2wiBk^)mPj?<=S&|gv zQO)4*91$n08@W%2b|QxEiO0KxABAZC{^4BX^6r>Jm?{!`ZId9jjz<%pl(G5l));*`UU3KfnuXSDj2aP>{ zRIB$9pm7lj3*Xg)c1eG!cb+XGt&#?7yJ@C)(Ik)^OZ5><4u$VLCqZ#q2NMCt5 z6$|VN(RWM;5!JV?-h<JkEZ(SZF zC(6J+>A6Am9H7OlOFq6S62-2&z^Np=#xXsOq0WUKr zY_+Ob|CQd1*!Hirj5rn*=_bM5_zKmq6lG zn*&_=x%?ATxZ8ZTzd%biKY_qyNC#ZQ1vX+vc48N>aJXEjs{Y*3Op`Q7-oz8jyAh>d zNt_qvn`>q9aO~7xm{z`ree%lJ3YHCyC`q`-jUVCn*&NIml!uuMNm|~u3#AV?6kC+B z?qrT?xu2^mobSlzb&m(8jttB^je0mx;TT8}`_w(F11IKz83NLj@OmYDpCU^u?fD{) z&=$ptwVw#uohPb2_PrFX;X^I=MVXPDpqTuYhRa>f-=wy$y3)40-;#EUDYB1~V9t%$ z^^<7Zbs0{eB93Pcy)96%XsAi2^k`Gmnypd-&x4v9rAq<>a(pG|J#+Q>E$FvMLmy7T z5_06W=*ASUyPRfgCeiPIe{b47Hjqpb`9Xyl@$6*ntH@SV^bgH&Fk3L9L=6VQb)Uqa z33u#>ecDo&bK(h1WqSH)b_Th#Tvk&%$NXC@_pg5f-Ma#7q;&0QgtsFO~`V&{1b zbSP*X)jgLtd@9XdZ#2_BX4{X~pS8okF7c1xUhEV9>PZco>W-qz7YMD`+kCGULdK|^ zE7VwQ-at{%&fv`a+b&h`TjzxsyQX05UB~a0cuU-}{*%jR48J+yGWyl3Kdz5}U>;lE zgkba*yI5>xqIPz*Y!-P$#_mhHB!0Fpnv{$k-$xxjLAc`XdmHd1k$V@2QlblfJPrly z*~-4HVCq+?9vha>&I6aRGyq2VUon^L1a)g`-Xm*@bl2|hi2b|UmVYW|b+Gy?!aS-p z86a}Jep6Mf>>}n^*Oca@Xz}kxh)Y&pX$^CFAmi#$YVf57X^}uQD!IQSN&int=D> zJ>_|au3Be?hmPKK)1^JQ(O29eTf`>-x^jF2xYK6j_9d_qFkWHIan5=7EmDvZoQWz5 zZGb<{szHc9Nf@om)K_<=FuLR<&?5RKo3LONFQZ@?dyjemAe4$yDrnD zglU#XYo6|~L+YpF#?deK6S{8A*Ou;9G`cdC4S0U74EW18bc5~4>)<*}?Z!1Y)j;Ot zosEP!pc$O^wud(={WG%hY07IE^SwS-fGbvpP?;l8>H$;}urY2JF$u#$q}E*ZG%fR# z`p{xslcvG)kBS~B*^z6zVT@e}imYcz_8PRzM4GS52#ms5Jg9z~ME+uke`(Tq1w3_6 zxUa{HerS7!Wq&y(<9yyN@P^PrQT+6ij_qW3^Q)I53iIFCJE?MVyGLID!f?QHUi1tq z0)RNIMGO$2>S%3MlBc09l!6_(ECxXTU>$KjWdZX^3R~@3!SB zah5Za2$63;#y!Y}(wg1#shMePQTzfQfXyJ-Tf`R05KYcyvo8UW9-IWGWnzxR6Vj8_la;*-z5vWuwUe7@sKr#Tr51d z2PWn5h@|?QU3>k=s{pZ9+(}oye zc*95N_iLmtmu}H-t$smi49Y&ovX}@mKYt2*?C-i3Lh4*#q5YDg1Mh`j9ovRDf9&& zp_UMQh`|pC!|=}1uWoMK5RAjdTg3pXPCsYmRkWW}^m&)u-*c_st~gcss(`haA)xVw zAf=;s>$`Gq_`A}^MjY_BnCjktBNHY1*gzh(i0BFZ{Vg^F?Pbf`8_clvdZ)5(J4EWzAP}Ba5zX=S(2{gDugTQ3`%!q`h7kYSnwC`zEWeuFlODKiityMaM9u{Z%E@@y1jmZA#ⅅ8MglG&ER{i5lN315cO?EdHNLrg? zgxkP+ytd)OMWe7QvTf8yj4;V=?m172!BEt@6*TPUT4m3)yir}esnIodFGatGnsSfJ z**;;yw=1VCb2J|A7cBz-F5QFOQh2JDQFLarE>;4ZMzQ$s^)fOscIVv2-o{?ct3~Zv zy{0zU>3`+-PluS|ADraI9n~=3#Tvfx{pDr^5i$^-h5tL*CV@AeQFLxv4Y<$xI{9y< zZ}li*WIQ+XS!IK;?IVD0)C?pNBA(DMxqozMy1L#j+ba1Cd+2w&{^d-OEWSSHmNH>9 z%1Ldo(}5*>a8rjQF&@%Ka`-M|HM+m<^E#bJtVg&YM}uMb7UVJ|OVQI-zt-*BqQ zG&mq`Bn7EY;;+b%Obs9i{gC^%>kUz`{Qnc=ps7ra_UxEP$!?f&|5fHnU(rr?7?)D z$3m9e{&;Zu6yfa1ixTr;80IP7KLgkKCbgv1%f_weZK6b7tY+AS%fyjf6dR(wQa9TD zYG9`#!N4DqpMim|{uViKVf0B+Vmsr7p)Y+;*T~-2HFr!IOedrpiXXz+BDppd5BTf3 ztsg4U?0wR?9@~`iV*nwGmtYFGnq`X< zf?G%=o!t50?gk^qN#J(~!sxi=_yeg?Vio04*w<2iBT+NYX>V#CFuQGLsX^u8dPIkP zPraQK?ro`rqA4t7yUbGYk;pw6Z})Bv=!l-a5^R5Ra^TjoXI?=Qdup)rtyhwo<(c9_ zF>6P%-6Aqxb8gf?wY1z!4*hagIch)&A4treifFk=E9v@kRXyMm?V*~^LEu%Y%0u(| z52VvVF?P^D<|fG)_au(!iqo~1<5eF$Sc5?)*$4P3MAlSircZ|F+9T66-$)0VUD6>e zl2zlSl_QQ?>ULUA~H?QbWazYeh61%B!!u;c(cs`;J|l z=7?q+vo^T#kzddr>C;VZ5h*;De8^F2y{iA#9|(|5@zYh4^FZ-3r)xej=GghMN3K2Y z=(xE`TM%V8UHc4`6Cdhz4%i0OY^%DSguLUXQ?Y3LP+5x3jyN)-UDVhEC}AI5wImt; zHY|*=UW}^bS3va-@L$-fJz2P2LbCl)XybkY)p%2MjPJd-FzkdyWW~NBC@NlPJkz{v z+6k6#nif`E>>KCGaP34oY*c#nBFm#G8a0^px1S6mm6Cs+d}E8{J;DX=NEHb|{fZm0 z@Ors@ebTgbf^Jg&DzVS|h&Or)56$+;%&sh0)`&6VkS@QxQ=#6WxF5g+FWSr7Lp9uF zV#rc`yLe?f*u6oZoi3WpOkKFf^>lHb2GC6t!)dyGaQbK7&BNZ7oyP)hUX1Y(LdW-I z6LI2$i%+g!zsjT(5l}5ROLb)8`9kkldbklcq6tfLSrAyh#s(C1U2Sz9`h3#T9eX#Hryi1AU^!uv*&6I~qdM_B7-@`~8#O^jN&t7+S zTKI6;T$1@`Kky-;;$rU1*TdY;cUyg$JXalGc&3-Rh zJ&7kx=}~4lEx*%NUJA??g8eIeavDIDC7hTvojgRIT$=MlpU}ff0BTTTvjsZ0=wR)8 z?{xmc((XLburb0!&SA&fc%%46KU0e&QkA%_?9ZrZU%9Wt{*5DCUbqIBR%T#Ksp?)3 z%qL(XlnM!>F!=q@jE>x_P?EU=J!{G!BQq3k#mvFR%lJO2EU2M8egD?0r!2s*lL2Y} zdrmy`XvEarM&qTUz4c@>Zn}39Xi2h?n#)r3C4wosel_RUiL8$t;FSuga{9}-%FuOU z!R9L$Q!njtyY!^070-)|#E8My)w*~4k#hi%Y77)c5zfs6o(0zaj~nla0Vt&7bUqfD zrZmH~A50GOvk73qiyfXX6R9x3Qh)K=>#g^^D65<$5wbZjtrtWxfG4w1f<2CzsKj@e zvdsQ$$f6N=-%GJk~N7G(+-29R)Cbz8SIn_u|(VYVSAnlWZhPp8z6qm5=hvS$Y zULkbE?8HQ}vkwD!V*wW7BDBOGc|75qLVkyIWo~3<#nAT6?H_YSsvS+%l_X$}aUj7o z>A9&3f2i-`__#MiM#|ORNbK!HZ|N&jKNL<-pFkqAwuMJi=(jlv5zAN6EW`ex#;d^Z z<;gldpFcVD&mpfJ1d7><79BnCn~z8U*4qo0-{i@1$CCaw+<$T{29l1S2A|8n9ccx0!1Pyf;)aGWQ15lwEEyU35_Y zQS8y~9j9ZiByE-#BV7eknm>ba75<_d1^*% zB_xp#q`bpV1f9o6C(vbhN((A-K+f#~3EJtjWVhRm+g$1$f2scX!eZkfa%EIZd2ZVG z6sbBo@~`iwZQC4rH9w84rlHjd!|fHc9~12Il&?-FldyN50A`jzt~?_4`OWmc$qkgI zD_@7^L@cwg4WdL(sWrBYmkH;OjZGE^0*^iWZM3HBfYNw(hxh5>k@MH>AerLNqUg*Og9LiYmTgPw zX9IiqU)s?_obULF(#f~YeK#6P>;21x+cJ$KTL}|$xeG?i`zO;dAk0{Uj6GhT-p-=f zP2NJUcRJ{fZy=bbsN1Jk3q}(!&|Fkt_~GYdcBd7^JIt)Q!!7L8`3@so@|GM9b(D$+ zlD&69JhPnT>;xlr(W#x`JJvf*DPX(4^OQ%1{t@)Lkw5nc5zLVmRt|s+v zn(25v*1Z(c8RP@=3l_c6j{{=M$=*aO^ zPMUbbEKO7m2Q$4Xn>GIdwm#P_P4`or_w0+J+joK&qIP#uEiCo&RdOaP_7Z;PvfMh@ zsXUTn>ppdoEINmmq5T1BO&57*?QNLolW-8iz-jv7VAIgoV&o<<-vbD)--SD%FFOLd z>T$u+V>)4Dl6?A24xd1vgm}MovrQjf-@YH7cIk6tP^eq-xYFymnoSxcw}{lsbCP1g zE_sX|c_nq(+INR3iq+Oj^TwkjhbdOo}FmpPS2*#NGxNgl98|H0M*lu)Cu0TrA|*t=i`KIqoUl(Q7jN zb6!H-rO*!&_>-t)vG5jG>WR6z#O9O&IvA-4ho9g;as~hSnt!oF5 z6w(4pxz|WpO?HO<>sC_OB4MW)l`-E9DZJ$!=ytzO}fWXwnP>`8yWm5tYw`b1KDdg zp@oD;g===H+sj+^v6DCpEu7R?fh7>@pz>f74V5&#PvBN+95?28`mIdGR@f*L@j2%% z%;Rz5R>l#1U zYCS_5_)zUjgq#0SdO#)xEfYJ)JrHLXfe8^GK3F*CA(Y)jsSPJ{j&Ae!SeWN%Ev727 zxdd3Y0n^OBOtBSKdglEBL)i5=NdKfqK=1n~6LX`ja;#Tr!II$AAH{Z#sp%`rwNGT5 zvHT%(LJB+kD{5N}7c_Rk6}@tikIeq%@MqxX%$P!(238YD(H<_d;xxo*oMiv^1io>g zt5z&6`}cjci90q2r0hutQXr!UA~|4e*u=k81D(Cp7n{4LVCa+u0%-8Uha+sqI#Om~ z!&)KN(#Zone^~&@Ja{|l?X64Dxk)q>tLRv{=0|t$`Kdaj z#{AJr>{_BtpS|XEgTVJ4WMvBRk-(mk@ZYGdY1VwI z81;z(MBGV|2j*Cj%dvl8?b2{{B#e0B7&7wfv+>g`R2^Ai5C_WUx|CnTrHm+RFGXrt zs<~zBtk@?Niu%|o6IEL+y60Q>zJlv``ePCa07C%*O~lj?74|}&A0!uA)3V7ST8b_- z6CBP1;x+S@xTzgOY2#s%@=bhZ@i@BwmS)neQG&=9KUtRf^K=MvjC5JnqLqykCE_P0 zjf#V4SdH2#%2EuDb!>FLHK7j;nd6VLW|$3gJuegpEl3DZ`BpJU$<}}A(rW?<6OB@9 zKP9G3An?T5BztrLdlximA;{>Tr7GAeSU=^<*y;%RHj+7;v+tonyh(8d;Izn}2{oz& zW)fsZ9gHYpI?B|uekS3zHUue3mI zb7?0+&Zm>Kq(F>~%VYEn)0b32I3~O^?Wx-HI|Zu?1-OA2yfyJ;gWygLOeU;)vRm3u z5J4vDIQYztnEm=QauX2(WJO{yzI0HUFl+oO&isMf!Yh2pu@p}65)|0EdWRbg(@J6qo5_Els>#|_2a1p0&y&UP z8x#Z69q=d663NPPi>DHx3|QhJl5Ka$Cfqbvl*oRLYYXiH>g8*vriy!0XgmT~&jh3l z+!|~l=oCj<*PD>1EY*#+^a{rVk3T(66rJ^DxGt|~XTNnJf$vix1v1qdYu+d@Jn~bh z!7`a`y+IEcS#O*fSzA;I`e_T~XYzpW7alC%&?1nr);tSkNwO&J`JnX+7X1Q8fRh_d zx%)Xh_YjI3hwTCmGUeq_Z@H#ovkk_b(`osa$`aNmt`9A#t&<^jvuf z1E1DrW(%7PpAOQGwURz@luEW9-)L!`Jy*aC*4mcD?Si~mb=3Kn#M#1il9%`C0wkZ` zbpJ-qEPaOE5Y5iv_z%Wr{y4jh#U+o^KtP{pPCq-Qf&!=Uu)cEE(Iu9`uT#oHwHj+w z_R=kr7vmr~{^5sxXkj|WzNhAlXkW^oB4V)BZ{({~4ylOcM#O>DR)ZhD;RWwmf|(}y zDn)>%iwCE=*82>zP0db>I4jN#uxcYWod+<;#RtdMGPDpQW;riE;3cu``1toL|FaWa zK)MVA%ogXt3q55(Q&q+sjOG`?h=UJE9P;8i#gI*#f}@JbV(DuGEkee;La*9{p&Z?;~lE!&-kUFCtoDHY*MS zzj+S$L9+aTs(F^4ufZe6>SBg;m@>0&+kEZMFmD*~p~sx?rx=!>Ge;KYw<33y#*&77 zFZI`YE(Iz?+tH;Fq;y=MaSqT{Ayh*HFv0(z{_?Q+7@nE%p?S8%X6c!+y;!0NLXwJV8Co_}R3*7>n+oMsQpv8}8ZS-P@(Rg|gmxZHzf=nMOUAAY}AZGfWVzZjE@4$=7xkIrs8BE%606aVU%kxz_04ipig51k& z(>c9rJL2q%xvU%Zj#GR9C9)HLCR;#zQBB@x;e_9$ayn(JmSg_*0G?+wOF?&iu@}S{ zt$;TPf*Lj$3=d<}Q3o!Hq@3~lFxoiCyeEt}o3fihIn{x2s1)e2@3##&GYDq~YO|!q zUs0P-zy)+ohl-VQ`bhvUpC{-d$lkpML_M%Kl6@#_@A}w{jWCDsPa#cSbWA#C4Sf|*C*&Z{ zz?hOU7Cc`?>H$WGqITA2P~fYudnQHxB8^;0ZFKC;19F#~n_2P@{cE{Czq-#K5L_8| zc3aOEwq4%zL5>YU_mc9fc-p~{fBTWUkxTiZvxt9FOqC{s#TBp(#dWc+{Ee{dZ#B!g zHnaOJ8;KO1G;QU2ciodE+#Z$Wuz*Hc6NRO!AUMi|gov=>=cwcZeL&`>Jfn!35hV1J z;B2@0!bIR853w%T*m6)gQ?DPnQ)o6EtKaN3L;o?*q<83d&lG&U=A|6hcT?f0)4h6{ zGIZ0|!}-?*n{zr}-}cC}qWxEN%g60+{my)o^57{QEn(tSrmD7o)|r0+HVpQPopFu; z0<S}pW8W2vXzSxEqGD+qePj^x?R$e2LO&*ewsLo{+_Z)Wl|Z1K47j zsKoNRlX)h2z^ls_>IZ0!2X5t&irUs%RAO$Dr>0o$-D+$!Kb9puSgpoWza1jnX6(eG zTg-U z6|kf1atI!_>#@|=d01Ro@Rg)BD?mY3XBsG7U9%lmq>4;Gf&2k3_oyEOdEN&X6Hl5K zCz^hyt67G;IE&@w1n~%ji_{sob_ssP#Ke|qd!Xx?J&+|2K=^`WfwZ-zt|sklFouxC zXZeDgluD2a?Zd3e{MtE$gQfAY9eO@KLX;@8N`(?1-m`?AWp!a8bA%UN>QTntIcJX zvbY+C-GD&F?>E?jo$xhyKa@ps9$Dnwq>&)GB=W~2V3m)k;GNR$JoPRk%#f3#hgVdZ zhW3?cSQ*((Fog26jiEeNvum-6ID-fbfJ?q1ZU#)dgnJ^FCm`+sdP?g;d4VD$3XKx{ zs|Y4ePJp|93fpu)RL+#lIN9Ormd;<_5|oN!k5CENnpO>{60X;DN>vgHCX$QZYtgrj z*1{bEA1LKi8#U%oa!4W-4G+458~`5O4S1&tuyv>%H9DjLip7cC~RRS@HvdJ<|c z$TxEL=)r)XTfTgVxaG!gtZhLL`$#=gz1X=j|I@n~eHDUCW39r=o_ml@B z0cDx$5;3OA2l)&41kiKY^z7sO_U%1=)Ka4gV(P#(<^ z_zhThw=}tRG|2|1m4EP|p{Swfq#eNzDdi&QcVWwP+7920UQB*DpO0(tZHvLVMIGJl zdZ5;2J%a!N1lzxFwAkq05DPUg2*6SxcLRsSNI6dLiK0&JRuYAqwL}Z!YVJ$?mdnDF z82)J_t=jbY&le6Hq$Qs}@AOZGpB1}$Ah#i;&SzD1QQNwi6&1ddUf7UG0*@kX?E zDCbHypPZ9+H~KnDwBeOXZ-W-Y80wpoGB*A) z_;26Z`#s0tKrf~QBi2rl2=>;CS1w)rcD3-sB!8NI*1iQo59PJ>OLnqeV4iK7`RBi^ zFW{*6;nlD&cSunmU3v4JKj|K4xeN(q>H%;SsY8yDdw5BJ75q8>Ov)&D5OPZ`XiRHl z;)mAA0Woy6f!xCK(9H2rq?qzp83liZAIpBPl-dQ&$2=&H?Im~%g;vnIw1I+8q|kr! z36&^9}CMmR(U2rf|j12oG=vb%Ypsq8u9Kq}U*ANX*)9uK}fAi8;V_7Z;0_4*iydDxN-? zv?qJ=T*{MzL~-xUv{_Kh_q9#F{8gPV!yPUUS8pEq*=}2-#1d=sC_|U-rX~F0 zBLawgCWy#?#ax{~DAnDvh^`}wyUO`ioMK~jgh%L7^}#h?beSyvQ_g>+`2`}`-1h7# zg*?qJdm=53hwN8~B=^|LPmYtOVrQ(W{sNm4uofq=4P@dUA%$onWbw_m-KWia&n9iv zi)!9#OJ#^}eg8tE{wSb9(c0D^PS1 z9EBS5*ypSiVRS_G0v?$hyoZOS7hFWlp4qbYkf9Y&{%OzhsIdHskLptn96@k6@^K@U zszd8POehITDK+AyW#JKpnWY;ju#MC$JjB1Y*~(E6N%{p#kO+bVxG3X<34n3fW=k{A zCZt|KP%x^GQ9%mU)KE0{LA=vaZvRQbxSlK~eAkwWo2Z<{j5eS5NVTMe`m%re8%~7K zZLtU&b~YDN%~uA9wPf>x2=PI=MA6_oVe>Ek$s5&&Z=8vvF5EODP4Av(b|dlNgF1O8 zy83W0WRdzjz2iNA~t1piEqlyU&`$yZtqR`6X_PmuP>W+D|8iH;FQ zN{JuU#Tz9mV=4R_IewROL1|mK^`lLat#LcIBfggzM(iO$pQT*-c_ z94^LUWw#5B9~sp2W1p`c)Y(xfR<{O^9n4E6vDDw{#-R4UMBKo{>Hqlqn*a9rl_>+0 zS5MwJC~nCC`1X%VCyWFsiDX;bfAJQAUkU#105f_s5U-8rqO}n8fA1{b>Fr6Q|Ea(V z5B11Lo^ooWF?`^{-U#?iatokWI-e$632frzY?Yzzx(xJc@LFM4A~-eg!u|tl{)8Nx ztZLXsSC*68g%9TFu(f&J9nmc^9hgyy#uUOMJFCaifSaDcyQ&6=8e9=t zIFEAQ{EK{|73{($!a4=!wj4ABcQrUQp#+gGM?wEUp(w@+Fzi{!lt}|3`PM%&d-seeR zB$}BrFGD3R10CE>Hsb>;PrP}pd` zaY4}6+Wu(`#uAV+E5SV7VIT7ES#b(U0%%DgN1}USJH>)mm;CHPv>}B18&0F~Kj@1= z&^Jyo+z-E)GRT4U*7$8wJO1OibWg0Jw>C$%Ge|=YwV@Y1(4fR>cV#6aGtRoF@I`*w_V4;)V231NzNqb6g@jdpjmjv*<2j02yU$F8ZS$fTvCC`%|Yn#x< zXUnP&b!GLpOY-TY3d?<-Hhxom_LM9`JC9LEX2{t1P-Nj%nG+0Vq)vQwvO^}coPH-> zAo8w#s>Je^Yy*#PlK=XDxpVS~pFe-j#jN-(As&LRewOf(kN-aKF(H+s*{*!0xrlZw zchJu@XAvQWX7DI1E8?F}Wc8m46eT+C<0eXVB+Z^(g=Kl@FG-cn@u$suj)1V2(KNg_ zh29ws6&6(q~+sOAoHY^o86A<#n*?Pg2)cK$+y;cY$hJLq4)4V84=j+3ShSr##Tk5kgmxB zkW+8A1GtceEx~^Ebhwm36U?oA)h)!mt=eg0QE$D1QsLNZ_T3NH?=B&0j~#298!6iv zhc0|-{46*3`Rx&nKSXnf1&w-Rs>#PGAGuY@cBTU-j|Fxbn3z49S#6KBaP^Lx*AOXxIibr z!1ysMi(&kr!1wwQB5w`BDH2~>T4bI`T1}A2RM0zd7ikC&kuBRsB`Z2@J!Udm{AmSN zrr0k6_qCZL**=)xRW`MFu(OY=OT;3G8eF~ z2mmkXZ9X(sjuKmq+_<=LSjphB$~R1o^Yb=rO!j!(4ErIox^x55o{pXSE9X$!76^*$ zoKhlAX6y%n^U=C~@!vIlEgXQGD@>oOU=_(aXF-Sjas*$AKESfRzxQ8#3yOj|y0OCU z>6Z-0%LCcjla&7I+CXm&caKp@@jQ!5M`(_{CL=@4#JJ}cHeZw>^b6fpv269LSV?gV5Q{kk?4;;y9RIsy5vk%DIRiL(9xe1aA@4!VX zDh2}xgUd5X?6nji%&7-%QuyKSYA-Z{PwJijUQ}In+EJl|x@dF1P<5bPa5W3&&?^h$ zZCo8LepKo0a(Fsln*cHL;D(gu9MMkoiM0*n31u)jHqX5x^F95tnI&^}^yKx3YwEm@ zo8?EZ710ykx@19{=yz5IXb8w4yjdveWb{IVL6Z(Cs>!a_0X^1E27o!4e&b43+J*u2Gb(59k2uK0goLwhO{ujLS ziI9LA9`&x~Y$6JNX!aEXR``}LUI}Gr#=<^wBHmg%v<)zRWDVtq)kT$-P7iU1R)2XZ zi~bYhV@EZ`@prgK(cs{>2jn$pxg$<|KjJ7%26Km>%KcXh^bU@y@V_Lf@=j1x%R4{v zOcQn{I}!2W<~08FOVnoV>zOTH=+>v9!jFo|q)ucqIe!N4{U5_G`>>*sVD{8I~4FqyU8imZ**-Gy`~Xd z4w35GMf%7^i65HdX{Iz|f2Kg193#KhPIeR)-=eYx3Z!%RM=JjwLrdk^B#6rg!ym2w zPbFqYyO4>W_Z6PonAwiu7?!h=x%sR-T+_*xZOGh2wWhWr%}%2^$$ zQvACIB~pi=m|`hXIMvoq`TOCx=J_D2>pi6$NPy3&8#vy|oX)=kM0Z}$BR$r0G}MzOk-OqG+VmZtOZoj6x4(tLh|5h) zBv64Y{DPHsy&_H(5_l(&Y}FhVvr9m_*_Q~Zy-}V9+VmGnvndEjYW4qt4K~N&Y&6g| zfpz*V=A#^mVmuOAz)(KVI<%v5NY0%Goy!{9&o41upsPWk(yFuRP|A4q6NMnX%V~MT zi_Rb-Bno2kI+j0Cw`@ydy{e%ARS#Z%b6I%_yfo_ZKXr4BLVoHzBKJ^ZG z-2>2IzU)55@9C|?_P$ew^-7zEiAKG1XAi{!3h%1m#9s%^pGy6S9wKFYY4<$djeoJP z{GI}Vd%idY$4_fh(7NXm7#;cC!DS&-{tGr!Qze{^%bUx2jgG@-kMta^q-EwrKB}d8 z{%FT>rFk_bzW<{lc%eYlrsiYTZXGgzD1&lmRyp+c1O=0=zAX=KV62bx-a~JP{cPF4 zU$-XT#(9&T>l@bMu3nSr{)%-5lV+0t&bxip4DVJ~vlL$J2P6X~ zd{FS8vm{Lhrieul*7&(AgPuXhjpGila%6_?-+k#b)cdk#M1jB*nE>G6NGOr+Ek{`= z9b%S1`$`=g0CC$>0$Db;l_szReLYVmce*(()9%Zz1`*fNXhI*oRlerWHarD(v^W^c zuc1Vuw6Gbp7ZsoRH>QGt#&lv;5G~Ovt$%7VFd*-rN2>UjbOWBFGNGO`bru7CFB4tn zL`^?69Lj_g_TA&`9`dSI8s|)K|QM0 zybvV7!>xDY|6c6y;Q}qs`){1+WQu_5Dgd8Qe|q}}bxjH+joQQtqs1IVZn6{e7T{ia zF|=^xa%eWO%(x<7j*QZbcU_;aVaVP!arexOLOtoSNt*hvsRL%}%)jPetSich(`b-^ zMZ$PM9%s@%*jPVz0Z^W*cK_>G4f}+eEVX`HOaHg#!B`<4v;x}zDLMR*M27`kNfp!! zOfdt(>k-g>7jf^{Se@3$8<+;R*cYtw+wD_Z8Pl~!JDCUEPq{Ea*!J9`%ihyNJZ30i zmfve}S5<$Uso}_?SuI$ks|{-ddGLu9WR9`^9)Kdi@Vs;x#SY-xp}wHPU0|vEA7234 z@BN1z7OF=OOQtPF$4twn3!HTVlUVD_)ubMM7PEPoiC6lQgL2q9PK4~e8v-OuH%lie z?NgBLkIdPMG$QBq(>r^AOHB`|*1#*!2Z? zuU8H|FD`OBRu^(R?Z-Vhr0j;FLpS~a34KREnd}B=EYHS*>Hm+f%tgJt!4J8Q`qn^4 z9F=tO#JRJ}tzA`vx$nZ)O%wC?Uiv0+_nz}5Lj4ki*&=K&*#U`=rv z`Q@Q{+IhAj@6lrNK2B=8Yln!O2%zomfRehFT~;!O@(@Xy|1Jlw*uOB-M$#6K^)QBm z_7%#QVUDPwnW{iOV-grMQQU|3{=BQMh}c5(yMGdoQf*)k9-B zMQ(^GdJh+y)>qJprknS!%WxqM>HlHOP#7UVdy>%PW$!l72J`n-p7j(DBKoGxXWh(Y z>BFDZl|7knU_jg_SSbvFk8)39%2)Hu5W0}HKlh>EaqvFoXI&56Yy)3) zQkE4X^P0QnPn?iUUVHJZXzPp`s5uv?pG{K9IgGoHvcmlBxubi|iF7n{)mhenIcxGs zgr0OpQy#Y#u=5lOyiECfE_Sn?Fj1LyoRKcbTgX{p<T*v!CGkPc)pcA2D=4Ekp0Gb*wpy7S88C%Ywsbr?MI(3UdsCM?XJ1X%*hNjB)XqZ*W(qDdtSb z<3XN74ARXL3=c^bfW~F%NM^5*Zx92>Wq`&M625p~j$8mYwLbk%Kf)jbn#<2z$%vP5 zy#b>-tF-S2_AB4;R^K&^-1LJrUmi@9rB^FLF)-k&YHK8P+k@RCJ1qSTZ@=kHxA3l$ zmK_ZG)l6(nmCR1a8|;QF-B5e_ELnjJ1$m-;4UXX?WytF_wz7#&AjwZYTMVieLbq@R z3t-q|G4^BB#EpNu4uyfDebB+-uu_$9>y-dzB30Y9F=R zrW-Heqnj*InPTWHgR9v^R7~hokldh&h8=HDhMW(EFfim1*{)5Lc1-+eBVkK-2!u=N zuZKABgJs3I--NbjE;>Undg6uK`^U>AQ6V zhc!RhYgvrmeGNsftr+(C<_MtuV$`5RZTf#5r=DR?gWG->#})#=(td%C3`oO+2B7im zUqY}&a_QNTn?s+?=mNXiREN%x_=(H)L|DtYPY>SR3pQfBOel7G_jR_{!9`dSj8Up-`JgcB;=Oor)U=_EVjF3C5{Sqh8cq=~bRjoBpoc$kJCgtTyZGSpQ4= zYi$6b$-dGmuTDF&@amhV?cU05g(AZV&v2$4m&j_~GZk;&keSO(@LRESRZ&p`dV*6w z2$em~p*8yM6j;SYorw`M5K2mluJq7P5Yn$VtZj8DEs2Zk=O@4T&Q}>~f31Z{uk}`E z{Dp{KObh1kk~~MfLUod72{Pk6G@T$_0_N??lOrdR=Z;VV#m0l)&@hz{Z?)@sgImi-&i1@95g53rON83v!yVPDHRU*Mzc4yZ(-Fr z{8{WXmIJf7jeswk$;6s~Qac6QyM3W&`}m#gRt=rr95A+Ad&wSAgvXZ|F))rBJVJ5W1CsjN`QaOzct2ocq#0!v zmj#075)C!3oS>&N;aHS@<+c>RHL)8j^p)k(8#7$LEx!1g_1^02!4_qA=;uhKW=+ix zGX%+vBMiRiF^^jm{mdO(?GdWJ#unO#_F^7mhT8)s(z_WlwFyJ#Xh)k5+RG2f;LC*K**1dr`#}~6A=0B=I&V;%zDA1)d@G!X#Rng)7G*2k8Kg447r0ox> z5NK`d(H-afBwo9feDOUi>;BbPsu!2|=@g=3j*PY}@YrOb+SX6?#Yb2xaaK!?>SX1J z_!VsB`2n1=wwSftkydm!39|-1?c%Epx?TO<(#GO~I&{f4+)XwRk<7RQ1~5>QcKH|D z?!}j1ueO0Lk;FZ{k4FA_(S`Ot0w~tl&m0duID*f6RY#bkw||o;kZ# zISYNTb|{~|X$m$Q-Jv#uxyw)eM0gIv`V#wOAp&Vv@>X4_tSZ&L#juM@$S9 zx_X_tLh<_^-F;LAQ09s@sPb%PMTrcw*HUV0P=RYSlM&AXEOI&&R&YCm_S<7DRBx^L zA^R^iwW+LMk(r*$Pq-fKU5X@=mQ=`ErO30H@@&qqnI7zJcrbSh+H<V ze&7Uli0xj@WrW#&-9%*FP~kPYF_YYM_hs5~|ExMynQ%qvq`leRB6W0yhC@pCb8>_P zlf=F~WMv_u*-DV=UaVu#2rlzK{q8D95VwZrfV?gj@rSNWXFvktUq)V5+YrlxwX302ae(;aG4e>L-M@3J+-f3IT{b9l!kg*2M zC1+ND9}6m^()LE87Mt+^Q|)!y#suc&v26C=0W88%a{?)E8Yvo@kM&KNMaOst#|-_CbUTm}WS@-c>nRb;&z^ zYr)+IE$1=jov(CZ%3uR+`~NI>1&Gs6W(jaamjcN$a`2!*nO}l|b%?)Q%%UWzw>A`C zR@px(P*7j$TK?jbv*%x)e^|jcLsv}aF(Z0=7(%Oa7+1wY>{B>d+i&ZA$}k(qgZPZY z;VkW~8eWnU&HPIAbco?&tc2O1$6=7n{u|^Y*nXoac{o1W-6aXfy~KlNbJfLoq~6;+ zDYmnv--Fhqrl+UV#k@_(1=gWNtqhyVKN=9CZ-{Ohi>e=~bm4IKbhM%%W zW8oXE!rGpV7Wt(_^4nndH1_imheaWzDi|I})9ZVZ9>pN+P%dVc5wG`Ze*4`@rjn1^ z`ln(;vPBHQUb}y8S>=8q__r7g+=z$>!pReVB0@XKchAvyGjLQs-u>+w%`frV4FeIG zj=7n~hGrwx*&5aHy(7X$bDZ7YhcP%(*>G^lAYMK;qG~V8Jz@b7oNg;IA1z$9@TbzW z;@I51@Ekef#qbxnG$Y8Z%bm~ibZ=4#%yKr%#b)CDrfKN`ujIY?tA4h9)i~dZ4E;ZM znvb$n2)zn$Wx&zlW%mJZDh28ox$@%`w3i7YFepXUChw}$UXKI=-TM51`M#FH=tdr*mQ!c=aB1296Lu>iTTKZWss0f z5~ihdImPN$aTle_AdbYC^31}_^EK|9R&l#%3hbx;8vJ+Gp^tm{9JDILu*1PW!rh^Dn9p<)h#Sl4kKM%nm<+!ESSk* zC;lLNT$fgr-!+{aBsSx$41b}yy6o>r3F#1&iv3cfY2N<+`0qJ+>=&Qxs}JOEkD?^l-F5i`t5+zNuvJf z3Fh4$mNqiFXL-aq4U4K@Ae$fq-TDT`rvrx;gqx96w^*@s=mcthCaIyPe(w)6kI{EqV10tcShHU9eeAPs)s?6#vrq}>y3FeTJu$Udha+z zs7}rmA@yR(L&>35sNjQqrw}o^)UitMU!5g6nnG)(tgst!^`FKJEzI1(d@j_w@;^hr zgYxlIRYjho4U$bhczfq&YySCqCE(5_d>l(4tk1v9!V7PB%Vx{QO=G2NC@c1%3rEzw zN<6i?h;CJX>h)kn49Sr)g#Em6km6ESP`1qc5C3ZHizN>r>V-fSS=X1nT{+Thh@kC! z(H=PlqDt7V6gOYezXUK-dretz!1?IUD6&eL2b!4=9h+HUO&DYZKMM>|YhlEEg?q?S z^XT4$2Fd|zT=x3U#L1|F;-#`to-Y6hiYkWdO=rRC)meY72pIfl`3zEGDU8($iWR^K zI$nq80aSJII<;#W5Pj>^_T&013BJ*O89Uoq z5>;Paa^E}xar^r=!pexg&OTM8wluk4R~Ru=)Hgk`Y#i_$jk{jc8hx}?(dW*X!l4vs z6_%$s#duJJFmaFc-5#>v6Yea=I~)s_pXGS>Tkz?s+WS}>Qp<9MappMLXpkXpSM~SmH6u)`Z5>o02kJs;w@KhdiZ3}29y*xr|6tMo zBHzGic+b+dTd!xOJ;p{Rguh^corJ;K?R6daayQKm+0rf7|AXg0qs!R9eS7t4{G=fs z1$=?kK1Ih=gEkI>@jgXDWHZt*C7FUEWs|u^pE3Z``^K|1KEC^sbN*4nQUfRc_AyE0 zn)?RrGjgPkzfE~_s!rDB!fDsV+*|kEX4+DyS#8%!cshn;s8svwBXSsDGX2ZRa0={* z=`p1F{zD17*Rk>Uk_cw3t5j=9-d6$}MoM~z{v{t^M!g75-+o8_XkP@CZWUQ2z!^26 zCNOu~hgrrK)y>bgqb{`Q_1^zrG4;cGarP!nb4E~(ZKWc`LVeEq;IewVneLp^ZU2+% z95PgN*M5v7Q;ZlGvM#`&u2NdHm%&gZ{bZM5wBCp&?HeZhwU87wyT_z!n4z+1?=RvXZ^72d*%+R1s1$KbAFtR|= zw;MEq=O7pMIKpFwKH6$OOszJAf<_Z<1)36cB>D>|Z6$gJL~jH`n3MMou$#Si%rDAu z4pSkJspG|^CJ86vg6kkfXsA_`8@8iOryOe!Qhn8SV6}mPlof3=WJRVqAr_b;e->`Z zMR(p|K|$L0^6;u~USxg#B6-ZNc%E1dv*^P=|2k*^NOBni#G%9Y?##{=)8KZwh85OL zSBG9|gb|hdmY^gn(ziY&O5#@I?W)W;361Yb^VQNpz0A7&^(7HRAsUvw#)fvhocvja zLxV65J0_$>&cVRctJFsn^qLos^tG`+B0_gQ{NeOwKt-!C^gGFufdtPT*Vi>l#X1|V z2XxsAcixN)Ekq=a##_^=k_^BFH5_zpvPDRP>u6+3$}i&b zy0@FdzAHw?i9OqnlTts_w5D@Nd#eM)KKEuN#m{|AJyscxa}(eA?z4&4yvXo{OBS65 z-?gW;<+;+ntM}U_yTmHm6*2zj0Imj<&ZgE9Wj|gfsXhrVH-c0p$7HXnR8bxDYOi z=_r3FA~u`L&2;Vir8}P3)k|@c?sK1U@&iWo{HEXcoy>6wQSuJ+b4l%aTBuigs&k@Y<2c=S3Ef?p zH>ki4yDuXdo_eu>X1{E$g(Q-u#zVXN^&%70guoizo7x(kQ0OZ}H$O9UB}(FaX8Ct1 zFpx~}EbHf2r6V;x=@8GH$C2|6*?K~?LrtMYd^bw*WYXhA z_))@RMH;nZedW3+qfWbv<|_#BYOxX^rhbN+!za)|!|8K*LRs(R$O*2SDM{g9k7e{u zN4VIdi}e#0&h?sBxu$>Yy%)j(k1V2fuhp8r!}gfF@b;F?U`6}YnnMh1&sSU&lR^?# zu!61+lGsuFEfDraX3+$QZibCbKzc{75G^T7@WZSQ)j5898G1AOXB*H*TSd`f<`IK# zm1%&t?i|2Z-a&r!pJehzg@!awNp)R)aa?q_SqGrxE5u+T#f?K2;GAHV?O&>!W@Q*k)7=g2vDW+7K zbyY9i{|nOF*SbMYoRQSAbSH2y$bE5(@d6xKxcF#@TE~X#3o=;`0sc!RupdRmQsML? z&>SCwS{FOpSr+@6Uuz3m`hj}(^g`Jz|6?({!%WVJn$H|ugxW+x-GEA?J&U^ugj3Nb z;65~)W<}iH2PJ@st8LtLfSOLXYgj=9<;?ih7rq$bXW9J#!B8!Wu6#U`A$wlcoC*&` z_9Js~7%m79#+edeT&P`@_Ng@e&5J+pqpx%31tAF71)pcz~-yJ>P5yX(nuM4;bUHDa8E(~~l{j~JeCGkX>nHJDpgSf&bTHEf)qw8{Q~CBPEVen|MW2P3vmf`8X9-g|>>ddp zcgfjbl~(?3Wa*NzQH>4nsM$3}Ul>pX1xC0oF3TZXe7=V!9!n?WgvH|R zpbruczmB%z=zkZ>=1R|gXwGThLELqD5KCUhtiRGT*JwKIvzbzV%ZU!e!VcNHSSX3> zObH|oohc8nvQZ2}q??C}@>!fe3gH+HF@4(qWqi>;ag~md#D;cl8&gQb^?2a@5cikT z=7r78@&5gV3Ggc9f=<<8v~yz`NcEGvbX1V_`IL(&+Z>LB zM~$ok2qXzod@1$TEl*U~H$V5g$er{Uj^($sWb7Nr{gsIbE(`$LRGECTOraXiU%=uq z0zvpi1S%)RxTjzoVcR4#10)fs()4Mtsa@e?9j)Bk!LsYyXIZga2q7d%`vQE!V@<1Y zmkpH3LeXJNO9f7l>F84g;huc=4nk(UnU}RLZmYk2TtB#lv34K(?8~gyx-mN%g=U44 zOPdr_!j-;IEbe|l9-buuKEy^Q9MLjSKG$S6dz)!U_32{1)N}L)3+COmlg=nY1@od$ zJ<0z-B%sisAR1yh>z-RfQQb6M4i-d#vxvb~f69M{JLPZv1JSCh1$gQ*LxOF-tH9!k zbQ0ZW)S7)qCSF|=2`q_A3}OHBNBueZwTTz^ar~gz#2KA74&&D)KHt~m4F_nK<^*7_ z!!pN@xiGkq%>1N(rNxw$zu-=1t*IpAy$ z4~dD0w%9;E?(greVWZ3(o9ux`elM>Rek#0 zO=#-(4p5B+wFzlEU7^k{3EdL6sIp|K*>xrriI`}E8ze|z-$YpN`^_teL_7P`%e>IN z7tNiH619P+0Q1hBR|W#POOta)1|LkIRtgz zMJ9VOxXN#o)mlXS=u%`Q>~PBuKEmOWsIuQRp{y%!ty{fEyL0gV)$LQeL#pqX3L@SR zJ2Gb^E9+KVd?;joVOXlGie3?z6>(>u(i!(qGz(W( ze~^xj&IRF<98ypEis{Y_FoHn%C0bW(XeF#Lj=2WUEBqKNPPFppEH?_a3}-h906X}C zSYKcZFU`Om5YlWhh@ogzCn3NvuM~F9jOX|xe-X*!YL+#ceh_tJoHXz`aTnvSrOAZ| zOtdGz?QdT!oAJr3(XL2G(p%2X4{xEohU&vd_zQ(U%ihHOlKPWnb$&YYhx48?|R++>`5?sxvM?!;ru|9 zZ#nwuTK^S%ce<+ggdJBE&fRrXN7O!{nu`%q`M{2Ef_+IRad2cf01P9pST9AOK>y75c!9}~)Et^6$`&Nm{wzWcm4c0j9DF!xJTpGrMp3esI4D_iiDe`sswXSu{dQZE_`^A11 z?Z@Hw=65mVu^%X`>;$mciK}XiZ{xw7I_!t)S00^JuxdCXhIRO~S*lPS(S^je`DH4E zxbKNs8RL`N?gCQ@YSOU=>0FE#Ku#DRO7JA&fu-X8b;3!^#{=7`WsDXUxfUsE(FKSQ z&=N`A7IwLq%+vt(F;z+T=uZNl=@K4|E%p{p^o5(BGjsE|WOR`%8+XgGW8xJTFJc4L zVY#L`OdnSM{HyS$fX1)3_JuNNH1aDsDqi>CzCT5=kY5zV<~29bX)c^I8R5n&ymHkx zj(QC4t#mDK;2xi8O%V;C{HqDQeM64=b4@sa*N_K0a&ro4+8LY6cFHz< ze|!g}zF|tDrP=`+U7KwKl20gdW1%!iN>1=uxA|NZJ2peruBOj?RBPb~8G;s6xIi6- z?_odhafsxoxiBf zwZZ)c*)FLc0#wE~bXw0TPBYl+h9hs|DYr_B4LR_YL@S1hQs=p zNEh%_fUvWZCbJtaF#kP5=(O#{8|g&Kmz1&8{@Lufw^DhtvKx955~aqxi2C=)Z-!Kd z+m-u+#^U4(HYn6a1w652kO0bYBt&goyx(n?MR^kI+{Q?0Y{G~W2) z0dS3fuJ?SU(6ZDp=kUley%PK}K_;YQyK|U|?7t9SHiyIfpT4a_kUVIhH4PSaj@3mo z`z}|mHhx1Pq?@(3vTBb5HTXuFAzFZEt0D-fw_kd=XvwIUh3VXTm{wbDA~cESd5cI1 zd>6=&AvG3yu+)`9oxmfrDQ(1fzv(_0l?bp{a364dXLRRBI8kBv!KsL;brY)#E3`o{ z3TlWUsS0{Voci?6MejccG9x_KiqN>So*1{25r6BSl9jUyR}1TgXBLL7Pr6Wv~Nu47;fbiU7TbL}>qmtl36YSZ() zVf@nqW(As~#`@bIC+AxSw!O5Pocf&rYaCFm?Jd?XR)p#@{!|5^Ws@wd855)mI^8y{ zws+VvGXW6%xoj@JkGb=~%oJ~7m6+uhOv?bH+jJJ~eFgp+}~*^C+3>R-MY!IZQoabCh( zN(T+z@Oyc^C)WqQESmh{d!!T8zS(!wX=R#hEKxMXy(eg zZ+Cwm1a%?;RH$h2_ws|nRjn8ZY!>3gn+6Ep4xT|AeFox7!rac2Lw?jsz}JqPE?5JG zok0}q1P;cuzs%Yrze|&d$oTr<`Lx{fbq2OV=!3v-ODq(n?|WxuhtmwJBIoW^^FB+D z-?Ok9HBKc5@)L(W&vmI{prL?4^OE9TR)bELS=<>*w%&aKjzi*@;5#P3moG@dm{Eke zhE#Is;&=o|{2GWai}7LYEI+gmc^Kj4K7w7n)+9godg?yB2?xs}pF1<*!Sv?D~Uvbkgs9xx9s#6zBv9l@ox>d#H6eqw^KZO;Vg}h!q zI33^$4}yF*q+q{DsJsa(SsV!YQ#zi^IF9MQV6i{SiN4dWWCi%YQ+hNc1r!^+<(YnB zG62-D`M3w3Q2;@X{S`n`{QO>migDpz0FK`->sYDOESs6u>-~<}_XN_6><2g7U#XC{ z$#Ig;n{_yEMnlvx-lP*;ts#DHV0r8j518>~33?Ak#jocW>uk>6V||p7{4rov#RS9c zdPD6r`qF1om9r!zS4Jk1>7fn#GCnmD=JIt1Na`X)=*LP7R!3XATgk`;&U*P<(0d z9p<0T&eYqQ9jot39FxpfuPSPYlfQ$s-*;+c1KL+cHIVcG5`H~^Ryu1Hk7%Nf$TCwR!SzG31@NHpm`mcp8v!wyWM49TjTxASJ-8JP*MTHLC}hF==PUOh8kaaXeGFGd<|e29vSDaS ztPeu&zv0^wN}Hahi`$pcDs~FVt2F;K!q}q*Y@{7i#stWfU`u2La4aerBKhV`^zG~j zJWvtZpcHIP7x*tfLSQcng6D(`HVp4=LWp_0Xt=2wEHjK)!DSz_Z?5J@>awRyk?azj zU-kdSs~cp))*pfJ_q7u`IsCq8F|OShB~D56S(Mwwlt?{yURE7#eI&WcpVq(@9Fd~g zeUiD!a4w51Nj(YzLnau+O3MDub|?loF0=<#jLztAM>PruE7yNDD0L}y=Ayuc?^?Ni zf~%GK=iEhn2}xKp7GonJx!JpDmDsco$|$XtRdUDwbM9$9s7x9-of2nKNj~?b@UOKz z9{`=Irz^ba-c&1vSQxSh;I2`cKc8-4)aCy%#bam;3_8vSJ-jw`_}lyukEC~z00EbC zI*dU3F21A)dSZr{qA5QF+{a%D`h#?8o%M?)*hWxuqnQD(TpcmfNq&UN$BmB)0!r8) zxno@Q?$_D&*4(rW6b+?-Y^5|*P`DHmJ%pI<6*yP)o}2^?>d7P#bd2j=vvx2mfLW@R zQLD`%buR*}nzNYNf%68w-D$7%v|=bXg1mYrdZy~}(@RRZ-U+Gx=nmCjVxr5Ag# zLw3R29-MHJl|`mRxj#sv@EfyR#-q>BE-XFEENbV$#dWM?!VjU8~kKZsd@G=HPrI{HiqN&j<92*-3$^M*;n@rG*i! zvi#?j;lc5w>@+r!6*CVUrN9as=S3?(ZBT979$5R#ZpPm?2VjIyQcEFp9orGR>f;G? zK<~FiYY6ow-&}|v7k?+03TC++so$)2~rN``u z>N%j$AbNQLX_!evzG8abf=15260vIXdz7K^a$YS)iw{@x5<|Rr#ii|ov=LJ{eu>dZYe_ip$ZuzvRu1dpjQK1BvP zH~m#t=2_wy>9+YkdNF-z` zQ*#7=^r%R*pIi2AI`>n9>(QJVE1k8?Ilav<)NUjW^O$}^yZZ{_Uwn!4Fq1`aslX;Y zj`XDIm`E1sz|wShA=?a@ZGKDSMU#Z3$E!1nZ)g^Eg3ZDoSN6@RXrGVCHvMIauS7d> zuJltXf9)LdTWdF!n%-iA9b#2$W#i??K)zYho^((ZqluvhAr@{H{diy0%@-~VW zKYC|2Ma)2^=skdLT@ZVqJfiCDqS@~qIGexL(BKy6Aw9ch0hoHN&E+m3*uka9+AIh3gTWdSe~W({-&^oFw`!j7$DcsF$7`pO?kRMK<9h=SV?cmyJIe`$4|zoI(6u9#qY9zM?#zNe^!Dl2>Z^dH`>`wSY# ztU;V*+g0R0DH6EnJA$U{QL&T~&s{`smeC2I-5mzv=v$l@iF;yN0hMibU=CG^e>J;+9k`Si9PzLaj$>}QKI6lWmO_o+_( zmhxA*0|-Na`+*J1qEMIXZf9rb#;pcOw>EDeDjb!|GumQ2!1ac;YqU|X;F@l1_lemzTN0J|U zFJF(kO21aHg)*KfuKT=BA{VDkOvlx(b{f|A9D69_BHUm#S$F>~`Mt@GesjLp3;reY zP~q>6Tt;`XkjqV?i7lqPbWGh`y<7dq<}pDHl-dDA4QG6`QDq)+vq_&HfW!}P6Cp4d zt>Qnli5ri*I1ILEOGD~3Y!@2^Jmcy1xDXmKolC?at}_6;neEfca0rLHT}NLpoUYh` zDbCtfZnYN&>}m-(F{5d1=)bBuZ?OcP`GmsQV@kn%JMJUIep`Avon#8=ATpEo-@hg& z12f-)R=HCD%pUjvbWa|P!}u)=wInpZG*LHKrZDMeC>Qils^IyY)x;kDRs4c3!DDOG zAptSsf#1X>kSli|Qka@S)6O4un-2aKL?bcV;$*>KSxHovjrfZ^-+c#>;(42yj71K| zzRyFiLrwv$rPcNA{mtv=o(*JDA0kS93>OE0D{KMJzLk$cc_5dCLWnJcFJd6_>BpE< z?aW9;^!;arQcIjloW&YL+~MkNO&a>N=pmhg>{SM<@`a&VeUA`ay*P@R$_+WS2%r?_ zs&Z%c`>ie+%!I=Lz>$9$7a`-`hoc&*dl60^whsaQ;~9~@JYn1Oc_bmgVVyAzUOYgZ z#j{`#D_YZ)(wa5;qzR#zo4a|-ANJjBB90r4Iun3*BkMxw_Ti>SjhktsmR|BPCLt>9 zZ_3eQjweI*-8+HNt)$9^s|+10w@sU!PY{`#BnF!ULS=#{k0Zr5`yOS?p8PfWbKT`6 z@T+PeRJ4`fj5t8bMs)0>o9|C>mBTlfQ*nFG#Rri-Q7}E}+eaz`LmO!`Y_pHkoAruu z`&!5VNnA3IG$}Pz)V&pt&AF!$E{J-;or3vWv3&Sl&9KzG+ae73Zf}=aP*SCI1{?0T z9SAC)W(?DSKOkcmW$(K5Bl?c@(5#>J#j@eq#ctX~$TIjkl>Wrfv%Ey+bl1Z-v?NxJ zwZ9!ae-MsHPUx&_W22?9$mCE%&~lzVG?hDXM%~gXGk+Q!Jf0BspkMWxy;^!n<6JIrSYjv z6F%~$8)0^qbUho9Sdf97b_n({$;|XH9-RHrohHuPcro@03KEPFejN&q?&nJFoIQY; zSI#uL6>2^^yOR!51OLO65xGas55dPG;3=uQ35ZYW04#+~byXQf^7Vq`G z zKpxF`G*X(YOz2^@7i#D+s-~A1E;3&x%%qL5hkiy^JhYjJ74{hvVmAx*6BH`M`!qGC zO9pjEsR)A-n1`6KLACSL%FS_Kcm+?4*z-V?WAZPs?RkzoijIr~I+oh1^~T`q^dCFvG$Gbd8AnTYBjLKYUmayaQz#S1le7Q^Hyr#;X&h*1wDpm+gZC!rSKom zq|+o&UGpeXtlQ1;?@JukKG!8PGS1Io0z6O}ZeL&DsON^I0K+>Mxv#ohK+;ByAZ`Eb z2orY{j0Pa3edA(#-pJA0AaJ6h& z81Gl(pd#j~mrizktoid14K5ig7u8FvZmLLP%l@dl05IprCyqDB?mA2fc*6UB+49lb zZ8`V9epdo=OeZoiY%zw-w`8DNwTORV_>>3T{r)1-YsGSo0E2s>tix9OBqKFBjg#}G z`pgkCblKMYs!Z)r^(qT_c+}gLhR|gnq!1~Qr|~kt&2@_yswx{i$KEn`8J1W8BGljl zr@GEG#W(s#AKKyuqLp+cl1C}7%`m#-!$15XF{M(M*-fD%+i#mFbP35jlgN3{8#A-dmj&OQtG)!031jTwGMal=&YtPfq2AUWekP9J-JT(p099!L`+yen$ zVH1?kRrhV7(mGKkm_jPP_U@Xd;x=ppk}4WY0Rbr> z0MJM_;$GGxL*P68y%KBqHntF{>X&<{aeI4m6+{TQ%~Zp}v%Pujr)zg5mV;cFKqeA- zQm5`#Sd{B6Rc*4PS-rO(vf>YEdXmOK?>K@`L5}|9q}#t_IE%g+U<-1qw3mr5&v;2A zCQ}BEn9_u;;>n5N#dP0RhCF-_UplC+U(i~Zjh>U5+b8%@p3HK(R*IMQwE!uritb}< zF)AK2?+0@-aE3LYkg`B*&N&m~JWB9>(Z>`aqRwgioU)0w{U1K4?>-#i|ZfhNa9hV)2)(%ch zJMH1twoeZWwkE@I!dz$ma+;9GeACv>Ncupl@+gBSeU_uzfj!$+h&@EACkZG_vwLGA z(?^;rcJu1$5H~xI@6lHIYC-$+b&hF1p`AoAOKqw{t0Fu#X`OGt$)7Q!nmJ=&)xjq@ zHoxT4pcYKSPT5(4yzIuQ^S*N2NJpR4v0?rB-^JuaXNLis?E(l>Jo8mUw(gsFLLOy? zEszHWGaCn|lw$LSwoj{G7Uq(zK0W^VVWu#ms8BMRlF2z%-g`fOXmndgC(na8fc)s` zz$GAoxP+l|+T_S4$r1sLwkV77ew1Gug*`|HiE*?FGLm1q; z^p0A0eqqbmk3?|!CB9DBN1Zof6d7+ zJSn!`VD~tVaqy<*Mw^8dM5v3Bvj2VdVFb=)U3L2eDM3@>n(P z?Rr_=I17+r4fE{>1LBQG0&o97nef67n-aNnVP<{dd6*B!Q344 zZbsAof&jw+;CLeK2d87t9s~YZ5?6Qwf&{NPEBN+)LbjOcZRXNcR&h)x`TtdpI+b!>$E~h0o1L*2OddpR9!Gw~-E^Cj(7i69S<66ak$)AYMv|xG+;uR(`;h zGIV3}?+Qxdjz)s;s}jHY{JPmeo@-tN$H@hxaV@)}K?y~ts~E6H(F|SlsN5oH8g7*h zGiC!8c1doE3U|D}Vul1yPmXuCk*hmyU4MG2ml#V0+(G5I+`L_=3cD$%$I=@*8m-LU-!fn&-sZO1%ls63+w}AiAK`Jv z>`q~ztr&&(gCkFpci+*1Ekdv*MhBCzGfPBj9dM|YEjZk(tWBuz4?MGeq+*)t>Q=z6UXF_w z{QDUT4^JQ8J%hW;d2xGB>Fl4Y-bRT!ttP2GE5jYoI1e(eVK0&V5W+>zludt=nf|UN zi1IV;MK$Fy%$yw<oGeW?JIGjmfGLH$Y;l|T0p1V!N*Jvu zHSAG0WpwPip0vm7%VRq8$2O2>P5b!WBfTz*6dZ4Wd6O9Y(8A;nOuG((y?F`ac_u2( z#~17CoTK)1G<~~Z4jXlout{e&nZbDHyHf(=a?OtaJ(2Q(!g#)Ugw-QQ?A?mN#yN%T zBtJ`sA6Lpg`k>Pi8a7GssiY$eG0Be8LCoQL{GDqi-;j0pLmT!Z)szldvbN7GVcu*S zzb1rEq|M)1qa7rM*I8!<#w7FnQ?{v^? z0`MlS3+`#ZB5$DT4+`7e-Hlp_2G0`*F@STbRJ|!tk3cC~1T%NR-p4s=sTT+RqsMjF zyrp-Jv?CD4Y3N&Zb1gr=%`MFR8;|r)uxQ6*X{OpEhQ~+tu}^n8Wijiy`pSMw0uKNi zSNX^Z1y;WirM0o_x%zft0U2GcLm_2BS`b{Z>g|9VOVr%QF*R?pTpiJsEbj4jLVAyd zTA;x15=f~b0^(e*Vo;Tn;WTJSxpI9LmL($Lxob<^S!k7mGhnnVNnAC*g!$ms0#Q|q zs=25I0<>fUw_&+KU`}5P9wlmjRWdMYh%Np6n?AAHQ;JzG?s(Z9UR`pNh79Nzk~DF+ zX~jy>>f-2bl?drlM8 z3NfIQnrT@pLmv+QA6efWPv!sqe;mh3_RcOj5>Ya;4hhN13dtx*_TJ-=kX_kZQDkPz zIw}#e_dK%au@1*L&iUP^cfH?zf1iK)tHv=t|>-9mMT!;;Vg|svSzWkN7q#t$c4N$Q;tl3EYwef_4q>GO<#I89VhY;`X*hz$n*GZ%f+;uViG z?uLlxD1OIeid}0r9%Ssoc7@vJjZIsZlU9zvYpjhYiOrzD5sq3OC zpf-X;Nb!DLpxqX^zDIK%=46-Z3%i-bac`RIBS5*wcw5Pu>G|kF>TQP$dGRYh#1hwD z{|cbbTOKL>Gb1-;X6?vWLC+KJ_^Ij?KzJ7eZ?^8XNgoYU9^z&>d zsIjX*uOK`#Wu!`>L@y!=XpQcW+mBaRjm|XrB@etLdr}Ob57e7EkE;7a*t7=M#XFL6 za;KHHk-rBNTjp-gS^;ehKNv>K>+_jPQ45J%4><1HyKJ?;T9#~k_23?xD}B&@Wp{%H z($hU+nWR?g!9dsJkgVz(J_Yrdns+m~9V_gQ7Sb`&F4wZZ!k}##j$>O{4{?avCbCZfyW zO$)m7LE=P?$CXHDU_RUD+sYwT;nKI7 zSs_XTv!BuxpJ!7(b~uYfsgzt~mj5(vf2r~`LHwpePs!o2A3zEr@#sxo8HEe8>V||d zBiz0@e&6}p*}!6jsm}I0bN9Mc2(c#jg@;Nu6!Kv&4&P8-UcQ-00WJIO%4OuUn;^jU z;I3r=T3KQtiMQ7&x32eVtB`mCe)9ws^7u%2P`B%Xc}=Qc&O^{FmS^{~Rho}^s`B+H z=1_T);9LRK?{$Vx22!5m)Er8aoPOA8&{7fyt`t@~Vw%gtx~+g3qs8LFR%(2Uny28A6dFYnNQgcUa>Sq=%alFh&8#@1o_qgwve* zVFimnUtL{4aHP6s?FB%bu2SP=e*VGqXC8iuZ-JOc{5%Lx0g|VvyWkdh&FD^Gkc!0N zhoolXvp6GC8wj?Y+V;r*EN+<1ac`-+!8Mqb@Nz)=OqV?4gxhR^t7*+^+AfxxVt(n{ z+fkk|-xSGqmkZa@Q%`;;r`-Z|? z0fR6b@l%pTwK*@xY+(MwBUwf^z+F*~piC64BWTrz}-HS1-XF-IA%?Zs_#F8 zcmUuEZ6Of>YIJOe$&{V;3vIBw7|jSGPeS6cvTMdj96Y~pI-z7InGW;(DhFqaiTTO9@KWvQi9__j0btLZ9 zAa~-Po%^sDFfme4@Yiq}r`BgnYK2eTwCjg9_zC4V{{&_GTm-!qHGVR6JXDjw;}GzF z6lXA{xo1+tQM{9vwb1&sRXPdGDHbEMbnwh}t+%tvcw5p4J4r#hEpDl=A{;Mjc%0)T zsG}v<$^HhdcE)5IJ^iBWK{7?Zn)vb%c!5eIj4 zbT}CGO*u)Od@^LuIC@_2{=AP2-O99NglFudj{!T}0e8wtTQcB@F9QW6$J!0Ye`T+U zXDx84b$!hD#4YzSyZLy~!IIZuFa3%eU zG4eg5?}sZ6Yj29P^-PcXG*8%VzLL$0!oL?c(!oQ+G!kORsa+lsf5YER>PX83R4LgF zgPNQJ#Bo#)MXU%J9k?RWD;c>|as5b5p>xAwau=X5XbERX`_ZHB8_XSNDe`s?n(e>) zGF$G%n6o+W{6A-@4hsIK0*J%jpB#Y*G^B48eQD(CDZR5oBl-P=)r7fH^PLf?!aK6V zwkIM35?l*I6p@;^H}JIDNs-fF*IFN?k?kj(M)QKM%%?dSkf1d$Nly2z(>)oq8z}0H zH?Qa{x&36#W@y04!9zx@x7un@ob$&)V8#f~0n1|jF0kFs4aZ{ND1~QjWHToIY5)LY zrgKDCj@dFCx&-w$QMi=CqD*=`$NqC~2k366pPXl#>Y7A=iQD}f`)+B-pS@LIW_M?9 zlBS_)(vGz!L$#P`?<3Hvonw@B1uJ244y)M?0)z0-hq++sJ0GZ+{oiiH;lFi&wy(C! z0Bv9z^M;`4@)USP)7dhg@K5K&U&|7&-@I0Sk>I+ZH75_xEn>qh9qmc%aA@NEKBsVBgUuK zC=b{w-0oU|)~tAVI zyJ3BAB}%rsjz7qZ?x_XCWe6!_u-{e_3u68Asso0IvwKdxq1lN#%4w>J zi>}P;$JZ>58(ZAjsmSJl6BWUTe`0eGEf3f_yS#H6vx;UJWO7CCK!{)4C}`C$j5gNj|k znb$4QRurEE3tPEe!JzG-a0DmvXePO zSD#Q-qOAjTMm|=aBSnvwHoEbgyVIz@J$hT*legak-hhb}e#%cm2$nR2 zV9A{kc)WT$np=5coPQIskbGMO@Fn2NxPv$@SJZdG6}jV;+%(cH+*RFQ(+DjsJlman zy`D(yN?8MCtjWD3w}Q|jQccb$}BDW%M$zZZnri2+5ls)@@(wQD`jt_GpTKL_^CO&SSCcHbfMX#JXYFI^*947 zPh&S-G=l*C@`E5CU1$m7ao(Q&oSmY7)ZZ#5_fEyYzLsFJwJ%GfErFeRN@7lUbUrL| z$6;gQSNsI91LJvT+$Zb0>g<4g8T{B!U05lfKmoSRH^pB^^8sJ3{8PzVq0NeypMF5k zU3qOqksdq{>AUjm3O~dZx^vS6C$ldgCWszl?xd8-sJ;-kPnISB*-f=L*8XggOx$?u zg%B-QovSjBbj}%sShZv~r?`*6PiiQW;nee<-=+y4}S#}q_BgXIJoSOf$YbE7vXt4;Np zrKzZf6Ny0aES8(-cqmnIGMg&ieYWryBZ0VTB=4<*@auP4NdIk&q(Mt(OLPm|Yl za!0OpC9sA#tk>OsaCSx0;!$5r6naw ztzLBo>#LKaxxsO=yWe%yGilL`A|6E#TK! z+1VRQlo*D?(k0-mlRM+`OMT8kVB*-%ZGv}Aj1u^j!wu*~>L<-T+u?6sX!3C}lQte- zk(6_=iwXsQ0JbRvJDwMnk!c99w~s~uD_4vMB=m~-ft-*|z~$*g4g;pgG~Ap1m@@Fx zWS)8IKSN6`^vVQ8hv^Oc+O(Rt7!U%wVsGP+Y6fyS%GG+v+dIdVfCXPzAV~~li+3m5 ztFQmbE)(#2#Oi@k$1#zUS6ijD_yYsa{+BHZAw+^zAEI3bc(h0qm?|pNf?oS}Km#OG zrOfCKn_-CVO;}DXu|5YE#d8I2o>}vUxYlv&>=+I28WY>a1;uI)HUM_IvpF;Ln4ROT zf!=1rpKihNFUo=R@sD-pT!EOm%%ncl43f;aem^;|A#s3`b6vjeAzO!M-gwc`-Kj~{ zBX)tq64*kJl#TrgW4o%hTY3x$P01nD6a6s2#MmwM$vyX5PU|YngU*wXGK*?f?#Eg$~^OWW3I@of-=XVuu-b%A1Z|nqY_2 z;~jD&=QnB#WGU>;RwFq(I< z34K1fCMwf9F}G%k(&?~2EY&)W*-_z0ReS$;7+I1)zz`)M zpAF{5ZHLPMJhYU z;GE*@hM1NM{G{L94dL$!Y-h6A9K9W=I6AYb`Y=v{(tpyLQz^^Aibea(q()R*TU|-m zozpyr!|-BZ_Dn+$*2|vq2Y@ghHo!-`WjVtU-bab(SJp2*2i-}$UP9^qnF_OIFS~-< zYj^VS!)Wu}vn6!LDIt!HJ1SU-@ce>z8f4cT4R9V@O^Xg9)4`VpjsXm*~@%l^Ux;Rf#Zck`BNXu0Y(!C zj%Z}UAmD00nsOS%Uull)dU(fZgJ$bo>3Oa`8h~Wt)EM?v(ndlTS1p0|E9Pg>=&>58 zghD~%R;YpqZAw;F;M(lx5b_wkVbnd+ER+6A-SYj^1XUgNGn0I~ES|f|5emjyPIW)S z0z8i6)BZt&h(qQxih4HbFYa6~jyeKbc_`QEdLD@9SBGButjw|b^l*oQjDk<7Nig08IK zb`ATVGzK%LP+>9aFM0hr8t+m`uNr?h&8o3Rp$T&ql||K}7GgobFhCViaDH~+F#yC- zt>7T3&_PZ*feTKTyd6vlF~JmEA1f+*>CCE4ex}5N^$4o)YuxX&3T$P0(IS!+kan^J z_p>v#1J8bWELml|S02YAQe-&yVew+kipZr~H-I@yc$=8#rZ-8L<_nDx&Qv3dJDwUX z!)@=h1`~R2M{$J8bM^1O&Gy2oxe1T;K?NA{iv_eYuhpLyc3%xu%z`dVc}Z}%cHGHQ<7P!Q|e?dwnSpL!AUf!B^!?#^Q#W!Ry+7ofwPZ1mZq z(Id0{htmX1W?2cAYWZo_lOtT#+Us-nlP$=CGK|Ri4x0Xh>(|iN9y1 z=9y26A4Y}ViRi9Fxzm{>J`YM>GX1D|$4BY9xJrY{oY2~Z&};B{Zq9Pp!pox`8e#0C z-h~@fohA74(#ws!{7kIe4v6XUX<)9bd)g66Bz%^Y4p0~OF+rY;l$v&7T<3~4y!bv> zR$r#LblZcVgy2lq!ff+>yuR4qCcljQa03x|dTcG7`CHcxh#POtGKt6ymNd_0qF7Wf zBj_KC8{jl!zZ>0neDp19n3sD?HC=|WM3!}cK4zCnu6Uoj*hbV1<#F2BD)@A~y%@VXx+u}Hcn=_s-({PxzmMZ^xJ1SV zoZMY*FarYvO_@z8Lr2ep)%HgIL7rhYa~#X&&V8oYSw zA4m{3{hw1Vb~~26K^xro&e7i9eg^SqK0i}kG3z(!_~E?sjJlSWIWXJqKiHAWTG*SpPcCMD`kEc1gx`R^YkYWz zEN4vEIkj@&e4tC!(_~x`-K$w6CU%X7U2Y z)Y}T5stEyoSsB{H{+xfST3tov~6@lO}2gx#N(rHXiOAHT!dp6FiV8V)B4{L_P_% zmX0rPa^-{1xG6|#uEGo+!v)QAOjRe|jg2ICcXU!|Cr+LMbLHlhJ)ErR*P9*z$NLlt zmYjAUbljq004ZyOco?HJovV7M*Wb2nF8vT2D;3kGi%F)6Kr#TVW>}zTHnUQxoGmD0CY9J`|d%8@}n;_co2q zWr98`R_c@PQbMi}x3bWo4XZj{it6qYj+o*XvNoS4>rF;7WNn;vA*|A!3H}Wh-uk@n z*hV0S+XnX;K;BOoz?&*9_{NnM25s4^^QUt|>R!()^Z6#G3OmL{CU^-IG_M7_a~B+& zCrV;ouC1ljbK(K=ygqAE_-}ewnH2&&t0enS7}I4i0wJgNvCf|P$`|DHku`K`HfDa2=n@DCg8MRi_)vpMR2Mxy4PE2Qe! zD||kNXy=0WeU(43v%md9Hg9Zu#CP%d%C67gk_#pfXs8lf>M=betm(}0fdDKq0{26# z_c?J!Cgo-~*=wswLXkR|W8d+rDdV00`22Ouv=_Hod9bmB!=D$I4r@7DZX7e+0tO!9 zR{0d}A6^K#yRx@ykotO4(WUJsmFvN)d-o-wZ(wcDSUS`8jO-JSAMa4y@MK4fDP`(P zzxQ2})ofiauWKj9{Rm$Yw^?g=?`oO(Vf|T^I+-A+o1#F`>tn59d=FtgVJAV=y;G&` z0GMvtEeil5;e$Ln8-41(UeMl2kYLk%vPl?0+Egg_;g)494o5FsvdeZKP;&&fjw7o{ z|B+e%Z|)8Ts?=>@p|hr!nYXgV=ZjI4Cp#$E>+g^6r7Nd3<>-t=G%B5IyZUI{e{49G zqnIXEB=M@5Ndf1J#l5YWcLG=A4ufF8S{z5Kz-uM?Ni{{%mr);=l0=473h#cIc{K3> zZ-VUw_Ng5^HgWQhs5tQU@qv-YBej9`R$a^|lknX<*+sSVXue8M0#EPBJ6_Liwl*8l z_zoD#!l%WIXJZ$jm?|zUu0LdeP&8IW*(|39&QzKGnem$6--u{ZGtHt#Hro*h)?lu zXGKo-4Hv1WP*VLj;uA6UwGSV*6ro%PRbwR{@tXoCOb=OFTB4ru-|Id!rP5Y6LF*-D zy|t0qDSVPo$ffyoj#CIZV?l3VsPRYye$F^xxv~Z78_fwlCWbwW!nYCR2nx0_+@tg3C_UDMVa2Br=X3hfP}^Cp4Yg=#OK}K zKYVY`V9jEKD!UrCbSX6Xym2T-cg}!n;?;o{mM|zWj0P@D|FO-rQ zKt#ApEh#AX%_f%9!G6`I*K=bSnMIhQ%W5&BOMntzVr*eS;WR;FgM)+k`#+Vze*z&V zkU^I-R|!Nwy<~>eeQ~hJqa2|DdpX15kD=6U73Du;T|VarycBP^n#IZeIJ&H3S9#@oec~poZELqX$DAc>XZyuIqd^GK0Jq~0kI=d zA7gMo8%zmkEdnqMh)tkp?V0I;Tm3`>aU3^~dXw zlhdd3=iygnUgYu#GRhxln}4D?Gokczq?T;RjCk0=fUHy18$lt!-q!%sNxee7No^+N$9d?Es*``)0UJ4SC&FNY0pf z_MlbGdUy$|F}YDvJ9GTCkZbsNKj3DL5;=BGBx8xI;n)=A0d0j6MP7Mi6MQdk@Tux2Qy`oI_&*%EQ0bE?|R>P$rDhcFa8O?JIK zPOpFDa?-L*+Q7RrCg#y5z$l0d>n@+OYo3g>-Z*x&`Jj5|=*UOYaJer6;FAbdtt0O? zrFGUE?!XeUG}G8wMgeTs%+r;3uUU;Nq5EuU{h-g&UOBKhdS`;J=m!~xn*ztv_p@dD zR)tR!P=~5kX)FRsx9)uyuu?0dh%Ht7`PTM@e#Cq!z2ts;O;L)tQ1ipDiWqbGz@o_p z^D=UKR#`S7HAt4vQtD(_SeWyj_av~#tJKlb9>-s5Ykuzx_E1ZNl4)~f=zG$*;-y=T z2ozmFva9az<{2&63fQ?(Q8{IPx@t1LuFcxP-LXVctWh3AwazVTt2)w^*Zn-#eB`bD zSHoAusjOBK5(>uQPGj=ijdOH3jqG?(<5#C{*JQ?Lt~@zow=Ii4Al$Vr!#+Cf-gx)A z`_h(>b@7?*6bYM8%628gGW^rwWoG$mK_eCk`}B&llStfwHf12*{5spmTeNH$4{gCY z@Yuwr*k@%m;T<60bw9z6^WpWi@Bu^qe-g;YAzI+VjgsuZaGA=^G*I{KLy@rIjSpWb zFQNsCp2T;S$VaJtZ<(waRu8y7^X;>YhsWp zM)mKgCeE@K;J4vQSV z&-(Gl5AJCp>K*2-`U|4i;u3p8xo6(isu-38>cY zml1Eo&FBBKJpour?}q&nggpFiGM%m+YX`ng8P+uRnJiMyWcv*_AZ8KAB$w;rfmN8C z<-2EB6TqZO>A~P{*<);wYqZgxQS8E*syOXvGkGxF@s(scud0uv?T)fQ z(DGrwM7lvpitUG~6!*}kZUpBn9PuP`5^nMK@($xI^0Q~axP5qU>L~uF{R_<9&m z({}$$WuD1y-QzMVb3jLPk`~bDJNkw(Dv-6cKUb4uzD= z-w?i0NZ2K}AbT}Zi^uOZ32xmSxJw+6(3j%a!~Tdy-@RxVx6YUw2|V6JX+mSJNclfl zF~SD#eo+lnB=ZpHLl{)E+`sI^-V1Vn!6#Ml_W4aH*Pe(++sNI`M=5L3?X1z0;CJeE zJiX5Mp6JH*=R9W0t(1@>>1y=lP^F=yJil6JxU~I}EpTsBx?rJ5LbCbQ zuLBmmX1MO&!E}khx=+#hCesIB53`IWwqyFtR{AUv7vJ{Q^dn1S0@*^UOmRwctFy&> zd={(J@avBzmu$MbyamRMt_$kfHY<*v)%%&nY4hUDH=$k)$8LHlUG0G3Kv#T~-vQjw z)hXbsNIg?~b-jRw)ir5Q(gfwM+Zk+0haf z+4ER%>T8RnKAoJ-(s&tu&-iZ@A?^J|d z6md=9C4am*v2r=aa&a?~37bc($n#wQ<8UGXL+!RtrRXGSj-2INJ#+3J=}e6nOC}G8 zN~lvCS@rxoq7w$CLg-wx!%V%ymw>~xhUw4cADX*$A}D~{21F$!Y61aHwpdL!QcrsN zl~$s5kk%7HWHkZ43%mOcwlk3RcbKGQ*}K(Fxput)rpE0zH0vY(EyY=blQZ`odG#hD z)~{&r6XkSE(^csqsaMm>2c%xsT2&g_Nab1bTY%fIoNHatDY@C@Ei~v@19|F?szU6SWRS)uDXqNY!48RlAb;S*ijqus; zp;bteR835>3BXML2CewOM<^q3M*ubU`}gnI-oS&(vf=GF|JJB-inGOH_dc1xb|iqR zWgrcNy?1*8)vAlAaiBE%K3Q>5Ygy-#Wf$>FqL|Kvgb&6H?iQC*Z|PN)xZJhH#d#=a z@s9O0oea6Lg}submzNZ{iZ*_okZ$6G*h5YO!dE=7c4=YA9g$y%1xjkVl#|1DShEjM zH3(sS?uRfB3mhW5Wrm} zrY>KpBxM&CC;s5Ie_{o}upN{vdb8x<_$5iiQN49`z`+Zz`&E`yLAim;X&}$HAfKmT zkO2Dgdno95mWMH~h2c4);H=MigT8hyzl|4g;dU7F;p^X>w!fa0zf{^rf?>~ z0w{=F_R}ru{g5i@&xwC%R-!-1x|(k6pSb5_)$f`zyErIvSCs{z`iVvU4x_znFKti!!av6BkRX_=+kEc;*`_rla zB`g4ruCJGT3XVTTrlh3Yj>1>PNIy?sV%Yo*=qaBIOY87_?P04yx6TV?_{~K? zOHEo3|2EA2JAMPYZM!H<{|!s-$r>l5{19icxV`Wf-{<0I>{v&H4FZaCy$B6Ludz{v zRH!!HV#JGP?5(L!Zp#}NlOODgWqjO+yo~+LasPYxH+ht2KjdfCFQr(oovP3?vkFK^5FvPJ4^LD=DpYQi4tUXuY1;erJaBQ79 zHcp(>mKvoD+)bq5SX9siR>(%CL??*D>Snn%p}NfGO4(RY^puLI+j$Pw)NZLb5bKo{s|0L~ z-A3R~;QHMg0bHSgESOM&N&@oF4|8gkPF-nVM=sQ;d}wcS{{!iW-)yQ``D6t#xlh(O zRF0Z@O>0uMz9g)u{P))ptV5lH2(gC8I5i(FDRG5Gp1bgBydKgxJy5gBfK(#D7NzZU zatG}S^z#KL*Do5=K*F7hk(`mbdgI1XoM!8*-};#UzNtEG@Nki#`7)GfV;VlfW^)=` zBaAjK5>gx@wf_D!B!2C6xBK^K4%x|+#?P@5N7tlfWo6xWJD~Wz^cnPfFF($Ixt4!j z9%x^1$on56XZB0Irm^kw-*rd1YVO;(*LbB21@7OPJspo%WO676#~oUMws(zP#+shG+$ns0IC3W z_{kYU>N5<_6=j>*0d}r-?8U+--eXfy2M+opoYL|=I932TMp=&k#tzJ^72OtRJ8BVOvTYPh;@EE=LJLeOk`y?d|Dd9%fWlhON^LnB^6x0LyZqz@imyogJ`$C@Lr9Z4o)ZQz>NCavG$$@e2#r3 z4I=}I5KgV>wl)~_Ja7gLQGju0c1{h%cV&6c`doWWv$>q*=ZLc8J{hBiKXNK?zx2Nr zz!pph;BLU2OaZTv>Pzj(VpSp2&OWNCF<~>NgL!nezhxEgj;&2 zl>z@V#>sykFCnFL?|(j)J3SFr|FFa`n@KbhC2pZB7 z#3>qIn&~mG_Vki=p8_x&CFeD4V7MvgJlk^G7H;(apFxr+7Gc0+1KfI6$@aeF+d7DJ~_-A|H=0?Da#&^Cqb=!=fVz>giW5nw=jWQBS%L^t1EZ@ zCm9;qlG{($@0W3T&l17ownc5pWhfM8Mwn-fLtb7H|IYl)8@QikEc_Le+s60x?&B*m z5kObB5{BD}gGr7l84~vP{N)C~3V;xhBWd%=^j0&KBw3T3-HU`;hqWA3OWW~<8nl-M zfYn-BI0_?g`3$_;&Exw<(G{QM|8)Kq28x9NF-F$>r@_BO)t^T*i-U1bX01<)zC_uE zR@8qEQQ#cm$YbXIUPVO?z7KI$pw@r=-V{V@>dC9Hn==1QBVy_b;#*jR+&f*$AwCl?o&G?2Uk4=*Ej zFK^Yvw*HTO9n!XRBWe++o3)4O!OC9PC=_l_<$M(W8(Akk`zv5?nJifb^rH3N?Hhio zo$=nNmSEz_QFHj|XF!vQEcdqPyZz_4|M_GBH)k)KA9XGRlTJD;3*y1c#?ZWkeaQM* z^`Bf04#Z)ARgrE4rMmlk8E5F=NpaW8xKNd3)-orW$m+kh(W12jQbQ7oi z)=#qbmhkplt}u`FC0sV9sdnb5$E!zX_xlA{4wW&j0*DCm`=1;Sh_sB1xiH@C89Z93;8d)EUk=lPNIZ`o3H`Vd+Ig`=CV}#?PAXvzWk{x96fn z0(rYh<>?PJ>Hd8v@c8=*vm+)>P1k@i2>yMaKw2nihLV6Z;wcdc*E2{8=xNh(FkEe3 zq_pc;ISw&}`?lqKx<4vIa67!xu|P}G$c3MDyg?u^InS?uM6Zzys0QM9ChW>g-ypzA zkOUSfvhTTWq{_>TJ{+kpgwX{@>P5ptiJ1NTO5)8 z8BiLUY_!*AJ$V386^TicK@z0qOPWP#Ea5?}!$_&fQ zOcRKuR^tLX*&CM(ahYftiNg!a=uU|He)2nU2(~iX@Yo|foZp906;o=d%aK09YEW7_ z-yX*;XE#z@?zZ&fQ?2fYX!T8@-$(K5Jo+AkyOM+(944x4B%2NR&avFFJY^9_br5UtzSX5@gmYYm@ z@S$jtqFn18bXQr0IYhQ=+2~ZDB_DRW3d=*B+3q`-*1P$i!GVIG(AMp=vBQ#^_mNxp z(;4Iz#_~&9jZ}}7oW?R;_x8&h?b0N326NJq4~>W^TeI^!o4=G5G{|9ff|`NN5+?ns zL@IWva(*@PXPmVGQ#rgIOY*nnoqNDDy$hd2uMT>wBgzg>YT&BV2U{k1ah1(1j_v0` z@o;6~SUGW=!+j!oa9ko_2^G75?VolPmWk=Pb-h{k=phZga( z88Rp7QzbHkpYG!aug9e^DF63Bi|1#CeAW^CpakO9DTT!p$yhuT8Aq10^cl2O@Zl-2RXr`+zCPj#_FqXs}W2{Qvn2Y{BmNsG45? zB{BF_rVgT$u0 zE8o6|@C>uOK1Ba}!V zx!M$9J1B7#_JSs90cKlucib?T&HqQpLE9YV1?v{gh2NWKEt9FX8;3DePnCL5Z=k)Flp=?-i$<5H4zc z`?2ZZ+p~Y8FYr;m3Vn2(u5Z`Av6#S}zkpQpZ|vNP0DY^I-oa$HXzg+ajQC7%wldRN zfOAL!UwFtuphqqR41v|3He4cQF5;UU9M~lti-k<HSTs^#>-Tf|C2&~#m%6WZAy1jz!Q_-IbpZP z8ht8}UG13lz+N-7+01+RlE)6OT^3px7fn@1|_b7^{bhPet}< z_)77(<^>8-qQ2X(n4faVhm@T0@Z{5HFSWs~EDXtV@7IAMbVUP6;v8^%l3PZ#wOZ-* z*Vk4lRj6OYpAZ_$*`t|tYKmLar&&{5{d+5cst)rQTn`n8>Xi+0zXc6YbTPMgzewFg z23F=+`8=FXXF6b*CDVN$v3|6iy;TSFSYh$qrbhKDcT^U9l zj}3g#zty{k*>s8S+>t|cng#3@Rz`z}njy{*?90mV6_Mkvv=iL9pb0ttHf$7;TxkX1 z-klTGb`2~-Mxx6~+{b-KiFd3XG`p?+6-0PMorB#Q@TY_CH5)En#5WrmHqj;@Fvi1A zeGpO@wuYIPOgRY&02e-U+j7!$LZ#5mS72R3MJS^gfheL5`kQV_n{8}KXaj)V%4b~As zFrQ7yZal}~{ELX@8c#V?2LlM@)g(|;VvcBjEuTJ=`WkOem{DL!+7Lr!U;F!mGm_^~ z+V^T?%bz+8noq9{ybcq16Gzd^fS2`skac)@6|;8X8l6Q19epZ@l^3@1ES!x2XLNA4 z_FI8#x5sq7hXVr83D;_5$sU!*Ye}zyx1wMC?Q{DSgrUx#fM?_Fj@{syA2x2yL^J{S zPPLkQ#O+9E9a^H*USdriL6rGHDt$B!vu~t7^)@_e=(<|SVd!MenX48AP(Z$4WoC9_ zeN;I;hEAr{ZvB^gK*1AWfI~5H0a{Y#2UBjn9`7;3JDrI5leeufemoZol*pDlVTSHP z3#8@6kxsJwUFg9(;)>Xm!{nsFC<7}Xwv_?o=eP)$>vvvj>yw z=YS7{pIOg(u@mJ%G0G^TM@L6>l)?_{_e`(yLxmX%h*D zMJS13@e!}HFR{?GNtq;%=4#zUgfFP^$g|Ax1<`vC&qIPbwGNo}3>ZM?=Evk6r|J&S zi$UD-za)A$kcqu)8)1mG z{FI*zS4{wM6S3;RP-!$0&8!6*;>|%T%HJxZt}cmap#~4vD0Pkx22gBbPo~=2iEMFa zSN<~qRz>jf54?e)>3%j;Gc6C1_YO0C|CDQDt7+bE({$0($tizZ)xn2L?@6_ zR3$`yiwH?E%X*^k*^oQ=z!1GA|E&fXHPR=rIEGq4%0=SGvror2Y%k#d`aPmx5@~7a zdkmPa1d-<`6M%& zp9rn|?C(5SRowEcasXoE$)s`=GvJk9wPt|2VX31T2F}6x3#(&IMqZND*a1muBh9?X zX_HSLo?$y$a;qFx^U1W|YAd%)Gaf|AEHqZ*{PW96FF*&nO-@c?c6t5=K_z@2f$8<^ zY}d|9NRviy7sF$61>@bV$B3*VeDg4DX3qScxVTL~5Go^T?}aG+th- z2`EduJx~ZcSssR;yX%oW&ze|$TF?;>HGHp~Eq?$w&SAD?d#s$$|4F@l*T7}X$7>}7 zRvPwxrPaLO5X-qYiQ7{P^4Ui2GDbq&DJ3Yu`)8zfMi1{>HEq`+uR1bJ4x!#n0D6_M8Zs_# z3mc%u30aK|avL-!XI&?{^%v4OXUr4OzaL*|-HV&M5GPx)SUqYMWw@Ex;%DHx^&FOD zncjYHD@AiYbGx1O(rsKW>Eg}cid)6bqA}!r!G{?x#)c?^k+q_uv%Xh3ha^A^{%wnpRPY({1LqK{NQy>!UjUc8f7x2` zgyLiGpsKlFO75ee2#drn3Glyna)PvUP}e(t6P z(8^W6g23+fzT5gZQQ^L-Yg#^P;QK8FTZAe)*|CKS6(I>8a2aoN+XEkYf2jAF!Zi3! zjS($tF@bu(ypeC>`IZtF;jz`F6A-Y7ZUQBuZxp&q4zHb9cc*!1`T3p9xL9`nWhNVr z!2lf=fCA>;1E&E|yfmrHqB#XnUCu28b*4#eZ{lLL(42#`ui?BO&uZj|d_Fh!Bw8g$ zn@2uezsJz@^XM(T{!CEw+EyG*eaF`FuTN%C zOZg)khBpDobCl(3ud$bhr>EdmuQ^l^Cic|y2m>LM+gsZGYKUAeJE5YUX9}j^JDoojv<}Cm&t+agmp?JE0%d#fo}m_cYogpjn5&egilTvDFz-Df}1i zB4)bXfn$dqb!cCa13DdCgMNehaa&${n5Mw&bxeKfNmHq%e{T_H@WB!H3QgFK2gNpB zP<;xkez-y-Lr(0^P^G!YH~WLut`0=mPXbVN64iv6Nd`s=eUQ;?V((+QU0&B4SF3*{Pm$AVrq;v&)c>VLy_UCe45VEsI@ZWM2TaB# zRU6XaLx0^H=0)Z!$rIu`3*s{Z!W7pU@6aHvX*vUuzME+!B5H}k_gFD)3=f;nI zi1|B!@iO%p;L{!JSEI~vyUByf_{HY=;RuAK##-h!06XFwxYi?xl}oWStJ*P{OcVe~ z_v(y8!+BaLQB`(D(XrL0ReKMn$R)8mU2@$q$Pq; zbZq-$IkP4V(`m}e<)cwnZLrjiA-X0@VY~Gi5-PKX20#Eag!JOw1br%7Rr}`(v@d!u zCo@&wE1SwM=zt~$K!eJ**9GAv!}Cogn9(d0X~BwPkU4gaWh?WVRcE3N?C%_R_D)Vw z(YmJTJ_0~fhItqHPqoIFGQYE2!~?aSRa{vjcDWhy5>oT zGOMFTWfL`aLx-!QL(9r?~D6y9Uhq=af8z!rqg#p zXk%gE-;=@G>MUv7p@P#ni@zP*$YQwA0Dlc21`%pV;p!_F@xI(^eA5&SZ{rU?^Wj}! z6Y%C^eMYilc_~MAwqV`h=I0;WA)MqJ^$IvyJ-O0)*RuLYjTL1TWd|(NbhIZ;nOop( z`4bc=fsxaeI@zc!vvYFFetFRKSMjef2_#oIzzPIxZ4oB0sxKOzX4Wltz#G@LD2Qr5 zm9o~xF;EU*_!O`}IigC{sU%1^$$B@>Fa_H0*>*1Amc^7tnKxcPpr8zZTme`6(0@J| zXfBE;0)lcuv%tqq05V8P2B^)Nhq~qdR|1KCfe>(GeuFaNc)T~zvma>o)FZv;sVD@D zynx%jpd8m<{zI zz44BQcmN85TNhy2plu`Nt$b;sKELSBpW)my@*ZnL{lFaD|7-8c-;zw*wh@(1yH+~o zQd6mwOU~P(B4CS|mX=v+F44&NRvMbQpcpDmU!|BhndzGgrsa}~;RGs*v>~aLX|A9$ zxrCyC3y6ZiciVh3@BH@t1LJY%FM8{e94DY4JQ} zYS0fcOC|N!{@iq*a@H$Qe9ONriBWJrhLhC?o5K2)!=~i)0hGh-mMd~RkqdIGCB(fU zy5*IvHssJ&gxudt>g(3w2{)axskJ_#h96qTc~<{c!`n^f zg+SOfdm8=UI!4%}d%RkXd}yWU1H66h)eDTsQr!qkcZE^zbI#F$k(dn7l7z}@YSv1+ zIcEYw{HJjfg()x7R@zQ&o;LdJ2vi6Fkl?OHM-Ga!%w}co(6=I5LZ>n{9pr~6!z|S$ zq_VfE7##n|{H(t$wPI-D`~L#((@V(MZ>p6Eb8k%4{lIGT;hZ9cg%~HhcbDCd%0RbM zs?uZG1wSL{Z0f+NzDiO?w9~XT^dWptKJ@M~0(@5*az*ZgabU465JN9eFY7vD8Wdz_ zlAIonnlivB;uDXov3sIgoKx2>G6a;@?v0qg;r`RnZ{4wMw2%}(e*c8k`R7sNT@>H} zfUU~mHR~8!4rJTHVlT=v3wz2kx&95Nz?@Tj8)s5E}t{|AFA=d_Y zOTqb{ATx>U``k~NJ2hYk3r#Gn1}|1Xj}jq!9%;{k(?9!WZt1z#{OATvapC-}#$LWi zi2R>~v0v6A<|?Eg)Ye#VyRyr7RJ$N4vFEFfmb1jHF(yZN^rc!ULDen>KWu(D9Z5!P ze(qg(G2HmSqyi2B&W`vo@N=3l?+dXbWn-`1LrY1^_mSilpKLLxQp}@s?=Tqw6Do5Pui*IhPZtaT|GAE&MF$;(4s9Bt5f+vbITElRv3( ze&@3GgY%ltiz;PZXq||TeA+sP9bc(#*G<2ck&zF3W?0$Bxit`EwvZb7jke;810>h3 zb}}!oS_xUbJ^$_PWrSlJ-;v4qq!@|L9uM#ALcMu|+|fni+AqPpu+CtjBrs#Y1jKVU zEc6L$d!2l-MgMi5&7?{Dfxj)qn;mIZudn7I6V$88%05A!PtCQTGSxXKMGh;qXa|fE zJBUmhM!}@e#A?s%bajm+=Ka1WxHZWaj;k#XT{T#;bH9c5zA8txVHEz(EeE*PP9eD9 z<2|evdxmVLj_n@`lp>6@ zy_ZTczm54_lGjPwPaq$dF1HdIks&Mp;%bge$QZnnp${}#&Z3)z95ei@b9;c=kJpY- z$G#RZbgyTi3&d4=3%+gXOSp|g^~^%K1id>re4gTka;7m@WA}bFo`GUbT8-n19VVdO}IkuW(H_iil_S}@$xy(Q*fCcNaD60 zxqsWK5lESLWnKgy^ci@da#k9^aW5)oLzbFxlUVBA&UM~79PF7=rW@Ot`>9(Gju3N{A4%EK0dPuz{=J_LUv|Pe^*x3eq_ExMNjB3?{$+xH^_Y z;e5pH)*~Lo@y=;b=P$Iqp9KR|j(>D-kaI4WeI&&HPFRtbZBMiQ^PwE`pF$Z7#(@UF zP2~&InXDTNx3`4)H2mD8yHl{Jk(|C(VA2vwY}3IRqo*qy9HvN7a!$$hlZqjmb6tZy zp1fLd^be5LmcI`_d3@@A`jLDS!b0qXVvP%y>+DfL86Ie=*TZ)PL??Lk^F};4=dwv; zPRBV>*)f&NE0vtjYHw@vs9l(Dk*g-}ARSciwv!f)E361d_9y<;9b7)PBw$3dh`AZi zAY4)BVh3t>;gR=s)nZW3PT_3bOLDK)eTZT^*m%P!HdC!FvK=Z=_iA>Bg!`SsC|P3u zz+oMr^PUcTebccFK>bqp475+?5RUC{Y7klp^p=Q;ZM+c8Zq6wBtH*5c=QHlp7wZS%6AszeebN>>_2^H7uuK@g%1{vF}DT>U{h`}c+u5ubXcFMH)fZ6-l z!y=qVN>jqgj)3T!mALcM;1!8}PDcMCU6<9?l#euNff${zE=b0d%;TcPFfw`y>zjLg#_WgnwatH|t}Y&WrR32m5W_AWNa`OqIc{ zW{_mX(Ck1psRCgMhJ*hXhcAG1ocb_kuY)%9rlYzq8h$K;X}=5m+8CYpJ4Yw6zLi%S zpu}dkAc_hVv>NfWy9eLsQ-6OzoBl{WAkRi|U;anmJ5dFwz(C9~-A(!Vfw z(E!S5ua;@}(q5GrIc6|PAOSPg{il$s$UBI}tk5xuP-VedGyZd}xqXvWvU_`{;Cf0> z5fN79T(#iq-q$RLb(of0ZA0lfepj^!a2-6 zv{v^7r2J*xmj&XVgZ>Wd=RqwGGe1`-Svll~bz(-y7*N1ooU5J*aY@&5ea5ss6n(a? z`N9l?w~=^1g2wLDVRD5ovqLc^Z#YRDFR+QYV4emH*fzOpzer3>Pudh??f``be>dD3 z)xB}1O6bZpnt=j(m92Fxq0dz89n>B05xx10QDL-YDz&e>h_u@9+RG)Pv4{2IYNiMy z8auH}j+fW*;q%Ymtbq+KI_r4gxGUeYJ>hq~vbe!N3%NntH+Dyh7I70!cu(qE_`Vp; z07NvH4Q2s#9;mKj;>umoviK|H+#CbgGq`D+QxI*$r6&D`yf%-M^{H;6gi4*j3?c9c z8$}NK?0I4%b?c`p2;SvL3*xY`0fe_KIZqPm`M%{DCrPUt{bS|zlhbHBNlUe7zcK}E z$L2zIl+z#Z!thJW!}{G&JAC@Pg`H(}GLM_m;uV}C9Yt(vF+F0Dy7{`k zY&v=ZZf?8^qSD>~2iP#{qQK632aMplZye6Q3X>dctS@JHSz2)zJaqXvFEZlr>9$oY z^&9^4pN`1EJcEw_wi@P{zJqQX470?WZTB*5Y7F!3#xJO^z|Gw@)bFoY5#daTP5OgI zcbKI$Ok(|9g_%#If*$3ga=U0_n%|#}eWwyeW~(19Te+!xF*(rd=LU(nM15;<7Z&oA zrqIw#r7}&_qgCdvS7+!|3?8w7JNRtHQ$~8Yyw(xC+n=- z7SQBo3+)tbg2NJn^=lukNOCkiEsgt~4tCrZ{aSnrHRMk@_?1^whFrEn3mT1NSC9B&c-(JrWu@FUhSNf+(>-_%kX#@LYnzq`^M#XX}(*!_LZCY za24(5Y$WH^=;GY^#0c{Y4{_!GPvm_bd#&6ypUpfwu%|+=UEe^Q+oe$7cXnyF@O67L3%SKO#rdayD^4^vH2hG{w%vp|_*jKf4 z=jb?40UP4S+Mi~(Uz(^cvgVB+r+Rt|;wnFRYcz(i=&Q14Ok=V-tTPw4%v&;ZrxI#w z6&rvLjj#yzBr5~N*7o09CkIE=>EWwo`ceL*@Y=504RB*xY#SY{)p3Gvn9zBL_FCN0 zl^axu8p~su8HpiDNi{%5ojAv1{0?t7*mflF9&Y_x4#)X(jyLl~c+s6*I1G7{zBI;tH*_ z94)o##4$cU4ohj~e#C^E><)3E`d;ftdwTQZpDmp)9)n5^+h%BE?)8LI2A`L!zjTBL zPYE&+#0&jDFc&4Tg}VC}E@4ZGyWbiK2dvn6Mpu!cQT_^6!RG!7)fE>V>?PNFm?vc5 z>A8gcW=5Xm2#LEW_;XgMQ$=Y-#lc|zs2}}2ny_4Kb%D@Vrtu6rOmUe!ph7;;L`XHi zXcDHc;OYbIk44?|A9-=Ml{Xap)^{jb5$Kl?v`CIT`bDXV*x{h+UARtzOd}#US>a%X zOdU`5^_P@lkQxB*B<&RQB?FgJOH2-~rMnXf_{5%~s&OlUM^i30FeOM{`XOXs)3_BU zEAyNr%bz8RJ=Cvw8y=)3p z`K|i!j$l~LqQ)kabHK}7WeyB$x*({t#cQWf98qh&X{R*Y--9)~g)?XCL>&z;v9#hY zTFY?DV&1fPE&*z}6Ki`Y5#(-eVYB;OzZjPSDnN%ArA8D>wODpQT4Jt}ah556JE+G_! z_P0uQ!qDhR94VdpAqajIOl4~>oTaQ8H5yXaTZUOb%cRAkWYV?KSNlTqgSM=Wgf)JP zz=?Q5f5zPEVO!NbOCbqEwP^Ff_O_`gdm67#U{Mp^_bKcq2IoO%zcJb(M5z`cjv1Ck z+!awNRhwjj6CQqu+xC#{UWo^3+h?6ymzq3r?3JV}<|u_9x=MWAm`1AqAnOsJ*@)^4 zr|`FkZlg{Cd!#Chmhn=_ZQe;~-DTUOv>)Tbmh0{z_42vWa|vNUO% z_5KA1xNHBgw0zjUH|s5xg$b4k z@Koa#-AFizrr6h2#$k*41tm7_jp$yL4X*DZcklq!u+>9E0WnhcOFPn7Vh^ao@~tno z@RwY)*+8&|Hpdq)`a=L*Teuw;_B@u;o!a!YaOO@bs-?*gqpm?nRkXl~mKFfF z+OVzE%RlC`M5-+KM_GXZ@9b;=2C(sq+R&Ko_RzZ%5P~kDieK3yzV4BN*{$E%KY;4k z)s?*vacHYN~u+?SoI`e@S2!9Co!cdvz;@N@{yj`0-9^8osR(V7PR-O&gM)x3owqs5oJpIwc zgY`#VzjI$V>YYDrIr8D;0JK<10@ycefw z;;oV(!gUR*xBg%xTl-#d>u(5}#jFrLKo}q0b{IuuZhuO7n++ zo@9)d#`(AT$mbW5g;c;&z>1_2Nk%;L?TIhfeK%PYp>5N<5wdihxw4-qvVsN6t@bol zDFgi~t`B&ZU3ek!#fXVE5Ao$7AwI+@amT_m2SclwQE{cLcv3kwhokq+!S%>Fe_*(Z z75)vhq@YqZqa~Hf$0S?T@nr_%mV%*aT${~4)6|(P@Bq_Q!VC4tZa`7?ra`4?oV+wSr2`TVSUmKS_>V@3%0*S#!+L=3f@oF=4k9U9xv0p1;Fx&}V;X2J~h zcz^}G3|;s8JyEFR*LB*fPUm+?f+ofnBQ5uK%NrwA+RV_~h<6-mw_wU?NGRI!zNTh% z&>ty6x8&gW75gdW)?p->&%?{*brS|k@b|(>&<^nyO55Pi_q*eK)=J*Uunw2cw--p%E!VXuDa? ztZ$HPKJ6$Sh7!UrpxVBLFSnpZOw$(ftvg!Nk1LVfL+FL(u zh1Abu(oCSmgqQ2IrE;Zz2f2DAD%T4XO6tU&)2IB}vV3{^xpz1MYFEPy_09RP2QvmA zIqw<(UaCnCs!mFX$+3sjnV*(O5)y`jW!*wzF-l^K`Bxgap+0Ej z@c^nf{Ic`6I5#9bcE7fwiiP8JZ9dr3FsD~SBiW_`8{UgFt*{$@qj#E)90JYra>Zs3 z$sCTuzOye2GdTO;4@;wgJK@!ij-|c--insluCR}{#q=D6Xz#nL6;`rkc*UzLTR%Y{ zN2YK;Zcz4YY=+|(0_?E=#~3U@I1fIyRiBF zIeWj=id+b|L;kSMs>NMfeB^(={IdrC;NYJy_$L+olL`OdOqgH0OpSa?FTRhwb<|%A Pe7HEdAEg|=c=LY&YVNkY literal 0 HcmV?d00001 diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png new file mode 100644 index 0000000000000000000000000000000000000000..13b35eba55c6dabc3aac36f33d859266c18fa0d0 GIT binary patch literal 5680 zcmaiYXH?Tqu=Xz`p-L#B_gI#0we$cm_HcmYFP$?wjD#BaCN4mzC5#`>w9y6=ThxrYZc0WPXprg zYjB`UsV}0=eUtY$(P6YW}npdd;%9pi?zS3k-nqCob zSX_AQEf|=wYT3r?f!*Yt)ar^;l3Sro{z(7deUBPd2~(SzZ-s@0r&~Km2S?8r##9-< z)2UOSVaHqq6}%sA9Ww;V2LG=PnNAh6mA2iWOuV7T_lRDR z&N8-eN=U)-T|;wo^Wv=34wtV0g}sAAe}`Ph@~!|<;z7*K8(qkX0}o=!(+N*UWrkEja*$_H6mhK1u{P!AC39} z|3+Z(mAOq#XRYS)TLoHv<)d%$$I@+x+2)V{@o~~J-!YUI-Q9%!Ldi4Op&Lw&B>jj* zwAgC#Y>gbIqv!d|J5f!$dbCXoq(l3GR(S>(rtZ~Z*agXMMKN!@mWT_vmCbSd3dUUm z4M&+gz?@^#RRGal%G3dDvj7C5QTb@9+!MG+>0dcjtZEB45c+qx*c?)d<%htn1o!#1 zpIGonh>P1LHu3s)fGFF-qS}AXjW|M*2Xjkh7(~r(lN=o#mBD9?jt74=Rz85I4Nfx_ z7Z)q?!};>IUjMNM6ee2Thq7))a>My?iWFxQ&}WvsFP5LP+iGz+QiYek+K1`bZiTV- zHHYng?ct@Uw5!gquJ(tEv1wTrRR7cemI>aSzLI^$PxW`wL_zt@RSfZ1M3c2sbebM* ze0=;sy^!90gL~YKISz*x;*^~hcCoO&CRD)zjT(A2b_uRue=QXFe5|!cf0z1m!iwv5GUnLw9Dr*Ux z)3Lc!J@Ei;&&yxGpf2kn@2wJ2?t6~obUg;?tBiD#uo$SkFIasu+^~h33W~`r82rSa ztyE;ehFjC2hjpJ-e__EH&z?!~>UBb=&%DS>NT)1O3Isn-!SElBV2!~m6v0$vx^a<@ISutdTk1@?;i z<8w#b-%|a#?e5(n@7>M|v<<0Kpg?BiHYMRe!3Z{wYc2hN{2`6(;q`9BtXIhVq6t~KMH~J0~XtUuT06hL8c1BYZWhN zk4F2I;|za*R{ToHH2L?MfRAm5(i1Ijw;f+0&J}pZ=A0;A4M`|10ZskA!a4VibFKn^ zdVH4OlsFV{R}vFlD~aA4xxSCTTMW@Gws4bFWI@xume%smAnuJ0b91QIF?ZV!%VSRJ zO7FmG!swKO{xuH{DYZ^##gGrXsUwYfD0dxXX3>QmD&`mSi;k)YvEQX?UyfIjQeIm! z0ME3gmQ`qRZ;{qYOWt}$-mW*>D~SPZKOgP)T-Sg%d;cw^#$>3A9I(%#vsTRQe%moT zU`geRJ16l>FV^HKX1GG7fR9AT((jaVb~E|0(c-WYQscVl(z?W!rJp`etF$dBXP|EG z=WXbcZ8mI)WBN>3<@%4eD597FD5nlZajwh8(c$lum>yP)F}=(D5g1-WVZRc)(!E3} z-6jy(x$OZOwE=~{EQS(Tp`yV2&t;KBpG*XWX!yG+>tc4aoxbXi7u@O*8WWFOxUjcq z^uV_|*818$+@_{|d~VOP{NcNi+FpJ9)aA2So<7sB%j`$Prje&auIiTBb{oD7q~3g0 z>QNIwcz(V-y{Ona?L&=JaV5`o71nIsWUMA~HOdCs10H+Irew#Kr(2cn>orG2J!jvP zqcVX0OiF}c<)+5&p}a>_Uuv)L_j}nqnJ5a?RPBNi8k$R~zpZ33AA4=xJ@Z($s3pG9 zkURJY5ZI=cZGRt_;`hs$kE@B0FrRx(6K{`i1^*TY;Vn?|IAv9|NrN*KnJqO|8$e1& zb?OgMV&q5|w7PNlHLHF) zB+AK#?EtCgCvwvZ6*u|TDhJcCO+%I^@Td8CR}+nz;OZ*4Dn?mSi97m*CXXc=};!P`B?}X`F-B5v-%ACa8fo0W++j&ztmqK z;&A)cT4ob9&MxpQU41agyMU8jFq~RzXOAsy>}hBQdFVL%aTn~M>5t9go2j$i9=(rZ zADmVj;Qntcr3NIPPTggpUxL_z#5~C!Gk2Rk^3jSiDqsbpOXf^f&|h^jT4|l2ehPat zb$<*B+x^qO8Po2+DAmrQ$Zqc`1%?gp*mDk>ERf6I|42^tjR6>}4`F_Mo^N(~Spjcg z_uY$}zui*PuDJjrpP0Pd+x^5ds3TG#f?57dFL{auS_W8|G*o}gcnsKYjS6*t8VI<) zcjqTzW(Hk*t-Qhq`Xe+x%}sxXRerScbPGv8hlJ;CnU-!Nl=# zR=iTFf9`EItr9iAlAGi}i&~nJ-&+)Y| zMZigh{LXe)uR+4D_Yb+1?I93mHQ5{pId2Fq%DBr7`?ipi;CT!Q&|EO3gH~7g?8>~l zT@%*5BbetH)~%TrAF1!-!=)`FIS{^EVA4WlXYtEy^|@y@yr!C~gX+cp2;|O4x1_Ol z4fPOE^nj(}KPQasY#U{m)}TZt1C5O}vz`A|1J!-D)bR%^+=J-yJsQXDzFiqb+PT0! zIaDWWU(AfOKlSBMS};3xBN*1F2j1-_=%o($ETm8@oR_NvtMDVIv_k zlnNBiHU&h8425{MCa=`vb2YP5KM7**!{1O>5Khzu+5OVGY;V=Vl+24fOE;tMfujoF z0M``}MNnTg3f%Uy6hZi$#g%PUA_-W>uVCYpE*1j>U8cYP6m(>KAVCmbsDf39Lqv0^ zt}V6FWjOU@AbruB7MH2XqtnwiXS2scgjVMH&aF~AIduh#^aT1>*V>-st8%=Kk*{bL zzbQcK(l2~)*A8gvfX=RPsNnjfkRZ@3DZ*ff5rmx{@iYJV+a@&++}ZW+za2fU>&(4y`6wgMpQGG5Ah(9oGcJ^P(H< zvYn5JE$2B`Z7F6ihy>_49!6}(-)oZ(zryIXt=*a$bpIw^k?>RJ2 zQYr>-D#T`2ZWDU$pM89Cl+C<;J!EzHwn(NNnWpYFqDDZ_*FZ{9KQRcSrl5T>dj+eA zi|okW;6)6LR5zebZJtZ%6Gx8^=2d9>_670!8Qm$wd+?zc4RAfV!ZZ$jV0qrv(D`db zm_T*KGCh3CJGb(*X6nXzh!h9@BZ-NO8py|wG8Qv^N*g?kouH4%QkPU~Vizh-D3<@% zGomx%q42B7B}?MVdv1DFb!axQ73AUxqr!yTyFlp%Z1IAgG49usqaEbI_RnbweR;Xs zpJq7GKL_iqi8Md?f>cR?^0CA+Uk(#mTlGdZbuC*$PrdB$+EGiW**=$A3X&^lM^K2s zzwc3LtEs5|ho z2>U(-GL`}eNgL-nv3h7E<*<>C%O^=mmmX0`jQb6$mP7jUKaY4je&dCG{x$`0=_s$+ zSpgn!8f~ya&U@c%{HyrmiW2&Wzc#Sw@+14sCpTWReYpF9EQ|7vF*g|sqG3hx67g}9 zwUj5QP2Q-(KxovRtL|-62_QsHLD4Mu&qS|iDp%!rs(~ah8FcrGb?Uv^Qub5ZT_kn%I^U2rxo1DDpmN@8uejxik`DK2~IDi1d?%~pR7i#KTS zA78XRx<(RYO0_uKnw~vBKi9zX8VnjZEi?vD?YAw}y+)wIjIVg&5(=%rjx3xQ_vGCy z*&$A+bT#9%ZjI;0w(k$|*x{I1c!ECMus|TEA#QE%#&LxfGvijl7Ih!B2 z6((F_gwkV;+oSKrtr&pX&fKo3s3`TG@ye+k3Ov)<#J|p8?vKh@<$YE@YIU1~@7{f+ zydTna#zv?)6&s=1gqH<-piG>E6XW8ZI7&b@-+Yk0Oan_CW!~Q2R{QvMm8_W1IV8<+ zQTyy=(Wf*qcQubRK)$B;QF}Y>V6d_NM#=-ydM?%EPo$Q+jkf}*UrzR?Nsf?~pzIj$ z<$wN;7c!WDZ(G_7N@YgZ``l;_eAd3+;omNjlpfn;0(B7L)^;;1SsI6Le+c^ULe;O@ zl+Z@OOAr4$a;=I~R0w4jO`*PKBp?3K+uJ+Tu8^%i<_~bU!p%so z^sjol^slR`W@jiqn!M~eClIIl+`A5%lGT{z^mRbpv}~AyO%R*jmG_Wrng{B9TwIuS z0!@fsM~!57K1l0%{yy(#no}roy#r!?0wm~HT!vLDfEBs9x#`9yCKgufm0MjVRfZ=f z4*ZRc2Lgr(P+j2zQE_JzYmP0*;trl7{*N341Cq}%^M^VC3gKG-hY zmPT>ECyrhIoFhnMB^qpdbiuI}pk{qPbK^}0?Rf7^{98+95zNq6!RuV_zAe&nDk0;f zez~oXlE5%ve^TmBEt*x_X#fs(-En$jXr-R4sb$b~`nS=iOy|OVrph(U&cVS!IhmZ~ zKIRA9X%Wp1J=vTvHZ~SDe_JXOe9*fa zgEPf;gD^|qE=dl>Qkx3(80#SE7oxXQ(n4qQ#by{uppSKoDbaq`U+fRqk0BwI>IXV3 zD#K%ASkzd7u>@|pA=)Z>rQr@dLH}*r7r0ng zxa^eME+l*s7{5TNu!+bD{Pp@2)v%g6^>yj{XP&mShhg9GszNu4ITW=XCIUp2Xro&1 zg_D=J3r)6hp$8+94?D$Yn2@Kp-3LDsci)<-H!wCeQt$e9Jk)K86hvV^*Nj-Ea*o;G zsuhRw$H{$o>8qByz1V!(yV{p_0X?Kmy%g#1oSmlHsw;FQ%j9S#}ha zm0Nx09@jmOtP8Q+onN^BAgd8QI^(y!n;-APUpo5WVdmp8!`yKTlF>cqn>ag`4;o>i zl!M0G-(S*fm6VjYy}J}0nX7nJ$h`|b&KuW4d&W5IhbR;-)*9Y0(Jj|@j`$xoPQ=Cl literal 0 HcmV?d00001 diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png new file mode 100644 index 0000000000000000000000000000000000000000..0a3f5fa40fb3d1e0710331a48de5d256da3f275d GIT binary patch literal 520 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|Tv8)E(|mmy zw18|52FCVG1{RPKAeI7R1_tH@j10^`nh_+nfC(-uuz(rC1}QWNE&K#jR^;j87-Auq zoUlN^K{r-Q+XN;zI ze|?*NFmgt#V#GwrSWaz^2G&@SBmck6ZcIFMww~vE<1E?M2#KUn1CzsB6D2+0SuRV@ zV2kK5HvIGB{HX-hQzs0*AB%5$9RJ@a;)Ahq#p$GSP91^&hi#6sg*;a~dt}4AclK>h z_3MoPRQ{i;==;*1S-mY<(JFzhAxMI&<61&m$J0NDHdJ3tYx~j0%M-uN6Zl8~_0DOkGXc0001@sz3l12C6Xg{AT~( zm6w64BA|AX`Ve)YY-glyudNN>MAfkXz-T7`_`fEolM;0T0BA)(02-OaW z0*cW7Z~ec94o8&g0D$N>b!COu{=m}^%oXZ4?T8ZyPZuGGBPBA7pbQMoV5HYhiT?%! zcae~`(QAN4&}-=#2f5fkn!SWGWmSeCISBcS=1-U|MEoKq=k?_x3apK>9((R zuu$9X?^8?@(a{qMS%J8SJPq))v}Q-ZyDm6Gbie0m92=`YlwnQPQP1kGSm(N2UJ3P6 z^{p-u)SSCTW~c1rw;cM)-uL2{->wCn2{#%;AtCQ!m%AakVs1K#v@(*-6QavyY&v&*wO_rCJXJuq$c$7ZjsW+pJo-$L^@!7X04CvaOpPyfw|FKvu;e(&Iw>Tbg zL}#8e^?X%TReXTt>gsBByt0kSU20oQx*~P=4`&tcZ7N6t-6LiK{LxX*p6}9c<0Pu^ zLx1w_P4P2V>bX=`F%v$#{sUDdF|;rbI{p#ZW`00Bgh(eB(nOIhy8W9T>3aQ=k8Z9% zB+TusFABF~J?N~fAd}1Rme=@4+1=M{^P`~se7}e3;mY0!%#MJf!XSrUC{0uZqMAd7%q zQY#$A>q}noIB4g54Ue)x>ofVm3DKBbUmS4Z-bm7KdKsUixva)1*&z5rgAG2gxG+_x zqT-KNY4g7eM!?>==;uD9Y4iI(Hu$pl8!LrK_Zb}5nv(XKW{9R144E!cFf36p{i|8pRL~p`_^iNo z{mf7y`#hejw#^#7oKPlN_Td{psNpNnM?{7{R-ICBtYxk>?3}OTH_8WkfaTLw)ZRTfxjW+0>gMe zpKg~`Bc$Y>^VX;ks^J0oKhB#6Ukt{oQhN+o2FKGZx}~j`cQB%vVsMFnm~R_1Y&Ml? zwFfb~d|dW~UktY@?zkau>Owe zRroi(<)c4Ux&wJfY=3I=vg)uh;sL(IYY9r$WK1$F;jYqq1>xT{LCkIMb3t2jN8d`9 z=4(v-z7vHucc_fjkpS}mGC{ND+J-hc_0Ix4kT^~{-2n|;Jmn|Xf9wGudDk7bi*?^+ z7fku8z*mbkGm&xf&lmu#=b5mp{X(AwtLTf!N`7FmOmX=4xwbD=fEo8CaB1d1=$|)+ z+Dlf^GzGOdlqTO8EwO?8;r+b;gkaF^$;+#~2_YYVH!hD6r;PaWdm#V=BJ1gH9ZK_9 zrAiIC-)z)hRq6i5+$JVmR!m4P>3yJ%lH)O&wtCyum3A*})*fHODD2nq!1@M>t@Za+ zH6{(Vf>_7!I-APmpsGLYpl7jww@s5hHOj5LCQXh)YAp+y{gG(0UMm(Ur z3o3n36oFwCkn+H*GZ-c6$Y!5r3z*@z0`NrB2C^q#LkOuooUM8Oek2KBk}o1PU8&2L z4iNkb5CqJWs58aR394iCU^ImDqV;q_Pp?pl=RB2372(Io^GA^+oKguO1(x$0<7w3z z)j{vnqEB679Rz4i4t;8|&Zg77UrklxY9@GDq(ZphH6=sW`;@uIt5B?7Oi?A0-BL}(#1&R;>2aFdq+E{jsvpNHjLx2t{@g1}c~DQcPNmVmy| zNMO@ewD^+T!|!DCOf}s9dLJU}(KZy@Jc&2Nq3^;vHTs}Hgcp`cw&gd7#N}nAFe3cM1TF%vKbKSffd&~FG9y$gLyr{#to)nxz5cCASEzQ}gz8O)phtHuKOW6p z@EQF(R>j%~P63Wfosrz8p(F=D|Mff~chUGn(<=CQbSiZ{t!e zeDU-pPsLgtc#d`3PYr$i*AaT!zF#23htIG&?QfcUk+@k$LZI}v+js|yuGmE!PvAV3 ztzh90rK-0L6P}s?1QH`Ot@ilbgMBzWIs zIs6K<_NL$O4lwR%zH4oJ+}JJp-bL6~%k&p)NGDMNZX7)0kni&%^sH|T?A)`z z=adV?!qnWx^B$|LD3BaA(G=ePL1+}8iu^SnnD;VE1@VLHMVdSN9$d)R(Wk{JEOp(P zm3LtAL$b^*JsQ0W&eLaoYag~=fRRdI>#FaELCO7L>zXe6w*nxN$Iy*Q*ftHUX0+N- zU>{D_;RRVPbQ?U+$^%{lhOMKyE5>$?U1aEPist+r)b47_LehJGTu>TcgZe&J{ z{q&D{^Ps~z7|zj~rpoh2I_{gAYNoCIJmio3B}$!5vTF*h$Q*vFj~qbo%bJCCRy509 zHTdDh_HYH8Zb9`}D5;;J9fkWOQi%Y$B1!b9+ESj+B@dtAztlY2O3NE<6HFiqOF&p_ zW-K`KiY@RPSY-p9Q99}Hcd05DT79_pfb{BV7r~?9pWh=;mcKBLTen%THFPo2NN~Nf zriOtFnqx}rtO|A6k!r6 zf-z?y-UD{dT0kT9FJ`-oWuPHbo+3wBS(}?2ql(+e@VTExmfnB*liCb zmeI+v5*+W_L;&kQN^ChW{jE0Mw#0Tfs}`9bk3&7UjxP^Ke(%eJu2{VnW?tu7Iqecm zB5|=-QdzK$=h50~{X3*w4%o1FS_u(dG2s&427$lJ?6bkLet}yYXCy)u_Io1&g^c#( z-$yYmSpxz{>BL;~c+~sxJIe1$7eZI_9t`eB^Pr0)5CuA}w;;7#RvPq|H6!byRzIJG ziQ7a4y_vhj(AL`8PhIm9edCv|%TX#f50lt8+&V+D4<}IA@S@#f4xId80oH$!_!q?@ zFRGGg2mTv&@76P7aTI{)Hu%>3QS_d)pQ%g8BYi58K~m-Ov^7r8BhX7YC1D3vwz&N8{?H*_U7DI?CI)+et?q|eGu>42NJ?K4SY zD?kc>h@%4IqNYuQ8m10+8xr2HYg2qFNdJl=Tmp&ybF>1>pqVfa%SsV*BY$d6<@iJA ziyvKnZ(~F9xQNokBgMci#pnZ}Igh0@S~cYcU_2Jfuf|d3tuH?ZSSYBfM(Y3-JBsC|S9c;# zyIMkPxgrq};0T09pjj#X?W^TFCMf1-9P{)g88;NDI+S4DXe>7d3Mb~i-h&S|Jy{J< zq3736$bH?@{!amD!1Ys-X)9V=#Z={fzsjVYMX5BG6%}tkzwC#1nQLj1y1f#}8**4Y zAvDZHw8)N)8~oWC88CgzbwOrL9HFbk4}h85^ptuu7A+uc#$f^9`EWv1Vr{5+@~@Uv z#B<;-nt;)!k|fRIg;2DZ(A2M2aC65kOIov|?Mhi1Sl7YOU4c$T(DoRQIGY`ycfkn% zViHzL;E*A{`&L?GP06Foa38+QNGA zw3+Wqs(@q+H{XLJbwZzE(omw%9~LPZfYB|NF5%j%E5kr_xE0u;i?IOIchn~VjeDZ) zAqsqhP0vu2&Tbz3IgJvMpKbThC-@=nk)!|?MIPP>MggZg{cUcKsP8|N#cG5 zUXMXxcXBF9`p>09IR?x$Ry3;q@x*%}G#lnB1}r#!WL88I@uvm}X98cZ8KO&cqT1p> z+gT=IxPsq%n4GWgh-Bk8E4!~`r@t>DaQKsjDqYc&h$p~TCh8_Mck5UB84u6Jl@kUZCU9BA-S!*bf>ZotFX9?a_^y%)yH~rsAz0M5#^Di80_tgoKw(egN z`)#(MqAI&A84J#Z<|4`Co8`iY+Cv&iboMJ^f9ROUK0Lm$;-T*c;TCTED_0|qfhlcS zv;BD*$Zko#nWPL}2K8T-?4}p{u)4xon!v_(yVW8VMpxg4Kh^J6WM{IlD{s?%XRT8P|yCU`R&6gwB~ zg}{At!iWCzOH37!ytcPeC`(({ovP7M5Y@bYYMZ}P2Z3=Y_hT)4DRk}wfeIo%q*M9UvXYJq!-@Ly79m5aLD{hf@BzQB>FdQ4mw z6$@vzSKF^Gnzc9vbccii)==~9H#KW<6)Uy1wb~auBn6s`ct!ZEos`WK8e2%<00b%# zY9Nvnmj@V^K(a_38dw-S*;G-(i(ETuIwyirs?$FFW@|66a38k+a%GLmucL%Wc8qk3 z?h_4!?4Y-xt)ry)>J`SuY**fuq2>u+)VZ+_1Egzctb*xJ6+7q`K$^f~r|!i?(07CD zH!)C_uerf-AHNa?6Y61D_MjGu*|wcO+ZMOo4q2bWpvjEWK9yASk%)QhwZS%N2_F4& z16D18>e%Q1mZb`R;vW{+IUoKE`y3(7p zplg5cBB)dtf^SdLd4n60oWie|(ZjgZa6L*VKq02Aij+?Qfr#1z#fwh92aV-HGd^_w zsucG24j8b|pk>BO7k8dS86>f-jBP^Sa}SF{YNn=^NU9mLOdKcAstv&GV>r zLxKHPkFxpvE8^r@MSF6UA}cG`#yFL8;kA7ccH9D=BGBtW2;H>C`FjnF^P}(G{wU;G z!LXLCbPfsGeLCQ{Ep$^~)@?v`q(uI`CxBY44osPcq@(rR-633!qa zsyb>?v%@X+e|Mg`+kRL*(;X>^BNZz{_kw5+K;w?#pReiw7eU8_Z^hhJ&fj80XQkuU z39?-z)6Fy$I`bEiMheS(iB6uLmiMd1i)cbK*9iPpl+h4x9ch7x- z1h4H;W_G?|)i`z??KNJVwgfuAM=7&Apd3vm#AT8uzQZ!NII}}@!j)eIfn53h{NmN7 zAKG6SnKP%^k&R~m5#@_4B@V?hYyHkm>0SQ@PPiw*@Tp@UhP-?w@jW?nxXuCipMW=L zH*5l*d@+jXm0tIMP_ec6Jcy6$w(gKK@xBX8@%oPaSyG;13qkFb*LuVx3{AgIyy&n3 z@R2_DcEn|75_?-v5_o~%xEt~ONB>M~tpL!nOVBLPN&e5bn5>+7o0?Nm|EGJ5 zmUbF{u|Qn?cu5}n4@9}g(G1JxtzkKv(tqwm_?1`?YSVA2IS4WI+*(2D*wh&6MIEhw z+B+2U<&E&|YA=3>?^i6)@n1&&;WGHF-pqi_sN&^C9xoxME5UgorQ_hh1__zzR#zVC zOQt4q6>ME^iPJ37*(kg4^=EFqyKH@6HEHXy79oLj{vFqZGY?sVjk!BX^h$SFJlJnv z5uw~2jLpA)|0=tp>qG*tuLru?-u`khGG2)o{+iDx&nC}eWj3^zx|T`xn5SuR;Aw8U z`p&>dJw`F17@J8YAuW4=;leBE%qagVTG5SZdh&d)(#ZhowZ|cvWvGMMrfVsbg>_~! z19fRz8CSJdrD|Rl)w!uznBF&2-dg{>y4l+6(L(vzbLA0Bk&`=;oQQ>(M8G=3kto_) zP8HD*n4?MySO2YrG6fwSrVmnesW+D&fxjfEmp=tPd?RKLZJcH&K(-S+x)2~QZ$c(> zru?MND7_HPZJVF%wX(49H)+~!7*!I8w72v&{b={#l9yz+S_aVPc_So%iF8>$XD1q1 zFtucO=rBj0Ctmi0{njN8l@}!LX}@dwl>3yMxZ;7 z0Ff2oh8L)YuaAGOuZ5`-p%Z4H@H$;_XRJQ|&(MhO78E|nyFa158gAxG^SP(vGi^+< zChY}o(_=ci3Wta#|K6MVljNe0T$%Q5ylx-v`R)r8;3+VUpp-)7T`-Y&{Zk z*)1*2MW+_eOJtF5tCMDV`}jg-R(_IzeE9|MBKl;a7&(pCLz}5<Zf+)T7bgNUQ_!gZtMlw=8doE}#W+`Xp~1DlE=d5SPT?ymu!r4z%&#A-@x^=QfvDkfx5-jz+h zoZ1OK)2|}_+UI)i9%8sJ9X<7AA?g&_Wd7g#rttHZE;J*7!e5B^zdb%jBj&dUDg4&B zMMYrJ$Z%t!5z6=pMGuO-VF~2dwjoXY+kvR>`N7UYfIBMZGP|C7*O=tU z2Tg_xi#Q3S=1|=WRfZD;HT<1D?GMR%5kI^KWwGrC@P2@R>mDT^3qsmbBiJc21kip~ zZp<7;^w{R;JqZ)C4z-^wL=&dBYj9WJBh&rd^A^n@07qM$c+kGv^f+~mU5_*|eePF| z3wDo-qaoRjmIw<2DjMTG4$HP{z54_te_{W^gu8$r=q0JgowzgQPct2JNtWPUsjF8R zvit&V8$(;7a_m%%9TqPkCXYUp&k*MRcwr*24>hR! z$4c#E=PVE=P4MLTUBM z7#*RDe0}=B)(3cvNpOmWa*eH#2HR?NVqXdJ=hq);MGD07JIQQ7Y0#iD!$C+mk7x&B zMwkS@H%>|fmSu#+ zI!}Sb(%o29Vkp_Th>&&!k7O>Ba#Om~B_J{pT7BHHd8(Ede(l`7O#`_}19hr_?~JP9 z`q(`<)y>%)x;O7)#-wfCP{?llFMoH!)ZomgsOYFvZ1DxrlYhkWRw#E-#Qf*z@Y-EQ z1~?_=c@M4DO@8AzZ2hKvw8CgitzI9yFd&N1-{|vP#4IqYb*#S0e3hrjsEGlnc4xwk z4o!0rxpUt8j&`mJ8?+P8G{m^jbk)bo_UPM+ifW*y-A*et`#_Ja_3nYyRa9fAG1Xr5 z>#AM_@PY|*u)DGRWJihZvgEh#{*joJN28uN7;i5{kJ*Gb-TERfN{ERe_~$Es~NJCpdKLRvdj4658uYYx{ng7I<6j~w@p%F<7a(Ssib|j z51;=Py(Nu*#hnLx@w&8X%=jrADn3TW>kplnb zYbFIWWVQXN7%Cwn6KnR)kYePEBmvM45I)UJb$)ninpdYg3a5N6pm_7Q+9>!_^xy?k za8@tJ@OOs-pRAAfT>Nc2x=>sZUs2!9Dwa%TTmDggH4fq(x^MW>mcRyJINlAqK$YQCMgR8`>6=Sg$ zFnJZsA8xUBXIN3i70Q%8px@yQPMgVP=>xcPI38jNJK<=6hC={a07+n@R|$bnhB)X$ z(Zc%tadp70vBTnW{OUIjTMe38F}JIH$#A}PB&RosPyFZMD}q}5W%$rh>5#U;m`z2K zc(&WRxx7DQLM-+--^w*EWAIS%bi>h587qkwu|H=hma3T^bGD&Z!`u(RKLeNZ&pI=q$|HOcji(0P1QC!YkAp*u z3%S$kumxR}jU<@6`;*-9=5-&LYRA<~uFrwO3U0k*4|xUTp4ZY7;Zbjx|uw&BWU$zK(w55pWa~#=f$c zNDW0O68N!xCy>G}(CX=;8hJLxAKn@Aj(dbZxO8a$+L$jK8$N-h@4$i8)WqD_%Snh4 zR?{O%k}>lr>w$b$g=VP8mckcCrjnp>uQl5F_6dPM8FWRqs}h`DpfCv20uZhyY~tr8 zkAYW4#yM;*je)n=EAb(q@5BWD8b1_--m$Q-3wbh1hM{8ihq7UUQfg@)l06}y+#=$( z$x>oVYJ47zAC^>HLRE-!HitjUixP6!R98WU+h>zct7g4eD;Mj#FL*a!VW!v-@b(Jv zj@@xM5noCp5%Vk3vY{tyI#oyDV7<$`KG`tktVyC&0DqxA#>V;-3oH%NW|Q&=UQ&zU zXNIT67J4D%5R1k#bW0F}TD`hlW7b)-=-%X4;UxQ*u4bK$mTAp%y&-(?{sXF%e_VH6 zTkt(X)SSN|;8q@8XX6qfR;*$r#HbIrvOj*-5ND8RCrcw4u8D$LXm5zlj@E5<3S0R# z??=E$p{tOk96$SloZ~ARe5`J=dB|Nj?u|zy2r(-*(q^@YwZiTF@QzQyPx_l=IDKa) zqD@0?IHJqSqZ_5`)81?4^~`yiGh6>7?|dKa8!e|}5@&qV!Iu9<@G?E}Vx9EzomB3t zEbMEm$TKGwkHDpirp;FZD#6P5qIlQJ8}rf;lHoz#h4TFFPYmS3+8(13_Mx2`?^=8S z|0)0&dQLJTU6{b%*yrpQe#OKKCrL8}YKw+<#|m`SkgeoN69TzIBQOl_Yg)W*w?NW) z*WxhEp$zQBBazJSE6ygu@O^!@Fr46j=|K`Mmb~xbggw7<)BuC@cT@Bwb^k?o-A zKX^9AyqR?zBtW5UA#siILztgOp?r4qgC`9jYJG_fxlsVSugGprremg-W(K0{O!Nw-DN%=FYCyfYA3&p*K>+|Q}s4rx#CQK zNj^U;sLM#q8}#|PeC$p&jAjqMu(lkp-_50Y&n=qF9`a3`Pr9f;b`-~YZ+Bb0r~c+V z*JJ&|^T{}IHkwjNAaM^V*IQ;rk^hnnA@~?YL}7~^St}XfHf6OMMCd9!vhk#gRA*{L zp?&63axj|Si%^NW05#87zpU_>QpFNb+I00v@cHwvdBn+Un)n2Egdt~LcWOeBW4Okm zD$-e~RD+W|UB;KQ;a7GOU&%p*efGu2$@wR74+&iP8|6#_fmnh^WcJLs)rtz{46);F z4v0OL{ZP9550>2%FE(;SbM*#sqMl*UXOb>ch`fJ|(*bOZ9=EB1+V4fkQ)hjsm3-u^Pk-4ji_uDDHdD>84tER!MvbH`*tG zzvbhBR@}Yd`azQGavooV=<WbvWLlO#x`hyO34mKcxrGv=`{ssnP=0Be5#1B;Co9 zh{TR>tjW2Ny$ZxJpYeg57#0`GP#jxDCU0!H15nL@@G*HLQcRdcsUO3sO9xvtmUcc{F*>FQZcZ5bgwaS^k-j5mmt zI7Z{Xnoml|A(&_{imAjK!kf5>g(oDqDI4C{;Bv162k8sFNr;!qPa2LPh>=1n z=^_9)TsLDvTqK7&*Vfm5k;VXjBW^qN3Tl&}K=X5)oXJs$z3gk0_+7`mJvz{pK|FVs zHw!k&7xVjvY;|(Py<;J{)b#Yjj*LZO7x|~pO4^MJ2LqK3X;Irb%nf}L|gck zE#55_BNsy6m+W{e zo!P59DDo*s@VIi+S|v93PwY6d?CE=S&!JLXwE9{i)DMO*_X90;n2*mPDrL%{iqN!?%-_95J^L z=l<*{em(6|h7DR4+4G3Wr;4*}yrBkbe3}=p7sOW1xj!EZVKSMSd;QPw>uhKK z#>MlS@RB@-`ULv|#zI5GytO{=zp*R__uK~R6&p$q{Y{iNkg61yAgB8C^oy&``{~FK z8hE}H&nIihSozKrOONe5Hu?0Zy04U#0$fB7C6y~?8{or}KNvP)an=QP&W80mj&8WL zEZQF&*FhoMMG6tOjeiCIV;T{I>jhi9hiUwz?bkX3NS-k5eWKy)Mo_orMEg4sV6R6X&i-Q%JG;Esl+kLpn@Bsls9O|i9z`tKB^~1D5)RIBB&J<6T@a4$pUvh$IR$%ubH)joi z!7>ON0DPwx=>0DA>Bb^c?L8N0BBrMl#oDB+GOXJh;Y&6I)#GRy$W5xK%a;KS8BrER zX)M>Rdoc*bqP*L9DDA3lF%U8Yzb6RyIsW@}IKq^i7v&{LeIc=*ZHIbO68x=d=+0T( zev=DT9f|x!IWZNTB#N7}V4;9#V$%Wo0%g>*!MdLOEU>My0^gni9ocID{$g9ytD!gy zKRWT`DVN(lcYjR|(}f0?zgBa3SwunLfAhx><%u0uFkrdyqlh8_g zDKt#R6rA2(Vm2LW_>3lBNYKG_F{TEnnKWGGC15y&OebIRhFL4TeMR*v9i0wPoK#H< zu4){s4K&K)K(9~jgGm;H7lS7y_RYfS;&!Oj5*eqbvEcW^a*i67nevzOZxN6F+K~A%TYEtsAVsR z@J=1hc#Dgs7J2^FL|qV&#WBFQyDtEQ2kPO7m2`)WFhqAob)Y>@{crkil6w9VoA?M6 zADGq*#-hyEVhDG5MQj677XmcWY1_-UO40QEP&+D)rZoYv^1B_^w7zAvWGw&pQyCyx zD|ga$w!ODOxxGf_Qq%V9Z7Q2pFiUOIK818AGeZ-~*R zI1O|SSc=3Z?#61Rd|AXx2)K|F@Z1@x!hBBMhAqiU)J=U|Y)T$h3D?ZPPQgkSosnN! zIqw-t$0fqsOlgw3TlHJF*t$Q@bg$9}A3X=cS@-yU3_vNG_!#9}7=q7!LZ?-%U26W4 z$d>_}*s1>Ac%3uFR;tnl*fNlylJ)}r2^Q3&@+is3BIv<}x>-^_ng;jhdaM}6Sg3?p z0jS|b%QyScy3OQ(V*~l~bK>VC{9@FMuW_JUZO?y(V?LKWD6(MXzh}M3r3{7b4eB(#`(q1m{>Be%_<9jw8HO!x#yF6vez$c#kR+}s zZO-_;25Sxngd(}){zv?ccbLqRAlo;yog>4LH&uZUK1n>x?u49C)Y&2evH5Zgt~666 z_2_z|H5AO5Iqxv_Bn~*y1qzRPcob<+Otod5Xd2&z=C;u+F}zBB@b^UdGdUz|s!H}M zXG%KiLzn3G?FZgdY&3pV$nSeY?ZbU^jhLz9!t0K?ep}EFNqR1@E!f*n>x*!uO*~JF zW9UXWrVgbX1n#76_;&0S7z}(5n-bqnII}_iDsNqfmye@)kRk`w~1 z6j4h4BxcPe6}v)xGm%=z2#tB#^KwbgMTl2I*$9eY|EWAHFc3tO48Xo5rW z5oHD!G4kb?MdrOHV=A+8ThlIqL8Uu+7{G@ zb)cGBm|S^Eh5= z^E^SZ=yeC;6nNCdztw&TdnIz}^Of@Ke*@vjt)0g>Y!4AJvWiL~e7+9#Ibhe)> ziNwh>gWZL@FlWc)wzihocz+%+@*euwXhW%Hb>l7tf8aJe5_ZSH1w-uG|B;9qpcBP0 zM`r1Hu#htOl)4Cl1c7oY^t0e4Jh$-I(}M5kzWqh{F=g&IM#JiC`NDSd@BCKX#y<P@Gwl$3a3w z6<(b|K(X5FIR22M)sy$4jY*F4tT{?wZRI+KkZFb<@j@_C316lu1hq2hA|1wCmR+S@ zRN)YNNE{}i_H`_h&VUT5=Y(lN%m?%QX;6$*1P}K-PcPx>*S55v)qZ@r&Vcic-sjkm z! z=nfW&X`}iAqa_H$H%z3Tyz5&P3%+;93_0b;zxLs)t#B|up}JyV$W4~`8E@+BHQ+!y zuIo-jW!~)MN$2eHwyx-{fyGjAWJ(l8TZtUp?wZWBZ%}krT{f*^fqUh+ywHifw)_F> zp76_kj_B&zFmv$FsPm|L7%x-j!WP>_P6dHnUTv!9ZWrrmAUteBa`rT7$2ixO;ga8U z3!91micm}{!Btk+I%pMgcKs?H4`i+=w0@Ws-CS&n^=2hFTQ#QeOmSz6ttIkzmh^`A zYPq)G1l3h(E$mkyr{mvz*MP`x+PULBn%CDhltKkNo6Uqg!vJ#DA@BIYr9TQ`18Un2 zv$}BYzOQuay9}w(?JV63F$H6WmlYPPpH=R|CPb%C@BCv|&Q|&IcW7*LX?Q%epS z`=CPx{1HnJ9_46^=0VmNb>8JvMw-@&+V8SDLRYsa>hZXEeRbtf5eJ>0@Ds47zIY{N z42EOP9J8G@MXXdeiPx#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91AfN*P1ONa40RR91AOHXW0IY^$^8f$?lu1NER9Fe^SItioK@|V(ZWmgL zZT;XwPgVuWM>O%^|Dc$VK;n&?9!&g5)aVsG8cjs5UbtxVVnQNOV~7Mrg3+jnU;rhE z6fhW6P)R>_eXrXo-RW*y6RQ_qcb^s1wTu$TwriZ`=JUws>vRi}5x}MW1MR#7p|gIWJlaLK;~xaN}b< z<-@=RX-%1mt`^O0o^~2=CD7pJ<<$Rp-oUL-7PuG>do^5W_Mk#unlP}6I@6NPxY`Q} zuXJF}!0l)vwPNAW;@5DjPRj?*rZxl zwn;A(cFV!xe^CUu+6SrN?xe#mz?&%N9QHf~=KyK%DoB8HKC)=w=3E?1Bqj9RMJs3U z5am3Uv`@+{jgqO^f}Lx_Jp~CoP3N4AMZr~4&d)T`R?`(M{W5WWJV^z~2B|-oih@h^ zD#DuzGbl(P5>()u*YGo*Och=oRr~3P1wOlKqI)udc$|)(bacG5>~p(y>?{JD7nQf_ z*`T^YL06-O>T(s$bi5v~_fWMfnE7Vn%2*tqV|?~m;wSJEVGkNMD>+xCu#um(7}0so zSEu7?_=Q64Q5D+fz~T=Rr=G_!L*P|(-iOK*@X8r{-?oBlnxMNNgCVCN9Y~ocu+?XA zjjovJ9F1W$Nf!{AEv%W~8oahwM}4Ruc+SLs>_I_*uBxdcn1gQ^2F8a*vGjgAXYyh? zWCE@c5R=tbD(F4nL9NS?$PN1V_2*WR?gjv3)4MQeizuH`;sqrhgykEzj z593&TGlm3h`sIXy_U<7(dpRXGgp0TB{>s?}D{fwLe>IV~exweOfH!qM@CV5kib!YA z6O0gvJi_0J8IdEvyP#;PtqP*=;$iI2t(xG2YI-e!)~kaUn~b{6(&n zp)?iJ`z2)Xh%sCV@BkU`XL%_|FnCA?cVv@h*-FOZhY5erbGh)%Q!Av#fJM3Csc_g zC2I6x%$)80`Tkz#KRA!h1FzY`?0es3t!rKDT5EjPe6B=BLPr7s0GW!if;Ip^!AmGW zL;$`Vdre+|FA!I4r6)keFvAx3M#1`}ijBHDzy)3t0gwjl|qC2YB`SSxFKHr(oY#H$)x{L$LL zBdLKTlsOrmb>T0wd=&6l3+_Te>1!j0OU8%b%N342^opKmT)gni(wV($s(>V-fUv@0p8!f`=>PxC|9=nu ze{ToBBj8b<{PLfXV$h8YPgA~E!_sF9bl;QOF{o6t&JdsX?}rW!_&d`#wlB6T_h;Xf zl{4Tz5>qjF4kZgjO7ZiLPRz_~U@k5%?=30+nxEh9?s78gZ07YHB`FV`4%hlQlMJe@J`+e(qzy+h(9yY^ckv_* zb_E6o4p)ZaWfraIoB2)U7_@l(J0O%jm+Or>8}zSSTkM$ASG^w3F|I? z$+eHt7T~04(_WfKh27zqS$6* zzyy-ZyqvSIZ0!kkSvHknm_P*{5TKLQs8S6M=ONuKAUJWtpxbL#2(_huvY(v~Y%%#~ zYgsq$JbLLprKkV)32`liIT$KKEqs$iYxjFlHiRNvBhxbDg*3@Qefw4UM$>i${R5uB zhvTgmqQsKA{vrKN;TSJU2$f9q=y{$oH{<)woSeV>fkIz6D8@KB zf4M%v%f5U2?<8B(xn}xV+gWP?t&oiapJhJbfa;agtz-YM7=hrSuxl8lAc3GgFna#7 zNjX7;`d?oD`#AK+fQ=ZXqfIZFEk{ApzjJF0=yO~Yj{7oQfXl+6v!wNnoqwEvrs81a zGC?yXeSD2NV!ejp{LdZGEtd1TJ)3g{P6j#2jLR`cpo;YX}~_gU&Gd<+~SUJVh+$7S%`zLy^QqndN<_9 zrLwnXrLvW+ew9zX2)5qw7)zIYawgMrh`{_|(nx%u-ur1B7YcLp&WFa24gAuw~& zKJD3~^`Vp_SR$WGGBaMnttT)#fCc^+P$@UHIyBu+TRJWbcw4`CYL@SVGh!X&y%!x~ zaO*m-bTadEcEL6V6*{>irB8qT5Tqd54TC4`h`PVcd^AM6^Qf=GS->x%N70SY-u?qr>o2*OV7LQ=j)pQGv%4~z zz?X;qv*l$QSNjOuQZ>&WZs2^@G^Qas`T8iM{b19dS>DaXX~=jd4B2u`P;B}JjRBi# z_a@&Z5ev1-VphmKlZEZZd2-Lsw!+1S60YwW6@>+NQ=E5PZ+OUEXjgUaXL-E0fo(E* zsjQ{s>n33o#VZm0e%H{`KJi@2ghl8g>a~`?mFjw+$zlt|VJhSU@Y%0TWs>cnD&61fW4e0vFSaXZa4-c}U{4QR8U z;GV3^@(?Dk5uc@RT|+5C8-24->1snH6-?(nwXSnPcLn#X_}y3XS)MI_?zQ$ZAuyg+ z-pjqsw}|hg{$~f0FzmmbZzFC0He_*Vx|_uLc!Ffeb8#+@m#Z^AYcWcZF(^Os8&Z4g zG)y{$_pgrv#=_rV^D|Y<_b@ICleUv>c<0HzJDOsgJb#Rd-Vt@+EBDPyq7dUM9O{Yp zuGUrO?ma2wpuJuwl1M=*+tb|qx7Doj?!F-3Z>Dq_ihFP=d@_JO;vF{iu-6MWYn#=2 zRX6W=`Q`q-+q@Db|6_a1#8B|#%hskH82lS|9`im0UOJn?N#S;Y0$%xZw3*jR(1h5s z?-7D1tnIafviko>q6$UyqVDq1o@cwyCb*})l~x<@s$5D6N=-Uo1yc49p)xMzxwnuZ zHt!(hu-Ek;Fv4MyNTgbW%rPF*dB=;@r3YnrlFV{#-*gKS_qA(G-~TAlZ@Ti~Yxw;k za1EYyX_Up|`rpbZ0&Iv#$;eC|c0r4XGaQ-1mw@M_4p3vKIIpKs49a8Ns#ni)G314Z z8$Ei?AhiT5dQGWUYdCS|IC7r z=-8ol>V?u!n%F*J^^PZ(ONT&$Ph;r6X;pj|03HlDY6r~0g~X#zuzVU%a&!fs_f|m?qYvg^Z{y?9Qh7Rn?T*F%7lUtA6U&={HzhYEzA`knx1VH> z{tqv?p@I(&ObD5L4|YJV$QM>Nh-X3cx{I&!$FoPC_2iIEJfPk-$;4wz>adRu@n`_y z_R6aN|MDHdK;+IJmyw(hMoDCFCQ(6?hCAG5&7p{y->0Uckv# zvooVuu04$+pqof777ftk<#42@KQ((5DPcSMQyzGOJ{e9H$a9<2Qi_oHjl{#=FUL9d z+~0^2`tcvmp0hENwfHR`Ce|<1S@p;MNGInXCtHnrDPXCKmMTZQ{HVm_cZ>@?Wa6}O zHsJc7wE)mc@1OR2DWY%ZIPK1J2p6XDO$ar`$RXkbW}=@rFZ(t85AS>>U0!yt9f49^ zA9@pc0P#k;>+o5bJfx0t)Lq#v4`OcQn~av__dZ-RYOYu}F#pdsl31C^+Qgro}$q~5A<*c|kypzd} ziYGZ~?}5o`S5lw^B{O@laad9M_DuJle- z*9C7o=CJh#QL=V^sFlJ0c?BaB#4bV^T(DS6&Ne&DBM_3E$S^S13qC$7_Z?GYXTpR@wqr70wu$7+qvf-SEUa5mdHvFbu^7ew!Z1a^ zo}xKOuT*gtGws-a{Tx}{#(>G~Y_h&5P@Q8&p!{*s37^QX_Ibx<6XU*AtDOIvk|^{~ zPlS}&DM5$Ffyu-T&0|KS;Wnaqw{9DB&B3}vcO14wn;)O_e@2*9B&0I_ zZz{}CMxx`hv-XouY>^$Y@J(_INeM>lIQI@I>dBAqq1)}?Xmx(qRuX^i4IV%=MF306 z9g)i*79pP%_7Ex?m6ag-4Tlm=Z;?DQDyC-NpUIb#_^~V_tsL<~5<&;Gf2N+p?(msn zzUD~g>OoW@O}y0@Z;RN)wjam`CipmT&O7a|YljZqU=U86 zedayEdY)2F#BJ6xvmW8K&ffdS*0!%N<%RB!2~PAT4AD*$W7yzHbX#Eja9%3aD+Ah2 zf#T;XJW-GMxpE=d4Y>}jE=#U`IqgSoWcuvgaWQ9j1CKzG zDkoMDDT)B;Byl3R2PtC`ip=yGybfzmVNEx{xi_1|Cbqj>=FxQc{g`xj6fIfy`D8fA z##!-H_e6o0>6Su&$H2kQTujtbtyNFeKc}2=|4IfLTnye#@$Au7Kv4)dnA;-fz@D_8 z)>irG$)dkBY~zX zC!ZXLy*L3xr6cb70QqfN#Q>lFIc<>}>la4@3%7#>a1$PU&O^&VszpxLC%*!m-cO{B z-Y}rQr4$84(hvy#R69H{H zJ*O#uJh)TF6fbXy;fZkk%X=CjsTK}o5N1a`d7kgYYZLPxsHx%9*_XN8VWXEkVJZ%A z1A+5(B;0^{T4aPYr8%i@i32h)_)|q?9vws)r+=5u)1YNftF5mknwfd*%jXA2TeP}Z zQ!m?xJ3?9LpPM?_A3$hQ1QxNbR&}^m z!F999s?p^ak#C4NM_x2p9FoXWJ$>r?lJ)2bG)sX{gExgLA2s5RwHV!h6!C~d_H||J z>9{E{mEv{Z1z~65Vix@dqM4ZqiU|!)eWX$mwS5mLSufxbpBqqS!jShq1bmwCR6 z4uBri7ezMeS6ycaXPVu(i2up$L; zjpMtB`k~WaNrdgM_R=e#SN?Oa*u%nQy01?()h4A(jyfeNfx;5o+kX?maO4#1A^L}0 zYNyIh@QVXIFiS0*tE}2SWTrWNP3pH}1Vz1;E{@JbbgDFM-_Mky^7gH}LEhl~Ve5PexgbIyZ(IN%PqcaV@*_`ZFb=`EjspSz%5m2E34BVT)d=LGyHVz@-e%9Ova*{5@RD;7=Ebkc2GP%pIP^P7KzKapnh`UpH?@h z$RBpD*{b?vhohOKf-JG3?A|AX|2pQ?(>dwIbWhZ38GbTm4AImRNdv_&<99ySX;kJ| zo|5YgbHZC#HYgjBZrvGAT4NZYbp}qkVSa;C-LGsR26Co+i_HM&{awuO9l)Ml{G8zD zs$M8R`r+>PT#Rg!J(K6T4xHq7+tscU(}N$HY;Yz*cUObX7J7h0#u)S7b~t^Oj}TBF zuzsugnst;F#^1jm>22*AC$heublWtaQyM6RuaquFd8V#hJ60Z3j7@bAs&?dD#*>H0SJaDwp%U~27>zdtn+ z|8sZzklZy$%S|+^ie&P6++>zbrq&?+{Yy11Y>@_ce@vU4ZulS@6yziG6;iu3Iu`M= zf3rcWG<+3F`K|*(`0mE<$89F@jSq;j=W#E>(R}2drCB7D*0-|D;S;(;TwzIJkGs|q z2qH{m_zZ+el`b;Bv-#bQ>}*VPYC|7`rgBFf2oivXS^>v<&HHTypvd4|-zn|=h=TG{ z05TH2+{T%EnADO>3i|CB zCu60#qk`}GW{n4l-E$VrqgZGbI zbQW690KgZt4U3F^5@bdO1!xu~p@7Y~*_FfWg2CdvED5P5#w#V46LH`<&V0{t&Ml~4 zHNi7lIa+#i+^Z6EnxO7KJQw)wD)4~&S-Ki8)3=jpqxmx6c&zU&<&h%*c$I(5{1HZT zc9WE}ijcWJiVa^Q^xC|WX0habl89qycOyeViIbi(LFsEY_8a|+X^+%Qv+W4vzj>`y zpuRnjc-eHNkvXvI_f{=*FX=OKQzT?bck#2*qoKTHmDe>CDb&3AngA1O)1b}QJ1Tun z_<@yVEM>qG7664Pa@dzL@;DEh`#?yM+M|_fQS<7yv|i*pw)|Z8)9IR+QB7N3v3K(wv4OY*TXnH&X0nQB}?|h2XQeGL^q~N7N zDFa@x0E(UyN7k9g%IFq7Sf+EAfE#K%%#`)!90_)Dmy3Bll&e1vHQyPA87TaF(xbqMpDntVp?;8*$87STop$!EAnGhZ?>mqPJ(X zFsr336p3P{PpZCGn&^LP(JjnBbl_3P3Kcq+m}xVFMVr1zdCPJMDIV_ki#c=vvTwbU z*gKtfic&{<5ozL6Vfpx>o2Tts?3fkhWnJD&^$&+Mh5WGGyO7fG@6WDE`tEe(8<;+q z@Ld~g08XDzF8xtmpIj`#q^(Ty{Hq>t*v`pedHnuj(0%L(%sjkwp%s}wMd!a<*L~9T z9MM@s)Km~ogxlqEhIw5(lc46gCPsSosUFsgGDr8H{mj%OzJz{N#;bQ;KkV+ZWA1(9 zu0PXzyh+C<4OBYQ0v3z~Lr;=C@qmt8===Ov2lJ1=DeLfq*#jgT{YQCuwz?j{&3o_6 zsqp2Z_q-YWJg?C6=!Or|b@(zxTlg$ng2eUQzuC<+o)k<6^9ju_Z*#x+oioZ5T8Z_L zz9^A1h2eFS0O5muq8;LuDKwOv4A9pxmOjgb6L*i!-(0`Ie^d5Fsgspon%X|7 zC{RRXEmYn!5zP9XjG*{pLa)!2;PJB2<-tH@R7+E1cRo=Wz_5Ko8h8bB$QU%t9#vol zAoq?C$~~AsYC|AQQ)>>7BJ@{Cal)ZpqE=gjT+Juf!RD-;U0mbV1ED5PbvFD6M=qj1 zZ{QERT5@(&LQ~1X9xSf&@%r|3`S#ZCE=sWD`D4YQZ`MR`G&s>lN{y2+HqCfvgcw3E z-}Kp(dfGG?V|97kAHQX+OcKCZS`Q%}HD6u*e$~Ki&Vx53&FC!x94xJd4F2l^qQeFO z?&JdmgrdVjroKNJx64C!H&Vncr^w zzR#XI}Dn&o8jB~_YlVM^+#0W(G1LZH5K^|uYT@KSR z^Y5>^*Bc45E1({~EJB(t@4n9gb-eT#s@@7)J^^<_VV`Pm!h7av8XH6^5zO zOcQBhTGr;|MbRsgxCW69w{bl4EW#A~);L?d4*y#j8Ne=Z@fmJP0k4{_cQ~KA|Y#_#BuUiYx8y*za3_6Y}c=GSe7(2|KAfhdzud!Zq&}j)=o4 z7R|&&oX7~e@~HmyOOsCCwy`AR+deNjZ3bf6ijI_*tKP*_5JP3;0d;L_p(c>W1b%sG zJ*$wcO$ng^aW0E(5ldckV9unU7}OB7s?Wx(761?1^&8tA5y0_(ieV>(x-e@}1`lWC z-YH~G$D>#ud!SxK2_Iw{K%92=+{4yb-_XC>ji&j7)1ofp(OGa4jjF;Hd*`6YQL+Jf zffg+6CPc8F@EDPN{Kn96yip;?g@)qgkPo^nVKFqY?8!=h$G$V=<>%5J&iVjwR!7H0 z$@QL|_Q81I;Bnq8-5JyNRv$Y>`sWl{qhq>u+X|)@cMlsG!{*lu?*H`Tp|!uv z9oEPU1jUEj@ueBr}%Y)7Luyi)REaJV>eQ{+uy4uh0ep0){t;OU8D*RZ& zE-Z-&=BrWQLAD^A&qut&4{ZfhqK1ZQB0fACP)=zgx(0(o-`U62EzTkBkG@mXqbjXm z>w`HNeQM?Is&4xq@BB(K;wv5nI6EXas)XXAkUuf}5uSrZLYxRCQPefn-1^#OCd4aO zzF=dQ*CREEyWf@n6h7(uXLNgJIwGp#Xrsj6S<^bzQ7N0B0N{XlT;`=m9Olg<>KL}9 zlp>EKTx-h|%d1Ncqa=wnQEuE;sIO-f#%Bs?g4}&xS?$9MG?n$isHky0caj za8W+B^ERK#&h?(x)7LLpOqApV5F>sqB`sntV%SV>Q1;ax67qs+WcssfFeF3Xk=e4^ zjR2^(%K1oBq%0%Rf!y&WT;lu2Co(rHi|r1_uW)n{<7fGc-c=ft7Z0Q}r4W$o$@tQF#i?jDBwZ8h+=SC}3?anUp3mtRVv9l#H?-UD;HjTF zQ*>|}e=6gDrgI9p%c&4iMUkQa4zziS$bO&i#DI$Wu$7dz7-}XLk%!US^XUIFf2obO zFCTjVEtkvYSKWB;<0C;_B{HHs~ax_48^Cml*mjfBC5*7^HJZiLDir(3k&BerVIZF8zF;0q80eX8c zPN4tc+Dc5DqEAq$Y3B3R&XPZ=AQfFMXv#!RQnGecJONe0H;+!f^h5x0wS<+%;D}MpUbTNUBA}S2n&U59-_5HKr{L^jPsV8B^%NaH|tUr)mq=qCBv_- ziZ1xUp(ZzxUYTCF@C}To;u60?RIfTGS?#JnB8S8@j`TKPkAa)$My+6ziGaBcA@){d z91)%+v2_ba7gNecdj^8*I4#<11l!{XKl6s0zkXfJPxhP+@b+5ev{a>p*W-3*25c&} zmCf{g9mPWVQ$?Sp*4V|lT@~>RR)9iNdN^7KT@>*MU3&v^3e?=NTbG9!h6C|9zO097 zN{Qs6YwR-5$)~ z`b~qs`a1Dbx8P>%V=1XGjBptMf%P~sl1qbHVm1HYpY|-Z^Dar8^HqjIw}xaeRlsYa zJ_@Apy-??`gxPmb`m`0`z`#G7*_C}qiSZe~l2z65tE~IwMw$1|-u&t|z-8SxliH00 zlh1#kuqB56s+E&PWQ7Nz17?c}pN+A@-c^xLqh(j;mS|?>(Pf7(?qd z5q@jkc^nA&!K-}-1P=Ry0yyze0W!+h^iW}7jzC1{?|rEFFWbE^Yu7Y}t?jmP-D$f+ zmqFT7nTl0HL|4jwGm7w@a>9 zKD)V~+g~ysmei$OT5}%$&LK8?ib|8aY|>W3;P+0B;=oD=?1rg+PxKcP(d;OEzq1CKA&y#boc51P^ZJPPS)z5 zAZ)dd2$glGQXFj$`XBBJyl2y-aoBA8121JC9&~|_nY>nkmW>TLi%mWdn-^Jks-Jv| zSR*wij;A3Fcy8KsDjQ15?Z9oOj|Qw2;jgJiq>dxG(2I2RE- z$As!#zSFIskebqU2bnoM^N<4VWD2#>!;saPSsY8OaCCQqkCMdje$C?Sp%V}f2~tG5 z0whMYk6tcaABwu*x)ak@n4sMElGPX1_lmv@bgdI2jPdD|2-<~Jf`L`@>Lj7{<-uLQ zE3S_#3e10q-ra=vaDQ42QUY^@edh>tnTtpBiiDVUk5+Po@%RmuTntOlE29I4MeJI?;`7;{3e4Qst#i-RH6s;>e(Sc+ubF2_gwf5Qi%P!aa89fx6^{~A*&B4Q zKTF|Kx^NkiWx=RDhe<{PWXMQ;2)=SC=yZC&mh?T&CvFVz?5cW~ritRjG2?I0Av_cI z)=s!@MXpXbarYm>Kj0wOxl=eFMgSMc?62U#2gM^li@wKPK9^;;0_h7B>F>0>I3P`{ zr^ygPYp~WVm?Qbp6O3*O2)(`y)x>%ZXtztz zMAcwKDr=TCMY!S-MJ8|2MJCVNUBI0BkJV6?(!~W!_dC{TS=eh}t#X+2D>Kp&)ZN~q zvg!ogxUXu^y(P*;Q+y_rDoGeSCYxkaGPldDDx)k;ocJvvGO#1YKoQLHUf2h_pjm&1 zqh&!_KFH03FcJvSdfgUYMp=5EpigZ*8}7N_W%Ms^WSQ4hH`9>3061OEcxmf~TcYn5_oHtscWn zo5!ayj<_fZ)vHu3!A!7M;4y1QIr8YGy$P2qDD_4+T8^=^dB6uNsz|D>p~4pF3Nrb6 zcpRK*($<~JUqOya#M1=#IhOZ zG)W+rJS-x(6EoVz)P zsSo>JtnChdj9^);su%SkFG~_7JPM zEDz3gk2T7Y%x>1tWyia|op(ilEzvAujW?Xwlw>J6d7yEi8E zv30riR|a_MM%ZZX&n!qm0{2agq(s?x9E@=*tyT$nND+{Djpm7Rsy!+c$j+wqMwTOF zZL8BQ|I`<^bGW)5apO{lh(Asqen?_U`$_n0-Ob~Yd%^89oEe%9yGumQ_8Be+l2k+n zCxT%s?bMpv|AdWP7M1LQwLm|x+igA~;+iK-*+tClF&ueX_V}>=4gvZ01xpubQWXD_ zi?Un>&3=$fu)dgk-Z;0Ll}HK5_YM->l^Czrd0^cJ))(DwL2g3aZuza7ga9^|mT_70 z))}A}r1#-(9cxtn<9jGRwOB4hb9kK@YCgjfOM-90I$8@l=H^`K$cyhe2mTM|FY9vW znH~h)I<_aa#V1xmhk?Ng@$Jw-s%a!$BI4Us+Df+?J&gKAF-M`v}j`OWKP3>6`X`tEmhe#y*(Xm$_^Ybbs=%;L7h zp7q^C*qM}Krqsinq|WolR99>_!GL#Z71Hhz|IwQQv<>Ds09B?Je(lhI1(FInO8mc} zl$RyKCUmfku+Cd^8s0|t+e}5g7M{ZPJQH=UB3(~U&(w#Bz#@DTDHy>_UaS~AtN>4O zJ-I#U@R($fgupHebcpuEBX`SZ>kN!rW$#9>s{^3`86ZRQRtYTY)hiFm_9wU3c`SC8 z-5M%g)h}3Pt|wyj#F%}pGC@VL`9&>9P+_UbudCkS%y2w&*o})hBplrB*@Z?gel5q+ z%|*59(sR9GMk3xME}wd%&k?7~J)OL`rK#4d-haC7uaU8-L@?$K6(r<0e<;y83rK&` z3Q!1rD9WkcB8WBQ|WT|$u^lkr0UL4WH4EQTJyk@5gzHb18cOte4w zS`fLv8q;PvAZyY;*Go3Qw1~5#gP0D0ERla6M6#{; zr1l?bR}Nh+OC7)4bfAs(0ZD(axaw6j9v`^jh5>*Eo&$dAnt?c|Y*ckEORIiJXfGcM zEo`bmIq6rJm`XhkXR-^3d8^RTK2;nmVetHfUNugJG(4XLOu>HJA;0EWb~?&|0abr6 zxqVp@p=b3MN^|~?djPe!=eex(u!x>RYFAj|*T$cTi*Sd3Bme7Pri1tkK9N`KtRmXf zZYNBNtik97ct1R^vamQBfo9ZUR@k*LhIg8OR9d_{iv#t)LQV91^5}K5u{eyxwOFoU zHMVq$C>tfa@uNDW^_>EmO~WYQd(@!nKmAvSSIb&hPO|}g-3985t?|R&WZXvxS}Kt2i^eRe>WHb_;-K5cM4=@AN1>E&1c$k!w4O*oscx(f=<1K6l#8Exi)U(ZiZ zdr#YTP6?m1e1dOKysUjQ^>-MR={OuD00g6+(a^cvcmn#A_%Fh3Of%(qP5nvjS1=(> z|Ld8{u%(J}%2SY~+$4pjy{()5HN2MYUjg1X9umxOMFFPdM+IwOVEs4Z(olynvT%G) zt9|#VR}%O2@f6=+6uvbZv{3U)l;C{tuc zZ{K$rut=eS%3_~fQv^@$HV6#9)K9>|0qD$EV2$G^XUNBLM|5-ZmFF!KV)$4l^KVj@ zZ4fI}Knv*K%zPqK77}B-h_V{66VrmoZP2>@^euu8Rc}#qwRwt5uEBWcJJE5*5rT2t zA4Jpx`QQ~1Sh_n_a9x%Il!t1&B~J6p54zxAJx`REov${jeuL8h8x-z=?qwMAmPK5i z_*ES)BW(NZluu#Bmn1-NUKQip_X&_WzJy~J`WYxEJQ&Gu7DD< z&F9urE;}8S{x4{yB zaq~1Zrz%8)<`prSQv$eu5@1RY2WLu=waPTrn`WK%;G5(jt^FeM;gOdvXQjYhax~_> z{bS_`;t#$RYMu-;_Dd&o+LD<5Afg6v{NK?0d8dD5ohAN?QoocETBj?y{MB)jQ%UQ}#t3j&iL!qr@#6JEajR3@^k5wgLfI9S9dT2^f`2wd z%I#Q*@Ctk@w=(u)@QC}yBvUP&fFRR-uYKJ){Wp3&$s(o~W7OzgsUIPx0|ph2L1(r*_Pa@T@mcH^JxBjh09#fgo|W#gG7}|)k&uD1iZxb0 z@|Y)W79SKj9sS&EhmTD;uI#)FE6VwQ*YAr&foK$RI5H8_ripb$^=;U%gWbrrk4!5P zXDcyscEZoSH~n6VJu8$^6LE6)>+=o#Q-~*jmob^@191+Ot1w454e3)WMliLtY6~^w zW|n#R@~{5K#P+(w+XC%(+UcOrk|yzkEes=!qW%imu6>zjdb!B#`efaliKtN}_c!Jp zfyZa`n+Nx8;*AquvMT2;c8fnYszdDA*0(R`bsof1W<#O{v%O!1IO4WZe=>XBu_D%d zOwWDaEtX%@B>4V%f1+dKqcXT>m2!|&?}(GK8e&R=&w?V`*Vj)sCetWp9lr@@{xe6a zE)JL&;p}OnOO}Nw?vFyoccXT*z*?r}E8{uPtd;4<(hmX;d$rqJhEF}I+kD+m(ke;J z7Cm$W*CSdcD=RYEBhedg>tuT{PHqwCdDP*NkHv4rvQTXkzEn*Mb0oJz&+WfWIOS4@ zzpPJ|e%a-PIwOaOC7uQcHQ-q(SE(e@fj+7oC@34wzaBNaP;cw&gm{Z8yYX?V(lIv5 zKbg*zo1m5aGA4^lwJ|bAU=j3*d8S{vp!~fLFcK8s6%Ng55_qW_d*3R%e=34aDZPfD z&Le39j|ahp6E7B0*9OVdeMNrTErFatiE+=Z!XZ^tv0y%zZKXRTBuPyP&C{5(H?t)S zKV24_-TKpOmCPzU&by8R1Q5HY^@IDoeDA9MbgizgQ*F1Er~HVmvSU>vx}pZVQ&tr| zOtZl8vfY2#L<)gZ=ba&wG~EI*Vd?}lRMCf+!b5CDz$8~be-HKMo5omk$w7p4`Mym*IR8WiTz4^kKcUo^8Hkcsu14u z`Pkg`#-Y^A%CqJ0O@UF|caAulf68@(zhqp~YjzInh7qSN7Ov%Aj(Qz%{3zW|xubJ- ztNE_u_MO7Q_585r;xD?e=Er}@U1G@BKW5v$UM((eByhH2p!^g9W}99OD8VV@7d{#H zv)Eam+^K(5>-Ot~U!R$Um3prQmM)7DyK=iM%vy>BRX4#aH7*oCMmz07YB(EL!^%F7?CA#>zXqiYDhS;e?LYPTf(bte6B ztrfvDXYG*T;ExK-w?Knt{jNv)>KMk*sM^ngZ-WiUN;=0Ev^GIDMs=AyLg2V@3R z7ugNc45;4!RPxvzoT}3NCMeK$7j#q3r_xV(@t@OPRyoKBzHJ#IepkDsm$EJRxL)A* zf{_GQYttu^OXr$jHQn}zs$Eh|s|Z!r?Yi+bS-bi+PE*lH zo|6ztu6$r_?|B~S#m>imI!kQP9`6X426uHRri!wGcK;J;`%sFM(D#*Le~W*t2uH`Q z(HEO9-c_`mhA@4QhbW+tgtt9Pzx=_*3Kh~TB$SKmU4yx-Ay&)n%PZPKg#rD4H{%Ke zdMY@rf5EAFfqtrf?Vmk&N(_d-<=bvfOdPrYwY*;5%j@O6@O#Qj7LJTk-x3LN+dEKy+X z>~U8j3Ql`exr1jR>+S4nEy+4c2f{-Q!3_9)yY758tLGg7k^=nt<6h$YE$ltA+13S<}uOg#XHe6 zZHKdNsAnMQ_RIuB;mdoZ%RWpandzLR-BnjN2j@lkBbBd+?i ze*!5mC}!Qj(Q!rTu`KrRRqp22c=hF6<^v&iCDB`n7mHl;vdclcer%;{;=kA(PwdGG zdX#BWoC!leBC4);^J^tPkPbIe<)~nYb6R3u{HvC!NOQa?DC^Q`|_@ zcz;rk`a!4rSLAS>_=b@g?Yab4%=J3Cc7pRv8?_rHMl_aK*HSPU%0pG2Fyhef_biA!aW|-(( z*RIdG&Lmk(=(nk28Q1k1Oa$8Oa-phG%Mc6dT3>JIylcMMIc{&FsBYBD^n@#~>C?HG z*1&FpYVvXOU@~r2(BUa+KZv;tZ15#RewooEM0LFb>guQN;Z0EBFMFMZ=-m$a3;gVD z)2EBD4+*=6ZF?+)P`z@DOT;azK0Q4p4>NfwDR#Pd;no|{q_qB!zk1O8QojE;>zhPu z1Q=1z^0MYHo1*``H3ex|bW-Zy==5J4fE2;g6sq6YcXMYK5i|S^9(OSw#v!3^!EB<% zZF~J~CleS`V-peStyf*I%1^R88D;+8{{qN6-t!@gTARDg^w2`uSzFZbPQ!)q^oC}m zPo8VOQxq2BaIN`pAVFGu8!{p3}(+iZ`f4ck2ygVpEZMQW38nLpj3NQx+&sAkb8`}P3- zc>N*k6AG?r}bfO6_vccTuKX+*- z7W4Q#2``P0jIHYs)F>uG#AM#I6W2)!Nu2nD5{CRV_PmkDS2ditmbd#pggqEgAo%5oC?|CP zGa0CV)wA*ko!xC7pZYkqo{10CN_e00FX5SjWkI3?@XG}}bze!(&+k2$C-C`6temSk z_YyYpB^wh3woo`B zrMSTd4T?(X-jh`FeO76C(3xsOm9s2BP_b%ospg^!#*2*o9N;tf4(X9$qc_d(()yz5 zDk@1}u_Xd+86vy5RBs?LQCuYKCGPS;E4uFOi@V%1JTK&|eRf~lp$AV#;*#O}iRI2=i3rFL8{ zA^ptDZ0l6k-mq=hUJ0x$Y@J>UNfz~I5l63H(`~*v;qX`Z{zwsQQD-!wp0D&hyB8&Z z7$R07gIKGJ^%AvQ{4KM0edM39iFRx=P^6`!<1(s0t|JbB2tXs_B_IH9#ajH0C=-n+ z`nz`fKMBKLlf?2AC+|83M+0rqR%uhNGD;uKA6jOjp7YDe^4%0fRB<^bcjlS2KF~F; zu09wh1x0&4pG&76M;x8$u`b134t=dEPBn6PV|X29<#T4F1mxGF*HOgiWU8tN@cguI z_F@o+XL7FJztR63wC|j4x_DANzcX94r7Iz-O2x$({&qd*mdLG=-Rv)uZ}UlMR+F&q zU}=lkfb0p1>1Ho){o$@}mSKIV;h*$AND7~Dl)QzpFBlSM99Kx+F7GsVK5xcR? z_4Q(Z%cgk8ST}U;;=!LwyZVu^S$>B-Waeik%wzcKTIqeX=0FP(TGQ=nxi=dsS5BYF zl@?}NT!Y!Iyos^@v7XWXA{_bV~1lxz7gC?xuXxy0_?GaN!AhRRM5>)^t%&ODd;@HN5L{MD3 zc>i2keQZVm#?NrDwbfd}_<*5^U&w0zv~n-y8=GGN-!=_`FU^cM8oVCWRFxw?BM^YD zi=Vxz4q|jwPTg+?q7_XI)-S@gQkh>w0ZUB}a{^ z_i;`Y(~fvpI!vmW*A^|P7(6+@C4UeL2WATf{P1?H5rk`5{TL zcf!CgP6Mi{MvjZS)rfo7JLDZK7M7ANd$3`{j9baD*7{#Zu-33fOYUzjvtKzR2)_T1I1s7fe&z|=)QkX;=`zX8!Byw-veM#yr;|wjO^II>!B*B z0+w%;0(=*G3V@88t!}~zx)&do(uF=073Yeh*fEhZb3Vn>t!m(9p~Y_FdV3IgR)9eT z)~e9xpI%2deTWyHlXA(7srrfc_`7ACm!R>SoIgkuF8 z!wkOhrixFy9y@)GdxAntd!!7@=L_tFD2T5OdSUO)I%yj02le`qeQ=yKq$g^h)NG;# za(0J@#VBi^5YI|QI=rq{KlxwGabZJ0dKmfWDROkcM}lUN$@DV`K7fU?8CP2H23QPi zG?YF*=Vn=kTK*#Y_{AQN&oLju|0#E=fx%YVh>S{puu&K$b;BN*jIo@VYhqPiJPzzM>#kxoy0vW9i;ne2_BIG0zyRFp<3M(iY(%*M_>q0ulV2K}Tg zkG{EWKS{i%4DUuHi%DVKy%e+Q!~Uf`>>F6NgD{{I8~nO4!VgOvtFOc7(O)X`|7n*f zxBa4CJ-v9fUUH+`7sPVvpM_C*udZ@OTGTzx56QM5y~OlrZc&w9=)B?nmd@keRn+^= zvm~4sa5987LFDnU{(N|N zJAR8H@}p1fC+H(yTI4n#%~TbImMpuqYn9cQ<0QQ%=PzZItLkC*ef9WJUvfITKWh#D zc#__8`4am9%#NslIUw+<82#SR8AYG|woLfBg#!-&dqq}@P>|I0%lbdy0lSMmNe+}o zj0zZuFr6Wb?Y{Qy-S=|r`bdrDmhnmvkRnkdn`YCleU>Q$=je}LGhh>_QAj6aa_0Oc z%Swsmui;IRx7bN*=AAS@5yW&Y2hy;3&|HAiA8}!HT6!Z!RVn~MZg`RmI6&%#tBZDx zfD+y@Z~NWlk*4l13vmt3AK2wP!fQlnBbECL>?p)F?T)<`w&QN>cP_V>r7UTcsTaaP zTOb$f!P@zf$6>890NVKbIkG8rE?9!Y97sMSZjfF?A zYR8lp`LMoz~O?iaZN;gcX;LC-%Ia*R%A&SLx!YIf29?P+=XAAojK8!^OU*@?R&DK!#G_lsn!#;S375uZ&B0HH1|BO0R90$U>qs zSvHv>H~mAgNCcjo-e+;RjY6B9NCbQrZ|BHjTkehaU<9CSkdd>Vl*ifA2LNOP&R2Qdy3k3-TQ+ zbq=#vI43x`s=%~cGyN&y4Y!FxhwgDe@i6uv8^BLL&3z*SO=D0aLjih?gY4-9uWp5or)H+v~w6n5X#F-I52z=Z_p4JB(;M| zeaVFhuR2|3UD2MzVc~^nSoD2(dD#uL_1PdnIxeA{V5n`#3xf1Zx@4lw(DsQ&H$h zw#%3O<1173hjg2_nhKi!d1ej=h7y`hVjCNB6|HTnx>SWuCE-kgTnfT+YGX4_Lun({ zDv2`>d3vrS)tTf7ps_vvh!Cx^e1BFuWnEAh0(7fkNk|-3oU|iRWdsC6U)?Raft~HN z;^$U}vZK5O8|LV$>6X5T(uYkblv{zwPxnQBh(BQ5tA~J!vGiAMYP^_ki~pkIxDfOZ zUJDwq%O~WueeV6%uN<54&u*c&E4y431cklBNrb06zGOOy4XNT~JS-q(s6@)F@ovbe ze`fial(O4(-su%6@@1+V0MsdLLMyE8;)nou(7}czU(5ASaZYDT(kUZ0L(&g$nF^n9 z9-Pi`ZZLX&)^*M6As4_2Mmc9S7OT)F8KkL2NJ)KJcnCuWU=Wy402A&45#Q9Id~BBH z0cY*xlv!uXzKrXLH!xQu(OtJvEj|0-DmRj1vjFz{c*I4$Pe(+_V|^b~S!0xm{8lq= zZv)@NlcyL3Xdz+*|L137F7y6L-2VsrKw=q^S>F6i%<{Fr8zk06$Ay-(!L$fY@7mcng!2}L0t zgi|KxfB63Xtk_Q8#ZPipQ@!zgjdpEIbK_?q17Hoi4Eiyun$hrc>T(7pOLVLQE=lgGwA+A308p& z7@=09(|$>eLy5gLe{*|3b(M;1n;C^~v?o88jYib48eR4$QGsBFzd}3QuwO^_XE(=B zq+hMi0UFC|dB{LCwch7;zYT=NK})O%sgi0k#yV;My@24^B1+CuZmYOh0^b)5Ba_)) zC%i#_Iev&nsu%I|1N5=MVc#PrlunKAs&hY|3s5;@}`>sB>}gzxuB zB=2vrRyB3uiyW(hkDUNe1@&(b`;>ZvGgw|@s{zVC#_`HXIN_^J@Etb zA7A+F?ot37T{<-vTy8h&b3e+WKHE1oh;pUQrN4yRRrx?mT_9jRa2i4l1fUnLW^Cbl z!I1>VzyFe?VELWWhM?@?t-YPZkD-Qjo@bC2(o#ZtZmr{KZsdFWItV`rs$gp{724@C zL8K5}E0+DHcWcL^{BGei4>@J-3%a#$y6;I}=upc};-NDv-z#kPX26ylOpH)Ov1uU{ zkLj6oiH6l_s+B~_z;|Jc2oi?naS7#3H63~~lWj4rUnd=fCnKdkik<@R&kch9q##G{ z4u!%=rlM~Yp3jk*t8}1B`Sv6<%Z^}~1e@aq zg|JQ`QO2pSjAm-g*?IrNc$^~sIrNBo2$m|Sxanr?Mfs>2@Auu49 zGXlsS<9XS1&8h(dD*Hl&5HBDG!^pJ*lkau_Ur+7`7z;rcs$hT4we?3bT=7Fe<>{5( z2m2(c+hUz2BTHM8dCe*Z3XX&Av;b~a=$6EF>&^E8%nyxO@m_n!q&XD^A{SRjRZQ0L~qDeC=j&0$j6=LNIz@`ni^>ch|sv}^6 zlm>?28yPl@WmDPR?Y-A9X{U9Dv_IsbXJnzKCjkRksLOg#42uG2mE_acbTQ4)J|1V>%U@K(FP3AYhL0U zdeOCPN1qLv!|#c=p!_+%VNV(GHt`RuLRV^vz<5tt-r)yOK**kUWPspVAf|}ZL{LS= z@k(@@!P&W!>wwe`x{+GrFSWhHov7hu?{KuuT%kl#WO@*WX$i_@retlhQBj++SVNCx z5$78LxP>Z=^aJ)D280r_jj=zFfMJFXCIe^B{~V@d1rl_F(qo&AB4bC-vYL>x2jSKX zpuTG-6kgp3e^T&+dtV*i6a~)v@n?n*MffN59y}<0djUX zt27R+SE#hp8bzc#;rk$jw3r4)Q@eI$*`_)=Pvge8@8|8>H3X)<9YX6cXa=ii#Le;(qKm@%0-7$>2ShnYc`j#zJ7gu_FE^?uAkL|H)UIH#gPu^40!6^J=^ zr`}iwa^!4tzW~vOMZAaKF>*8A{^8m$i(VK)>?=#l`xrVe>wseSvM_aF zATNkY>kM_P3?1kE`uIq#mvr-wuTgUH0N<&JhF=(E9%^NS*HLm!4GZ4_XI zL=R5tlG5Mk_1rPfg)sk^llFuKPMPBhuU|L5q#yP_mzxp1o&pAzi-X31sgFpIHn@($ z_>=`AB5(8tP6p2zS5VEvH5J$M` z_much3>S7t3Yo`Yx!>83-hW9LYzDKP?mKdkD#QAK8*M((sx{eBQdrR<^3ZhFP81+& zBnJMUefQyNBji~$5d88Wfw1Lv59aJN9t2!pABLg;ewJ#LXL-10;QcJl+Y4Mtngb)k6JZlCf)3uD_u)J3sYyN;NN5hNbg$%W!i-GK%e&!Us)2IExWSss$YG(hm3kJ-h%yD z>8q^n$+4I(_y_mbT{du4P%h1j3oSpjhY97{+IZ`aA4ug!vNJ6*p?<2H(2w+GD3j$I z1TUXGyNzdf>_yB3grP~FZUs<2Quw;eEi*7s(-MiIkQ%@J^+WGdQvYSUN+TRiD-xto zJ=OUU+kxGYc!HCLNbCvR4lGTp~#L;DFzGd-#gJe*xf(P3hDQz|y)?b9mwU3WUVnpcqXM<@w%r-k*Wr^gzAv)8T^sqA=Ye z!7qy&exJmAcAt~CwS#@yNmjr8*T*!A6w4~E*ibaLRs0CFo(;R3=ODhDt6zWNodmo0 zXx&bT$6&+5c>a|WJ)F4G-^GjY0H#*tY=UNyYr_q5fsrcjk(c^~e*7Lf`!Jd`)p412 zn|^*hV= zFI4UbwA%X@smDd$cQOiMC%jfitTxTb+#`9`G=2rJDfK!E=5ra|So>lc{X1$~w28i+ z4p&cTGwZ#5VueiXS9O8#;RR$yg7tL9!^)Sz&pZYIzlSh}0}V{LxL$Cu%B4U5_}k}- zm~|CsD<076x@<>m=6w6N?WaThIBP`!u{-;WF)xc=2otx*lwf|5+MkdJePjh(B z9SH+%cHGCMAXNxB{_3^otDWdsV7Ob6n{0 z+&!(;iaHOX__5z_$Qk{%xYV%Ig@7iokGBwR`3642ZP#H#v9QGbWl8<|MS*=@qO@Uj z6+SZ_v9`1paUe5tFN~v(b#J3a_Lx0+;r9giZIx-A5TxdbG>xi#AZ5_z1V}B^n)sxT zz49}eK7EWb6wR!6-qQOrHQHkUvshvq%=G2d&@(#XM*Am1;WbnJ{X_!a{ZkphD$^TQ z=Iskb&}=lBm(RHiwJoGg`*NiQ6#RB$T#LF+>#ef;Jne&MxKPX!#r`&TVEFsp2jnNx>dClzpcPy&G&13a_<0qaR3i+k212~hoQ z8nMk{JP-t04I{GW5gUBqcJW-jSMrlw}>p)ptx?WKuCUV77taMiV zHok9V=6yv+Uts@fMY&A}amC=!Yj}eL@=e%XJ#%?agkt1jWF+10{(E9mHLDa>Ll7Vj zG=3cp%ljIB-6pC}6&`xJ*6WCP|IlglLWJ^?yviI8Ve)?V_i4%n;olzny62_`-|IGi z^=}p_O>Z8M;c4|RExu70E7ePW(HWVS&E$+LL6xSQgB`QfMQJ|4pCTFowA39p5P-|$ zUtM_H2HnP8_RoS~Vwk(FhbG zH41licj%=0a;Ln2STFBvU}Ne&O&%8bYKj!h1FA#sNM`232fX|U3QPp#3C?mN2;hE9 z;)!@5ixSPl<89^7gwhHc2YAX1KJK$#*3`KOMIQ253q7-*RJ5k)zp9GBO|Ga~X*^}US5oN@aG&waHV%vi~r{t^`ptTxb zL}q1W8S7*>7oWwvgV4uFLZ(@k`R*=LO_|Gu`prs~!WQXj-NLIa^2(7IHg>BG^N zc|i{-^=&Cek9dkJFQys|sjG9i>LLz|;yCv{^1i%c*h>8zF91kLvS9HBQi~ZU!JL`B zK8N+U0fr1*6??Ium)AF!6tc1eGhXIYL6IRT7rmKp7+>?%5Pa6zC5)KY$ycF0ZJ`G5nEQDG100U-jLkH8^UE4g6wq?sg%pP=-$&G#bcN`^?w3a6 z((s$6eRKcSEIslW-kk5Qi|5Mg-(xdLF}PxxVh$PuO}#aR6pW1kV4Af!Bqh*btXNNZ z>-4(IUl+L4dw+3LcpGut=qB45O+W)Q5?*zZ2A6rJcg`qkSvWA!j^r2mqKuCm6`Py? z@^T#Ux04HemPGd!Hs7NkZdVn1}8_j`o?)*OKZGS!`ff)gF zG?v-lj$wWNWCcw2Mg2o18D~1?3_b0XzdiKBNkYSDpcv@&kp0POmweJE2ZkIQ3B!a! zIgIoE+Xv?;34kyo^QYjZk+tEqZvq^#QG(OzX4~X+KtsoQoddTWUR(yo8R+ObEF1j<-syWOb>)JQ&Zbdu(sctU%Mt zW&YR0{ttY2TTXYZ?~WNU&cES1Z2q(7SrWDh``!J(JM+Nk$!hu&Y;(7E`ZNKTe0w+% zJc?Qnw2B+%UR}0;cB0Rufa(7-3FF}?629@LgTiEC&2uyL6NxexOp?AKT^aAx3gi(W zao>r>MPw0eQ3>IV02uLsC@>yK_epX6GRg4{NEL2wPPF9=*L2RV3yyK8DhuEK>rmmV z`&Q~#c`lgR&93TdOCja|ewOXmPNRh7!&dMT(1ett#iDr8HZW~VqWW@7fe9B6;7S+? zbC`d4@MEau&mKlOPKd>*10q0c{~^baw6!a*w^sY#0Xim{oOsiXiDOhbG&kl3c$$n1 zMRrD83&QucDSEcV*7LIp8VTA@F<%qe+_c`L;6on(>SjAU^}5c9!BCffT>$VQhe=)z z8(=Ej{5>jhmjB3{xDfj2R@VmHQ!CqjlO4KnuOmvHy3K#po$yp_V;p_MKjh1`(rzj6 zHW956k1yvntz{_g?Xbs`avK(IjlTnsu%htO;D7 z?J#x^EzuvVn&NA=!MEj7cwe5A-Z$Zk2LBZH$~%E* zf`((xH0?`}hs|HA%mtwfOEsZJxxrennkTYcwP#FKO5%Lpc^JXhSpV|ZH$Wr;`}`_( zIP==gd3LYyVtwD|*ZJGi{7~x8{=^bGVqu0RJ`n_BZH9+}kz%-4ZRsImi@rx%=ZEKs zcPnUXo6hbJV>fH;@1|bAHIe0ijYI*&kdT|HkDS$9No9 zCHo=*HWb~U+Dtzxr+Esao}6@|;Pf+E$ay0$kQp#s{wlw+7aIKbMdf`OqhoG*;Tco0 zjrP}VQG#Y2cJuqoJg&5({)S(BA}q9T1lGeWRyu=Je|)I!6a+aj!IP^1({)ZYe&x6w zt3a)Dq^TB+A7CdB0-}#z2Ur$W&h3YVw8==!xONy$uQmDWh-@15iEOt!q2m&?ZLA|w z8loSb(0}7y6Xu0?M5Uf4>VZGluB`wMf2oh;m)ghxVda>3m}4%V)r^0nVQ5V6f3>*) z0&VN!N0~GC^P}vj$`EDMZEmVV;N&RISY2C;$0;2(<{Lt&PKzqRByQdiEHGAbwtbS zPj`Da5%U6k1oEtVzI}QNw;!hT6F+~|@=c@$C4NtO@=xgP?|5MyZAyuCzcvq4rdAv@C06%gZ`9%I);R6UGiGJobfux+<0DLS&|MSG4UH z_~o{^^9>ixMg~mY!-@Fai{xaE4^;qy9iZN15Gbn5ZqHWf>Jc5Rv6(#n8`1NcCsdmG zab*dSXVPaE?)wCalD;$ivF%@nB#7D`@YG04p6ed9m}4iJW|pfVMLE<-c{=-8$e?cH zUdU#mCj4gb zZKA^b9p*9S(}8@tw~1RNPHr7tQr;P+-)D8|sq=*o)G%RGqt> zzP5yf`pVxb)I51D_G~Xp^GNK zVI6sAX)a9s)e{8N3?35YA6aQTXuyszK3ah~CemzA&CII#8F&F#KN41~8I^&_%}6MCNb{W87qAF`zj_Y^szhb> z3p3}KbOxotY|(lD=;)`fYE_*{S}x;f^SW#)SU&5X#o|-R|trpa|L5PS5aa0 zTHw8%SDSVtU4?vyrhnq+^@dgFS)|(y{~(4j%3UEiO-rBM9%`)8(dh33pMLiuurNY# z#10AsQ7%*0Cu_DSAU}P;X(JwA64~Q_^R%d_zSm^6Aux?Pn70PM>9EvLeOX z&w9c)pGmcL22;MO3C_B>=NC0RJpMp8?#ZUf=GWRvy z6RHq3B}=MGVg?9@iKFBpsvnkVh3{Vpp=`CcD=u~@ql{my|6?3ssi3mCOPnjI&E}VC zc@X+Yl>;;DNo0W0`0th!X{?luDhOC{E8N=?!w}K1{V=)+1={m(f`Oc|N=07>}3;z{-(A zm{JL=j?Sro5iecmE2-pWlRf(r%|HEQ7kgwQ9+kt=NBhtQI7OwcZ#3%$Uf%^r2nhjY zoQ08MfC%_X{O9~WcirMZMhn#z^ux4Erx-tf-6bHD)9eH&^L>^jvAd^9A^DCDs?0;k zkm7LE*KjP6`2d17MrQaaLqd_Rka}J$csvUec#hw78<=s(hyR>065~YCVCA9+#Q+; za(*L0IEw!r5P|@-;x33L$Lv9 zcuN8YG&g{<(SeJG18~(b!5yywSqQiLAX0;---;}mF5&b4lg|T?LwKREa{9YX_-zL@ZE?Zqi@HxK^2KO1>0LATu{te=T zprmHtY)bDVfxI1S}KBE7V zznP7KQ8HekWU#W6mw`dr-boV}pMQR==&5=Q5T=_q091jfc;R*jX#&=MQ%~@E@9^?`$v48ks<>(fI(F6L(5ppKy|$HWng*bKOb(4|cMUB&z$#ob#XV z5-mg)gmFIybZf=znm3ZPyUO^GJfxt0kmHjaTZ|sthsxXw&}Y)fOUSg=JhRSR^UjZ- zhqqb}Wsyw4zdnj6@#BAJa#-PdI4_dgafFXh85DsEQ_cT+5)XpZq$fZlBA_9UsE9r6 zEFec5?uqN@QhJ^IzwZrwl-5J`CmVPv{(YDTqEqWR^dI;5hXc~cxP%B3v&~s0`Ct89 z@S`i~a^c%V^N81dDT*ItFS*&IN;@O$EgzX0e7x&}TD=!zS}hTpezBLS>mdX(5< z)8DEI(-o_D)c-UX@dA1MuJ*yc>Hf4|`*B2S_O>w*-tbUwtiu`;W(Ud{HTty@(&x(T(F&;M zJ=?H>6`B7nf-90e8V`WSVp|0oEKB-P2M{}4ZDawzvM&a!y>`Y#jCsD%T_l``@ah(I2nJs~Q|%uSKu@k!m~*8B*IoA{*TgtF<(5sHCGG;n@NE%~Xt(G$^&<87u;}Na zx-8cq0g`uA(&RBFo=-4Y1GUZ<``Zw{xL4jfHkZw~%~wvtGueszcXt)_QwH8g!; z%s&3kSa~R$dO$-%L-)c@_hi7&>{6L_M>OZFkUQu;{sL_bUMStNrt{{&O(Wn~*zPOk zB>dnfszb29NSTf2pqIs68k|p-UrSrxgLHqi?3N-UFa!LHy9n1)=s>`yS+J{MEzS@ zNlfGtpma7kG&LR3JE@wB%rFA*h~~KitlO=IP)ZjN6dQLM6qsry zHkB#cyNh#n`)}bCrN1My*;k)^@>e4gJ`LJK?2)Pwp?4Tl4)4FA0(tvY+#1jOUM)xw zlMz4x-f@g^+yKUN`?Vu)|AwujArnM~Pa@y*Q9S8eS(u{-S%(Z5=R~pRl5ZGDjdqH% zC8rW&{##wOpU_oTIG4WXMk4&%2t1;lWcW5&!yxmOT*!hBcKyTqEcNoO+R2;Q?Yj+W z1-Y4?59fijz4(MIDwGe4-baYf08UCs;r|YefD-Md2ST;=cxwpgW=tR76-dQVAhn^= zG9Wk5lQk%jIR@KNU!UMp6@BfU;r+;y4VQ)D2!Il9HX%yW-9nOzV+m$YKzVaO`B8S7t z$!S2Mz`xw>V(RjE`0>bQp<0y&h~Y=M#jpy!#=dE>`=e_AjSZq6u!Dy1xJf~-7|0F! zPR9|n`e_7D2DIV2H(CESQ}hA>U>n|6`%z?YKEA~)BOVY%y=jPV zT=44R!L?J)736X#csn|lfBJ)o8ixaZclguWgrGO<`TN2FMfO}7;5}d+BlK0yTSH3* z4!=;5rOh85&2|x=46hkNaz?)U8&=bcfh=N_#8BNpZ2v$aVBo;sk^*X`v;4-LU;D>! zM*h12MxXIQy)SfAqE4;jY)wgnppazZkdNNVVF;(PLf^qK$FgY9+VFyBKE7UC|f z`R|?&egV11K3s$rJ6!GvoeW=jV*!-e(wA;x(2=d0E_e_%0x--0o8#~m^H1%AH5Z^B zn!TNPn927*bvaf0pt}zhK0o^V@WlGwwKo(*nQ|Q~4_;>~-8y20`HP>@UJa)3nEnGG z5Hwhs|FcmFG16ZVNb5hL`2Gc1{zWIMM{_OiKewV!hCi}U!VuE?s9wU-QbZ!)+Y^tS zGzp5OSi5iq6hmEr$w}&9DFgoB+i*`q`8TBi^MVS{SKEb8Aw%@K7@XCo(De2A`6%mf&a2#~y1N)+kJLD$1HCP!22)(U}xo2|j?WRzt(11j8Z_*v;P$R+Ug*Gy3VxV4K; zGGUGabnW*`Z}~`ydXL-l9e=GC$pY#z|63vy>E*m=$=j}iWP{sRTh0%H54`t>2xYH% zsk+M&u&pNgMCM@3e)Xc?jBWX-TIR_cQ1Z!RW7!B zBjZX=+^3}?SE)B+$EP+0oi1Fp5blDT?*}nsP>filqXH{ms zxU<$hetC`u)Wi+x|EKL-`y^#aQX+sDYIa{M;V%LqLrOk~lR>u0Q!+pyQSU4zY`?E^ z|5@)C)w6G_=i5YYC5SE_u(7hDNYr}uKT|@DSqF%S++lTIbIk^$a>{~0IH8KNFEy%+ zW#$&!ynpgNJh>6uR~?2c)ZMW+h0OKu231(7L_vETPaR+(P)Zy%0~yGm>E9?@@x!Jy z3PYgS}Q@b}x}E#F27@F+j}0=&Ql4gES&f8acMrPAVlVs9$97`FR))R5wI zc&}KFI1UIewh>3PkhnB7u zS3AT8_*|nexznG|Z*DU0c!K@jsI4J)5#DyNi#|e#`l1Vv1`1)*NVcy0LZ``aL0n8B zecupJ(rhq3u8bW0NIRhKYq$v1li+jp*4hfAd&wxYDE8vn1TQ7S@bTM|I2Ob z8vMOIxA7&_j{AKmD+O@EyXT`|dElt0pED^@IV0m)RPBUs*5jW60>>w1!@_G3aBKzG z_f(KfAPBk}-jQtR*Sroq!*3rbQ_m27e+YdzQjUb<_*k8vc_C)y!@cj5E>NxUhPu&g z@Z2<~esU`)ih+4opWe+K7sbN9n*9@n>#@n3*o z?xoROgDuvhq>jJ;Ve{6i<3roQNfgo5^4Q4(|GNExO2Dr7GjgA2zWuKp_K)K0R(6lv z!l$!zW-+T6mb3gQaAFviTQi{|*t%>{(mhTdy+y;Re4qT@kccy#{b z&zWy~kLO@>*WPj2k#H)|7L&gAJ37DmHQAme#@m;(Y8Nu^`D5vf8sZFW#+lA2!HK=( zJ)#hO6JD*`o~&c*&46d}g=Qj@SsoB5ikC z^1V8E+&<-OzuS_C`p5<<(A6fB`LXT(!kV^0_~hL6PpW4={l%|#xgdh?5EIk~lu8{D z2hiyhv3Yxij_#$Wu>P@7SYsl`-~3;}Ktx{34_NL^Kwin&=?!HDv3elQDbcU*qyYpN z(#yw~f1vFGK-t%CC-qa-4FYHbA^h>bag-I&*qaxwn?Qv|idE$<>1H|Gr6JtUu(he2$eg!N z@HTF@dG1)*y;4fxe)4_ZkpaBHH9hXp9p4|gLrRQyuevRd@gSS}JhRnWqrvm|U@>qM z=yl7RQROTKwQtzP3!zUF)_6Ld#NGA6v~2{J9Dd`h6{%+XsU#qGLh%`fB1Hc?wfayK zN`H4BpDp)npVQuu$DVW1qsBS&AJ2eP%6Qw>;k{)Z$8%HL=Q4(a$Ng2_vHw&vA!1L+9zc8vaX2GtqJ{L-;gvF0IR$em zMQ8@{Qp3+3Quk)TJ$?I<8KmwzD*7#(q<@Mc`dchngW}cRG14(Z6K7{T|LhFXwhqUQ;BET;cYqPcAcMgt6M$V9$(?jHo@Sud$an$U&5F zZ1QNh^ztt)E*d#Ij;<43oSKKnd+WNr$_r}+s_O_x6DZSB10*5Q{ourqq>mTl| zx4y^(cy+9;t@R=*j>3_dmm_m)$k$#937V(sllby&5)Xex^UD-|m|q<(jEd#@DV(of zAd7sSdmS*zUDqJ9|K%O2J2OfdUiK{{b{PCy)pi<;hp~7v1CQj&4-10 zgO<3dqhYH1#-Fa}Q{pjql5>>P6gZH21zLfxZ4$SK4T@7b!|`nWF9b*84Bq8&Eht;9 z*P72x&NUCZ7*@B$`FtE=hz5b}S`|c6Ey+j@D1ZibjJaRlR;{cxAWv z?Nqa>QqV*H-*zzaPvpLMHt~nl(x6?vrPpR?zn7~wow?oj*1TKmx4j71>$hvtC$DLD zUrz0^tiP0792U&dxJxNv@r}Elsjn^aSLUu=9#mD{&9n8|ayIL$!H3s>%KEvbchBFW z%cd?VU83mGF#Dar9*s~w&AnmQRQIOvR+uWsuZ?+|a=TzApXO@q^(r%8=}iv#wCnFq z=K9}JbqU@k99Q%j-}NNk+qLCP)jXfmOO|)@?mHcnynd6({mJisP1_}u7k)|eYHXWK z63eQ)E$ufFi!3CWUY2gw%e>omCv}qEX66aH-k&35f9`Q@Us|NPetVqe8=dX*VxJdn ze`q7b=Dn(UA(2sf&g)cOmQFhNJ#<-aMELJZbA#@to>25@kbW<)&!X01 z%NMJt>1ST)tyX)h@?`DxhbgCHr>S4wv}WC&Nw-!{+Z7$2D}74QAcXTvip=M0%Tp_N zor=k`)t|ra^ySr-+(|R9mB(E=`MX#y(wSw)$!iymzB;^c*>%&^*7HxTnRga=soSZT zdDl+9s;r!v8hk6POtzBaig4pRp7eWF(<8gufvNHPu6xs-=e{;mnHzJyGKE+8L0j}; z@%8-e^UCL5HhMiR>sD3Rve&yVZ#{Q1*CO8c+qSr^Z#CN;)(X5>tGG5yUw3<+CfhaL z%bP;hZ?jvgJU67BWyiy74_)6r)_nSxttxn0`0?HE^5(uydHVgP+HE$V?Lv)Leti43 zWA|;f-RqX``95>)^P-fw!Vi{3KNsII-*5f){gdxqd%gVdB1sOBNe=nEW%;i~g_P8J w!5uhoe-Jcg1nPN%MiEAtgE$;km@@t6ukO)1^!cY^83Pb_y85}Sb4q9e0FIsP9{>OV literal 0 HcmV?d00001 diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png new file mode 100644 index 0000000000000000000000000000000000000000..2f1632cfddf3d9dade342351e627a0a75609fb46 GIT binary patch literal 2218 zcmV;b2vzrqP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91K%fHv1ONa40RR91KmY&$07g+lumAuE6iGxuRCodHTWf3-RTMruyW6Fu zQYeUM04eX6D5c0FCjKKPrco1(K`<0SL=crI{PC3-^hZU0kQie$gh-5!7z6SH6Q0J% zqot*`H1q{R5fHFYS}dje@;kG=v$L0(yY0?wY2%*c?A&{2?!D*x?m71{of2gv!$5|C z3>qG_BW}7K_yUcT3A5C6QD<+{aq?x;MAUyAiJn#Jv8_zZtQ{P zTRzbL3U9!qVuZzS$xKU10KiW~Bgdcv1-!uAhQxf3a7q+dU6lj?yoO4Lq4TUN4}h{N z*fIM=SS8|C2$(T>w$`t@3Tka!(r!7W`x z-isCVgQD^mG-MJ;XtJuK3V{Vy72GQ83KRWsHU?e*wrhKk=ApIYeDqLi;JI1e zuvv}5^Dc=k7F7?nm3nIw$NVmU-+R>> zyqOR$-2SDpJ}Pt;^RkJytDVXNTsu|mI1`~G7yw`EJR?VkGfNdqK9^^8P`JdtTV&tX4CNcV4 z&N06nZa??Fw1AgQOUSE2AmPE@WO(Fvo`%m`cDgiv(fAeRA%3AGXUbsGw{7Q`cY;1BI#ac3iN$$Hw z0LT0;xc%=q)me?Y*$xI@GRAw?+}>=9D+KTk??-HJ4=A>`V&vKFS75@MKdSF1JTq{S zc1!^8?YA|t+uKigaq!sT;Z!&0F2=k7F0PIU;F$leJLaw2UI6FL^w}OG&!;+b%ya1c z1n+6-inU<0VM-Y_s5iTElq)ThyF?StVcebpGI znw#+zLx2@ah{$_2jn+@}(zJZ{+}_N9BM;z)0yr|gF-4=Iyu@hI*Lk=-A8f#bAzc9f z`Kd6K--x@t04swJVC3JK1cHY-Hq+=|PN-VO;?^_C#;coU6TDP7Bt`;{JTG;!+jj(` zw5cLQ-(Cz-Tlb`A^w7|R56Ce;Wmr0)$KWOUZ6ai0PhzPeHwdl0H(etP zUV`va_i0s-4#DkNM8lUlqI7>YQLf)(lz9Q3Uw`)nc(z3{m5ZE77Ul$V%m)E}3&8L0 z-XaU|eB~Is08eORPk;=<>!1w)Kf}FOVS2l&9~A+@R#koFJ$Czd%Y(ENTV&A~U(IPI z;UY+gf+&6ioZ=roly<0Yst8ck>(M=S?B-ys3mLdM&)ex!hbt+ol|T6CTS+Sc0jv(& z7ijdvFwBq;0a{%3GGwkDKTeG`b+lyj0jjS1OMkYnepCdoosNY`*zmBIo*981BU%%U z@~$z0V`OVtIbEx5pa|Tct|Lg#ZQf5OYMUMRD>Wdxm5SAqV2}3!ceE-M2 z@O~lQ0OiKQp}o9I;?uxCgYVV?FH|?Riri*U$Zi_`V2eiA>l zdSm6;SEm6#T+SpcE8Ro_f2AwxzI z44hfe^WE3!h@W3RDyA_H440cpmYkv*)6m1XazTqw%=E5Xv7^@^^T7Q2wxr+Z2kVYr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example/macos/Runner/Configs/AppInfo.xcconfig b/example/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 0000000..8e22f75 --- /dev/null +++ b/example/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = ldk_node_example + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = io.ldk.f.ldkNodeExample + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2024 io.ldk.f. All rights reserved. diff --git a/example/macos/Runner/Configs/Debug.xcconfig b/example/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 0000000..36b0fd9 --- /dev/null +++ b/example/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/example/macos/Runner/Configs/Release.xcconfig b/example/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 0000000..dff4f49 --- /dev/null +++ b/example/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/example/macos/Runner/Configs/Warnings.xcconfig b/example/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 0000000..42bcbf4 --- /dev/null +++ b/example/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/example/macos/Runner/DebugProfile.entitlements b/example/macos/Runner/DebugProfile.entitlements new file mode 100644 index 0000000..c946719 --- /dev/null +++ b/example/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,14 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + com.apple.security.network.client + + + diff --git a/example/macos/Runner/Info.plist b/example/macos/Runner/Info.plist new file mode 100644 index 0000000..4789daa --- /dev/null +++ b/example/macos/Runner/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/example/macos/Runner/MainFlutterWindow.swift b/example/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 0000000..3cc05eb --- /dev/null +++ b/example/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,15 @@ +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/example/macos/Runner/Release.entitlements b/example/macos/Runner/Release.entitlements new file mode 100644 index 0000000..48271ac --- /dev/null +++ b/example/macos/Runner/Release.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.network.client + + + diff --git a/example/macos/RunnerTests/RunnerTests.swift b/example/macos/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..cbb15c8 --- /dev/null +++ b/example/macos/RunnerTests/RunnerTests.swift @@ -0,0 +1,27 @@ +import Cocoa +import FlutterMacOS +import XCTest + +@testable import ldk_node + +// This demonstrates a simple unit test of the Swift portion of this plugin's implementation. +// +// See https://developer.apple.com/documentation/xctest for more information about using XCTest. + +class RunnerTests: XCTestCase { + + func testGetPlatformVersion() { + let plugin = LdkNodePlugin() + + let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: []) + + let resultExpectation = expectation(description: "result block must be called.") + plugin.handle(call) { result in + XCTAssertEqual(result as! String, + "macOS " + ProcessInfo.processInfo.operatingSystemVersionString) + resultExpectation.fulfill() + } + waitForExpectations(timeout: 1) + } + +} diff --git a/example/pubspec.lock b/example/pubspec.lock index 61d8efa..e32a9f1 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -143,10 +143,10 @@ packages: dependency: transitive description: name: flutter_rust_bridge - sha256: f703c4b50e253e53efc604d50281bbaefe82d615856f8ae1e7625518ae252e98 + sha256: a43a6649385b853bc836ef2bc1b056c264d476c35e131d2d69c38219b5e799f1 url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "2.4.0" flutter_test: dependency: "direct dev" description: flutter @@ -208,23 +208,23 @@ packages: path: ".." relative: true source: path - version: "0.3.0" + version: "0.4.2" leak_tracker: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -253,18 +253,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" path: dependency: transitive description: @@ -325,10 +325,10 @@ packages: dependency: transitive description: name: platform - sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65" url: "https://pub.dev" source: hosted - version: "3.1.4" + version: "3.1.5" plugin_platform_interface: dependency: transitive description: @@ -410,10 +410,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.2" typed_data: dependency: transitive description: @@ -442,10 +442,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" web: dependency: transitive description: diff --git a/flutter_rust_bridge.yaml b/flutter_rust_bridge.yaml index 53f8e62..17cb50f 100644 --- a/flutter_rust_bridge.yaml +++ b/flutter_rust_bridge.yaml @@ -5,4 +5,6 @@ full_dep: true web: false dart3: true c_output: ios/Classes/frb_generated.h -dart_entrypoint_class_name: core \ No newline at end of file +duplicated_c_output: [macos/Classes/frb_generated.h] +dart_entrypoint_class_name: core +enable_lifetime: true \ No newline at end of file diff --git a/ios/Assets/.gitkeep b/ios/Assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/ios/Classes/frb_generated.h b/ios/Classes/frb_generated.h index c24e895..131795e 100644 --- a/ios/Classes/frb_generated.h +++ b/ios/Classes/frb_generated.h @@ -14,9 +14,9 @@ void store_dart_post_cobject(DartPostCObjectFnType ptr); // EXTRA END typedef struct _Dart_Handle* Dart_Handle; -typedef struct wire_cst_ldk_bolt_11_payment { - uintptr_t ptr; -} wire_cst_ldk_bolt_11_payment; +typedef struct wire_cst_ffi_bolt_11_payment { + uintptr_t opaque; +} wire_cst_ffi_bolt_11_payment; typedef struct wire_cst_list_prim_u_8_strict { uint8_t *ptr; @@ -35,9 +35,29 @@ typedef struct wire_cst_bolt_11_invoice { struct wire_cst_list_prim_u_8_strict *signed_raw_invoice; } wire_cst_bolt_11_invoice; -typedef struct wire_cst_ldk_bolt_12_payment { - uintptr_t ptr; -} wire_cst_ldk_bolt_12_payment; +typedef struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap { + uint64_t amount_msat; +} wire_cst_MaxTotalRoutingFeeLimit_FeeCap; + +typedef union MaxTotalRoutingFeeLimitKind { + struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap FeeCap; +} MaxTotalRoutingFeeLimitKind; + +typedef struct wire_cst_max_total_routing_fee_limit { + int32_t tag; + union MaxTotalRoutingFeeLimitKind kind; +} wire_cst_max_total_routing_fee_limit; + +typedef struct wire_cst_sending_parameters { + struct wire_cst_max_total_routing_fee_limit *max_total_routing_fee_msat; + uint32_t *max_total_cltv_expiry_delta; + uint8_t *max_path_count; + uint8_t *max_channel_saturation_power_of_half; +} wire_cst_sending_parameters; + +typedef struct wire_cst_ffi_bolt_12_payment { + uintptr_t opaque; +} wire_cst_ffi_bolt_12_payment; typedef struct wire_cst_refund { struct wire_cst_list_prim_u_8_strict *s; @@ -47,6 +67,16 @@ typedef struct wire_cst_offer { struct wire_cst_list_prim_u_8_strict *s; } wire_cst_offer; +typedef struct wire_cst_record_string_string { + struct wire_cst_list_prim_u_8_strict *field0; + struct wire_cst_list_prim_u_8_strict *field1; +} wire_cst_record_string_string; + +typedef struct wire_cst_list_record_string_string { + struct wire_cst_record_string_string *ptr; + int32_t len; +} wire_cst_list_record_string_string; + typedef struct wire_cst_SocketAddress_TcpIpV4 { struct wire_cst_list_prim_u_8_strict *addr; uint16_t port; @@ -91,6 +121,10 @@ typedef struct wire_cst_list_socket_address { int32_t len; } wire_cst_list_socket_address; +typedef struct wire_cst_node_alias { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_node_alias; + typedef struct wire_cst_public_key { struct wire_cst_list_prim_u_8_strict *hex; } wire_cst_public_key; @@ -110,22 +144,35 @@ typedef struct wire_cst_config { struct wire_cst_list_prim_u_8_strict *log_dir_path; int32_t network; struct wire_cst_list_socket_address *listening_addresses; - uint32_t default_cltv_expiry_delta; - uint64_t onchain_wallet_sync_interval_secs; - uint64_t wallet_sync_interval_secs; - uint64_t fee_rate_cache_update_interval_secs; + struct wire_cst_node_alias *node_alias; struct wire_cst_list_public_key *trusted_peers_0conf; uint64_t probing_liquidity_limit_multiplier; int32_t log_level; struct wire_cst_anchor_channels_config *anchor_channels_config; + struct wire_cst_sending_parameters *sending_parameters; } wire_cst_config; +typedef struct wire_cst_esplora_sync_config { + uint64_t onchain_wallet_sync_interval_secs; + uint64_t lightning_wallet_sync_interval_secs; + uint64_t fee_rate_cache_update_interval_secs; +} wire_cst_esplora_sync_config; + typedef struct wire_cst_ChainDataSourceConfig_Esplora { - struct wire_cst_list_prim_u_8_strict *field0; + struct wire_cst_list_prim_u_8_strict *server_url; + struct wire_cst_esplora_sync_config *sync_config; } wire_cst_ChainDataSourceConfig_Esplora; +typedef struct wire_cst_ChainDataSourceConfig_BitcoindRpc { + struct wire_cst_list_prim_u_8_strict *rpc_host; + uint16_t rpc_port; + struct wire_cst_list_prim_u_8_strict *rpc_user; + struct wire_cst_list_prim_u_8_strict *rpc_password; +} wire_cst_ChainDataSourceConfig_BitcoindRpc; + typedef union ChainDataSourceConfigKind { struct wire_cst_ChainDataSourceConfig_Esplora Esplora; + struct wire_cst_ChainDataSourceConfig_BitcoindRpc BitcoindRpc; } ChainDataSourceConfigKind; typedef struct wire_cst_chain_data_source_config { @@ -141,12 +188,12 @@ typedef struct wire_cst_EntropySourceConfig_SeedBytes { struct wire_cst_list_prim_u_8_strict *field0; } wire_cst_EntropySourceConfig_SeedBytes; -typedef struct wire_cst_ldk_mnemonic { +typedef struct wire_cst_ffi_mnemonic { struct wire_cst_list_prim_u_8_strict *seed_phrase; -} wire_cst_ldk_mnemonic; +} wire_cst_ffi_mnemonic; typedef struct wire_cst_EntropySourceConfig_Bip39Mnemonic { - struct wire_cst_ldk_mnemonic *mnemonic; + struct wire_cst_ffi_mnemonic *mnemonic; struct wire_cst_list_prim_u_8_strict *passphrase; } wire_cst_EntropySourceConfig_Bip39Mnemonic; @@ -184,17 +231,17 @@ typedef struct wire_cst_liquidity_source_config { struct wire_cst_record_socket_address_public_key_opt_string lsps2_service; } wire_cst_liquidity_source_config; -typedef struct wire_cst_ldk_network_graph { - uintptr_t ptr; -} wire_cst_ldk_network_graph; +typedef struct wire_cst_ffi_network_graph { + uintptr_t opaque; +} wire_cst_ffi_network_graph; typedef struct wire_cst_node_id { struct wire_cst_list_prim_u_8_strict *compressed; } wire_cst_node_id; -typedef struct wire_cst_ldk_node { - uintptr_t ptr; -} wire_cst_ldk_node; +typedef struct wire_cst_ffi_node { + uintptr_t opaque; +} wire_cst_ffi_node; typedef struct wire_cst_user_channel_id { struct wire_cst_list_prim_u_8_strict *data; @@ -222,7 +269,7 @@ typedef struct wire_cst_channel_config { uint32_t forwarding_fee_proportional_millionths; uint32_t forwarding_fee_base_msat; uint16_t cltv_expiry_delta; - struct wire_cst_max_dust_htlc_exposure *max_dust_htlc_exposure; + struct wire_cst_max_dust_htlc_exposure max_dust_htlc_exposure; uint64_t force_close_avoidance_max_fee_satoshis; bool accept_underpaying_htlcs; } wire_cst_channel_config; @@ -236,17 +283,21 @@ typedef struct wire_cst_list_prim_u_8_loose { int32_t len; } wire_cst_list_prim_u_8_loose; -typedef struct wire_cst_ldk_on_chain_payment { - uintptr_t ptr; -} wire_cst_ldk_on_chain_payment; +typedef struct wire_cst_ffi_on_chain_payment { + uintptr_t opaque; +} wire_cst_ffi_on_chain_payment; typedef struct wire_cst_address { struct wire_cst_list_prim_u_8_strict *s; } wire_cst_address; -typedef struct wire_cst_ldk_spontaneous_payment { - uintptr_t ptr; -} wire_cst_ldk_spontaneous_payment; +typedef struct wire_cst_ffi_spontaneous_payment { + uintptr_t opaque; +} wire_cst_ffi_spontaneous_payment; + +typedef struct wire_cst_ffi_unified_qr_payment { + uintptr_t opaque; +} wire_cst_ffi_unified_qr_payment; typedef struct wire_cst_Bolt12ParseError_Bech32 { struct wire_cst_list_prim_u_8_strict *field0; @@ -315,16 +366,27 @@ typedef struct wire_cst_channel_info { uint64_t *capacity_sats; } wire_cst_channel_info; +typedef struct wire_cst_ClosureReason_PeerFeerateTooLow { + uint32_t peer_feerate_sat_per_kw; + uint32_t required_feerate_sat_per_kw; +} wire_cst_ClosureReason_PeerFeerateTooLow; + typedef struct wire_cst_ClosureReason_CounterpartyForceClosed { struct wire_cst_list_prim_u_8_strict *peer_msg; } wire_cst_ClosureReason_CounterpartyForceClosed; +typedef struct wire_cst_ClosureReason_HolderForceClosed { + bool *broadcasted_latest_txn; +} wire_cst_ClosureReason_HolderForceClosed; + typedef struct wire_cst_ClosureReason_ProcessingError { struct wire_cst_list_prim_u_8_strict *err; } wire_cst_ClosureReason_ProcessingError; typedef union ClosureReasonKind { + struct wire_cst_ClosureReason_PeerFeerateTooLow PeerFeerateTooLow; struct wire_cst_ClosureReason_CounterpartyForceClosed CounterpartyForceClosed; + struct wire_cst_ClosureReason_HolderForceClosed HolderForceClosed; struct wire_cst_ClosureReason_ProcessingError ProcessingError; } ClosureReasonKind; @@ -455,12 +517,16 @@ typedef struct wire_cst_PaymentKind_Bolt12Offer { struct wire_cst_payment_preimage *preimage; struct wire_cst_payment_secret *secret; struct wire_cst_offer_id *offer_id; + struct wire_cst_list_prim_u_8_strict *payer_note; + uint64_t *quantity; } wire_cst_PaymentKind_Bolt12Offer; typedef struct wire_cst_PaymentKind_Bolt12Refund { struct wire_cst_payment_hash *hash; struct wire_cst_payment_preimage *preimage; struct wire_cst_payment_secret *secret; + struct wire_cst_list_prim_u_8_strict *payer_note; + uint64_t *quantity; } wire_cst_PaymentKind_Bolt12Refund; typedef union PaymentKindKind { @@ -500,7 +566,6 @@ typedef struct wire_cst_channel_details { bool is_outbound; bool is_channel_ready; bool is_usable; - bool is_public; uint16_t *cltv_expiry_delta; uint64_t counterparty_unspendable_punishment_reserve; uint64_t *counterparty_outbound_htlc_minimum_msat; @@ -525,6 +590,11 @@ typedef struct wire_cst_LightningBalance_ClaimableOnChannelClose { struct wire_cst_channel_id *channel_id; struct wire_cst_public_key *counterparty_node_id; uint64_t amount_satoshis; + uint64_t transaction_fee_satoshis; + uint64_t outbound_payment_htlc_rounded_msat; + uint64_t outbound_forwarded_htlc_rounded_msat; + uint64_t inbound_claiming_htlc_rounded_msat; + uint64_t inbound_htlc_rounded_msat; } wire_cst_LightningBalance_ClaimableOnChannelClose; typedef struct wire_cst_LightningBalance_ClaimableAwaitingConfirmations { @@ -532,6 +602,7 @@ typedef struct wire_cst_LightningBalance_ClaimableAwaitingConfirmations { struct wire_cst_public_key *counterparty_node_id; uint64_t amount_satoshis; uint32_t confirmation_height; + int32_t source; } wire_cst_LightningBalance_ClaimableAwaitingConfirmations; typedef struct wire_cst_LightningBalance_ContentiousClaimable { @@ -549,6 +620,7 @@ typedef struct wire_cst_LightningBalance_MaybeTimeoutClaimableHTLC { uint64_t amount_satoshis; uint32_t claimable_height; struct wire_cst_payment_hash *payment_hash; + bool outbound_payment; } wire_cst_LightningBalance_MaybeTimeoutClaimableHTLC; typedef struct wire_cst_LightningBalance_MaybePreimageClaimableHTLC { @@ -658,317 +730,384 @@ typedef struct wire_cst_bolt_12_invoice { struct wire_cst_list_prim_u_8_strict *data; } wire_cst_bolt_12_invoice; -typedef struct wire_cst_LdkNodeError_Decode { +typedef struct wire_cst_FfiNodeError_Decode { struct wire_cst_decode_error *field0; -} wire_cst_LdkNodeError_Decode; +} wire_cst_FfiNodeError_Decode; -typedef struct wire_cst_LdkNodeError_Bolt12Parse { +typedef struct wire_cst_FfiNodeError_Bolt12Parse { struct wire_cst_bolt_12_parse_error *field0; -} wire_cst_LdkNodeError_Bolt12Parse; +} wire_cst_FfiNodeError_Bolt12Parse; -typedef union LdkNodeErrorKind { - struct wire_cst_LdkNodeError_Decode Decode; - struct wire_cst_LdkNodeError_Bolt12Parse Bolt12Parse; -} LdkNodeErrorKind; +typedef union FfiNodeErrorKind { + struct wire_cst_FfiNodeError_Decode Decode; + struct wire_cst_FfiNodeError_Bolt12Parse Bolt12Parse; +} FfiNodeErrorKind; -typedef struct wire_cst_ldk_node_error { +typedef struct wire_cst_ffi_node_error { int32_t tag; - union LdkNodeErrorKind kind; -} wire_cst_ldk_node_error; + union FfiNodeErrorKind kind; +} wire_cst_ffi_node_error; typedef struct wire_cst_node_status { bool is_running; bool is_listening; struct wire_cst_best_block current_best_block; - uint64_t *latest_wallet_sync_timestamp; + uint64_t *latest_lightning_wallet_sync_timestamp; uint64_t *latest_onchain_wallet_sync_timestamp; uint64_t *latest_fee_rate_cache_update_timestamp; uint64_t *latest_rgs_snapshot_timestamp; uint64_t *latest_node_announcement_broadcast_timestamp; + uint32_t *latest_channel_monitor_archival_height; } wire_cst_node_status; -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hash(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +typedef struct wire_cst_QrPaymentResult_Onchain { + struct wire_cst_txid *txid; +} wire_cst_QrPaymentResult_Onchain; + +typedef struct wire_cst_QrPaymentResult_Bolt11 { + struct wire_cst_payment_id *payment_id; +} wire_cst_QrPaymentResult_Bolt11; + +typedef struct wire_cst_QrPaymentResult_Bolt12 { + struct wire_cst_payment_id *payment_id; +} wire_cst_QrPaymentResult_Bolt12; + +typedef union QrPaymentResultKind { + struct wire_cst_QrPaymentResult_Onchain Onchain; + struct wire_cst_QrPaymentResult_Bolt11 Bolt11; + struct wire_cst_QrPaymentResult_Bolt12 Bolt12; +} QrPaymentResultKind; + +typedef struct wire_cst_qr_payment_result { + int32_t tag; + union QrPaymentResultKind kind; +} wire_cst_qr_payment_result; + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_payment_hash *payment_hash, uint64_t claimable_amount_msat, struct wire_cst_payment_preimage *preimage); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hash(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_payment_hash *payment_hash); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, uint64_t amount_msat, struct wire_cst_list_prim_u_8_strict *description, uint32_t expiry_secs); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_payment_hash *payment_hash, uint64_t amount_msat, struct wire_cst_list_prim_u_8_strict *description, uint32_t expiry_secs); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_list_prim_u_8_strict *description, uint32_t expiry_secs); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_hash(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_list_prim_u_8_strict *description, uint32_t expiry_secs, struct wire_cst_payment_hash *payment_hash); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_via_jit_channel(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_list_prim_u_8_strict *description, uint32_t expiry_secs, uint64_t *max_proportional_lsp_fee_limit_ppm_msat); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, uint64_t amount_msat, struct wire_cst_list_prim_u_8_strict *description, uint32_t expiry_secs, uint64_t *max_total_lsp_fee_limit_msat); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, - struct wire_cst_bolt_11_invoice *invoice); +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_bolt_11_invoice *invoice, + struct wire_cst_sending_parameters *sending_parameters); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_bolt_11_invoice *invoice); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amount(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_bolt_11_invoice *invoice, uint64_t amount_msat); -void frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amount(int64_t port_, - struct wire_cst_ldk_bolt_11_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_bolt_11_invoice *invoice, - uint64_t amount_msat); + uint64_t amount_msat, + struct wire_cst_sending_parameters *sending_parameters); -void frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refund(int64_t port_, - struct wire_cst_ldk_bolt_12_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, uint64_t amount_msat, - uint32_t expiry_secs); + uint32_t expiry_secs, + uint64_t *quantity, + struct wire_cst_list_prim_u_8_strict *payer_note); -void frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_receive(int64_t port_, - struct wire_cst_ldk_bolt_12_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, uint64_t amount_msat, - struct wire_cst_list_prim_u_8_strict *description); + struct wire_cst_list_prim_u_8_strict *description, + uint32_t *expiry_secs, + uint64_t *quantity); -void frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amount(int64_t port_, - struct wire_cst_ldk_bolt_12_payment *that, - struct wire_cst_list_prim_u_8_strict *description); +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, + struct wire_cst_list_prim_u_8_strict *description, + uint32_t *expiry_secs); -void frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_payment(int64_t port_, - struct wire_cst_ldk_bolt_12_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, struct wire_cst_refund *refund); -void frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_send(int64_t port_, - struct wire_cst_ldk_bolt_12_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, struct wire_cst_offer *offer, + uint64_t *quantity, struct wire_cst_list_prim_u_8_strict *payer_note); -void frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amount(int64_t port_, - struct wire_cst_ldk_bolt_12_payment *that, +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, struct wire_cst_offer *offer, - struct wire_cst_list_prim_u_8_strict *payer_note, - uint64_t amount_msat); + uint64_t amount_msat, + uint64_t *quantity, + struct wire_cst_list_prim_u_8_strict *payer_note); + +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque(uintptr_t that); -WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_auto_accessor_get_builder(uintptr_t that); +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque(uintptr_t that, + uintptr_t opaque); -WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_auto_accessor_set_builder(uintptr_t that, - uintptr_t builder); +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build(int64_t port_, uintptr_t that); -void frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_build(int64_t port_, uintptr_t that); +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store(int64_t port_, + uintptr_t that); -void frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_build_with_fs_store(int64_t port_, - uintptr_t that); +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store(int64_t port_, + uintptr_t that, + struct wire_cst_list_prim_u_8_strict *vss_url, + struct wire_cst_list_prim_u_8_strict *store_id, + struct wire_cst_list_prim_u_8_strict *lnurl_auth_server_url, + struct wire_cst_list_record_string_string *fixed_headers); -void frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_create_builder(int64_t port_, - struct wire_cst_config *config, - struct wire_cst_chain_data_source_config *chain_data_source_config, - struct wire_cst_entropy_source_config *entropy_source_config, - struct wire_cst_gossip_source_config *gossip_source_config, - struct wire_cst_liquidity_source_config *liquidity_source_config); +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers(int64_t port_, + uintptr_t that, + struct wire_cst_list_prim_u_8_strict *vss_url, + struct wire_cst_list_prim_u_8_strict *store_id, + struct wire_cst_list_record_string_string *fixed_headers); -void frbgen_ldk_node_wire__crate__api__builder__ldk_mnemonic_generate(int64_t port_); +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder(int64_t port_, + struct wire_cst_config *config, + struct wire_cst_chain_data_source_config *chain_data_source_config, + struct wire_cst_entropy_source_config *entropy_source_config, + struct wire_cst_gossip_source_config *gossip_source_config, + struct wire_cst_liquidity_source_config *liquidity_source_config); -void frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_channel(int64_t port_, - struct wire_cst_ldk_network_graph *that, +void frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate(int64_t port_); + +void frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_channel(int64_t port_, + struct wire_cst_ffi_network_graph *that, uint64_t short_channel_id); -void frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_list_channels(int64_t port_, - struct wire_cst_ldk_network_graph *that); +void frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_channels(int64_t port_, + struct wire_cst_ffi_network_graph *that); -void frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_list_nodes(int64_t port_, - struct wire_cst_ldk_network_graph *that); +void frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_nodes(int64_t port_, + struct wire_cst_ffi_network_graph *that); -void frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_node(int64_t port_, - struct wire_cst_ldk_network_graph *that, +void frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_node(int64_t port_, + struct wire_cst_ffi_network_graph *that, struct wire_cst_node_id *node_id); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_bolt11_payment(int64_t port_, - struct wire_cst_ldk_node *ptr); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt11_payment(int64_t port_, + struct wire_cst_ffi_node *ptr); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_bolt12_payment(int64_t port_, - struct wire_cst_ldk_node *ptr); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt12_payment(int64_t port_, + struct wire_cst_ffi_node *ptr); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_close_channel(int64_t port_, - struct wire_cst_ldk_node *that, +void frbgen_ldk_node_wire__crate__api__node__ffi_node_close_channel(int64_t port_, + struct wire_cst_ffi_node *that, struct wire_cst_user_channel_id *user_channel_id, struct wire_cst_public_key *counterparty_node_id); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_config(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_config(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_connect(int64_t port_, - struct wire_cst_ldk_node *that, +void frbgen_ldk_node_wire__crate__api__node__ffi_node_connect(int64_t port_, + struct wire_cst_ffi_node *that, struct wire_cst_public_key *node_id, struct wire_cst_socket_address *address, bool persist); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_connect_open_channel(int64_t port_, - struct wire_cst_ldk_node *that, - struct wire_cst_socket_address *socket_address, - struct wire_cst_public_key *node_id, - uint64_t channel_amount_sats, - uint64_t *push_to_counterparty_msat, - bool announce_channel, - struct wire_cst_channel_config *channel_config); - -void frbgen_ldk_node_wire__crate__api__node__ldk_node_disconnect(int64_t port_, - struct wire_cst_ldk_node *that, +void frbgen_ldk_node_wire__crate__api__node__ffi_node_disconnect(int64_t port_, + struct wire_cst_ffi_node *that, struct wire_cst_public_key *counterparty_node_id); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_event_handled(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_event_handled(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_force_close_channel(int64_t port_, - struct wire_cst_ldk_node *that, +void frbgen_ldk_node_wire__crate__api__node__ffi_node_force_close_channel(int64_t port_, + struct wire_cst_ffi_node *that, struct wire_cst_user_channel_id *user_channel_id, struct wire_cst_public_key *counterparty_node_id); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_list_balances(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_list_balances(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_list_channels(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_list_channels(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_list_payments(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_list_payments_with_filter(int64_t port_, - struct wire_cst_ldk_node *that, +void frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments_with_filter(int64_t port_, + struct wire_cst_ffi_node *that, int32_t payment_direction); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_list_peers(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_list_peers(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_listening_addresses(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_network_graph(int64_t port_, + struct wire_cst_ffi_node *ptr); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_listening_addresses(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_network_graph(int64_t port_, - struct wire_cst_ldk_node *ptr); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event_async(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_next_event(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_node_id(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_next_event_async(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_on_chain_payment(int64_t port_, + struct wire_cst_ffi_node *ptr); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_node_id(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_open_announced_channel(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_socket_address *socket_address, + struct wire_cst_public_key *node_id, + uint64_t channel_amount_sats, + uint64_t *push_to_counterparty_msat, + struct wire_cst_channel_config *channel_config); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_on_chain_payment(int64_t port_, - struct wire_cst_ldk_node *ptr); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_open_channel(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_socket_address *socket_address, + struct wire_cst_public_key *node_id, + uint64_t channel_amount_sats, + uint64_t *push_to_counterparty_msat, + struct wire_cst_channel_config *channel_config); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_payment(int64_t port_, - struct wire_cst_ldk_node *that, +void frbgen_ldk_node_wire__crate__api__node__ffi_node_payment(int64_t port_, + struct wire_cst_ffi_node *that, struct wire_cst_payment_id *payment_id); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_remove_payment(int64_t port_, - struct wire_cst_ldk_node *that, +void frbgen_ldk_node_wire__crate__api__node__ffi_node_remove_payment(int64_t port_, + struct wire_cst_ffi_node *that, struct wire_cst_payment_id *payment_id); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_sign_message(int64_t port_, - struct wire_cst_ldk_node *that, +void frbgen_ldk_node_wire__crate__api__node__ffi_node_sign_message(int64_t port_, + struct wire_cst_ffi_node *that, struct wire_cst_list_prim_u_8_loose *msg); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_spontaneous_payment(int64_t port_, - struct wire_cst_ldk_node *ptr); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_spontaneous_payment(int64_t port_, + struct wire_cst_ffi_node *ptr); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_start(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_start(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_status(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_status(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_stop(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_stop(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_sync_wallets(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_sync_wallets(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_update_channel_config(int64_t port_, - struct wire_cst_ldk_node *that, +void frbgen_ldk_node_wire__crate__api__node__ffi_node_unified_qr_payment(int64_t port_, + struct wire_cst_ffi_node *ptr); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_update_channel_config(int64_t port_, + struct wire_cst_ffi_node *that, struct wire_cst_user_channel_id *user_channel_id, struct wire_cst_public_key *counterparty_node_id, struct wire_cst_channel_config *channel_config); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_verify_signature(int64_t port_, - struct wire_cst_ldk_node *that, +void frbgen_ldk_node_wire__crate__api__node__ffi_node_verify_signature(int64_t port_, + struct wire_cst_ffi_node *that, struct wire_cst_list_prim_u_8_loose *msg, struct wire_cst_list_prim_u_8_strict *sig, struct wire_cst_public_key *public_key); -void frbgen_ldk_node_wire__crate__api__node__ldk_node_wait_next_event(int64_t port_, - struct wire_cst_ldk_node *that); +void frbgen_ldk_node_wire__crate__api__node__ffi_node_wait_next_event(int64_t port_, + struct wire_cst_ffi_node *that); -void frbgen_ldk_node_wire__crate__api__on_chain__ldk_on_chain_payment_new_address(int64_t port_, - struct wire_cst_ldk_on_chain_payment *that); +void frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_new_address(int64_t port_, + struct wire_cst_ffi_on_chain_payment *that); -void frbgen_ldk_node_wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_address(int64_t port_, - struct wire_cst_ldk_on_chain_payment *that, +void frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address(int64_t port_, + struct wire_cst_ffi_on_chain_payment *that, struct wire_cst_address *address); -void frbgen_ldk_node_wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address(int64_t port_, - struct wire_cst_ldk_on_chain_payment *that, +void frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address(int64_t port_, + struct wire_cst_ffi_on_chain_payment *that, struct wire_cst_address *address, uint64_t amount_sats); -void frbgen_ldk_node_wire__crate__api__spontaneous__ldk_spontaneous_payment_send(int64_t port_, - struct wire_cst_ldk_spontaneous_payment *that, +void frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send(int64_t port_, + struct wire_cst_ffi_spontaneous_payment *that, uint64_t amount_msat, - struct wire_cst_public_key *node_id); + struct wire_cst_public_key *node_id, + struct wire_cst_sending_parameters *sending_parameters); -void frbgen_ldk_node_wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes(int64_t port_, - struct wire_cst_ldk_spontaneous_payment *that, +void frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes(int64_t port_, + struct wire_cst_ffi_spontaneous_payment *that, uint64_t amount_msat, struct wire_cst_public_key *node_id); -void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment(const void *ptr); +void frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default(int64_t port_); -void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment(const void *ptr); +void frbgen_ldk_node_wire__crate__api__types__config_default(int64_t port_); -void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_Node(const void *ptr); +void frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_receive(int64_t port_, + struct wire_cst_ffi_unified_qr_payment *that, + uint64_t amount_sats, + struct wire_cst_list_prim_u_8_strict *message, + uint32_t expiry_sec); -void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_Node(const void *ptr); +void frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_send(int64_t port_, + struct wire_cst_ffi_unified_qr_payment *that, + struct wire_cst_list_prim_u_8_strict *uri_str); -void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder(const void *ptr); +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder(const void *ptr); -void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder(const void *ptr); +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder(const void *ptr); void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeBuilder(const void *ptr); void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeBuilder(const void *ptr); +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeNode(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNode(const void *ptr); + void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodegraphNetworkGraph(const void *ptr); void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodegraphNetworkGraph(const void *ptr); @@ -977,6 +1116,10 @@ void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentB void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt11Payment(const void *ptr); +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment(const void *ptr); + void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment(const void *ptr); void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment(const void *ptr); @@ -985,6 +1128,10 @@ void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentS void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPayment(const void *ptr); +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment(const void *ptr); + struct wire_cst_address *frbgen_ldk_node_cst_new_box_autoadd_address(void); struct wire_cst_anchor_channels_config *frbgen_ldk_node_cst_new_box_autoadd_anchor_channels_config(void); @@ -993,6 +1140,8 @@ struct wire_cst_bolt_11_invoice *frbgen_ldk_node_cst_new_box_autoadd_bolt_11_inv struct wire_cst_bolt_12_parse_error *frbgen_ldk_node_cst_new_box_autoadd_bolt_12_parse_error(void); +bool *frbgen_ldk_node_cst_new_box_autoadd_bool(bool value); + struct wire_cst_chain_data_source_config *frbgen_ldk_node_cst_new_box_autoadd_chain_data_source_config(void); struct wire_cst_channel_config *frbgen_ldk_node_cst_new_box_autoadd_channel_config(void); @@ -1011,29 +1160,35 @@ struct wire_cst_decode_error *frbgen_ldk_node_cst_new_box_autoadd_decode_error(v struct wire_cst_entropy_source_config *frbgen_ldk_node_cst_new_box_autoadd_entropy_source_config(void); +struct wire_cst_esplora_sync_config *frbgen_ldk_node_cst_new_box_autoadd_esplora_sync_config(void); + struct wire_cst_event *frbgen_ldk_node_cst_new_box_autoadd_event(void); -struct wire_cst_gossip_source_config *frbgen_ldk_node_cst_new_box_autoadd_gossip_source_config(void); +struct wire_cst_ffi_bolt_11_payment *frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_11_payment(void); -struct wire_cst_ldk_bolt_11_payment *frbgen_ldk_node_cst_new_box_autoadd_ldk_bolt_11_payment(void); +struct wire_cst_ffi_bolt_12_payment *frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_12_payment(void); -struct wire_cst_ldk_bolt_12_payment *frbgen_ldk_node_cst_new_box_autoadd_ldk_bolt_12_payment(void); +struct wire_cst_ffi_mnemonic *frbgen_ldk_node_cst_new_box_autoadd_ffi_mnemonic(void); -struct wire_cst_ldk_mnemonic *frbgen_ldk_node_cst_new_box_autoadd_ldk_mnemonic(void); +struct wire_cst_ffi_network_graph *frbgen_ldk_node_cst_new_box_autoadd_ffi_network_graph(void); -struct wire_cst_ldk_network_graph *frbgen_ldk_node_cst_new_box_autoadd_ldk_network_graph(void); +struct wire_cst_ffi_node *frbgen_ldk_node_cst_new_box_autoadd_ffi_node(void); -struct wire_cst_ldk_node *frbgen_ldk_node_cst_new_box_autoadd_ldk_node(void); +struct wire_cst_ffi_on_chain_payment *frbgen_ldk_node_cst_new_box_autoadd_ffi_on_chain_payment(void); -struct wire_cst_ldk_on_chain_payment *frbgen_ldk_node_cst_new_box_autoadd_ldk_on_chain_payment(void); +struct wire_cst_ffi_spontaneous_payment *frbgen_ldk_node_cst_new_box_autoadd_ffi_spontaneous_payment(void); -struct wire_cst_ldk_spontaneous_payment *frbgen_ldk_node_cst_new_box_autoadd_ldk_spontaneous_payment(void); +struct wire_cst_ffi_unified_qr_payment *frbgen_ldk_node_cst_new_box_autoadd_ffi_unified_qr_payment(void); + +struct wire_cst_gossip_source_config *frbgen_ldk_node_cst_new_box_autoadd_gossip_source_config(void); struct wire_cst_liquidity_source_config *frbgen_ldk_node_cst_new_box_autoadd_liquidity_source_config(void); struct wire_cst_lsp_fee_limits *frbgen_ldk_node_cst_new_box_autoadd_lsp_fee_limits(void); -struct wire_cst_max_dust_htlc_exposure *frbgen_ldk_node_cst_new_box_autoadd_max_dust_htlc_exposure(void); +struct wire_cst_max_total_routing_fee_limit *frbgen_ldk_node_cst_new_box_autoadd_max_total_routing_fee_limit(void); + +struct wire_cst_node_alias *frbgen_ldk_node_cst_new_box_autoadd_node_alias(void); struct wire_cst_node_announcement_info *frbgen_ldk_node_cst_new_box_autoadd_node_announcement_info(void); @@ -1063,6 +1218,8 @@ struct wire_cst_public_key *frbgen_ldk_node_cst_new_box_autoadd_public_key(void) struct wire_cst_refund *frbgen_ldk_node_cst_new_box_autoadd_refund(void); +struct wire_cst_sending_parameters *frbgen_ldk_node_cst_new_box_autoadd_sending_parameters(void); + struct wire_cst_socket_address *frbgen_ldk_node_cst_new_box_autoadd_socket_address(void); struct wire_cst_txid *frbgen_ldk_node_cst_new_box_autoadd_txid(void); @@ -1073,6 +1230,8 @@ uint32_t *frbgen_ldk_node_cst_new_box_autoadd_u_32(uint32_t value); uint64_t *frbgen_ldk_node_cst_new_box_autoadd_u_64(uint64_t value); +uint8_t *frbgen_ldk_node_cst_new_box_autoadd_u_8(uint8_t value); + struct wire_cst_user_channel_id *frbgen_ldk_node_cst_new_box_autoadd_user_channel_id(void); struct wire_cst_list_channel_details *frbgen_ldk_node_cst_new_list_channel_details(int32_t len); @@ -1095,6 +1254,8 @@ struct wire_cst_list_prim_u_8_strict *frbgen_ldk_node_cst_new_list_prim_u_8_stri struct wire_cst_list_public_key *frbgen_ldk_node_cst_new_list_public_key(int32_t len); +struct wire_cst_list_record_string_string *frbgen_ldk_node_cst_new_list_record_string_string(int32_t len); + struct wire_cst_list_socket_address *frbgen_ldk_node_cst_new_list_socket_address(int32_t len); static int64_t dummy_method_to_enforce_bundling(void) { int64_t dummy_var = 0; @@ -1102,6 +1263,7 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_anchor_channels_config); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_bolt_11_invoice); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_bolt_12_parse_error); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_bool); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_chain_data_source_config); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_channel_config); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_channel_id); @@ -1111,18 +1273,21 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_config); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_decode_error); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_entropy_source_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_esplora_sync_config); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_event); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_11_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_12_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_network_graph); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_node); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_on_chain_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_spontaneous_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_unified_qr_payment); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_gossip_source_config); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ldk_bolt_11_payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ldk_bolt_12_payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ldk_mnemonic); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ldk_network_graph); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ldk_node); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ldk_on_chain_payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ldk_spontaneous_payment); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_liquidity_source_config); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_lsp_fee_limits); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_max_dust_htlc_exposure); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_max_total_routing_fee_limit); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_node_alias); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_node_announcement_info); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_node_id); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_node_info); @@ -1137,11 +1302,13 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_payment_secret); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_public_key); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_refund); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_sending_parameters); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_socket_address); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_txid); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_u_16); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_u_32); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_u_64); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_u_8); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_user_channel_id); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_channel_details); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_lightning_balance); @@ -1153,87 +1320,98 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_prim_u_8_loose); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_prim_u_8_strict); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_public_key); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_record_string_string); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_socket_address); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_Node); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNode); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodegraphNetworkGraph); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt11Payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPayment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_Node); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeNode); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodegraphNetworkGraph); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt11Payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment); dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPayment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hash); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hash); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_hash); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_via_jit_channel); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amount); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amount); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refund); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_receive); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amount); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_send); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amount); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_auto_accessor_get_builder); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_auto_accessor_set_builder); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_build); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_build_with_fs_store); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_create_builder); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__ldk_mnemonic_generate); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_channel); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_list_channels); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_list_nodes); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_node); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_bolt11_payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_bolt12_payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_close_channel); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_config); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_connect); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_connect_open_channel); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_disconnect); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_event_handled); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_force_close_channel); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_list_balances); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_list_channels); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_list_payments); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_list_payments_with_filter); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_list_peers); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_listening_addresses); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_network_graph); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_next_event); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_next_event_async); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_node_id); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_on_chain_payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_remove_payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_sign_message); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_spontaneous_payment); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_start); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_status); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_stop); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_sync_wallets); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_update_channel_config); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_verify_signature); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ldk_node_wait_next_event); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__on_chain__ldk_on_chain_payment_new_address); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_address); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__spontaneous__ldk_spontaneous_payment_send); - dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_channels); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_nodes); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_node); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt11_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt12_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_close_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_connect); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_disconnect); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_event_handled); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_force_close_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_list_balances); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_list_channels); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments_with_filter); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_list_peers); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_listening_addresses); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_network_graph); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event_async); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_node_id); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_on_chain_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_open_announced_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_open_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_remove_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_sign_message); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_spontaneous_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_start); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_status); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_stop); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_sync_wallets); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_unified_qr_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_update_channel_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_verify_signature); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_wait_next_event); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_new_address); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__types__config_default); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_receive); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_send); dummy_var ^= ((int64_t) (void*) store_dart_post_cobject); return dummy_var; } diff --git a/ios/ldk_node.podspec b/ios/ldk_node.podspec index 78bda57..15d4962 100644 --- a/ios/ldk_node.podspec +++ b/ios/ldk_node.podspec @@ -1,28 +1,28 @@ Pod::Spec.new do |s| s.name = 'ldk_node' - s.version = '0.3.0' + s.version = '0.4.2' s.summary = 'A ready-to-go Lightning node library built using LDK and BDK.' s.homepage = 'https://www.LtbL.io' s.license = { :file => '../LICENSE' } s.author = { 'Let there be Lightning, Inc' => 'hello@LtbL.io' } s.source = { :path => '.' } - s.source_files = 'Classes/**/*' - s.dependency 'Flutter' - s.platform = :ios, '12.0' - s.script_phase = { - :name => 'Build Rust library', - # First argument is relative path to the `rust` folder, second is name of rust library - :script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../rust ldk_node', - :execution_position => :before_compile, - :input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'], - # Let XCode know that the static library referenced in -force_load below is - # created by this build step. - :output_files => ["${BUILT_PRODUCTS_DIR}/libldk_node.a"], - } - s.pod_target_xcconfig = { - 'DEFINES_MODULE' => 'YES', - # Flutter.framework does not contain a i386 slice. - 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386', - 'OTHER_LDFLAGS' => '-force_load ${BUILT_PRODUCTS_DIR}/libldk_node.a', - } + s.source_files = 'Classes/**/*' + s.platform = :ios, '12.0' + s.script_phase = { + :name => 'Build Rust library', + # First argument is relative path to the `rust` folder, second is name of rust library + :script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../rust ldk_node', + :execution_position => :before_compile, + :input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'], + # Let XCode know that the static library referenced in -force_load below is + # created by this build step. + :output_files => ["${BUILT_PRODUCTS_DIR}/libldk_node.a"], + } + s.pod_target_xcconfig = { + 'DEFINES_MODULE' => 'YES', + # Flutter.framework does not contain a i386 slice. + 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386', + 'OTHER_LDFLAGS' => '-force_load ${BUILT_PRODUCTS_DIR}/libldk_node.a', + } + s.dependency 'Flutter' end diff --git a/lib/ldk_node.dart b/lib/ldk_node.dart index b74ebe2..8404413 100644 --- a/lib/ldk_node.dart +++ b/lib/ldk_node.dart @@ -1,34 +1,58 @@ -export './src/generated/api/bolt11.dart'; -export './src/generated/api/bolt12.dart'; -export './src/generated/api/on_chain.dart'; -export './src/generated/api/spontaneous.dart'; -export './src/generated/api/types.dart' - hide - Event_ChannelClosed, - Event_ChannelReady, - Event_PaymentFailed, - Event_PaymentReceived, - Event_PaymentSuccessful, - Event_ChannelPending, - MaxDustHTLCExposure, - SocketAddress_Hostname, - SocketAddress_OnionV2, - EntropySourceConfig, - SocketAddress_OnionV3, - $ChainDataSourceConfigCopyWith, - SocketAddress_TcpIpV4, - SocketAddress_TcpIpV6, - MaxDustHTLCExposure_FeeRateMultiplier, - MaxDustHTLCExposure_FixedLimitMsat, - EntropySourceConfig_SeedBytes, - EntropySourceConfig_Bip39Mnemonic, - ChainDataSourceConfig_Esplora, - GossipSourceConfig_P2PNetwork, - GossipSourceConfig_RapidGossipSync, +export 'src/generated/api/bolt11.dart' show Bolt11Invoice; +export 'src/generated/api/bolt12.dart' show Bolt12Invoice, Offer, Refund; +export 'src/generated/api/unified_qr.dart' show QrPaymentResult; +export 'src/generated/api/graph.dart' + show + ChannelInfo, + ChannelUpdateInfo, + NodeAnnouncementInfo, + NodeId, + NodeInfo, + RoutingFees; +export 'src/generated/api/types.dart' + show + Address, + AnchorChannelsConfig, + BalanceDetails, + BalanceSource, + LightningBalance, + BestBlock, ChainDataSourceConfig, + ChannelConfig, + ChannelDetails, + ChannelId, + ClosureReason, + Config, + EntropySourceConfig, + EsploraSyncConfig, GossipSourceConfig, - EntropySourceConfig_SeedFile; + LiquiditySourceConfig, + LSPFeeLimits, + MaxDustHTLCExposure, + MaxTotalRoutingFeeLimit, + Event, + LogLevel, + Network, + NodeAlias, + NodeStatus, + OutPoint, + PaymentDetails, + PaymentDirection, + PaymentFailureReason, + PaymentHash, + PaymentId, + PaymentKind, + PaymentPreimage, + PaymentSecret, + PaymentStatus, + PeerDetails, + PendingSweepBalance, + PublicKey, + SendingParameters, + SocketAddress, + Txid, + UserChannelId; export 'src/root.dart'; export 'src/generated/lib.dart' show U8Array4, U8Array12, U8Array64, U8Array32; -export 'src/utils/utils.dart' - hide ExceptionBase, mapLdkBuilderError, mapLdkNodeError, Frb; +export 'src/utils/default_services.dart'; +export 'src/utils/exceptions.dart' show NodeException, BuilderException; diff --git a/lib/src/generated/api/bolt11.dart b/lib/src/generated/api/bolt11.dart index a81e48c..98f4030 100644 --- a/lib/src/generated/api/bolt11.dart +++ b/lib/src/generated/api/bolt11.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -31,32 +31,32 @@ class Bolt11Invoice { signedRawInvoice == other.signedRawInvoice; } -class LdkBolt11Payment { - final Bolt11Payment ptr; +class FfiBolt11Payment { + final Bolt11Payment opaque; - const LdkBolt11Payment({ - required this.ptr, + const FfiBolt11Payment({ + required this.opaque, }); Future claimForHash( {required PaymentHash paymentHash, required BigInt claimableAmountMsat, required PaymentPreimage preimage}) => - core.instance.api.crateApiBolt11LdkBolt11PaymentClaimForHash( + core.instance.api.crateApiBolt11FfiBolt11PaymentClaimForHash( that: this, paymentHash: paymentHash, claimableAmountMsat: claimableAmountMsat, preimage: preimage); Future failForHash({required PaymentHash paymentHash}) => - core.instance.api.crateApiBolt11LdkBolt11PaymentFailForHash( + core.instance.api.crateApiBolt11FfiBolt11PaymentFailForHash( that: this, paymentHash: paymentHash); Future receive( {required BigInt amountMsat, required String description, required int expirySecs}) => - core.instance.api.crateApiBolt11LdkBolt11PaymentReceive( + core.instance.api.crateApiBolt11FfiBolt11PaymentReceive( that: this, amountMsat: amountMsat, description: description, @@ -67,7 +67,7 @@ class LdkBolt11Payment { required BigInt amountMsat, required String description, required int expirySecs}) => - core.instance.api.crateApiBolt11LdkBolt11PaymentReceiveForHash( + core.instance.api.crateApiBolt11FfiBolt11PaymentReceiveForHash( that: this, paymentHash: paymentHash, amountMsat: amountMsat, @@ -76,7 +76,7 @@ class LdkBolt11Payment { Future receiveVariableAmount( {required String description, required int expirySecs}) => - core.instance.api.crateApiBolt11LdkBolt11PaymentReceiveVariableAmount( + core.instance.api.crateApiBolt11FfiBolt11PaymentReceiveVariableAmount( that: this, description: description, expirySecs: expirySecs); Future receiveVariableAmountForHash( @@ -84,7 +84,7 @@ class LdkBolt11Payment { required int expirySecs, required PaymentHash paymentHash}) => core.instance.api - .crateApiBolt11LdkBolt11PaymentReceiveVariableAmountForHash( + .crateApiBolt11FfiBolt11PaymentReceiveVariableAmountForHash( that: this, description: description, expirySecs: expirySecs, @@ -95,7 +95,7 @@ class LdkBolt11Payment { required int expirySecs, BigInt? maxProportionalLspFeeLimitPpmMsat}) => core.instance.api - .crateApiBolt11LdkBolt11PaymentReceiveVariableAmountViaJitChannel( + .crateApiBolt11FfiBolt11PaymentReceiveVariableAmountViaJitChannel( that: this, description: description, expirySecs: expirySecs, @@ -107,36 +107,44 @@ class LdkBolt11Payment { required String description, required int expirySecs, BigInt? maxTotalLspFeeLimitMsat}) => - core.instance.api.crateApiBolt11LdkBolt11PaymentReceiveViaJitChannel( + core.instance.api.crateApiBolt11FfiBolt11PaymentReceiveViaJitChannel( that: this, amountMsat: amountMsat, description: description, expirySecs: expirySecs, maxTotalLspFeeLimitMsat: maxTotalLspFeeLimitMsat); - Future send({required Bolt11Invoice invoice}) => core.instance.api - .crateApiBolt11LdkBolt11PaymentSend(that: this, invoice: invoice); + Future send( + {required Bolt11Invoice invoice, + SendingParameters? sendingParameters}) => + core.instance.api.crateApiBolt11FfiBolt11PaymentSend( + that: this, invoice: invoice, sendingParameters: sendingParameters); Future sendProbes({required Bolt11Invoice invoice}) => core.instance.api - .crateApiBolt11LdkBolt11PaymentSendProbes(that: this, invoice: invoice); + .crateApiBolt11FfiBolt11PaymentSendProbes(that: this, invoice: invoice); Future sendProbesUsingAmount( {required Bolt11Invoice invoice, required BigInt amountMsat}) => - core.instance.api.crateApiBolt11LdkBolt11PaymentSendProbesUsingAmount( + core.instance.api.crateApiBolt11FfiBolt11PaymentSendProbesUsingAmount( that: this, invoice: invoice, amountMsat: amountMsat); Future sendUsingAmount( - {required Bolt11Invoice invoice, required BigInt amountMsat}) => - core.instance.api.crateApiBolt11LdkBolt11PaymentSendUsingAmount( - that: this, invoice: invoice, amountMsat: amountMsat); + {required Bolt11Invoice invoice, + required BigInt amountMsat, + SendingParameters? sendingParameters}) => + core.instance.api.crateApiBolt11FfiBolt11PaymentSendUsingAmount( + that: this, + invoice: invoice, + amountMsat: amountMsat, + sendingParameters: sendingParameters); @override - int get hashCode => ptr.hashCode; + int get hashCode => opaque.hashCode; @override bool operator ==(Object other) => identical(this, other) || - other is LdkBolt11Payment && + other is FfiBolt11Payment && runtimeType == other.runtimeType && - ptr == other.ptr; + opaque == other.opaque; } diff --git a/lib/src/generated/api/bolt12.dart b/lib/src/generated/api/bolt12.dart index 08f6999..f23efeb 100644 --- a/lib/src/generated/api/bolt12.dart +++ b/lib/src/generated/api/bolt12.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -9,10 +9,7 @@ import '../utils/error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'types.dart'; -// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `clone`, `eq`, `fmt`, `from`, `from`, `from`, `try_from`, `try_from`, `try_from` - -// Rust type: RustOpaqueNom> -abstract class ArcBolt12Payment implements RustOpaqueInterface {} +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `clone`, `eq`, `fmt`, `from`, `from`, `from`, `from`, `try_from`, `try_from`, `try_from` ///A Bolt12Invoice is a payment request, typically corresponding to an Offer or a Refund. class Bolt12Invoice { @@ -33,54 +30,72 @@ class Bolt12Invoice { data == other.data; } -class LdkBolt12Payment { - final ArcBolt12Payment ptr; +class FfiBolt12Payment { + final Bolt12Payment opaque; - const LdkBolt12Payment({ - required this.ptr, + const FfiBolt12Payment({ + required this.opaque, }); Future initiateRefund( - {required BigInt amountMsat, required int expirySecs}) => - core.instance.api.crateApiBolt12LdkBolt12PaymentInitiateRefund( - that: this, amountMsat: amountMsat, expirySecs: expirySecs); + {required BigInt amountMsat, + required int expirySecs, + BigInt? quantity, + String? payerNote}) => + core.instance.api.crateApiBolt12FfiBolt12PaymentInitiateRefund( + that: this, + amountMsat: amountMsat, + expirySecs: expirySecs, + quantity: quantity, + payerNote: payerNote); Future receive( - {required BigInt amountMsat, required String description}) => - core.instance.api.crateApiBolt12LdkBolt12PaymentReceive( - that: this, amountMsat: amountMsat, description: description); + {required BigInt amountMsat, + required String description, + int? expirySecs, + BigInt? quantity}) => + core.instance.api.crateApiBolt12FfiBolt12PaymentReceive( + that: this, + amountMsat: amountMsat, + description: description, + expirySecs: expirySecs, + quantity: quantity); - Future receiveVariableAmount({required String description}) => - core.instance.api.crateApiBolt12LdkBolt12PaymentReceiveVariableAmount( - that: this, description: description); + Future receiveVariableAmount( + {required String description, int? expirySecs}) => + core.instance.api.crateApiBolt12FfiBolt12PaymentReceiveVariableAmount( + that: this, description: description, expirySecs: expirySecs); Future requestRefundPayment({required Refund refund}) => - core.instance.api.crateApiBolt12LdkBolt12PaymentRequestRefundPayment( + core.instance.api.crateApiBolt12FfiBolt12PaymentRequestRefundPayment( that: this, refund: refund); - Future send({required Offer offer, String? payerNote}) => - core.instance.api.crateApiBolt12LdkBolt12PaymentSend( - that: this, offer: offer, payerNote: payerNote); + Future send( + {required Offer offer, BigInt? quantity, String? payerNote}) => + core.instance.api.crateApiBolt12FfiBolt12PaymentSend( + that: this, offer: offer, quantity: quantity, payerNote: payerNote); Future sendUsingAmount( {required Offer offer, - String? payerNote, - required BigInt amountMsat}) => - core.instance.api.crateApiBolt12LdkBolt12PaymentSendUsingAmount( + required BigInt amountMsat, + BigInt? quantity, + String? payerNote}) => + core.instance.api.crateApiBolt12FfiBolt12PaymentSendUsingAmount( that: this, offer: offer, - payerNote: payerNote, - amountMsat: amountMsat); + amountMsat: amountMsat, + quantity: quantity, + payerNote: payerNote); @override - int get hashCode => ptr.hashCode; + int get hashCode => opaque.hashCode; @override bool operator ==(Object other) => identical(this, other) || - other is LdkBolt12Payment && + other is FfiBolt12Payment && runtimeType == other.runtimeType && - ptr == other.ptr; + opaque == other.opaque; } /// An `Offer` is a potentially long-lived proposal for payment of a good or service. diff --git a/lib/src/generated/api/builder.dart b/lib/src/generated/api/builder.dart index a6fd072..e57f5a0 100644 --- a/lib/src/generated/api/builder.dart +++ b/lib/src/generated/api/builder.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -12,23 +12,34 @@ import 'types.dart'; // These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `clone`, `fmt`, `from`, `try_from` -// Rust type: RustOpaqueNom> -abstract class NodeBuilder implements RustOpaqueInterface { - Builder get builder; +// Rust type: RustOpaqueNom> +abstract class FfiBuilder implements RustOpaqueInterface { + Builder get opaque; - void set builder(Builder builder); + set opaque(Builder opaque); - Future build(); + Future build(); - Future buildWithFsStore(); + Future buildWithFsStore(); - static Future createBuilder( + Future buildWithVssStore( + {required String vssUrl, + required String storeId, + required String lnurlAuthServerUrl, + required Map fixedHeaders}); + + Future buildWithVssStoreAndFixedHeaders( + {required String vssUrl, + required String storeId, + required Map fixedHeaders}); + + static Future createBuilder( {required Config config, ChainDataSourceConfig? chainDataSourceConfig, EntropySourceConfig? entropySourceConfig, GossipSourceConfig? gossipSourceConfig, LiquiditySourceConfig? liquiditySourceConfig}) => - core.instance.api.crateApiBuilderNodeBuilderCreateBuilder( + core.instance.api.crateApiBuilderFfiBuilderCreateBuilder( config: config, chainDataSourceConfig: chainDataSourceConfig, entropySourceConfig: entropySourceConfig, @@ -39,15 +50,18 @@ abstract class NodeBuilder implements RustOpaqueInterface { // Rust type: RustOpaqueNom abstract class Builder implements RustOpaqueInterface {} -class LdkMnemonic { +// Rust type: RustOpaqueNom +abstract class Node implements RustOpaqueInterface {} + +class FfiMnemonic { final String seedPhrase; - const LdkMnemonic({ + const FfiMnemonic({ required this.seedPhrase, }); - static Future generate() => - core.instance.api.crateApiBuilderLdkMnemonicGenerate(); + static Future generate() => + core.instance.api.crateApiBuilderFfiMnemonicGenerate(); @override int get hashCode => seedPhrase.hashCode; @@ -55,7 +69,7 @@ class LdkMnemonic { @override bool operator ==(Object other) => identical(this, other) || - other is LdkMnemonic && + other is FfiMnemonic && runtimeType == other.runtimeType && seedPhrase == other.seedPhrase; } diff --git a/lib/src/generated/api/graph.dart b/lib/src/generated/api/graph.dart index 6859cec..4d300f1 100644 --- a/lib/src/generated/api/graph.dart +++ b/lib/src/generated/api/graph.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -104,42 +104,42 @@ class ChannelUpdateInfo { fees == other.fees; } -class LdkNetworkGraph { - final NetworkGraph ptr; +class FfiNetworkGraph { + final NetworkGraph opaque; - const LdkNetworkGraph({ - required this.ptr, + const FfiNetworkGraph({ + required this.opaque, }); /// Returns information on a channel with the given id. Future channel({required BigInt shortChannelId}) => - core.instance.api.crateApiGraphLdkNetworkGraphChannel( + core.instance.api.crateApiGraphFfiNetworkGraphChannel( that: this, shortChannelId: shortChannelId); /// Returns the list of channels in the graph Future listChannels() => - core.instance.api.crateApiGraphLdkNetworkGraphListChannels( + core.instance.api.crateApiGraphFfiNetworkGraphListChannels( that: this, ); /// Returns the list of nodes in the graph Future> listNodes() => - core.instance.api.crateApiGraphLdkNetworkGraphListNodes( + core.instance.api.crateApiGraphFfiNetworkGraphListNodes( that: this, ); Future node({required NodeId nodeId}) => core.instance.api - .crateApiGraphLdkNetworkGraphNode(that: this, nodeId: nodeId); + .crateApiGraphFfiNetworkGraphNode(that: this, nodeId: nodeId); @override - int get hashCode => ptr.hashCode; + int get hashCode => opaque.hashCode; @override bool operator ==(Object other) => identical(this, other) || - other is LdkNetworkGraph && + other is FfiNetworkGraph && runtimeType == other.runtimeType && - ptr == other.ptr; + opaque == other.opaque; } class NodeAnnouncementInfo { diff --git a/lib/src/generated/api/node.dart b/lib/src/generated/api/node.dart index b409039..7d6921c 100644 --- a/lib/src/generated/api/node.dart +++ b/lib/src/generated/api/node.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -8,37 +8,36 @@ import '../lib.dart'; import '../utils/error.dart'; import 'bolt11.dart'; import 'bolt12.dart'; +import 'builder.dart'; import 'graph.dart'; import 'on_chain.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'spontaneous.dart'; import 'types.dart'; +import 'unified_qr.dart'; -// Rust type: RustOpaqueNom -abstract class Node implements RustOpaqueInterface {} +class FfiNode { + final Node opaque; -class LdkNode { - final Node ptr; - - const LdkNode({ - required this.ptr, + const FfiNode({ + required this.opaque, }); - static Future bolt11Payment({required LdkNode ptr}) => - core.instance.api.crateApiNodeLdkNodeBolt11Payment(ptr: ptr); + static Future bolt11Payment({required FfiNode ptr}) => + core.instance.api.crateApiNodeFfiNodeBolt11Payment(ptr: ptr); - static Future bolt12Payment({required LdkNode ptr}) => - core.instance.api.crateApiNodeLdkNodeBolt12Payment(ptr: ptr); + static Future bolt12Payment({required FfiNode ptr}) => + core.instance.api.crateApiNodeFfiNodeBolt12Payment(ptr: ptr); Future closeChannel( {required UserChannelId userChannelId, required PublicKey counterpartyNodeId}) => - core.instance.api.crateApiNodeLdkNodeCloseChannel( + core.instance.api.crateApiNodeFfiNodeCloseChannel( that: this, userChannelId: userChannelId, counterpartyNodeId: counterpartyNodeId); - Future config() => core.instance.api.crateApiNodeLdkNodeConfig( + Future config() => core.instance.api.crateApiNodeFfiNodeConfig( that: this, ); @@ -46,128 +45,143 @@ class LdkNode { {required PublicKey nodeId, required SocketAddress address, required bool persist}) => - core.instance.api.crateApiNodeLdkNodeConnect( + core.instance.api.crateApiNodeFfiNodeConnect( that: this, nodeId: nodeId, address: address, persist: persist); - Future connectOpenChannel( - {required SocketAddress socketAddress, - required PublicKey nodeId, - required BigInt channelAmountSats, - BigInt? pushToCounterpartyMsat, - required bool announceChannel, - ChannelConfig? channelConfig}) => - core.instance.api.crateApiNodeLdkNodeConnectOpenChannel( - that: this, - socketAddress: socketAddress, - nodeId: nodeId, - channelAmountSats: channelAmountSats, - pushToCounterpartyMsat: pushToCounterpartyMsat, - announceChannel: announceChannel, - channelConfig: channelConfig); - Future disconnect({required PublicKey counterpartyNodeId}) => - core.instance.api.crateApiNodeLdkNodeDisconnect( + core.instance.api.crateApiNodeFfiNodeDisconnect( that: this, counterpartyNodeId: counterpartyNodeId); Future eventHandled() => - core.instance.api.crateApiNodeLdkNodeEventHandled( + core.instance.api.crateApiNodeFfiNodeEventHandled( that: this, ); Future forceCloseChannel( {required UserChannelId userChannelId, required PublicKey counterpartyNodeId}) => - core.instance.api.crateApiNodeLdkNodeForceCloseChannel( + core.instance.api.crateApiNodeFfiNodeForceCloseChannel( that: this, userChannelId: userChannelId, counterpartyNodeId: counterpartyNodeId); Future listBalances() => - core.instance.api.crateApiNodeLdkNodeListBalances( + core.instance.api.crateApiNodeFfiNodeListBalances( that: this, ); Future> listChannels() => - core.instance.api.crateApiNodeLdkNodeListChannels( + core.instance.api.crateApiNodeFfiNodeListChannels( that: this, ); Future> listPayments() => - core.instance.api.crateApiNodeLdkNodeListPayments( + core.instance.api.crateApiNodeFfiNodeListPayments( that: this, ); Future> listPaymentsWithFilter( {required PaymentDirection paymentDirection}) => - core.instance.api.crateApiNodeLdkNodeListPaymentsWithFilter( + core.instance.api.crateApiNodeFfiNodeListPaymentsWithFilter( that: this, paymentDirection: paymentDirection); Future> listPeers() => - core.instance.api.crateApiNodeLdkNodeListPeers( + core.instance.api.crateApiNodeFfiNodeListPeers( that: this, ); Future?> listeningAddresses() => - core.instance.api.crateApiNodeLdkNodeListeningAddresses( + core.instance.api.crateApiNodeFfiNodeListeningAddresses( that: this, ); - static Future networkGraph({required LdkNode ptr}) => - core.instance.api.crateApiNodeLdkNodeNetworkGraph(ptr: ptr); + static Future networkGraph({required FfiNode ptr}) => + core.instance.api.crateApiNodeFfiNodeNetworkGraph(ptr: ptr); - Future nextEvent() => core.instance.api.crateApiNodeLdkNodeNextEvent( + Future nextEvent() => core.instance.api.crateApiNodeFfiNodeNextEvent( that: this, ); Future nextEventAsync() => - core.instance.api.crateApiNodeLdkNodeNextEventAsync( + core.instance.api.crateApiNodeFfiNodeNextEventAsync( that: this, ); - Future nodeId() => core.instance.api.crateApiNodeLdkNodeNodeId( + Future nodeId() => core.instance.api.crateApiNodeFfiNodeNodeId( that: this, ); - static Future onChainPayment({required LdkNode ptr}) => - core.instance.api.crateApiNodeLdkNodeOnChainPayment(ptr: ptr); + static Future onChainPayment({required FfiNode ptr}) => + core.instance.api.crateApiNodeFfiNodeOnChainPayment(ptr: ptr); + + Future openAnnouncedChannel( + {required SocketAddress socketAddress, + required PublicKey nodeId, + required BigInt channelAmountSats, + BigInt? pushToCounterpartyMsat, + ChannelConfig? channelConfig}) => + core.instance.api.crateApiNodeFfiNodeOpenAnnouncedChannel( + that: this, + socketAddress: socketAddress, + nodeId: nodeId, + channelAmountSats: channelAmountSats, + pushToCounterpartyMsat: pushToCounterpartyMsat, + channelConfig: channelConfig); + + Future openChannel( + {required SocketAddress socketAddress, + required PublicKey nodeId, + required BigInt channelAmountSats, + BigInt? pushToCounterpartyMsat, + ChannelConfig? channelConfig}) => + core.instance.api.crateApiNodeFfiNodeOpenChannel( + that: this, + socketAddress: socketAddress, + nodeId: nodeId, + channelAmountSats: channelAmountSats, + pushToCounterpartyMsat: pushToCounterpartyMsat, + channelConfig: channelConfig); Future payment({required PaymentId paymentId}) => core.instance.api - .crateApiNodeLdkNodePayment(that: this, paymentId: paymentId); + .crateApiNodeFfiNodePayment(that: this, paymentId: paymentId); Future removePayment({required PaymentId paymentId}) => core.instance.api - .crateApiNodeLdkNodeRemovePayment(that: this, paymentId: paymentId); + .crateApiNodeFfiNodeRemovePayment(that: this, paymentId: paymentId); Future signMessage({required List msg}) => - core.instance.api.crateApiNodeLdkNodeSignMessage(that: this, msg: msg); + core.instance.api.crateApiNodeFfiNodeSignMessage(that: this, msg: msg); - static Future spontaneousPayment( - {required LdkNode ptr}) => - core.instance.api.crateApiNodeLdkNodeSpontaneousPayment(ptr: ptr); + static Future spontaneousPayment( + {required FfiNode ptr}) => + core.instance.api.crateApiNodeFfiNodeSpontaneousPayment(ptr: ptr); - Future start() => core.instance.api.crateApiNodeLdkNodeStart( + Future start() => core.instance.api.crateApiNodeFfiNodeStart( that: this, ); - Future status() => core.instance.api.crateApiNodeLdkNodeStatus( + Future status() => core.instance.api.crateApiNodeFfiNodeStatus( that: this, ); - Future stop() => core.instance.api.crateApiNodeLdkNodeStop( + Future stop() => core.instance.api.crateApiNodeFfiNodeStop( that: this, ); Future syncWallets() => - core.instance.api.crateApiNodeLdkNodeSyncWallets( + core.instance.api.crateApiNodeFfiNodeSyncWallets( that: this, ); + static Future unifiedQrPayment({required FfiNode ptr}) => + core.instance.api.crateApiNodeFfiNodeUnifiedQrPayment(ptr: ptr); + Future updateChannelConfig( {required UserChannelId userChannelId, required PublicKey counterpartyNodeId, required ChannelConfig channelConfig}) => - core.instance.api.crateApiNodeLdkNodeUpdateChannelConfig( + core.instance.api.crateApiNodeFfiNodeUpdateChannelConfig( that: this, userChannelId: userChannelId, counterpartyNodeId: counterpartyNodeId, @@ -177,19 +191,21 @@ class LdkNode { {required List msg, required String sig, required PublicKey publicKey}) => - core.instance.api.crateApiNodeLdkNodeVerifySignature( + core.instance.api.crateApiNodeFfiNodeVerifySignature( that: this, msg: msg, sig: sig, publicKey: publicKey); Future waitNextEvent() => - core.instance.api.crateApiNodeLdkNodeWaitNextEvent( + core.instance.api.crateApiNodeFfiNodeWaitNextEvent( that: this, ); @override - int get hashCode => ptr.hashCode; + int get hashCode => opaque.hashCode; @override bool operator ==(Object other) => identical(this, other) || - other is LdkNode && runtimeType == other.runtimeType && ptr == other.ptr; + other is FfiNode && + runtimeType == other.runtimeType && + opaque == other.opaque; } diff --git a/lib/src/generated/api/on_chain.dart b/lib/src/generated/api/on_chain.dart index 2679842..dd284f3 100644 --- a/lib/src/generated/api/on_chain.dart +++ b/lib/src/generated/api/on_chain.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -11,34 +11,34 @@ import 'types.dart'; // These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `from` -class LdkOnChainPayment { - final OnchainPayment ptr; +class FfiOnChainPayment { + final OnchainPayment opaque; - const LdkOnChainPayment({ - required this.ptr, + const FfiOnChainPayment({ + required this.opaque, }); Future
newAddress() => - core.instance.api.crateApiOnChainLdkOnChainPaymentNewAddress( + core.instance.api.crateApiOnChainFfiOnChainPaymentNewAddress( that: this, ); Future sendAllToAddress({required Address address}) => - core.instance.api.crateApiOnChainLdkOnChainPaymentSendAllToAddress( + core.instance.api.crateApiOnChainFfiOnChainPaymentSendAllToAddress( that: this, address: address); Future sendToAddress( {required Address address, required BigInt amountSats}) => - core.instance.api.crateApiOnChainLdkOnChainPaymentSendToAddress( + core.instance.api.crateApiOnChainFfiOnChainPaymentSendToAddress( that: this, address: address, amountSats: amountSats); @override - int get hashCode => ptr.hashCode; + int get hashCode => opaque.hashCode; @override bool operator ==(Object other) => identical(this, other) || - other is LdkOnChainPayment && + other is FfiOnChainPayment && runtimeType == other.runtimeType && - ptr == other.ptr; + opaque == other.opaque; } diff --git a/lib/src/generated/api/spontaneous.dart b/lib/src/generated/api/spontaneous.dart index adad377..7dd355d 100644 --- a/lib/src/generated/api/spontaneous.dart +++ b/lib/src/generated/api/spontaneous.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -11,30 +11,35 @@ import 'types.dart'; // These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `from` -class LdkSpontaneousPayment { - final SpontaneousPayment ptr; +class FfiSpontaneousPayment { + final SpontaneousPayment opaque; - const LdkSpontaneousPayment({ - required this.ptr, + const FfiSpontaneousPayment({ + required this.opaque, }); Future send( - {required BigInt amountMsat, required PublicKey nodeId}) => - core.instance.api.crateApiSpontaneousLdkSpontaneousPaymentSend( - that: this, amountMsat: amountMsat, nodeId: nodeId); + {required BigInt amountMsat, + required PublicKey nodeId, + SendingParameters? sendingParameters}) => + core.instance.api.crateApiSpontaneousFfiSpontaneousPaymentSend( + that: this, + amountMsat: amountMsat, + nodeId: nodeId, + sendingParameters: sendingParameters); Future sendProbes( {required BigInt amountMsat, required PublicKey nodeId}) => - core.instance.api.crateApiSpontaneousLdkSpontaneousPaymentSendProbes( + core.instance.api.crateApiSpontaneousFfiSpontaneousPaymentSendProbes( that: this, amountMsat: amountMsat, nodeId: nodeId); @override - int get hashCode => ptr.hashCode; + int get hashCode => opaque.hashCode; @override bool operator ==(Object other) => identical(this, other) || - other is LdkSpontaneousPayment && + other is FfiSpontaneousPayment && runtimeType == other.runtimeType && - ptr == other.ptr; + opaque == other.opaque; } diff --git a/lib/src/generated/api/types.dart b/lib/src/generated/api/types.dart index 56c181c..061c9b1 100644 --- a/lib/src/generated/api/types.dart +++ b/lib/src/generated/api/types.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -10,7 +10,7 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:freezed_annotation/freezed_annotation.dart' hide protected; part 'types.freezed.dart'; -// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `default`, `default`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `hash`, `hash`, `hash`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `assert_receiver_is_total_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `hash`, `hash`, `hash`, `hash`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from`, `try_from` /// A Bitcoin address. /// @@ -96,6 +96,9 @@ class AnchorChannelsConfig { required this.perChannelReserveSats, }); + static Future default_() => + core.instance.api.crateApiTypesAnchorChannelsConfigDefault(); + @override int get hashCode => trustedPeersNoReserve.hashCode ^ perChannelReserveSats.hashCode; @@ -168,6 +171,23 @@ class BalanceDetails { other.pendingBalancesFromChannelClosures; } +/// Indicates whether the balance is derived from a cooperative close, a force-close +/// (for holder or counterparty), or whether it is for an HTLC. +enum BalanceSource { + /// The channel was force closed by the holder. + holderForceClosed, + + /// The channel was force closed by the counterparty. + counterpartyForceClosed, + + /// The channel was cooperatively closed. + coopClose, + + /// This balance is the result of an HTLC. + htlc, + ; +} + /// The best known block as identified by its hash and height. class BestBlock { /// The block's hash @@ -197,9 +217,16 @@ class BestBlock { sealed class ChainDataSourceConfig with _$ChainDataSourceConfig { const ChainDataSourceConfig._(); - const factory ChainDataSourceConfig.esplora( - String field0, - ) = ChainDataSourceConfig_Esplora; + const factory ChainDataSourceConfig.esplora({ + required String serverUrl, + EsploraSyncConfig? syncConfig, + }) = ChainDataSourceConfig_Esplora; + const factory ChainDataSourceConfig.bitcoindRpc({ + required String rpcHost, + required int rpcPort, + required String rpcUser, + required String rpcPassword, + }) = ChainDataSourceConfig_BitcoindRpc; } ///Options which apply on a per-channel basis and may change at runtime or based on negotiation with our counterparty. @@ -224,7 +251,7 @@ class ChannelConfig { final int cltvExpiryDelta; /// Options for how to set the max dust HTLC exposure allowed on a channel. - final MaxDustHTLCExposure? maxDustHtlcExposure; + final MaxDustHTLCExposure maxDustHtlcExposure; ///The additional fee we’re willing to pay to avoid waiting for the counterparty’s toSelfDelay to reclaim funds. /// @@ -244,7 +271,7 @@ class ChannelConfig { required this.forwardingFeeProportionalMillionths, required this.forwardingFeeBaseMsat, required this.cltvExpiryDelta, - this.maxDustHtlcExposure, + required this.maxDustHtlcExposure, required this.forceCloseAvoidanceMaxFeeSatoshis, required this.acceptUnderpayingHtlcs, }); @@ -348,9 +375,6 @@ class ChannelDetails { /// This is a strict superset of `is_channel_ready`. final bool isUsable; - /// Returns `true` if this channel is (or will be) publicly-announced - final bool isPublic; - /// The difference in the CLTV value between incoming HTLCs and an outbound HTLC forwarded over /// the channel. final int? cltvExpiryDelta; @@ -428,7 +452,6 @@ class ChannelDetails { required this.isOutbound, required this.isChannelReady, required this.isUsable, - required this.isPublic, this.cltvExpiryDelta, required this.counterpartyUnspendablePunishmentReserve, this.counterpartyOutboundHtlcMinimumMsat, @@ -460,7 +483,6 @@ class ChannelDetails { isOutbound.hashCode ^ isChannelReady.hashCode ^ isUsable.hashCode ^ - isPublic.hashCode ^ cltvExpiryDelta.hashCode ^ counterpartyUnspendablePunishmentReserve.hashCode ^ counterpartyOutboundHtlcMinimumMsat.hashCode ^ @@ -494,7 +516,6 @@ class ChannelDetails { isOutbound == other.isOutbound && isChannelReady == other.isChannelReady && isUsable == other.isUsable && - isPublic == other.isPublic && cltvExpiryDelta == other.cltvExpiryDelta && counterpartyUnspendablePunishmentReserve == other.counterpartyUnspendablePunishmentReserve && @@ -544,6 +565,14 @@ class ChannelId { sealed class ClosureReason with _$ClosureReason { const ClosureReason._(); + /// Our peer provided a feerate which violated our required minimum (fetched from our + /// `FeeEstimator` + /// + const factory ClosureReason.peerFeerateTooLow({ + required int peerFeerateSatPerKw, + required int requiredFeerateSatPerKw, + }) = ClosureReason_PeerFeerateTooLow; + /// Closure generated from receiving a peer error message. /// /// Our counterparty may have broadcasted their latest commitment state, and we have @@ -562,8 +591,9 @@ sealed class ClosureReason with _$ClosureReason { /// Closure generated from [`ChannelManager::force_close_channel`], called by the user. /// /// [`ChannelManager::force_close_channel`]: crate::ln::channelmanager::ChannelManager::force_close_channel. - const factory ClosureReason.holderForceClosed() = - ClosureReason_HolderForceClosed; + const factory ClosureReason.holderForceClosed({ + bool? broadcastedLatestTxn, + }) = ClosureReason_HolderForceClosed; /// The channel was closed after negotiating a cooperative close and we've now broadcasted /// the cooperative close transaction. Note the shutdown may have been initiated by us. @@ -650,23 +680,13 @@ class Config { /// List? listeningAddresses; - /// The default CLTV expiry delta to be used for payments. - /// - int defaultCltvExpiryDelta; - - ///The time in-between background sync attempts of the onchain wallet, in seconds. - /// Note: A minimum of 10 seconds is always enforced. - BigInt onchainWalletSyncIntervalSecs; - - /// The time in-between background sync attempts of the LDK wallet, in seconds. - /// Note: A minimum of 10 seconds is always enforced. + /// The node alias that will be used when broadcasting announcements to the gossip network. /// - BigInt walletSyncIntervalSecs; - - ///The time in-between background update attempts to our fee rate cache, in seconds. - /// Note: A minimum of 10 seconds is always enforced. + /// The provided alias must be a valid UTF-8 string and no longer than 32 bytes in total. /// - BigInt feeRateCacheUpdateIntervalSecs; + /// **Note**: We will only allow opening and accepting public channels if the `nodeAlias` and the + /// `listeningAddresses` are set. + NodeAlias? nodeAlias; ///A list of peers that we allow to establish zero confirmation channels to us. /// @@ -680,35 +700,43 @@ class Config { LogLevel logLevel; AnchorChannelsConfig? anchorChannelsConfig; + /// Configuration options for payment routing and pathfinding. + /// + /// Setting the `SendingParameters` provides flexibility to customize how payments are routed, + /// including setting limits on routing fees, CLTV expiry, and channel utilization. + /// + /// **Note:** If unset, default parameters will be used, and you will be able to override the + /// parameters on a per-payment basis in the corresponding method calls. + SendingParameters? sendingParameters; + Config({ required this.storageDirPath, this.logDirPath, required this.network, this.listeningAddresses, - required this.defaultCltvExpiryDelta, - required this.onchainWalletSyncIntervalSecs, - required this.walletSyncIntervalSecs, - required this.feeRateCacheUpdateIntervalSecs, + this.nodeAlias, required this.trustedPeers0Conf, required this.probingLiquidityLimitMultiplier, required this.logLevel, this.anchorChannelsConfig, + this.sendingParameters, }); + static Future default_() => + core.instance.api.crateApiTypesConfigDefault(); + @override int get hashCode => storageDirPath.hashCode ^ logDirPath.hashCode ^ network.hashCode ^ listeningAddresses.hashCode ^ - defaultCltvExpiryDelta.hashCode ^ - onchainWalletSyncIntervalSecs.hashCode ^ - walletSyncIntervalSecs.hashCode ^ - feeRateCacheUpdateIntervalSecs.hashCode ^ + nodeAlias.hashCode ^ trustedPeers0Conf.hashCode ^ probingLiquidityLimitMultiplier.hashCode ^ logLevel.hashCode ^ - anchorChannelsConfig.hashCode; + anchorChannelsConfig.hashCode ^ + sendingParameters.hashCode; @override bool operator ==(Object other) => @@ -719,17 +747,13 @@ class Config { logDirPath == other.logDirPath && network == other.network && listeningAddresses == other.listeningAddresses && - defaultCltvExpiryDelta == other.defaultCltvExpiryDelta && - onchainWalletSyncIntervalSecs == - other.onchainWalletSyncIntervalSecs && - walletSyncIntervalSecs == other.walletSyncIntervalSecs && - feeRateCacheUpdateIntervalSecs == - other.feeRateCacheUpdateIntervalSecs && + nodeAlias == other.nodeAlias && trustedPeers0Conf == other.trustedPeers0Conf && probingLiquidityLimitMultiplier == other.probingLiquidityLimitMultiplier && logLevel == other.logLevel && - anchorChannelsConfig == other.anchorChannelsConfig; + anchorChannelsConfig == other.anchorChannelsConfig && + sendingParameters == other.sendingParameters; } @freezed @@ -743,11 +767,52 @@ sealed class EntropySourceConfig with _$EntropySourceConfig { U8Array64 field0, ) = EntropySourceConfig_SeedBytes; const factory EntropySourceConfig.bip39Mnemonic({ - required LdkMnemonic mnemonic, + required FfiMnemonic mnemonic, String? passphrase, }) = EntropySourceConfig_Bip39Mnemonic; } +class EsploraSyncConfig { + /// The time in-between background sync attempts of the onchain wallet, in seconds. + /// + /// **Note:** A minimum of 10 seconds is always enforced. + final BigInt onchainWalletSyncIntervalSecs; + + /// The time in-between background sync attempts of the LDK wallet, in seconds. + /// + /// **Note:** A minimum of 10 seconds is always enforced. + final BigInt lightningWalletSyncIntervalSecs; + + /// The time in-between background update attempts to our fee rate cache, in seconds. + /// + /// **Note:** A minimum of 10 seconds is always enforced. + final BigInt feeRateCacheUpdateIntervalSecs; + + const EsploraSyncConfig({ + required this.onchainWalletSyncIntervalSecs, + required this.lightningWalletSyncIntervalSecs, + required this.feeRateCacheUpdateIntervalSecs, + }); + + @override + int get hashCode => + onchainWalletSyncIntervalSecs.hashCode ^ + lightningWalletSyncIntervalSecs.hashCode ^ + feeRateCacheUpdateIntervalSecs.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is EsploraSyncConfig && + runtimeType == other.runtimeType && + onchainWalletSyncIntervalSecs == + other.onchainWalletSyncIntervalSecs && + lightningWalletSyncIntervalSecs == + other.lightningWalletSyncIntervalSecs && + feeRateCacheUpdateIntervalSecs == + other.feeRateCacheUpdateIntervalSecs; +} + @freezed sealed class Event with _$Event { const Event._(); @@ -795,7 +860,7 @@ sealed class Event with _$Event { PaymentId? paymentId, /// The hash of the payment. - required PaymentHash paymentHash, + PaymentHash? paymentHash, /// The reason why the payment failed. /// @@ -894,6 +959,45 @@ sealed class LightningBalance with _$LightningBalance { /// The amount available to claim, in satoshis, excluding the on-chain fees which will be /// required to do so. required BigInt amountSatoshis, + + /// The transaction fee we pay for the closing commitment transaction. This amount is not + /// included in the `amount_satoshis` value. + /// + /// Note that if this channel is inbound (and thus our counterparty pays the commitment + /// transaction fee) this value will be zero. For channels created prior to LDK Node 0.4 + /// the channel is always treated as outbound (and thus this value is never zero). + required BigInt transactionFeeSatoshis, + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are outbound + /// from us and are related to a payment which was sent by us. This is the sum of the + /// millisatoshis part of all HTLCs which are otherwise represented by + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + required BigInt outboundPaymentHtlcRoundedMsat, + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are outbound + /// from us and are related to a forwarded HTLC. This is the sum of the millisatoshis part + /// of all HTLCs which are otherwise represented by + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + required BigInt outboundForwardedHtlcRoundedMsat, + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are inbound + /// to us and for which we know the preimage. This is the sum of the millisatoshis part of + /// all HTLCs which would be represented by `lightningBalance.ContentiousClaimable` on + /// channel close, but whose current value is included in `amountSatoshis`, as well as any + /// dust HTLCs which would otherwise be represented the same. + /// + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + required BigInt inboundClaimingHtlcRoundedMsat, + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are inbound + /// to us and for which we do not know the preimage. This is the sum of the millisatoshis + /// part of all HTLCs which would be represented by + /// `lightningBalance.MaybePreimageClaimableHTLC` on channel close, as well as any dust + /// HTLCs which would otherwise be represented the same. + /// + /// This amount (rounded up to a whole satoshi value) will not be included in the + /// counterparty's `amountSatoshis`. + required BigInt inboundHtlcRoundedMsat, }) = LightningBalance_ClaimableOnChannelClose; /// The channel has been closed, and the given balance is ours but awaiting confirmations until @@ -909,11 +1013,13 @@ sealed class LightningBalance with _$LightningBalance { /// were spent in broadcasting the transaction. required BigInt amountSatoshis, - /// The height at which an [`Event::SpendableOutputs`] event will be generated for this + /// The height at which an `event.SpendableOutputs` event will be generated for this /// amount. /// - /// [`Event::SpendableOutputs`]: lightning::events::Event::SpendableOutputs required int confirmationHeight, + + /// Whether this balance is a result of cooperative close, a force-close, or an HTLC. + required BalanceSource source, }) = LightningBalance_ClaimableAwaitingConfirmations; /// The channel has been closed, and the given balance should be ours but awaiting spending @@ -965,6 +1071,9 @@ sealed class LightningBalance with _$LightningBalance { /// The payment hash whose preimage our counterparty needs to claim this HTLC. required PaymentHash paymentHash, + + /// + required bool outboundPayment, }) = LightningBalance_MaybeTimeoutClaimableHTLC; /// HTLCs which we received from our counterparty which are claimable with a preimage which we @@ -1098,6 +1207,17 @@ sealed class MaxDustHTLCExposure with _$MaxDustHTLCExposure { ) = MaxDustHTLCExposure_FeeRateMultiplier; } +@freezed +sealed class MaxTotalRoutingFeeLimit with _$MaxTotalRoutingFeeLimit { + const MaxTotalRoutingFeeLimit._(); + + const factory MaxTotalRoutingFeeLimit.noFeeCap() = + MaxTotalRoutingFeeLimit_NoFeeCap; + const factory MaxTotalRoutingFeeLimit.feeCap({ + required BigInt amountMsat, + }) = MaxTotalRoutingFeeLimit_FeeCap; +} + /// Bitcoin network enum /// enum Network { @@ -1119,13 +1239,34 @@ enum Network { ; } -/// Represents the status of the [Node]. +/// A user-defined name for a node, which may be used when displaying the node in a graph. +/// +/// Since node aliases are provided by third parties, they are a potential avenue for injection +/// attacks. Care must be taken when processing. +class NodeAlias { + final U8Array32 field0; + + const NodeAlias({ + required this.field0, + }); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is NodeAlias && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +/// Represents the status of the [`Node`]. class NodeStatus { - /// Indicates whether the [Node] is running. + /// Indicates whether the `Node` is running. final bool isRunning; - /// Indicates whether the [Node] is listening for incoming connections on the addresses - /// configured via `config.listeningAddresses`. + /// Indicates whether the `Node` is listening for incoming connections on the addresses final bool isListening; /// The best block to which our Lightning wallet is currently synced. @@ -1134,42 +1275,48 @@ class NodeStatus { /// The timestamp, in seconds since start of the UNIX epoch, when we last successfully synced /// our Lightning wallet to the chain tip. /// - /// Will be `None` if the wallet hasn't been synced since the [Node] was initialized. - final BigInt? latestWalletSyncTimestamp; + /// Will be `None` if the wallet hasn't been synced yet. + final BigInt? latestLightningWalletSyncTimestamp; /// The timestamp, in seconds since start of the UNIX epoch, when we last successfully synced /// our on-chain wallet to the chain tip. /// - /// Will be `None` if the wallet hasn't been synced since the [Node] was initialized. + /// Will be `None` if the wallet hasn't been synced yet. final BigInt? latestOnchainWalletSyncTimestamp; /// The timestamp, in seconds since start of the UNIX epoch, when we last successfully update /// our fee rate cache. /// - /// Will be `None` if the cache hasn't been updated since the [Node] was initialized. + /// Will be `None` if the cache hasn't been updated yet. final BigInt? latestFeeRateCacheUpdateTimestamp; /// The timestamp, in seconds since start of the UNIX epoch, when the last rapid gossip sync /// (RGS) snapshot we successfully applied was generated. /// - /// Will be `None` if RGS isn't configured or the snapshot hasn't been updated since the [Node] was initialized. + /// Will be `None` if RGS isn't configured or the snapshot hasn't been updated yet. final BigInt? latestRgsSnapshotTimestamp; /// The timestamp, in seconds since start of the UNIX epoch, when we last broadcasted a node /// announcement. /// - /// Will be `None` if we have no public channels or we haven't broadcasted since the [Node] was initialized. + /// Will be `None` if we have no public channels or we haven't broadcasted yet. final BigInt? latestNodeAnnouncementBroadcastTimestamp; + /// The block height when we last archived closed channel monitor data. + /// + /// Will be `None` if we haven't archived any monitors of closed channels yet. + final int? latestChannelMonitorArchivalHeight; + const NodeStatus({ required this.isRunning, required this.isListening, required this.currentBestBlock, - this.latestWalletSyncTimestamp, + this.latestLightningWalletSyncTimestamp, this.latestOnchainWalletSyncTimestamp, this.latestFeeRateCacheUpdateTimestamp, this.latestRgsSnapshotTimestamp, this.latestNodeAnnouncementBroadcastTimestamp, + this.latestChannelMonitorArchivalHeight, }); @override @@ -1177,11 +1324,12 @@ class NodeStatus { isRunning.hashCode ^ isListening.hashCode ^ currentBestBlock.hashCode ^ - latestWalletSyncTimestamp.hashCode ^ + latestLightningWalletSyncTimestamp.hashCode ^ latestOnchainWalletSyncTimestamp.hashCode ^ latestFeeRateCacheUpdateTimestamp.hashCode ^ latestRgsSnapshotTimestamp.hashCode ^ - latestNodeAnnouncementBroadcastTimestamp.hashCode; + latestNodeAnnouncementBroadcastTimestamp.hashCode ^ + latestChannelMonitorArchivalHeight.hashCode; @override bool operator ==(Object other) => @@ -1191,14 +1339,17 @@ class NodeStatus { isRunning == other.isRunning && isListening == other.isListening && currentBestBlock == other.currentBestBlock && - latestWalletSyncTimestamp == other.latestWalletSyncTimestamp && + latestLightningWalletSyncTimestamp == + other.latestLightningWalletSyncTimestamp && latestOnchainWalletSyncTimestamp == other.latestOnchainWalletSyncTimestamp && latestFeeRateCacheUpdateTimestamp == other.latestFeeRateCacheUpdateTimestamp && latestRgsSnapshotTimestamp == other.latestRgsSnapshotTimestamp && latestNodeAnnouncementBroadcastTimestamp == - other.latestNodeAnnouncementBroadcastTimestamp; + other.latestNodeAnnouncementBroadcastTimestamp && + latestChannelMonitorArchivalHeight == + other.latestChannelMonitorArchivalHeight; } class OfferId { @@ -1329,6 +1480,15 @@ enum PaymentFailureReason { /// This error should generally never happen. This likely means that there is a problem with /// your router. unexpectedError, + + ///An invoice was received that required unknown features. + unknownRequiredFeatures, + + ///A Bolt12Invoice was not received in a reasonable amount of time. + invoiceRequestExpired, + + ///An InvoiceRequest for the payment was rejected by the recipient. + invoiceRequestRejected, ; } @@ -1438,6 +1598,18 @@ sealed class PaymentKind with _$PaymentKind { /// The ID of the offer this payment is for. required OfferId offerId, + + /// The payer note for the payment. + /// + /// Truncated to `PAYER_NOTE_LIMIT` characters. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + String? payerNote, + + /// The quantity of an item requested in the offer. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + BigInt? quantity, }) = PaymentKind_Bolt12Offer; /// A [BOLT 12] 'refund' payment, i.e., a payment for a `Refund`. @@ -1452,6 +1624,15 @@ sealed class PaymentKind with _$PaymentKind { /// The secret used by the payment. PaymentSecret? secret, + + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + String? payerNote, + + /// The quantity of an item that the refund is for. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + BigInt? quantity, }) = PaymentKind_Bolt12Refund; } @@ -1616,6 +1797,76 @@ class PublicKey { hex == other.hex; } +/// Represents information used to send a payment. +class SendingParameters { + /// The maximum total fees, in millisatoshi, that may accrue during route finding. + /// + /// This limit also applies to the total fees that may arise while retrying failed payment + /// paths. + /// + /// Note that values below a few sats may result in some paths being spuriously ignored. + final MaxTotalRoutingFeeLimit? maxTotalRoutingFeeMsat; + + /// The maximum total CLTV delta we accept for the route. + /// + /// Defaults to `DEFAULT_MAX_TOTAL_CLTV_EXPIRY_DELTA`. + /// + final int? maxTotalCltvExpiryDelta; + + /// The maximum number of paths that may be used by (MPP) payments. + /// + /// Defaults to `DEFAULT_MAX_PATH_COUNT`. + final int? maxPathCount; + + /// Selects the maximum share of a channel's total capacity which will be sent over a channel, + /// as a power of 1/2. + /// + /// A higher value prefers to send the payment using more MPP parts whereas + /// a lower value prefers to send larger MPP parts, potentially saturating channels and + /// increasing failure probability for those paths. + /// + /// Note that this restriction will be relaxed during pathfinding after paths which meet this + /// restriction have been found. While paths which meet this criteria will be searched for, it + /// is ultimately up to the scorer to select them over other paths. + /// + /// Examples: + /// + /// | Value | Max Proportion of Channel Capacity Used | + /// |-------|-----------------------------------------| + /// | 0 | Up to 100% of the channel’s capacity | + /// | 1 | Up to 50% of the channel’s capacity | + /// | 2 | Up to 25% of the channel’s capacity | + /// | 3 | Up to 12.5% of the channel’s capacity | + /// + /// Default value: 2 + final int? maxChannelSaturationPowerOfHalf; + + const SendingParameters({ + this.maxTotalRoutingFeeMsat, + this.maxTotalCltvExpiryDelta, + this.maxPathCount, + this.maxChannelSaturationPowerOfHalf, + }); + + @override + int get hashCode => + maxTotalRoutingFeeMsat.hashCode ^ + maxTotalCltvExpiryDelta.hashCode ^ + maxPathCount.hashCode ^ + maxChannelSaturationPowerOfHalf.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is SendingParameters && + runtimeType == other.runtimeType && + maxTotalRoutingFeeMsat == other.maxTotalRoutingFeeMsat && + maxTotalCltvExpiryDelta == other.maxTotalCltvExpiryDelta && + maxPathCount == other.maxPathCount && + maxChannelSaturationPowerOfHalf == + other.maxChannelSaturationPowerOfHalf; +} + @freezed sealed class SocketAddress with _$SocketAddress { const SocketAddress._(); diff --git a/lib/src/generated/api/types.freezed.dart b/lib/src/generated/api/types.freezed.dart index ac2bfd5..586b6f3 100644 --- a/lib/src/generated/api/types.freezed.dart +++ b/lib/src/generated/api/types.freezed.dart @@ -16,43 +16,52 @@ final _privateConstructorUsedError = UnsupportedError( /// @nodoc mixin _$ChainDataSourceConfig { - String get field0 => throw _privateConstructorUsedError; @optionalTypeArgs TResult when({ - required TResult Function(String field0) esplora, + required TResult Function(String serverUrl, EsploraSyncConfig? syncConfig) + esplora, + required TResult Function( + String rpcHost, int rpcPort, String rpcUser, String rpcPassword) + bitcoindRpc, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(String field0)? esplora, + TResult? Function(String serverUrl, EsploraSyncConfig? syncConfig)? esplora, + TResult? Function( + String rpcHost, int rpcPort, String rpcUser, String rpcPassword)? + bitcoindRpc, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ - TResult Function(String field0)? esplora, + TResult Function(String serverUrl, EsploraSyncConfig? syncConfig)? esplora, + TResult Function( + String rpcHost, int rpcPort, String rpcUser, String rpcPassword)? + bitcoindRpc, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(ChainDataSourceConfig_Esplora value) esplora, + required TResult Function(ChainDataSourceConfig_BitcoindRpc value) + bitcoindRpc, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(ChainDataSourceConfig_Esplora value)? esplora, + TResult? Function(ChainDataSourceConfig_BitcoindRpc value)? bitcoindRpc, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(ChainDataSourceConfig_Esplora value)? esplora, + TResult Function(ChainDataSourceConfig_BitcoindRpc value)? bitcoindRpc, required TResult orElse(), }) => throw _privateConstructorUsedError; - - @JsonKey(ignore: true) - $ChainDataSourceConfigCopyWith get copyWith => - throw _privateConstructorUsedError; } /// @nodoc @@ -60,8 +69,6 @@ abstract class $ChainDataSourceConfigCopyWith<$Res> { factory $ChainDataSourceConfigCopyWith(ChainDataSourceConfig value, $Res Function(ChainDataSourceConfig) then) = _$ChainDataSourceConfigCopyWithImpl<$Res, ChainDataSourceConfig>; - @useResult - $Res call({String field0}); } /// @nodoc @@ -74,31 +81,16 @@ class _$ChainDataSourceConfigCopyWithImpl<$Res, final $Val _value; // ignore: unused_field final $Res Function($Val) _then; - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? field0 = null, - }) { - return _then(_value.copyWith( - field0: null == field0 - ? _value.field0 - : field0 // ignore: cast_nullable_to_non_nullable - as String, - ) as $Val); - } } /// @nodoc -abstract class _$$ChainDataSourceConfig_EsploraImplCopyWith<$Res> - implements $ChainDataSourceConfigCopyWith<$Res> { +abstract class _$$ChainDataSourceConfig_EsploraImplCopyWith<$Res> { factory _$$ChainDataSourceConfig_EsploraImplCopyWith( _$ChainDataSourceConfig_EsploraImpl value, $Res Function(_$ChainDataSourceConfig_EsploraImpl) then) = __$$ChainDataSourceConfig_EsploraImplCopyWithImpl<$Res>; - @override @useResult - $Res call({String field0}); + $Res call({String serverUrl, EsploraSyncConfig? syncConfig}); } /// @nodoc @@ -114,13 +106,18 @@ class __$$ChainDataSourceConfig_EsploraImplCopyWithImpl<$Res> @pragma('vm:prefer-inline') @override $Res call({ - Object? field0 = null, + Object? serverUrl = null, + Object? syncConfig = freezed, }) { return _then(_$ChainDataSourceConfig_EsploraImpl( - null == field0 - ? _value.field0 - : field0 // ignore: cast_nullable_to_non_nullable + serverUrl: null == serverUrl + ? _value.serverUrl + : serverUrl // ignore: cast_nullable_to_non_nullable as String, + syncConfig: freezed == syncConfig + ? _value.syncConfig + : syncConfig // ignore: cast_nullable_to_non_nullable + as EsploraSyncConfig?, )); } } @@ -129,14 +126,18 @@ class __$$ChainDataSourceConfig_EsploraImplCopyWithImpl<$Res> class _$ChainDataSourceConfig_EsploraImpl extends ChainDataSourceConfig_Esplora { - const _$ChainDataSourceConfig_EsploraImpl(this.field0) : super._(); + const _$ChainDataSourceConfig_EsploraImpl( + {required this.serverUrl, this.syncConfig}) + : super._(); @override - final String field0; + final String serverUrl; + @override + final EsploraSyncConfig? syncConfig; @override String toString() { - return 'ChainDataSourceConfig.esplora(field0: $field0)'; + return 'ChainDataSourceConfig.esplora(serverUrl: $serverUrl, syncConfig: $syncConfig)'; } @override @@ -144,11 +145,14 @@ class _$ChainDataSourceConfig_EsploraImpl return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChainDataSourceConfig_EsploraImpl && - (identical(other.field0, field0) || other.field0 == field0)); + (identical(other.serverUrl, serverUrl) || + other.serverUrl == serverUrl) && + (identical(other.syncConfig, syncConfig) || + other.syncConfig == syncConfig)); } @override - int get hashCode => Object.hash(runtimeType, field0); + int get hashCode => Object.hash(runtimeType, serverUrl, syncConfig); @JsonKey(ignore: true) @override @@ -161,27 +165,37 @@ class _$ChainDataSourceConfig_EsploraImpl @override @optionalTypeArgs TResult when({ - required TResult Function(String field0) esplora, + required TResult Function(String serverUrl, EsploraSyncConfig? syncConfig) + esplora, + required TResult Function( + String rpcHost, int rpcPort, String rpcUser, String rpcPassword) + bitcoindRpc, }) { - return esplora(field0); + return esplora(serverUrl, syncConfig); } @override @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(String field0)? esplora, + TResult? Function(String serverUrl, EsploraSyncConfig? syncConfig)? esplora, + TResult? Function( + String rpcHost, int rpcPort, String rpcUser, String rpcPassword)? + bitcoindRpc, }) { - return esplora?.call(field0); + return esplora?.call(serverUrl, syncConfig); } @override @optionalTypeArgs TResult maybeWhen({ - TResult Function(String field0)? esplora, + TResult Function(String serverUrl, EsploraSyncConfig? syncConfig)? esplora, + TResult Function( + String rpcHost, int rpcPort, String rpcUser, String rpcPassword)? + bitcoindRpc, required TResult orElse(), }) { if (esplora != null) { - return esplora(field0); + return esplora(serverUrl, syncConfig); } return orElse(); } @@ -190,6 +204,8 @@ class _$ChainDataSourceConfig_EsploraImpl @optionalTypeArgs TResult map({ required TResult Function(ChainDataSourceConfig_Esplora value) esplora, + required TResult Function(ChainDataSourceConfig_BitcoindRpc value) + bitcoindRpc, }) { return esplora(this); } @@ -198,6 +214,7 @@ class _$ChainDataSourceConfig_EsploraImpl @optionalTypeArgs TResult? mapOrNull({ TResult? Function(ChainDataSourceConfig_Esplora value)? esplora, + TResult? Function(ChainDataSourceConfig_BitcoindRpc value)? bitcoindRpc, }) { return esplora?.call(this); } @@ -206,6 +223,7 @@ class _$ChainDataSourceConfig_EsploraImpl @optionalTypeArgs TResult maybeMap({ TResult Function(ChainDataSourceConfig_Esplora value)? esplora, + TResult Function(ChainDataSourceConfig_BitcoindRpc value)? bitcoindRpc, required TResult orElse(), }) { if (esplora != null) { @@ -216,25 +234,217 @@ class _$ChainDataSourceConfig_EsploraImpl } abstract class ChainDataSourceConfig_Esplora extends ChainDataSourceConfig { - const factory ChainDataSourceConfig_Esplora(final String field0) = + const factory ChainDataSourceConfig_Esplora( + {required final String serverUrl, + final EsploraSyncConfig? syncConfig}) = _$ChainDataSourceConfig_EsploraImpl; const ChainDataSourceConfig_Esplora._() : super._(); - @override - String get field0; - @override + String get serverUrl; + EsploraSyncConfig? get syncConfig; @JsonKey(ignore: true) _$$ChainDataSourceConfig_EsploraImplCopyWith< _$ChainDataSourceConfig_EsploraImpl> get copyWith => throw _privateConstructorUsedError; } +/// @nodoc +abstract class _$$ChainDataSourceConfig_BitcoindRpcImplCopyWith<$Res> { + factory _$$ChainDataSourceConfig_BitcoindRpcImplCopyWith( + _$ChainDataSourceConfig_BitcoindRpcImpl value, + $Res Function(_$ChainDataSourceConfig_BitcoindRpcImpl) then) = + __$$ChainDataSourceConfig_BitcoindRpcImplCopyWithImpl<$Res>; + @useResult + $Res call({String rpcHost, int rpcPort, String rpcUser, String rpcPassword}); +} + +/// @nodoc +class __$$ChainDataSourceConfig_BitcoindRpcImplCopyWithImpl<$Res> + extends _$ChainDataSourceConfigCopyWithImpl<$Res, + _$ChainDataSourceConfig_BitcoindRpcImpl> + implements _$$ChainDataSourceConfig_BitcoindRpcImplCopyWith<$Res> { + __$$ChainDataSourceConfig_BitcoindRpcImplCopyWithImpl( + _$ChainDataSourceConfig_BitcoindRpcImpl _value, + $Res Function(_$ChainDataSourceConfig_BitcoindRpcImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? rpcHost = null, + Object? rpcPort = null, + Object? rpcUser = null, + Object? rpcPassword = null, + }) { + return _then(_$ChainDataSourceConfig_BitcoindRpcImpl( + rpcHost: null == rpcHost + ? _value.rpcHost + : rpcHost // ignore: cast_nullable_to_non_nullable + as String, + rpcPort: null == rpcPort + ? _value.rpcPort + : rpcPort // ignore: cast_nullable_to_non_nullable + as int, + rpcUser: null == rpcUser + ? _value.rpcUser + : rpcUser // ignore: cast_nullable_to_non_nullable + as String, + rpcPassword: null == rpcPassword + ? _value.rpcPassword + : rpcPassword // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +/// @nodoc + +class _$ChainDataSourceConfig_BitcoindRpcImpl + extends ChainDataSourceConfig_BitcoindRpc { + const _$ChainDataSourceConfig_BitcoindRpcImpl( + {required this.rpcHost, + required this.rpcPort, + required this.rpcUser, + required this.rpcPassword}) + : super._(); + + @override + final String rpcHost; + @override + final int rpcPort; + @override + final String rpcUser; + @override + final String rpcPassword; + + @override + String toString() { + return 'ChainDataSourceConfig.bitcoindRpc(rpcHost: $rpcHost, rpcPort: $rpcPort, rpcUser: $rpcUser, rpcPassword: $rpcPassword)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$ChainDataSourceConfig_BitcoindRpcImpl && + (identical(other.rpcHost, rpcHost) || other.rpcHost == rpcHost) && + (identical(other.rpcPort, rpcPort) || other.rpcPort == rpcPort) && + (identical(other.rpcUser, rpcUser) || other.rpcUser == rpcUser) && + (identical(other.rpcPassword, rpcPassword) || + other.rpcPassword == rpcPassword)); + } + + @override + int get hashCode => + Object.hash(runtimeType, rpcHost, rpcPort, rpcUser, rpcPassword); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$ChainDataSourceConfig_BitcoindRpcImplCopyWith< + _$ChainDataSourceConfig_BitcoindRpcImpl> + get copyWith => __$$ChainDataSourceConfig_BitcoindRpcImplCopyWithImpl< + _$ChainDataSourceConfig_BitcoindRpcImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String serverUrl, EsploraSyncConfig? syncConfig) + esplora, + required TResult Function( + String rpcHost, int rpcPort, String rpcUser, String rpcPassword) + bitcoindRpc, + }) { + return bitcoindRpc(rpcHost, rpcPort, rpcUser, rpcPassword); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String serverUrl, EsploraSyncConfig? syncConfig)? esplora, + TResult? Function( + String rpcHost, int rpcPort, String rpcUser, String rpcPassword)? + bitcoindRpc, + }) { + return bitcoindRpc?.call(rpcHost, rpcPort, rpcUser, rpcPassword); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String serverUrl, EsploraSyncConfig? syncConfig)? esplora, + TResult Function( + String rpcHost, int rpcPort, String rpcUser, String rpcPassword)? + bitcoindRpc, + required TResult orElse(), + }) { + if (bitcoindRpc != null) { + return bitcoindRpc(rpcHost, rpcPort, rpcUser, rpcPassword); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(ChainDataSourceConfig_Esplora value) esplora, + required TResult Function(ChainDataSourceConfig_BitcoindRpc value) + bitcoindRpc, + }) { + return bitcoindRpc(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(ChainDataSourceConfig_Esplora value)? esplora, + TResult? Function(ChainDataSourceConfig_BitcoindRpc value)? bitcoindRpc, + }) { + return bitcoindRpc?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(ChainDataSourceConfig_Esplora value)? esplora, + TResult Function(ChainDataSourceConfig_BitcoindRpc value)? bitcoindRpc, + required TResult orElse(), + }) { + if (bitcoindRpc != null) { + return bitcoindRpc(this); + } + return orElse(); + } +} + +abstract class ChainDataSourceConfig_BitcoindRpc extends ChainDataSourceConfig { + const factory ChainDataSourceConfig_BitcoindRpc( + {required final String rpcHost, + required final int rpcPort, + required final String rpcUser, + required final String rpcPassword}) = + _$ChainDataSourceConfig_BitcoindRpcImpl; + const ChainDataSourceConfig_BitcoindRpc._() : super._(); + + String get rpcHost; + int get rpcPort; + String get rpcUser; + String get rpcPassword; + @JsonKey(ignore: true) + _$$ChainDataSourceConfig_BitcoindRpcImplCopyWith< + _$ChainDataSourceConfig_BitcoindRpcImpl> + get copyWith => throw _privateConstructorUsedError; +} + /// @nodoc mixin _$ClosureReason { @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -250,8 +460,10 @@ mixin _$ClosureReason { throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -267,8 +479,10 @@ mixin _$ClosureReason { throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -285,6 +499,8 @@ mixin _$ClosureReason { throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -317,6 +533,7 @@ mixin _$ClosureReason { throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -344,6 +561,7 @@ mixin _$ClosureReason { throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -390,85 +608,95 @@ class _$ClosureReasonCopyWithImpl<$Res, $Val extends ClosureReason> } /// @nodoc -abstract class _$$ClosureReason_CounterpartyForceClosedImplCopyWith<$Res> { - factory _$$ClosureReason_CounterpartyForceClosedImplCopyWith( - _$ClosureReason_CounterpartyForceClosedImpl value, - $Res Function(_$ClosureReason_CounterpartyForceClosedImpl) then) = - __$$ClosureReason_CounterpartyForceClosedImplCopyWithImpl<$Res>; +abstract class _$$ClosureReason_PeerFeerateTooLowImplCopyWith<$Res> { + factory _$$ClosureReason_PeerFeerateTooLowImplCopyWith( + _$ClosureReason_PeerFeerateTooLowImpl value, + $Res Function(_$ClosureReason_PeerFeerateTooLowImpl) then) = + __$$ClosureReason_PeerFeerateTooLowImplCopyWithImpl<$Res>; @useResult - $Res call({String peerMsg}); + $Res call({int peerFeerateSatPerKw, int requiredFeerateSatPerKw}); } /// @nodoc -class __$$ClosureReason_CounterpartyForceClosedImplCopyWithImpl<$Res> +class __$$ClosureReason_PeerFeerateTooLowImplCopyWithImpl<$Res> extends _$ClosureReasonCopyWithImpl<$Res, - _$ClosureReason_CounterpartyForceClosedImpl> - implements _$$ClosureReason_CounterpartyForceClosedImplCopyWith<$Res> { - __$$ClosureReason_CounterpartyForceClosedImplCopyWithImpl( - _$ClosureReason_CounterpartyForceClosedImpl _value, - $Res Function(_$ClosureReason_CounterpartyForceClosedImpl) _then) + _$ClosureReason_PeerFeerateTooLowImpl> + implements _$$ClosureReason_PeerFeerateTooLowImplCopyWith<$Res> { + __$$ClosureReason_PeerFeerateTooLowImplCopyWithImpl( + _$ClosureReason_PeerFeerateTooLowImpl _value, + $Res Function(_$ClosureReason_PeerFeerateTooLowImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? peerMsg = null, + Object? peerFeerateSatPerKw = null, + Object? requiredFeerateSatPerKw = null, }) { - return _then(_$ClosureReason_CounterpartyForceClosedImpl( - peerMsg: null == peerMsg - ? _value.peerMsg - : peerMsg // ignore: cast_nullable_to_non_nullable - as String, + return _then(_$ClosureReason_PeerFeerateTooLowImpl( + peerFeerateSatPerKw: null == peerFeerateSatPerKw + ? _value.peerFeerateSatPerKw + : peerFeerateSatPerKw // ignore: cast_nullable_to_non_nullable + as int, + requiredFeerateSatPerKw: null == requiredFeerateSatPerKw + ? _value.requiredFeerateSatPerKw + : requiredFeerateSatPerKw // ignore: cast_nullable_to_non_nullable + as int, )); } } /// @nodoc -class _$ClosureReason_CounterpartyForceClosedImpl - extends ClosureReason_CounterpartyForceClosed { - const _$ClosureReason_CounterpartyForceClosedImpl({required this.peerMsg}) +class _$ClosureReason_PeerFeerateTooLowImpl + extends ClosureReason_PeerFeerateTooLow { + const _$ClosureReason_PeerFeerateTooLowImpl( + {required this.peerFeerateSatPerKw, + required this.requiredFeerateSatPerKw}) : super._(); - /// The error which the peer sent us. - /// - /// Be careful about printing the peer_msg, a well-crafted message could exploit - /// a security vulnerability in the terminal emulator or the logging subsystem. - /// To be safe, use `Display` on `UntrustedString` - /// - /// [`UntrustedString`]: crate::util::string::UntrustedString @override - final String peerMsg; + final int peerFeerateSatPerKw; + @override + final int requiredFeerateSatPerKw; @override String toString() { - return 'ClosureReason.counterpartyForceClosed(peerMsg: $peerMsg)'; + return 'ClosureReason.peerFeerateTooLow(peerFeerateSatPerKw: $peerFeerateSatPerKw, requiredFeerateSatPerKw: $requiredFeerateSatPerKw)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ClosureReason_CounterpartyForceClosedImpl && - (identical(other.peerMsg, peerMsg) || other.peerMsg == peerMsg)); + other is _$ClosureReason_PeerFeerateTooLowImpl && + (identical(other.peerFeerateSatPerKw, peerFeerateSatPerKw) || + other.peerFeerateSatPerKw == peerFeerateSatPerKw) && + (identical( + other.requiredFeerateSatPerKw, requiredFeerateSatPerKw) || + other.requiredFeerateSatPerKw == requiredFeerateSatPerKw)); } @override - int get hashCode => Object.hash(runtimeType, peerMsg); + int get hashCode => + Object.hash(runtimeType, peerFeerateSatPerKw, requiredFeerateSatPerKw); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ClosureReason_CounterpartyForceClosedImplCopyWith< - _$ClosureReason_CounterpartyForceClosedImpl> - get copyWith => __$$ClosureReason_CounterpartyForceClosedImplCopyWithImpl< - _$ClosureReason_CounterpartyForceClosedImpl>(this, _$identity); + _$$ClosureReason_PeerFeerateTooLowImplCopyWith< + _$ClosureReason_PeerFeerateTooLowImpl> + get copyWith => __$$ClosureReason_PeerFeerateTooLowImplCopyWithImpl< + _$ClosureReason_PeerFeerateTooLowImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -481,14 +709,16 @@ class _$ClosureReason_CounterpartyForceClosedImpl required TResult Function() fundingBatchClosure, required TResult Function() htlCsTimedOut, }) { - return counterpartyForceClosed(peerMsg); + return peerFeerateTooLow(peerFeerateSatPerKw, requiredFeerateSatPerKw); } @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -501,14 +731,17 @@ class _$ClosureReason_CounterpartyForceClosedImpl TResult? Function()? fundingBatchClosure, TResult? Function()? htlCsTimedOut, }) { - return counterpartyForceClosed?.call(peerMsg); + return peerFeerateTooLow?.call( + peerFeerateSatPerKw, requiredFeerateSatPerKw); } @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -522,8 +755,8 @@ class _$ClosureReason_CounterpartyForceClosedImpl TResult Function()? htlCsTimedOut, required TResult orElse(), }) { - if (counterpartyForceClosed != null) { - return counterpartyForceClosed(peerMsg); + if (peerFeerateTooLow != null) { + return peerFeerateTooLow(peerFeerateSatPerKw, requiredFeerateSatPerKw); } return orElse(); } @@ -531,6 +764,8 @@ class _$ClosureReason_CounterpartyForceClosedImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -560,12 +795,13 @@ class _$ClosureReason_CounterpartyForceClosedImpl fundingBatchClosure, required TResult Function(ClosureReason_HTLCsTimedOut value) htlCsTimedOut, }) { - return counterpartyForceClosed(this); + return peerFeerateTooLow(this); } @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -590,12 +826,13 @@ class _$ClosureReason_CounterpartyForceClosedImpl fundingBatchClosure, TResult? Function(ClosureReason_HTLCsTimedOut value)? htlCsTimedOut, }) { - return counterpartyForceClosed?.call(this); + return peerFeerateTooLow?.call(this); } @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -620,78 +857,374 @@ class _$ClosureReason_CounterpartyForceClosedImpl TResult Function(ClosureReason_HTLCsTimedOut value)? htlCsTimedOut, required TResult orElse(), }) { - if (counterpartyForceClosed != null) { - return counterpartyForceClosed(this); + if (peerFeerateTooLow != null) { + return peerFeerateTooLow(this); } return orElse(); } } -abstract class ClosureReason_CounterpartyForceClosed extends ClosureReason { - const factory ClosureReason_CounterpartyForceClosed( - {required final String peerMsg}) = - _$ClosureReason_CounterpartyForceClosedImpl; - const ClosureReason_CounterpartyForceClosed._() : super._(); +abstract class ClosureReason_PeerFeerateTooLow extends ClosureReason { + const factory ClosureReason_PeerFeerateTooLow( + {required final int peerFeerateSatPerKw, + required final int requiredFeerateSatPerKw}) = + _$ClosureReason_PeerFeerateTooLowImpl; + const ClosureReason_PeerFeerateTooLow._() : super._(); - /// The error which the peer sent us. - /// - /// Be careful about printing the peer_msg, a well-crafted message could exploit - /// a security vulnerability in the terminal emulator or the logging subsystem. - /// To be safe, use `Display` on `UntrustedString` - /// - /// [`UntrustedString`]: crate::util::string::UntrustedString - String get peerMsg; + int get peerFeerateSatPerKw; + int get requiredFeerateSatPerKw; @JsonKey(ignore: true) - _$$ClosureReason_CounterpartyForceClosedImplCopyWith< - _$ClosureReason_CounterpartyForceClosedImpl> + _$$ClosureReason_PeerFeerateTooLowImplCopyWith< + _$ClosureReason_PeerFeerateTooLowImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$ClosureReason_HolderForceClosedImplCopyWith<$Res> { - factory _$$ClosureReason_HolderForceClosedImplCopyWith( - _$ClosureReason_HolderForceClosedImpl value, - $Res Function(_$ClosureReason_HolderForceClosedImpl) then) = - __$$ClosureReason_HolderForceClosedImplCopyWithImpl<$Res>; +abstract class _$$ClosureReason_CounterpartyForceClosedImplCopyWith<$Res> { + factory _$$ClosureReason_CounterpartyForceClosedImplCopyWith( + _$ClosureReason_CounterpartyForceClosedImpl value, + $Res Function(_$ClosureReason_CounterpartyForceClosedImpl) then) = + __$$ClosureReason_CounterpartyForceClosedImplCopyWithImpl<$Res>; + @useResult + $Res call({String peerMsg}); } /// @nodoc -class __$$ClosureReason_HolderForceClosedImplCopyWithImpl<$Res> +class __$$ClosureReason_CounterpartyForceClosedImplCopyWithImpl<$Res> extends _$ClosureReasonCopyWithImpl<$Res, - _$ClosureReason_HolderForceClosedImpl> - implements _$$ClosureReason_HolderForceClosedImplCopyWith<$Res> { - __$$ClosureReason_HolderForceClosedImplCopyWithImpl( - _$ClosureReason_HolderForceClosedImpl _value, - $Res Function(_$ClosureReason_HolderForceClosedImpl) _then) + _$ClosureReason_CounterpartyForceClosedImpl> + implements _$$ClosureReason_CounterpartyForceClosedImplCopyWith<$Res> { + __$$ClosureReason_CounterpartyForceClosedImplCopyWithImpl( + _$ClosureReason_CounterpartyForceClosedImpl _value, + $Res Function(_$ClosureReason_CounterpartyForceClosedImpl) _then) : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? peerMsg = null, + }) { + return _then(_$ClosureReason_CounterpartyForceClosedImpl( + peerMsg: null == peerMsg + ? _value.peerMsg + : peerMsg // ignore: cast_nullable_to_non_nullable + as String, + )); + } } /// @nodoc -class _$ClosureReason_HolderForceClosedImpl - extends ClosureReason_HolderForceClosed { - const _$ClosureReason_HolderForceClosedImpl() : super._(); +class _$ClosureReason_CounterpartyForceClosedImpl + extends ClosureReason_CounterpartyForceClosed { + const _$ClosureReason_CounterpartyForceClosedImpl({required this.peerMsg}) + : super._(); + /// The error which the peer sent us. + /// + /// Be careful about printing the peer_msg, a well-crafted message could exploit + /// a security vulnerability in the terminal emulator or the logging subsystem. + /// To be safe, use `Display` on `UntrustedString` + /// + /// [`UntrustedString`]: crate::util::string::UntrustedString @override - String toString() { - return 'ClosureReason.holderForceClosed()'; + final String peerMsg; + + @override + String toString() { + return 'ClosureReason.counterpartyForceClosed(peerMsg: $peerMsg)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$ClosureReason_HolderForceClosedImpl); + other is _$ClosureReason_CounterpartyForceClosedImpl && + (identical(other.peerMsg, peerMsg) || other.peerMsg == peerMsg)); } @override - int get hashCode => runtimeType.hashCode; + int get hashCode => Object.hash(runtimeType, peerMsg); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$ClosureReason_CounterpartyForceClosedImplCopyWith< + _$ClosureReason_CounterpartyForceClosedImpl> + get copyWith => __$$ClosureReason_CounterpartyForceClosedImplCopyWithImpl< + _$ClosureReason_CounterpartyForceClosedImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, + required TResult Function(String peerMsg) counterpartyForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, + required TResult Function() legacyCooperativeClosure, + required TResult Function() counterpartyInitiatedCooperativeClosure, + required TResult Function() locallyInitiatedCooperativeClosure, + required TResult Function() commitmentTxConfirmed, + required TResult Function() fundingTimedOut, + required TResult Function(String err) processingError, + required TResult Function() disconnectedPeer, + required TResult Function() outdatedChannelManager, + required TResult Function() counterpartyCoopClosedUnfundedChannel, + required TResult Function() fundingBatchClosure, + required TResult Function() htlCsTimedOut, + }) { + return counterpartyForceClosed(peerMsg); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, + TResult? Function(String peerMsg)? counterpartyForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, + TResult? Function()? legacyCooperativeClosure, + TResult? Function()? counterpartyInitiatedCooperativeClosure, + TResult? Function()? locallyInitiatedCooperativeClosure, + TResult? Function()? commitmentTxConfirmed, + TResult? Function()? fundingTimedOut, + TResult? Function(String err)? processingError, + TResult? Function()? disconnectedPeer, + TResult? Function()? outdatedChannelManager, + TResult? Function()? counterpartyCoopClosedUnfundedChannel, + TResult? Function()? fundingBatchClosure, + TResult? Function()? htlCsTimedOut, + }) { + return counterpartyForceClosed?.call(peerMsg); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, + TResult Function(String peerMsg)? counterpartyForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, + TResult Function()? legacyCooperativeClosure, + TResult Function()? counterpartyInitiatedCooperativeClosure, + TResult Function()? locallyInitiatedCooperativeClosure, + TResult Function()? commitmentTxConfirmed, + TResult Function()? fundingTimedOut, + TResult Function(String err)? processingError, + TResult Function()? disconnectedPeer, + TResult Function()? outdatedChannelManager, + TResult Function()? counterpartyCoopClosedUnfundedChannel, + TResult Function()? fundingBatchClosure, + TResult Function()? htlCsTimedOut, + required TResult orElse(), + }) { + if (counterpartyForceClosed != null) { + return counterpartyForceClosed(peerMsg); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, + required TResult Function(ClosureReason_CounterpartyForceClosed value) + counterpartyForceClosed, + required TResult Function(ClosureReason_HolderForceClosed value) + holderForceClosed, + required TResult Function(ClosureReason_LegacyCooperativeClosure value) + legacyCooperativeClosure, + required TResult Function( + ClosureReason_CounterpartyInitiatedCooperativeClosure value) + counterpartyInitiatedCooperativeClosure, + required TResult Function( + ClosureReason_LocallyInitiatedCooperativeClosure value) + locallyInitiatedCooperativeClosure, + required TResult Function(ClosureReason_CommitmentTxConfirmed value) + commitmentTxConfirmed, + required TResult Function(ClosureReason_FundingTimedOut value) + fundingTimedOut, + required TResult Function(ClosureReason_ProcessingError value) + processingError, + required TResult Function(ClosureReason_DisconnectedPeer value) + disconnectedPeer, + required TResult Function(ClosureReason_OutdatedChannelManager value) + outdatedChannelManager, + required TResult Function( + ClosureReason_CounterpartyCoopClosedUnfundedChannel value) + counterpartyCoopClosedUnfundedChannel, + required TResult Function(ClosureReason_FundingBatchClosure value) + fundingBatchClosure, + required TResult Function(ClosureReason_HTLCsTimedOut value) htlCsTimedOut, + }) { + return counterpartyForceClosed(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, + TResult? Function(ClosureReason_CounterpartyForceClosed value)? + counterpartyForceClosed, + TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, + TResult? Function(ClosureReason_LegacyCooperativeClosure value)? + legacyCooperativeClosure, + TResult? Function( + ClosureReason_CounterpartyInitiatedCooperativeClosure value)? + counterpartyInitiatedCooperativeClosure, + TResult? Function(ClosureReason_LocallyInitiatedCooperativeClosure value)? + locallyInitiatedCooperativeClosure, + TResult? Function(ClosureReason_CommitmentTxConfirmed value)? + commitmentTxConfirmed, + TResult? Function(ClosureReason_FundingTimedOut value)? fundingTimedOut, + TResult? Function(ClosureReason_ProcessingError value)? processingError, + TResult? Function(ClosureReason_DisconnectedPeer value)? disconnectedPeer, + TResult? Function(ClosureReason_OutdatedChannelManager value)? + outdatedChannelManager, + TResult? Function( + ClosureReason_CounterpartyCoopClosedUnfundedChannel value)? + counterpartyCoopClosedUnfundedChannel, + TResult? Function(ClosureReason_FundingBatchClosure value)? + fundingBatchClosure, + TResult? Function(ClosureReason_HTLCsTimedOut value)? htlCsTimedOut, + }) { + return counterpartyForceClosed?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, + TResult Function(ClosureReason_CounterpartyForceClosed value)? + counterpartyForceClosed, + TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, + TResult Function(ClosureReason_LegacyCooperativeClosure value)? + legacyCooperativeClosure, + TResult Function( + ClosureReason_CounterpartyInitiatedCooperativeClosure value)? + counterpartyInitiatedCooperativeClosure, + TResult Function(ClosureReason_LocallyInitiatedCooperativeClosure value)? + locallyInitiatedCooperativeClosure, + TResult Function(ClosureReason_CommitmentTxConfirmed value)? + commitmentTxConfirmed, + TResult Function(ClosureReason_FundingTimedOut value)? fundingTimedOut, + TResult Function(ClosureReason_ProcessingError value)? processingError, + TResult Function(ClosureReason_DisconnectedPeer value)? disconnectedPeer, + TResult Function(ClosureReason_OutdatedChannelManager value)? + outdatedChannelManager, + TResult Function(ClosureReason_CounterpartyCoopClosedUnfundedChannel value)? + counterpartyCoopClosedUnfundedChannel, + TResult Function(ClosureReason_FundingBatchClosure value)? + fundingBatchClosure, + TResult Function(ClosureReason_HTLCsTimedOut value)? htlCsTimedOut, + required TResult orElse(), + }) { + if (counterpartyForceClosed != null) { + return counterpartyForceClosed(this); + } + return orElse(); + } +} + +abstract class ClosureReason_CounterpartyForceClosed extends ClosureReason { + const factory ClosureReason_CounterpartyForceClosed( + {required final String peerMsg}) = + _$ClosureReason_CounterpartyForceClosedImpl; + const ClosureReason_CounterpartyForceClosed._() : super._(); + + /// The error which the peer sent us. + /// + /// Be careful about printing the peer_msg, a well-crafted message could exploit + /// a security vulnerability in the terminal emulator or the logging subsystem. + /// To be safe, use `Display` on `UntrustedString` + /// + /// [`UntrustedString`]: crate::util::string::UntrustedString + String get peerMsg; + @JsonKey(ignore: true) + _$$ClosureReason_CounterpartyForceClosedImplCopyWith< + _$ClosureReason_CounterpartyForceClosedImpl> + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$ClosureReason_HolderForceClosedImplCopyWith<$Res> { + factory _$$ClosureReason_HolderForceClosedImplCopyWith( + _$ClosureReason_HolderForceClosedImpl value, + $Res Function(_$ClosureReason_HolderForceClosedImpl) then) = + __$$ClosureReason_HolderForceClosedImplCopyWithImpl<$Res>; + @useResult + $Res call({bool? broadcastedLatestTxn}); +} + +/// @nodoc +class __$$ClosureReason_HolderForceClosedImplCopyWithImpl<$Res> + extends _$ClosureReasonCopyWithImpl<$Res, + _$ClosureReason_HolderForceClosedImpl> + implements _$$ClosureReason_HolderForceClosedImplCopyWith<$Res> { + __$$ClosureReason_HolderForceClosedImplCopyWithImpl( + _$ClosureReason_HolderForceClosedImpl _value, + $Res Function(_$ClosureReason_HolderForceClosedImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? broadcastedLatestTxn = freezed, + }) { + return _then(_$ClosureReason_HolderForceClosedImpl( + broadcastedLatestTxn: freezed == broadcastedLatestTxn + ? _value.broadcastedLatestTxn + : broadcastedLatestTxn // ignore: cast_nullable_to_non_nullable + as bool?, + )); + } +} + +/// @nodoc + +class _$ClosureReason_HolderForceClosedImpl + extends ClosureReason_HolderForceClosed { + const _$ClosureReason_HolderForceClosedImpl({this.broadcastedLatestTxn}) + : super._(); + + @override + final bool? broadcastedLatestTxn; + + @override + String toString() { + return 'ClosureReason.holderForceClosed(broadcastedLatestTxn: $broadcastedLatestTxn)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$ClosureReason_HolderForceClosedImpl && + (identical(other.broadcastedLatestTxn, broadcastedLatestTxn) || + other.broadcastedLatestTxn == broadcastedLatestTxn)); + } + + @override + int get hashCode => Object.hash(runtimeType, broadcastedLatestTxn); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$ClosureReason_HolderForceClosedImplCopyWith< + _$ClosureReason_HolderForceClosedImpl> + get copyWith => __$$ClosureReason_HolderForceClosedImplCopyWithImpl< + _$ClosureReason_HolderForceClosedImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -704,14 +1237,16 @@ class _$ClosureReason_HolderForceClosedImpl required TResult Function() fundingBatchClosure, required TResult Function() htlCsTimedOut, }) { - return holderForceClosed(); + return holderForceClosed(broadcastedLatestTxn); } @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -724,14 +1259,16 @@ class _$ClosureReason_HolderForceClosedImpl TResult? Function()? fundingBatchClosure, TResult? Function()? htlCsTimedOut, }) { - return holderForceClosed?.call(); + return holderForceClosed?.call(broadcastedLatestTxn); } @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -746,7 +1283,7 @@ class _$ClosureReason_HolderForceClosedImpl required TResult orElse(), }) { if (holderForceClosed != null) { - return holderForceClosed(); + return holderForceClosed(broadcastedLatestTxn); } return orElse(); } @@ -754,6 +1291,8 @@ class _$ClosureReason_HolderForceClosedImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -789,6 +1328,7 @@ class _$ClosureReason_HolderForceClosedImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -819,6 +1359,7 @@ class _$ClosureReason_HolderForceClosedImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -851,9 +1392,16 @@ class _$ClosureReason_HolderForceClosedImpl } abstract class ClosureReason_HolderForceClosed extends ClosureReason { - const factory ClosureReason_HolderForceClosed() = + const factory ClosureReason_HolderForceClosed( + {final bool? broadcastedLatestTxn}) = _$ClosureReason_HolderForceClosedImpl; const ClosureReason_HolderForceClosed._() : super._(); + + bool? get broadcastedLatestTxn; + @JsonKey(ignore: true) + _$$ClosureReason_HolderForceClosedImplCopyWith< + _$ClosureReason_HolderForceClosedImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc @@ -899,8 +1447,11 @@ class _$ClosureReason_LegacyCooperativeClosureImpl @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -919,8 +1470,10 @@ class _$ClosureReason_LegacyCooperativeClosureImpl @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -939,8 +1492,10 @@ class _$ClosureReason_LegacyCooperativeClosureImpl @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -963,6 +1518,8 @@ class _$ClosureReason_LegacyCooperativeClosureImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -998,6 +1555,7 @@ class _$ClosureReason_LegacyCooperativeClosureImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -1028,6 +1586,7 @@ class _$ClosureReason_LegacyCooperativeClosureImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -1118,8 +1677,11 @@ class _$ClosureReason_CounterpartyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -1138,8 +1700,10 @@ class _$ClosureReason_CounterpartyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -1158,8 +1722,10 @@ class _$ClosureReason_CounterpartyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -1182,6 +1748,8 @@ class _$ClosureReason_CounterpartyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -1217,6 +1785,7 @@ class _$ClosureReason_CounterpartyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -1247,6 +1816,7 @@ class _$ClosureReason_CounterpartyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -1333,8 +1903,11 @@ class _$ClosureReason_LocallyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -1353,8 +1926,10 @@ class _$ClosureReason_LocallyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -1373,8 +1948,10 @@ class _$ClosureReason_LocallyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -1397,6 +1974,8 @@ class _$ClosureReason_LocallyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -1432,6 +2011,7 @@ class _$ClosureReason_LocallyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -1462,6 +2042,7 @@ class _$ClosureReason_LocallyInitiatedCooperativeClosureImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -1543,8 +2124,11 @@ class _$ClosureReason_CommitmentTxConfirmedImpl @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -1563,8 +2147,10 @@ class _$ClosureReason_CommitmentTxConfirmedImpl @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -1583,8 +2169,10 @@ class _$ClosureReason_CommitmentTxConfirmedImpl @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -1607,6 +2195,8 @@ class _$ClosureReason_CommitmentTxConfirmedImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -1642,6 +2232,7 @@ class _$ClosureReason_CommitmentTxConfirmedImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -1672,6 +2263,7 @@ class _$ClosureReason_CommitmentTxConfirmedImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -1752,8 +2344,11 @@ class _$ClosureReason_FundingTimedOutImpl @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -1772,8 +2367,10 @@ class _$ClosureReason_FundingTimedOutImpl @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -1792,8 +2389,10 @@ class _$ClosureReason_FundingTimedOutImpl @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -1816,6 +2415,8 @@ class _$ClosureReason_FundingTimedOutImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -1851,6 +2452,7 @@ class _$ClosureReason_FundingTimedOutImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -1881,6 +2483,7 @@ class _$ClosureReason_FundingTimedOutImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -1989,8 +2592,11 @@ class _$ClosureReason_ProcessingErrorImpl @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -2009,8 +2615,10 @@ class _$ClosureReason_ProcessingErrorImpl @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -2029,8 +2637,10 @@ class _$ClosureReason_ProcessingErrorImpl @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -2053,6 +2663,8 @@ class _$ClosureReason_ProcessingErrorImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -2088,6 +2700,7 @@ class _$ClosureReason_ProcessingErrorImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -2118,6 +2731,7 @@ class _$ClosureReason_ProcessingErrorImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -2205,8 +2819,11 @@ class _$ClosureReason_DisconnectedPeerImpl @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -2225,8 +2842,10 @@ class _$ClosureReason_DisconnectedPeerImpl @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -2245,8 +2864,10 @@ class _$ClosureReason_DisconnectedPeerImpl @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -2269,6 +2890,8 @@ class _$ClosureReason_DisconnectedPeerImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -2304,6 +2927,7 @@ class _$ClosureReason_DisconnectedPeerImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -2334,6 +2958,7 @@ class _$ClosureReason_DisconnectedPeerImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -2414,8 +3039,11 @@ class _$ClosureReason_OutdatedChannelManagerImpl @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -2434,8 +3062,10 @@ class _$ClosureReason_OutdatedChannelManagerImpl @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -2454,8 +3084,10 @@ class _$ClosureReason_OutdatedChannelManagerImpl @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -2478,6 +3110,8 @@ class _$ClosureReason_OutdatedChannelManagerImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -2513,6 +3147,7 @@ class _$ClosureReason_OutdatedChannelManagerImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -2543,6 +3178,7 @@ class _$ClosureReason_OutdatedChannelManagerImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -2631,8 +3267,11 @@ class _$ClosureReason_CounterpartyCoopClosedUnfundedChannelImpl @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -2651,8 +3290,10 @@ class _$ClosureReason_CounterpartyCoopClosedUnfundedChannelImpl @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -2671,8 +3312,10 @@ class _$ClosureReason_CounterpartyCoopClosedUnfundedChannelImpl @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -2695,6 +3338,8 @@ class _$ClosureReason_CounterpartyCoopClosedUnfundedChannelImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -2730,6 +3375,7 @@ class _$ClosureReason_CounterpartyCoopClosedUnfundedChannelImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -2760,6 +3406,7 @@ class _$ClosureReason_CounterpartyCoopClosedUnfundedChannelImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -2841,8 +3488,11 @@ class _$ClosureReason_FundingBatchClosureImpl @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -2861,8 +3511,10 @@ class _$ClosureReason_FundingBatchClosureImpl @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -2881,8 +3533,10 @@ class _$ClosureReason_FundingBatchClosureImpl @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -2905,6 +3559,8 @@ class _$ClosureReason_FundingBatchClosureImpl @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -2940,6 +3596,7 @@ class _$ClosureReason_FundingBatchClosureImpl @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -2970,6 +3627,7 @@ class _$ClosureReason_FundingBatchClosureImpl @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -3048,8 +3706,11 @@ class _$ClosureReason_HTLCsTimedOutImpl extends ClosureReason_HTLCsTimedOut { @override @optionalTypeArgs TResult when({ + required TResult Function( + int peerFeerateSatPerKw, int requiredFeerateSatPerKw) + peerFeerateTooLow, required TResult Function(String peerMsg) counterpartyForceClosed, - required TResult Function() holderForceClosed, + required TResult Function(bool? broadcastedLatestTxn) holderForceClosed, required TResult Function() legacyCooperativeClosure, required TResult Function() counterpartyInitiatedCooperativeClosure, required TResult Function() locallyInitiatedCooperativeClosure, @@ -3068,8 +3729,10 @@ class _$ClosureReason_HTLCsTimedOutImpl extends ClosureReason_HTLCsTimedOut { @override @optionalTypeArgs TResult? whenOrNull({ + TResult? Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult? Function(String peerMsg)? counterpartyForceClosed, - TResult? Function()? holderForceClosed, + TResult? Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult? Function()? legacyCooperativeClosure, TResult? Function()? counterpartyInitiatedCooperativeClosure, TResult? Function()? locallyInitiatedCooperativeClosure, @@ -3088,8 +3751,10 @@ class _$ClosureReason_HTLCsTimedOutImpl extends ClosureReason_HTLCsTimedOut { @override @optionalTypeArgs TResult maybeWhen({ + TResult Function(int peerFeerateSatPerKw, int requiredFeerateSatPerKw)? + peerFeerateTooLow, TResult Function(String peerMsg)? counterpartyForceClosed, - TResult Function()? holderForceClosed, + TResult Function(bool? broadcastedLatestTxn)? holderForceClosed, TResult Function()? legacyCooperativeClosure, TResult Function()? counterpartyInitiatedCooperativeClosure, TResult Function()? locallyInitiatedCooperativeClosure, @@ -3112,6 +3777,8 @@ class _$ClosureReason_HTLCsTimedOutImpl extends ClosureReason_HTLCsTimedOut { @override @optionalTypeArgs TResult map({ + required TResult Function(ClosureReason_PeerFeerateTooLow value) + peerFeerateTooLow, required TResult Function(ClosureReason_CounterpartyForceClosed value) counterpartyForceClosed, required TResult Function(ClosureReason_HolderForceClosed value) @@ -3147,6 +3814,7 @@ class _$ClosureReason_HTLCsTimedOutImpl extends ClosureReason_HTLCsTimedOut { @override @optionalTypeArgs TResult? mapOrNull({ + TResult? Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult? Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult? Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -3177,6 +3845,7 @@ class _$ClosureReason_HTLCsTimedOutImpl extends ClosureReason_HTLCsTimedOut { @override @optionalTypeArgs TResult maybeMap({ + TResult Function(ClosureReason_PeerFeerateTooLow value)? peerFeerateTooLow, TResult Function(ClosureReason_CounterpartyForceClosed value)? counterpartyForceClosed, TResult Function(ClosureReason_HolderForceClosed value)? holderForceClosed, @@ -3220,7 +3889,7 @@ mixin _$EntropySourceConfig { TResult when({ required TResult Function(String field0) seedFile, required TResult Function(U8Array64 field0) seedBytes, - required TResult Function(LdkMnemonic mnemonic, String? passphrase) + required TResult Function(FfiMnemonic mnemonic, String? passphrase) bip39Mnemonic, }) => throw _privateConstructorUsedError; @@ -3228,14 +3897,14 @@ mixin _$EntropySourceConfig { TResult? whenOrNull({ TResult? Function(String field0)? seedFile, TResult? Function(U8Array64 field0)? seedBytes, - TResult? Function(LdkMnemonic mnemonic, String? passphrase)? bip39Mnemonic, + TResult? Function(FfiMnemonic mnemonic, String? passphrase)? bip39Mnemonic, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function(String field0)? seedFile, TResult Function(U8Array64 field0)? seedBytes, - TResult Function(LdkMnemonic mnemonic, String? passphrase)? bip39Mnemonic, + TResult Function(FfiMnemonic mnemonic, String? passphrase)? bip39Mnemonic, required TResult orElse(), }) => throw _privateConstructorUsedError; @@ -3353,7 +4022,7 @@ class _$EntropySourceConfig_SeedFileImpl extends EntropySourceConfig_SeedFile { TResult when({ required TResult Function(String field0) seedFile, required TResult Function(U8Array64 field0) seedBytes, - required TResult Function(LdkMnemonic mnemonic, String? passphrase) + required TResult Function(FfiMnemonic mnemonic, String? passphrase) bip39Mnemonic, }) { return seedFile(field0); @@ -3364,7 +4033,7 @@ class _$EntropySourceConfig_SeedFileImpl extends EntropySourceConfig_SeedFile { TResult? whenOrNull({ TResult? Function(String field0)? seedFile, TResult? Function(U8Array64 field0)? seedBytes, - TResult? Function(LdkMnemonic mnemonic, String? passphrase)? bip39Mnemonic, + TResult? Function(FfiMnemonic mnemonic, String? passphrase)? bip39Mnemonic, }) { return seedFile?.call(field0); } @@ -3374,7 +4043,7 @@ class _$EntropySourceConfig_SeedFileImpl extends EntropySourceConfig_SeedFile { TResult maybeWhen({ TResult Function(String field0)? seedFile, TResult Function(U8Array64 field0)? seedBytes, - TResult Function(LdkMnemonic mnemonic, String? passphrase)? bip39Mnemonic, + TResult Function(FfiMnemonic mnemonic, String? passphrase)? bip39Mnemonic, required TResult orElse(), }) { if (seedFile != null) { @@ -3504,7 +4173,7 @@ class _$EntropySourceConfig_SeedBytesImpl TResult when({ required TResult Function(String field0) seedFile, required TResult Function(U8Array64 field0) seedBytes, - required TResult Function(LdkMnemonic mnemonic, String? passphrase) + required TResult Function(FfiMnemonic mnemonic, String? passphrase) bip39Mnemonic, }) { return seedBytes(field0); @@ -3515,7 +4184,7 @@ class _$EntropySourceConfig_SeedBytesImpl TResult? whenOrNull({ TResult? Function(String field0)? seedFile, TResult? Function(U8Array64 field0)? seedBytes, - TResult? Function(LdkMnemonic mnemonic, String? passphrase)? bip39Mnemonic, + TResult? Function(FfiMnemonic mnemonic, String? passphrase)? bip39Mnemonic, }) { return seedBytes?.call(field0); } @@ -3525,7 +4194,7 @@ class _$EntropySourceConfig_SeedBytesImpl TResult maybeWhen({ TResult Function(String field0)? seedFile, TResult Function(U8Array64 field0)? seedBytes, - TResult Function(LdkMnemonic mnemonic, String? passphrase)? bip39Mnemonic, + TResult Function(FfiMnemonic mnemonic, String? passphrase)? bip39Mnemonic, required TResult orElse(), }) { if (seedBytes != null) { @@ -3589,7 +4258,7 @@ abstract class _$$EntropySourceConfig_Bip39MnemonicImplCopyWith<$Res> { $Res Function(_$EntropySourceConfig_Bip39MnemonicImpl) then) = __$$EntropySourceConfig_Bip39MnemonicImplCopyWithImpl<$Res>; @useResult - $Res call({LdkMnemonic mnemonic, String? passphrase}); + $Res call({FfiMnemonic mnemonic, String? passphrase}); } /// @nodoc @@ -3612,7 +4281,7 @@ class __$$EntropySourceConfig_Bip39MnemonicImplCopyWithImpl<$Res> mnemonic: null == mnemonic ? _value.mnemonic : mnemonic // ignore: cast_nullable_to_non_nullable - as LdkMnemonic, + as FfiMnemonic, passphrase: freezed == passphrase ? _value.passphrase : passphrase // ignore: cast_nullable_to_non_nullable @@ -3630,7 +4299,7 @@ class _$EntropySourceConfig_Bip39MnemonicImpl : super._(); @override - final LdkMnemonic mnemonic; + final FfiMnemonic mnemonic; @override final String? passphrase; @@ -3666,7 +4335,7 @@ class _$EntropySourceConfig_Bip39MnemonicImpl TResult when({ required TResult Function(String field0) seedFile, required TResult Function(U8Array64 field0) seedBytes, - required TResult Function(LdkMnemonic mnemonic, String? passphrase) + required TResult Function(FfiMnemonic mnemonic, String? passphrase) bip39Mnemonic, }) { return bip39Mnemonic(mnemonic, passphrase); @@ -3677,7 +4346,7 @@ class _$EntropySourceConfig_Bip39MnemonicImpl TResult? whenOrNull({ TResult? Function(String field0)? seedFile, TResult? Function(U8Array64 field0)? seedBytes, - TResult? Function(LdkMnemonic mnemonic, String? passphrase)? bip39Mnemonic, + TResult? Function(FfiMnemonic mnemonic, String? passphrase)? bip39Mnemonic, }) { return bip39Mnemonic?.call(mnemonic, passphrase); } @@ -3687,7 +4356,7 @@ class _$EntropySourceConfig_Bip39MnemonicImpl TResult maybeWhen({ TResult Function(String field0)? seedFile, TResult Function(U8Array64 field0)? seedBytes, - TResult Function(LdkMnemonic mnemonic, String? passphrase)? bip39Mnemonic, + TResult Function(FfiMnemonic mnemonic, String? passphrase)? bip39Mnemonic, required TResult orElse(), }) { if (bip39Mnemonic != null) { @@ -3734,11 +4403,11 @@ class _$EntropySourceConfig_Bip39MnemonicImpl abstract class EntropySourceConfig_Bip39Mnemonic extends EntropySourceConfig { const factory EntropySourceConfig_Bip39Mnemonic( - {required final LdkMnemonic mnemonic, + {required final FfiMnemonic mnemonic, final String? passphrase}) = _$EntropySourceConfig_Bip39MnemonicImpl; const EntropySourceConfig_Bip39Mnemonic._() : super._(); - LdkMnemonic get mnemonic; + FfiMnemonic get mnemonic; String? get passphrase; @JsonKey(ignore: true) _$$EntropySourceConfig_Bip39MnemonicImplCopyWith< @@ -3756,7 +4425,7 @@ mixin _$Event { required TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat) paymentSuccessful, - required TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + required TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason) paymentFailed, required TResult Function( @@ -3785,7 +4454,7 @@ mixin _$Event { TResult? Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult? Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult? Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult? Function( @@ -3814,7 +4483,7 @@ mixin _$Event { TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult Function( @@ -4008,7 +4677,7 @@ class _$Event_PaymentClaimableImpl extends Event_PaymentClaimable { required TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat) paymentSuccessful, - required TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + required TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason) paymentFailed, required TResult Function( @@ -4041,7 +4710,7 @@ class _$Event_PaymentClaimableImpl extends Event_PaymentClaimable { TResult? Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult? Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult? Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult? Function( @@ -4074,7 +4743,7 @@ class _$Event_PaymentClaimableImpl extends Event_PaymentClaimable { TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult Function( @@ -4277,7 +4946,7 @@ class _$Event_PaymentSuccessfulImpl extends Event_PaymentSuccessful { required TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat) paymentSuccessful, - required TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + required TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason) paymentFailed, required TResult Function( @@ -4309,7 +4978,7 @@ class _$Event_PaymentSuccessfulImpl extends Event_PaymentSuccessful { TResult? Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult? Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult? Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult? Function( @@ -4341,7 +5010,7 @@ class _$Event_PaymentSuccessfulImpl extends Event_PaymentSuccessful { TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult Function( @@ -4445,7 +5114,7 @@ abstract class _$$Event_PaymentFailedImplCopyWith<$Res> { @useResult $Res call( {PaymentId? paymentId, - PaymentHash paymentHash, + PaymentHash? paymentHash, PaymentFailureReason? reason}); } @@ -4461,7 +5130,7 @@ class __$$Event_PaymentFailedImplCopyWithImpl<$Res> @override $Res call({ Object? paymentId = freezed, - Object? paymentHash = null, + Object? paymentHash = freezed, Object? reason = freezed, }) { return _then(_$Event_PaymentFailedImpl( @@ -4469,10 +5138,10 @@ class __$$Event_PaymentFailedImplCopyWithImpl<$Res> ? _value.paymentId : paymentId // ignore: cast_nullable_to_non_nullable as PaymentId?, - paymentHash: null == paymentHash + paymentHash: freezed == paymentHash ? _value.paymentHash : paymentHash // ignore: cast_nullable_to_non_nullable - as PaymentHash, + as PaymentHash?, reason: freezed == reason ? _value.reason : reason // ignore: cast_nullable_to_non_nullable @@ -4485,7 +5154,7 @@ class __$$Event_PaymentFailedImplCopyWithImpl<$Res> class _$Event_PaymentFailedImpl extends Event_PaymentFailed { const _$Event_PaymentFailedImpl( - {this.paymentId, required this.paymentHash, this.reason}) + {this.paymentId, this.paymentHash, this.reason}) : super._(); /// A local identifier used to track the payment. @@ -4496,7 +5165,7 @@ class _$Event_PaymentFailedImpl extends Event_PaymentFailed { /// The hash of the payment. @override - final PaymentHash paymentHash; + final PaymentHash? paymentHash; /// The reason why the payment failed. /// @@ -4540,7 +5209,7 @@ class _$Event_PaymentFailedImpl extends Event_PaymentFailed { required TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat) paymentSuccessful, - required TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + required TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason) paymentFailed, required TResult Function( @@ -4572,7 +5241,7 @@ class _$Event_PaymentFailedImpl extends Event_PaymentFailed { TResult? Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult? Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult? Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult? Function( @@ -4604,7 +5273,7 @@ class _$Event_PaymentFailedImpl extends Event_PaymentFailed { TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult Function( @@ -4681,7 +5350,7 @@ class _$Event_PaymentFailedImpl extends Event_PaymentFailed { abstract class Event_PaymentFailed extends Event { const factory Event_PaymentFailed( {final PaymentId? paymentId, - required final PaymentHash paymentHash, + final PaymentHash? paymentHash, final PaymentFailureReason? reason}) = _$Event_PaymentFailedImpl; const Event_PaymentFailed._() : super._(); @@ -4691,7 +5360,7 @@ abstract class Event_PaymentFailed extends Event { PaymentId? get paymentId; /// The hash of the payment. - PaymentHash get paymentHash; + PaymentHash? get paymentHash; /// The reason why the payment failed. /// @@ -4803,7 +5472,7 @@ class _$Event_PaymentReceivedImpl extends Event_PaymentReceived { required TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat) paymentSuccessful, - required TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + required TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason) paymentFailed, required TResult Function( @@ -4835,7 +5504,7 @@ class _$Event_PaymentReceivedImpl extends Event_PaymentReceived { TResult? Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult? Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult? Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult? Function( @@ -4867,7 +5536,7 @@ class _$Event_PaymentReceivedImpl extends Event_PaymentReceived { TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult Function( @@ -5094,7 +5763,7 @@ class _$Event_ChannelPendingImpl extends Event_ChannelPending { required TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat) paymentSuccessful, - required TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + required TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason) paymentFailed, required TResult Function( @@ -5127,7 +5796,7 @@ class _$Event_ChannelPendingImpl extends Event_ChannelPending { TResult? Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult? Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult? Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult? Function( @@ -5160,7 +5829,7 @@ class _$Event_ChannelPendingImpl extends Event_ChannelPending { TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult Function( @@ -5368,7 +6037,7 @@ class _$Event_ChannelReadyImpl extends Event_ChannelReady { required TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat) paymentSuccessful, - required TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + required TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason) paymentFailed, required TResult Function( @@ -5400,7 +6069,7 @@ class _$Event_ChannelReadyImpl extends Event_ChannelReady { TResult? Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult? Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult? Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult? Function( @@ -5432,7 +6101,7 @@ class _$Event_ChannelReadyImpl extends Event_ChannelReady { TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult Function( @@ -5659,7 +6328,7 @@ class _$Event_ChannelClosedImpl extends Event_ChannelClosed { required TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat) paymentSuccessful, - required TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + required TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason) paymentFailed, required TResult Function( @@ -5691,7 +6360,7 @@ class _$Event_ChannelClosedImpl extends Event_ChannelClosed { TResult? Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult? Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult? Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult? Function( @@ -5724,7 +6393,7 @@ class _$Event_ChannelClosedImpl extends Event_ChannelClosed { TResult Function( PaymentId? paymentId, PaymentHash paymentHash, BigInt? feePaidMsat)? paymentSuccessful, - TResult Function(PaymentId? paymentId, PaymentHash paymentHash, + TResult Function(PaymentId? paymentId, PaymentHash? paymentHash, PaymentFailureReason? reason)? paymentFailed, TResult Function( @@ -6155,11 +6824,18 @@ mixin _$LightningBalance { BigInt get amountSatoshis => throw _privateConstructorUsedError; @optionalTypeArgs TResult when({ - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat) claimableOnChannelClose, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight) + BigInt amountSatoshis, int confirmationHeight, BalanceSource source) claimableAwaitingConfirmations, required TResult Function( ChannelId channelId, @@ -6169,8 +6845,13 @@ mixin _$LightningBalance { PaymentHash paymentHash, PaymentPreimage paymentPreimage) contentiousClaimable, - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int claimableHeight, PaymentHash paymentHash) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int claimableHeight, + PaymentHash paymentHash, + bool outboundPayment) maybeTimeoutClaimableHtlc, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash) @@ -6182,11 +6863,22 @@ mixin _$LightningBalance { throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult? Function( ChannelId channelId, @@ -6201,7 +6893,8 @@ mixin _$LightningBalance { PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -6213,11 +6906,22 @@ mixin _$LightningBalance { throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult Function( ChannelId channelId, @@ -6232,7 +6936,8 @@ mixin _$LightningBalance { PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -6359,7 +7064,12 @@ abstract class _$$LightningBalance_ClaimableOnChannelCloseImplCopyWith<$Res> $Res call( {ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis}); + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat}); } /// @nodoc @@ -6378,6 +7088,11 @@ class __$$LightningBalance_ClaimableOnChannelCloseImplCopyWithImpl<$Res> Object? channelId = null, Object? counterpartyNodeId = null, Object? amountSatoshis = null, + Object? transactionFeeSatoshis = null, + Object? outboundPaymentHtlcRoundedMsat = null, + Object? outboundForwardedHtlcRoundedMsat = null, + Object? inboundClaimingHtlcRoundedMsat = null, + Object? inboundHtlcRoundedMsat = null, }) { return _then(_$LightningBalance_ClaimableOnChannelCloseImpl( channelId: null == channelId @@ -6392,6 +7107,26 @@ class __$$LightningBalance_ClaimableOnChannelCloseImplCopyWithImpl<$Res> ? _value.amountSatoshis : amountSatoshis // ignore: cast_nullable_to_non_nullable as BigInt, + transactionFeeSatoshis: null == transactionFeeSatoshis + ? _value.transactionFeeSatoshis + : transactionFeeSatoshis // ignore: cast_nullable_to_non_nullable + as BigInt, + outboundPaymentHtlcRoundedMsat: null == outboundPaymentHtlcRoundedMsat + ? _value.outboundPaymentHtlcRoundedMsat + : outboundPaymentHtlcRoundedMsat // ignore: cast_nullable_to_non_nullable + as BigInt, + outboundForwardedHtlcRoundedMsat: null == outboundForwardedHtlcRoundedMsat + ? _value.outboundForwardedHtlcRoundedMsat + : outboundForwardedHtlcRoundedMsat // ignore: cast_nullable_to_non_nullable + as BigInt, + inboundClaimingHtlcRoundedMsat: null == inboundClaimingHtlcRoundedMsat + ? _value.inboundClaimingHtlcRoundedMsat + : inboundClaimingHtlcRoundedMsat // ignore: cast_nullable_to_non_nullable + as BigInt, + inboundHtlcRoundedMsat: null == inboundHtlcRoundedMsat + ? _value.inboundHtlcRoundedMsat + : inboundHtlcRoundedMsat // ignore: cast_nullable_to_non_nullable + as BigInt, )); } } @@ -6403,7 +7138,12 @@ class _$LightningBalance_ClaimableOnChannelCloseImpl const _$LightningBalance_ClaimableOnChannelCloseImpl( {required this.channelId, required this.counterpartyNodeId, - required this.amountSatoshis}) + required this.amountSatoshis, + required this.transactionFeeSatoshis, + required this.outboundPaymentHtlcRoundedMsat, + required this.outboundForwardedHtlcRoundedMsat, + required this.inboundClaimingHtlcRoundedMsat, + required this.inboundHtlcRoundedMsat}) : super._(); /// The identifier of the channel this balance belongs to. @@ -6419,9 +7159,53 @@ class _$LightningBalance_ClaimableOnChannelCloseImpl @override final BigInt amountSatoshis; + /// The transaction fee we pay for the closing commitment transaction. This amount is not + /// included in the `amount_satoshis` value. + /// + /// Note that if this channel is inbound (and thus our counterparty pays the commitment + /// transaction fee) this value will be zero. For channels created prior to LDK Node 0.4 + /// the channel is always treated as outbound (and thus this value is never zero). + @override + final BigInt transactionFeeSatoshis; + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are outbound + /// from us and are related to a payment which was sent by us. This is the sum of the + /// millisatoshis part of all HTLCs which are otherwise represented by + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + @override + final BigInt outboundPaymentHtlcRoundedMsat; + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are outbound + /// from us and are related to a forwarded HTLC. This is the sum of the millisatoshis part + /// of all HTLCs which are otherwise represented by + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + @override + final BigInt outboundForwardedHtlcRoundedMsat; + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are inbound + /// to us and for which we know the preimage. This is the sum of the millisatoshis part of + /// all HTLCs which would be represented by `lightningBalance.ContentiousClaimable` on + /// channel close, but whose current value is included in `amountSatoshis`, as well as any + /// dust HTLCs which would otherwise be represented the same. + /// + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + @override + final BigInt inboundClaimingHtlcRoundedMsat; + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are inbound + /// to us and for which we do not know the preimage. This is the sum of the millisatoshis + /// part of all HTLCs which would be represented by + /// `lightningBalance.MaybePreimageClaimableHTLC` on channel close, as well as any dust + /// HTLCs which would otherwise be represented the same. + /// + /// This amount (rounded up to a whole satoshi value) will not be included in the + /// counterparty's `amountSatoshis`. + @override + final BigInt inboundHtlcRoundedMsat; + @override String toString() { - return 'LightningBalance.claimableOnChannelClose(channelId: $channelId, counterpartyNodeId: $counterpartyNodeId, amountSatoshis: $amountSatoshis)'; + return 'LightningBalance.claimableOnChannelClose(channelId: $channelId, counterpartyNodeId: $counterpartyNodeId, amountSatoshis: $amountSatoshis, transactionFeeSatoshis: $transactionFeeSatoshis, outboundPaymentHtlcRoundedMsat: $outboundPaymentHtlcRoundedMsat, outboundForwardedHtlcRoundedMsat: $outboundForwardedHtlcRoundedMsat, inboundClaimingHtlcRoundedMsat: $inboundClaimingHtlcRoundedMsat, inboundHtlcRoundedMsat: $inboundHtlcRoundedMsat)'; } @override @@ -6434,12 +7218,36 @@ class _$LightningBalance_ClaimableOnChannelCloseImpl (identical(other.counterpartyNodeId, counterpartyNodeId) || other.counterpartyNodeId == counterpartyNodeId) && (identical(other.amountSatoshis, amountSatoshis) || - other.amountSatoshis == amountSatoshis)); + other.amountSatoshis == amountSatoshis) && + (identical(other.transactionFeeSatoshis, transactionFeeSatoshis) || + other.transactionFeeSatoshis == transactionFeeSatoshis) && + (identical(other.outboundPaymentHtlcRoundedMsat, + outboundPaymentHtlcRoundedMsat) || + other.outboundPaymentHtlcRoundedMsat == + outboundPaymentHtlcRoundedMsat) && + (identical(other.outboundForwardedHtlcRoundedMsat, + outboundForwardedHtlcRoundedMsat) || + other.outboundForwardedHtlcRoundedMsat == + outboundForwardedHtlcRoundedMsat) && + (identical(other.inboundClaimingHtlcRoundedMsat, + inboundClaimingHtlcRoundedMsat) || + other.inboundClaimingHtlcRoundedMsat == + inboundClaimingHtlcRoundedMsat) && + (identical(other.inboundHtlcRoundedMsat, inboundHtlcRoundedMsat) || + other.inboundHtlcRoundedMsat == inboundHtlcRoundedMsat)); } @override - int get hashCode => - Object.hash(runtimeType, channelId, counterpartyNodeId, amountSatoshis); + int get hashCode => Object.hash( + runtimeType, + channelId, + counterpartyNodeId, + amountSatoshis, + transactionFeeSatoshis, + outboundPaymentHtlcRoundedMsat, + outboundForwardedHtlcRoundedMsat, + inboundClaimingHtlcRoundedMsat, + inboundHtlcRoundedMsat); @JsonKey(ignore: true) @override @@ -6453,11 +7261,18 @@ class _$LightningBalance_ClaimableOnChannelCloseImpl @override @optionalTypeArgs TResult when({ - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat) claimableOnChannelClose, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight) + BigInt amountSatoshis, int confirmationHeight, BalanceSource source) claimableAwaitingConfirmations, required TResult Function( ChannelId channelId, @@ -6467,8 +7282,13 @@ class _$LightningBalance_ClaimableOnChannelCloseImpl PaymentHash paymentHash, PaymentPreimage paymentPreimage) contentiousClaimable, - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int claimableHeight, PaymentHash paymentHash) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int claimableHeight, + PaymentHash paymentHash, + bool outboundPayment) maybeTimeoutClaimableHtlc, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash) @@ -6478,17 +7298,35 @@ class _$LightningBalance_ClaimableOnChannelCloseImpl counterpartyRevokedOutputClaimable, }) { return claimableOnChannelClose( - channelId, counterpartyNodeId, amountSatoshis); + channelId, + counterpartyNodeId, + amountSatoshis, + transactionFeeSatoshis, + outboundPaymentHtlcRoundedMsat, + outboundForwardedHtlcRoundedMsat, + inboundClaimingHtlcRoundedMsat, + inboundHtlcRoundedMsat); } @override @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult? Function( ChannelId channelId, @@ -6503,7 +7341,8 @@ class _$LightningBalance_ClaimableOnChannelCloseImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -6513,17 +7352,35 @@ class _$LightningBalance_ClaimableOnChannelCloseImpl counterpartyRevokedOutputClaimable, }) { return claimableOnChannelClose?.call( - channelId, counterpartyNodeId, amountSatoshis); + channelId, + counterpartyNodeId, + amountSatoshis, + transactionFeeSatoshis, + outboundPaymentHtlcRoundedMsat, + outboundForwardedHtlcRoundedMsat, + inboundClaimingHtlcRoundedMsat, + inboundHtlcRoundedMsat); } @override @optionalTypeArgs TResult maybeWhen({ - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult Function( ChannelId channelId, @@ -6538,7 +7395,8 @@ class _$LightningBalance_ClaimableOnChannelCloseImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -6550,7 +7408,14 @@ class _$LightningBalance_ClaimableOnChannelCloseImpl }) { if (claimableOnChannelClose != null) { return claimableOnChannelClose( - channelId, counterpartyNodeId, amountSatoshis); + channelId, + counterpartyNodeId, + amountSatoshis, + transactionFeeSatoshis, + outboundPaymentHtlcRoundedMsat, + outboundForwardedHtlcRoundedMsat, + inboundClaimingHtlcRoundedMsat, + inboundHtlcRoundedMsat); } return orElse(); } @@ -6625,7 +7490,12 @@ abstract class LightningBalance_ClaimableOnChannelClose const factory LightningBalance_ClaimableOnChannelClose( {required final ChannelId channelId, required final PublicKey counterpartyNodeId, - required final BigInt amountSatoshis}) = + required final BigInt amountSatoshis, + required final BigInt transactionFeeSatoshis, + required final BigInt outboundPaymentHtlcRoundedMsat, + required final BigInt outboundForwardedHtlcRoundedMsat, + required final BigInt inboundClaimingHtlcRoundedMsat, + required final BigInt inboundHtlcRoundedMsat}) = _$LightningBalance_ClaimableOnChannelCloseImpl; const LightningBalance_ClaimableOnChannelClose._() : super._(); @@ -6642,6 +7512,45 @@ abstract class LightningBalance_ClaimableOnChannelClose /// The amount available to claim, in satoshis, excluding the on-chain fees which will be /// required to do so. BigInt get amountSatoshis; + + /// The transaction fee we pay for the closing commitment transaction. This amount is not + /// included in the `amount_satoshis` value. + /// + /// Note that if this channel is inbound (and thus our counterparty pays the commitment + /// transaction fee) this value will be zero. For channels created prior to LDK Node 0.4 + /// the channel is always treated as outbound (and thus this value is never zero). + BigInt get transactionFeeSatoshis; + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are outbound + /// from us and are related to a payment which was sent by us. This is the sum of the + /// millisatoshis part of all HTLCs which are otherwise represented by + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + BigInt get outboundPaymentHtlcRoundedMsat; + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are outbound + /// from us and are related to a forwarded HTLC. This is the sum of the millisatoshis part + /// of all HTLCs which are otherwise represented by + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + BigInt get outboundForwardedHtlcRoundedMsat; + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are inbound + /// to us and for which we know the preimage. This is the sum of the millisatoshis part of + /// all HTLCs which would be represented by `lightningBalance.ContentiousClaimable` on + /// channel close, but whose current value is included in `amountSatoshis`, as well as any + /// dust HTLCs which would otherwise be represented the same. + /// + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + BigInt get inboundClaimingHtlcRoundedMsat; + + /// The amount of millisatoshis which has been burned to fees from HTLCs which are inbound + /// to us and for which we do not know the preimage. This is the sum of the millisatoshis + /// part of all HTLCs which would be represented by + /// `lightningBalance.MaybePreimageClaimableHTLC` on channel close, as well as any dust + /// HTLCs which would otherwise be represented the same. + /// + /// This amount (rounded up to a whole satoshi value) will not be included in the + /// counterparty's `amountSatoshis`. + BigInt get inboundHtlcRoundedMsat; @override @JsonKey(ignore: true) _$$LightningBalance_ClaimableOnChannelCloseImplCopyWith< @@ -6663,7 +7572,8 @@ abstract class _$$LightningBalance_ClaimableAwaitingConfirmationsImplCopyWith< {ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, - int confirmationHeight}); + int confirmationHeight, + BalanceSource source}); } /// @nodoc @@ -6685,6 +7595,7 @@ class __$$LightningBalance_ClaimableAwaitingConfirmationsImplCopyWithImpl<$Res> Object? counterpartyNodeId = null, Object? amountSatoshis = null, Object? confirmationHeight = null, + Object? source = null, }) { return _then(_$LightningBalance_ClaimableAwaitingConfirmationsImpl( channelId: null == channelId @@ -6703,6 +7614,10 @@ class __$$LightningBalance_ClaimableAwaitingConfirmationsImplCopyWithImpl<$Res> ? _value.confirmationHeight : confirmationHeight // ignore: cast_nullable_to_non_nullable as int, + source: null == source + ? _value.source + : source // ignore: cast_nullable_to_non_nullable + as BalanceSource, )); } } @@ -6715,7 +7630,8 @@ class _$LightningBalance_ClaimableAwaitingConfirmationsImpl {required this.channelId, required this.counterpartyNodeId, required this.amountSatoshis, - required this.confirmationHeight}) + required this.confirmationHeight, + required this.source}) : super._(); /// The identifier of the channel this balance belongs to. @@ -6731,16 +7647,19 @@ class _$LightningBalance_ClaimableAwaitingConfirmationsImpl @override final BigInt amountSatoshis; - /// The height at which an [`Event::SpendableOutputs`] event will be generated for this + /// The height at which an `event.SpendableOutputs` event will be generated for this /// amount. /// - /// [`Event::SpendableOutputs`]: lightning::events::Event::SpendableOutputs @override final int confirmationHeight; + /// Whether this balance is a result of cooperative close, a force-close, or an HTLC. + @override + final BalanceSource source; + @override String toString() { - return 'LightningBalance.claimableAwaitingConfirmations(channelId: $channelId, counterpartyNodeId: $counterpartyNodeId, amountSatoshis: $amountSatoshis, confirmationHeight: $confirmationHeight)'; + return 'LightningBalance.claimableAwaitingConfirmations(channelId: $channelId, counterpartyNodeId: $counterpartyNodeId, amountSatoshis: $amountSatoshis, confirmationHeight: $confirmationHeight, source: $source)'; } @override @@ -6755,12 +7674,13 @@ class _$LightningBalance_ClaimableAwaitingConfirmationsImpl (identical(other.amountSatoshis, amountSatoshis) || other.amountSatoshis == amountSatoshis) && (identical(other.confirmationHeight, confirmationHeight) || - other.confirmationHeight == confirmationHeight)); + other.confirmationHeight == confirmationHeight) && + (identical(other.source, source) || other.source == source)); } @override int get hashCode => Object.hash(runtimeType, channelId, counterpartyNodeId, - amountSatoshis, confirmationHeight); + amountSatoshis, confirmationHeight, source); @JsonKey(ignore: true) @override @@ -6775,11 +7695,18 @@ class _$LightningBalance_ClaimableAwaitingConfirmationsImpl @override @optionalTypeArgs TResult when({ - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat) claimableOnChannelClose, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight) + BigInt amountSatoshis, int confirmationHeight, BalanceSource source) claimableAwaitingConfirmations, required TResult Function( ChannelId channelId, @@ -6789,8 +7716,13 @@ class _$LightningBalance_ClaimableAwaitingConfirmationsImpl PaymentHash paymentHash, PaymentPreimage paymentPreimage) contentiousClaimable, - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int claimableHeight, PaymentHash paymentHash) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int claimableHeight, + PaymentHash paymentHash, + bool outboundPayment) maybeTimeoutClaimableHtlc, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash) @@ -6799,18 +7731,29 @@ class _$LightningBalance_ClaimableAwaitingConfirmationsImpl BigInt amountSatoshis) counterpartyRevokedOutputClaimable, }) { - return claimableAwaitingConfirmations( - channelId, counterpartyNodeId, amountSatoshis, confirmationHeight); + return claimableAwaitingConfirmations(channelId, counterpartyNodeId, + amountSatoshis, confirmationHeight, source); } @override @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult? Function( ChannelId channelId, @@ -6825,7 +7768,8 @@ class _$LightningBalance_ClaimableAwaitingConfirmationsImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -6834,18 +7778,29 @@ class _$LightningBalance_ClaimableAwaitingConfirmationsImpl BigInt amountSatoshis)? counterpartyRevokedOutputClaimable, }) { - return claimableAwaitingConfirmations?.call( - channelId, counterpartyNodeId, amountSatoshis, confirmationHeight); + return claimableAwaitingConfirmations?.call(channelId, counterpartyNodeId, + amountSatoshis, confirmationHeight, source); } @override @optionalTypeArgs TResult maybeWhen({ - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult Function( ChannelId channelId, @@ -6860,7 +7815,8 @@ class _$LightningBalance_ClaimableAwaitingConfirmationsImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -6871,8 +7827,8 @@ class _$LightningBalance_ClaimableAwaitingConfirmationsImpl required TResult orElse(), }) { if (claimableAwaitingConfirmations != null) { - return claimableAwaitingConfirmations( - channelId, counterpartyNodeId, amountSatoshis, confirmationHeight); + return claimableAwaitingConfirmations(channelId, counterpartyNodeId, + amountSatoshis, confirmationHeight, source); } return orElse(); } @@ -6948,7 +7904,8 @@ abstract class LightningBalance_ClaimableAwaitingConfirmations {required final ChannelId channelId, required final PublicKey counterpartyNodeId, required final BigInt amountSatoshis, - required final int confirmationHeight}) = + required final int confirmationHeight, + required final BalanceSource source}) = _$LightningBalance_ClaimableAwaitingConfirmationsImpl; const LightningBalance_ClaimableAwaitingConfirmations._() : super._(); @@ -6966,11 +7923,13 @@ abstract class LightningBalance_ClaimableAwaitingConfirmations /// were spent in broadcasting the transaction. BigInt get amountSatoshis; - /// The height at which an [`Event::SpendableOutputs`] event will be generated for this + /// The height at which an `event.SpendableOutputs` event will be generated for this /// amount. /// - /// [`Event::SpendableOutputs`]: lightning::events::Event::SpendableOutputs int get confirmationHeight; + + /// Whether this balance is a result of cooperative close, a force-close, or an HTLC. + BalanceSource get source; @override @JsonKey(ignore: true) _$$LightningBalance_ClaimableAwaitingConfirmationsImplCopyWith< @@ -7123,11 +8082,18 @@ class _$LightningBalance_ContentiousClaimableImpl @override @optionalTypeArgs TResult when({ - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat) claimableOnChannelClose, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight) + BigInt amountSatoshis, int confirmationHeight, BalanceSource source) claimableAwaitingConfirmations, required TResult Function( ChannelId channelId, @@ -7137,8 +8103,13 @@ class _$LightningBalance_ContentiousClaimableImpl PaymentHash paymentHash, PaymentPreimage paymentPreimage) contentiousClaimable, - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int claimableHeight, PaymentHash paymentHash) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int claimableHeight, + PaymentHash paymentHash, + bool outboundPayment) maybeTimeoutClaimableHtlc, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash) @@ -7154,11 +8125,22 @@ class _$LightningBalance_ContentiousClaimableImpl @override @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult? Function( ChannelId channelId, @@ -7173,7 +8155,8 @@ class _$LightningBalance_ContentiousClaimableImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -7189,11 +8172,22 @@ class _$LightningBalance_ContentiousClaimableImpl @override @optionalTypeArgs TResult maybeWhen({ - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult Function( ChannelId channelId, @@ -7208,7 +8202,8 @@ class _$LightningBalance_ContentiousClaimableImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -7346,7 +8341,8 @@ abstract class _$$LightningBalance_MaybeTimeoutClaimableHTLCImplCopyWith<$Res> PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash}); + PaymentHash paymentHash, + bool outboundPayment}); } /// @nodoc @@ -7367,6 +8363,7 @@ class __$$LightningBalance_MaybeTimeoutClaimableHTLCImplCopyWithImpl<$Res> Object? amountSatoshis = null, Object? claimableHeight = null, Object? paymentHash = null, + Object? outboundPayment = null, }) { return _then(_$LightningBalance_MaybeTimeoutClaimableHTLCImpl( channelId: null == channelId @@ -7389,6 +8386,10 @@ class __$$LightningBalance_MaybeTimeoutClaimableHTLCImplCopyWithImpl<$Res> ? _value.paymentHash : paymentHash // ignore: cast_nullable_to_non_nullable as PaymentHash, + outboundPayment: null == outboundPayment + ? _value.outboundPayment + : outboundPayment // ignore: cast_nullable_to_non_nullable + as bool, )); } } @@ -7402,7 +8403,8 @@ class _$LightningBalance_MaybeTimeoutClaimableHTLCImpl required this.counterpartyNodeId, required this.amountSatoshis, required this.claimableHeight, - required this.paymentHash}) + required this.paymentHash, + required this.outboundPayment}) : super._(); /// The identifier of the channel this balance belongs to. @@ -7427,9 +8429,13 @@ class _$LightningBalance_MaybeTimeoutClaimableHTLCImpl @override final PaymentHash paymentHash; + /// + @override + final bool outboundPayment; + @override String toString() { - return 'LightningBalance.maybeTimeoutClaimableHtlc(channelId: $channelId, counterpartyNodeId: $counterpartyNodeId, amountSatoshis: $amountSatoshis, claimableHeight: $claimableHeight, paymentHash: $paymentHash)'; + return 'LightningBalance.maybeTimeoutClaimableHtlc(channelId: $channelId, counterpartyNodeId: $counterpartyNodeId, amountSatoshis: $amountSatoshis, claimableHeight: $claimableHeight, paymentHash: $paymentHash, outboundPayment: $outboundPayment)'; } @override @@ -7446,12 +8452,14 @@ class _$LightningBalance_MaybeTimeoutClaimableHTLCImpl (identical(other.claimableHeight, claimableHeight) || other.claimableHeight == claimableHeight) && (identical(other.paymentHash, paymentHash) || - other.paymentHash == paymentHash)); + other.paymentHash == paymentHash) && + (identical(other.outboundPayment, outboundPayment) || + other.outboundPayment == outboundPayment)); } @override int get hashCode => Object.hash(runtimeType, channelId, counterpartyNodeId, - amountSatoshis, claimableHeight, paymentHash); + amountSatoshis, claimableHeight, paymentHash, outboundPayment); @JsonKey(ignore: true) @override @@ -7466,11 +8474,18 @@ class _$LightningBalance_MaybeTimeoutClaimableHTLCImpl @override @optionalTypeArgs TResult when({ - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat) claimableOnChannelClose, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight) + BigInt amountSatoshis, int confirmationHeight, BalanceSource source) claimableAwaitingConfirmations, required TResult Function( ChannelId channelId, @@ -7480,8 +8495,13 @@ class _$LightningBalance_MaybeTimeoutClaimableHTLCImpl PaymentHash paymentHash, PaymentPreimage paymentPreimage) contentiousClaimable, - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int claimableHeight, PaymentHash paymentHash) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int claimableHeight, + PaymentHash paymentHash, + bool outboundPayment) maybeTimeoutClaimableHtlc, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash) @@ -7491,17 +8511,28 @@ class _$LightningBalance_MaybeTimeoutClaimableHTLCImpl counterpartyRevokedOutputClaimable, }) { return maybeTimeoutClaimableHtlc(channelId, counterpartyNodeId, - amountSatoshis, claimableHeight, paymentHash); + amountSatoshis, claimableHeight, paymentHash, outboundPayment); } @override @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult? Function( ChannelId channelId, @@ -7516,7 +8547,8 @@ class _$LightningBalance_MaybeTimeoutClaimableHTLCImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -7526,18 +8558,29 @@ class _$LightningBalance_MaybeTimeoutClaimableHTLCImpl counterpartyRevokedOutputClaimable, }) { return maybeTimeoutClaimableHtlc?.call(channelId, counterpartyNodeId, - amountSatoshis, claimableHeight, paymentHash); + amountSatoshis, claimableHeight, paymentHash, outboundPayment); } @override @optionalTypeArgs TResult maybeWhen({ - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? - claimableOnChannelClose, - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? - claimableAwaitingConfirmations, + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? + claimableOnChannelClose, + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? + claimableAwaitingConfirmations, TResult Function( ChannelId channelId, PublicKey counterpartyNodeId, @@ -7551,7 +8594,8 @@ class _$LightningBalance_MaybeTimeoutClaimableHTLCImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -7563,7 +8607,7 @@ class _$LightningBalance_MaybeTimeoutClaimableHTLCImpl }) { if (maybeTimeoutClaimableHtlc != null) { return maybeTimeoutClaimableHtlc(channelId, counterpartyNodeId, - amountSatoshis, claimableHeight, paymentHash); + amountSatoshis, claimableHeight, paymentHash, outboundPayment); } return orElse(); } @@ -7640,7 +8684,8 @@ abstract class LightningBalance_MaybeTimeoutClaimableHTLC required final PublicKey counterpartyNodeId, required final BigInt amountSatoshis, required final int claimableHeight, - required final PaymentHash paymentHash}) = + required final PaymentHash paymentHash, + required final bool outboundPayment}) = _$LightningBalance_MaybeTimeoutClaimableHTLCImpl; const LightningBalance_MaybeTimeoutClaimableHTLC._() : super._(); @@ -7664,6 +8709,9 @@ abstract class LightningBalance_MaybeTimeoutClaimableHTLC /// The payment hash whose preimage our counterparty needs to claim this HTLC. PaymentHash get paymentHash; + + /// + bool get outboundPayment; @override @JsonKey(ignore: true) _$$LightningBalance_MaybeTimeoutClaimableHTLCImplCopyWith< @@ -7807,11 +8855,18 @@ class _$LightningBalance_MaybePreimageClaimableHTLCImpl @override @optionalTypeArgs TResult when({ - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat) claimableOnChannelClose, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight) + BigInt amountSatoshis, int confirmationHeight, BalanceSource source) claimableAwaitingConfirmations, required TResult Function( ChannelId channelId, @@ -7821,8 +8876,13 @@ class _$LightningBalance_MaybePreimageClaimableHTLCImpl PaymentHash paymentHash, PaymentPreimage paymentPreimage) contentiousClaimable, - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int claimableHeight, PaymentHash paymentHash) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int claimableHeight, + PaymentHash paymentHash, + bool outboundPayment) maybeTimeoutClaimableHtlc, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash) @@ -7838,11 +8898,22 @@ class _$LightningBalance_MaybePreimageClaimableHTLCImpl @override @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult? Function( ChannelId channelId, @@ -7857,7 +8928,8 @@ class _$LightningBalance_MaybePreimageClaimableHTLCImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -7873,11 +8945,22 @@ class _$LightningBalance_MaybePreimageClaimableHTLCImpl @override @optionalTypeArgs TResult maybeWhen({ - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult Function( ChannelId channelId, @@ -7892,7 +8975,8 @@ class _$LightningBalance_MaybePreimageClaimableHTLCImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -8126,11 +9210,18 @@ class _$LightningBalance_CounterpartyRevokedOutputClaimableImpl @override @optionalTypeArgs TResult when({ - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat) claimableOnChannelClose, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight) + BigInt amountSatoshis, int confirmationHeight, BalanceSource source) claimableAwaitingConfirmations, required TResult Function( ChannelId channelId, @@ -8140,8 +9231,13 @@ class _$LightningBalance_CounterpartyRevokedOutputClaimableImpl PaymentHash paymentHash, PaymentPreimage paymentPreimage) contentiousClaimable, - required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int claimableHeight, PaymentHash paymentHash) + required TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int claimableHeight, + PaymentHash paymentHash, + bool outboundPayment) maybeTimeoutClaimableHtlc, required TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash) @@ -8157,11 +9253,22 @@ class _$LightningBalance_CounterpartyRevokedOutputClaimableImpl @override @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult? Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult? Function( ChannelId channelId, @@ -8176,7 +9283,8 @@ class _$LightningBalance_CounterpartyRevokedOutputClaimableImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult? Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -8192,11 +9300,22 @@ class _$LightningBalance_CounterpartyRevokedOutputClaimableImpl @override @optionalTypeArgs TResult maybeWhen({ - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + BigInt transactionFeeSatoshis, + BigInt outboundPaymentHtlcRoundedMsat, + BigInt outboundForwardedHtlcRoundedMsat, + BigInt inboundClaimingHtlcRoundedMsat, + BigInt inboundHtlcRoundedMsat)? claimableOnChannelClose, - TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, - BigInt amountSatoshis, int confirmationHeight)? + TResult Function( + ChannelId channelId, + PublicKey counterpartyNodeId, + BigInt amountSatoshis, + int confirmationHeight, + BalanceSource source)? claimableAwaitingConfirmations, TResult Function( ChannelId channelId, @@ -8211,7 +9330,8 @@ class _$LightningBalance_CounterpartyRevokedOutputClaimableImpl PublicKey counterpartyNodeId, BigInt amountSatoshis, int claimableHeight, - PaymentHash paymentHash)? + PaymentHash paymentHash, + bool outboundPayment)? maybeTimeoutClaimableHtlc, TResult Function(ChannelId channelId, PublicKey counterpartyNodeId, BigInt amountSatoshis, int expiryHeight, PaymentHash paymentHash)? @@ -8406,101 +9526,434 @@ class _$MaxDustHTLCExposureCopyWithImpl<$Res, $Val extends MaxDustHTLCExposure> } /// @nodoc -abstract class _$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWith<$Res> - implements $MaxDustHTLCExposureCopyWith<$Res> { - factory _$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWith( - _$MaxDustHTLCExposure_FixedLimitMsatImpl value, - $Res Function(_$MaxDustHTLCExposure_FixedLimitMsatImpl) then) = - __$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWithImpl<$Res>; - @override - @useResult - $Res call({BigInt field0}); +abstract class _$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWith<$Res> + implements $MaxDustHTLCExposureCopyWith<$Res> { + factory _$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWith( + _$MaxDustHTLCExposure_FixedLimitMsatImpl value, + $Res Function(_$MaxDustHTLCExposure_FixedLimitMsatImpl) then) = + __$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({BigInt field0}); +} + +/// @nodoc +class __$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWithImpl<$Res> + extends _$MaxDustHTLCExposureCopyWithImpl<$Res, + _$MaxDustHTLCExposure_FixedLimitMsatImpl> + implements _$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWith<$Res> { + __$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWithImpl( + _$MaxDustHTLCExposure_FixedLimitMsatImpl _value, + $Res Function(_$MaxDustHTLCExposure_FixedLimitMsatImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? field0 = null, + }) { + return _then(_$MaxDustHTLCExposure_FixedLimitMsatImpl( + null == field0 + ? _value.field0 + : field0 // ignore: cast_nullable_to_non_nullable + as BigInt, + )); + } +} + +/// @nodoc + +class _$MaxDustHTLCExposure_FixedLimitMsatImpl + extends MaxDustHTLCExposure_FixedLimitMsat { + const _$MaxDustHTLCExposure_FixedLimitMsatImpl(this.field0) : super._(); + + @override + final BigInt field0; + + @override + String toString() { + return 'MaxDustHTLCExposure.fixedLimitMsat(field0: $field0)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$MaxDustHTLCExposure_FixedLimitMsatImpl && + (identical(other.field0, field0) || other.field0 == field0)); + } + + @override + int get hashCode => Object.hash(runtimeType, field0); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWith< + _$MaxDustHTLCExposure_FixedLimitMsatImpl> + get copyWith => __$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWithImpl< + _$MaxDustHTLCExposure_FixedLimitMsatImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(BigInt field0) fixedLimitMsat, + required TResult Function(BigInt field0) feeRateMultiplier, + }) { + return fixedLimitMsat(field0); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(BigInt field0)? fixedLimitMsat, + TResult? Function(BigInt field0)? feeRateMultiplier, + }) { + return fixedLimitMsat?.call(field0); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(BigInt field0)? fixedLimitMsat, + TResult Function(BigInt field0)? feeRateMultiplier, + required TResult orElse(), + }) { + if (fixedLimitMsat != null) { + return fixedLimitMsat(field0); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(MaxDustHTLCExposure_FixedLimitMsat value) + fixedLimitMsat, + required TResult Function(MaxDustHTLCExposure_FeeRateMultiplier value) + feeRateMultiplier, + }) { + return fixedLimitMsat(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(MaxDustHTLCExposure_FixedLimitMsat value)? fixedLimitMsat, + TResult? Function(MaxDustHTLCExposure_FeeRateMultiplier value)? + feeRateMultiplier, + }) { + return fixedLimitMsat?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(MaxDustHTLCExposure_FixedLimitMsat value)? fixedLimitMsat, + TResult Function(MaxDustHTLCExposure_FeeRateMultiplier value)? + feeRateMultiplier, + required TResult orElse(), + }) { + if (fixedLimitMsat != null) { + return fixedLimitMsat(this); + } + return orElse(); + } +} + +abstract class MaxDustHTLCExposure_FixedLimitMsat extends MaxDustHTLCExposure { + const factory MaxDustHTLCExposure_FixedLimitMsat(final BigInt field0) = + _$MaxDustHTLCExposure_FixedLimitMsatImpl; + const MaxDustHTLCExposure_FixedLimitMsat._() : super._(); + + @override + BigInt get field0; + @override + @JsonKey(ignore: true) + _$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWith< + _$MaxDustHTLCExposure_FixedLimitMsatImpl> + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWith<$Res> + implements $MaxDustHTLCExposureCopyWith<$Res> { + factory _$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWith( + _$MaxDustHTLCExposure_FeeRateMultiplierImpl value, + $Res Function(_$MaxDustHTLCExposure_FeeRateMultiplierImpl) then) = + __$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({BigInt field0}); +} + +/// @nodoc +class __$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWithImpl<$Res> + extends _$MaxDustHTLCExposureCopyWithImpl<$Res, + _$MaxDustHTLCExposure_FeeRateMultiplierImpl> + implements _$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWith<$Res> { + __$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWithImpl( + _$MaxDustHTLCExposure_FeeRateMultiplierImpl _value, + $Res Function(_$MaxDustHTLCExposure_FeeRateMultiplierImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? field0 = null, + }) { + return _then(_$MaxDustHTLCExposure_FeeRateMultiplierImpl( + null == field0 + ? _value.field0 + : field0 // ignore: cast_nullable_to_non_nullable + as BigInt, + )); + } +} + +/// @nodoc + +class _$MaxDustHTLCExposure_FeeRateMultiplierImpl + extends MaxDustHTLCExposure_FeeRateMultiplier { + const _$MaxDustHTLCExposure_FeeRateMultiplierImpl(this.field0) : super._(); + + @override + final BigInt field0; + + @override + String toString() { + return 'MaxDustHTLCExposure.feeRateMultiplier(field0: $field0)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$MaxDustHTLCExposure_FeeRateMultiplierImpl && + (identical(other.field0, field0) || other.field0 == field0)); + } + + @override + int get hashCode => Object.hash(runtimeType, field0); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWith< + _$MaxDustHTLCExposure_FeeRateMultiplierImpl> + get copyWith => __$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWithImpl< + _$MaxDustHTLCExposure_FeeRateMultiplierImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(BigInt field0) fixedLimitMsat, + required TResult Function(BigInt field0) feeRateMultiplier, + }) { + return feeRateMultiplier(field0); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(BigInt field0)? fixedLimitMsat, + TResult? Function(BigInt field0)? feeRateMultiplier, + }) { + return feeRateMultiplier?.call(field0); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(BigInt field0)? fixedLimitMsat, + TResult Function(BigInt field0)? feeRateMultiplier, + required TResult orElse(), + }) { + if (feeRateMultiplier != null) { + return feeRateMultiplier(field0); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(MaxDustHTLCExposure_FixedLimitMsat value) + fixedLimitMsat, + required TResult Function(MaxDustHTLCExposure_FeeRateMultiplier value) + feeRateMultiplier, + }) { + return feeRateMultiplier(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(MaxDustHTLCExposure_FixedLimitMsat value)? fixedLimitMsat, + TResult? Function(MaxDustHTLCExposure_FeeRateMultiplier value)? + feeRateMultiplier, + }) { + return feeRateMultiplier?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(MaxDustHTLCExposure_FixedLimitMsat value)? fixedLimitMsat, + TResult Function(MaxDustHTLCExposure_FeeRateMultiplier value)? + feeRateMultiplier, + required TResult orElse(), + }) { + if (feeRateMultiplier != null) { + return feeRateMultiplier(this); + } + return orElse(); + } +} + +abstract class MaxDustHTLCExposure_FeeRateMultiplier + extends MaxDustHTLCExposure { + const factory MaxDustHTLCExposure_FeeRateMultiplier(final BigInt field0) = + _$MaxDustHTLCExposure_FeeRateMultiplierImpl; + const MaxDustHTLCExposure_FeeRateMultiplier._() : super._(); + + @override + BigInt get field0; + @override + @JsonKey(ignore: true) + _$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWith< + _$MaxDustHTLCExposure_FeeRateMultiplierImpl> + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +mixin _$MaxTotalRoutingFeeLimit { + @optionalTypeArgs + TResult when({ + required TResult Function() noFeeCap, + required TResult Function(BigInt amountMsat) feeCap, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function()? noFeeCap, + TResult? Function(BigInt amountMsat)? feeCap, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeWhen({ + TResult Function()? noFeeCap, + TResult Function(BigInt amountMsat)? feeCap, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult map({ + required TResult Function(MaxTotalRoutingFeeLimit_NoFeeCap value) noFeeCap, + required TResult Function(MaxTotalRoutingFeeLimit_FeeCap value) feeCap, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(MaxTotalRoutingFeeLimit_NoFeeCap value)? noFeeCap, + TResult? Function(MaxTotalRoutingFeeLimit_FeeCap value)? feeCap, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeMap({ + TResult Function(MaxTotalRoutingFeeLimit_NoFeeCap value)? noFeeCap, + TResult Function(MaxTotalRoutingFeeLimit_FeeCap value)? feeCap, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $MaxTotalRoutingFeeLimitCopyWith<$Res> { + factory $MaxTotalRoutingFeeLimitCopyWith(MaxTotalRoutingFeeLimit value, + $Res Function(MaxTotalRoutingFeeLimit) then) = + _$MaxTotalRoutingFeeLimitCopyWithImpl<$Res, MaxTotalRoutingFeeLimit>; +} + +/// @nodoc +class _$MaxTotalRoutingFeeLimitCopyWithImpl<$Res, + $Val extends MaxTotalRoutingFeeLimit> + implements $MaxTotalRoutingFeeLimitCopyWith<$Res> { + _$MaxTotalRoutingFeeLimitCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; +} + +/// @nodoc +abstract class _$$MaxTotalRoutingFeeLimit_NoFeeCapImplCopyWith<$Res> { + factory _$$MaxTotalRoutingFeeLimit_NoFeeCapImplCopyWith( + _$MaxTotalRoutingFeeLimit_NoFeeCapImpl value, + $Res Function(_$MaxTotalRoutingFeeLimit_NoFeeCapImpl) then) = + __$$MaxTotalRoutingFeeLimit_NoFeeCapImplCopyWithImpl<$Res>; } /// @nodoc -class __$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWithImpl<$Res> - extends _$MaxDustHTLCExposureCopyWithImpl<$Res, - _$MaxDustHTLCExposure_FixedLimitMsatImpl> - implements _$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWith<$Res> { - __$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWithImpl( - _$MaxDustHTLCExposure_FixedLimitMsatImpl _value, - $Res Function(_$MaxDustHTLCExposure_FixedLimitMsatImpl) _then) +class __$$MaxTotalRoutingFeeLimit_NoFeeCapImplCopyWithImpl<$Res> + extends _$MaxTotalRoutingFeeLimitCopyWithImpl<$Res, + _$MaxTotalRoutingFeeLimit_NoFeeCapImpl> + implements _$$MaxTotalRoutingFeeLimit_NoFeeCapImplCopyWith<$Res> { + __$$MaxTotalRoutingFeeLimit_NoFeeCapImplCopyWithImpl( + _$MaxTotalRoutingFeeLimit_NoFeeCapImpl _value, + $Res Function(_$MaxTotalRoutingFeeLimit_NoFeeCapImpl) _then) : super(_value, _then); - - @pragma('vm:prefer-inline') - @override - $Res call({ - Object? field0 = null, - }) { - return _then(_$MaxDustHTLCExposure_FixedLimitMsatImpl( - null == field0 - ? _value.field0 - : field0 // ignore: cast_nullable_to_non_nullable - as BigInt, - )); - } } /// @nodoc -class _$MaxDustHTLCExposure_FixedLimitMsatImpl - extends MaxDustHTLCExposure_FixedLimitMsat { - const _$MaxDustHTLCExposure_FixedLimitMsatImpl(this.field0) : super._(); - - @override - final BigInt field0; +class _$MaxTotalRoutingFeeLimit_NoFeeCapImpl + extends MaxTotalRoutingFeeLimit_NoFeeCap { + const _$MaxTotalRoutingFeeLimit_NoFeeCapImpl() : super._(); @override String toString() { - return 'MaxDustHTLCExposure.fixedLimitMsat(field0: $field0)'; + return 'MaxTotalRoutingFeeLimit.noFeeCap()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$MaxDustHTLCExposure_FixedLimitMsatImpl && - (identical(other.field0, field0) || other.field0 == field0)); + other is _$MaxTotalRoutingFeeLimit_NoFeeCapImpl); } @override - int get hashCode => Object.hash(runtimeType, field0); - - @JsonKey(ignore: true) - @override - @pragma('vm:prefer-inline') - _$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWith< - _$MaxDustHTLCExposure_FixedLimitMsatImpl> - get copyWith => __$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWithImpl< - _$MaxDustHTLCExposure_FixedLimitMsatImpl>(this, _$identity); + int get hashCode => runtimeType.hashCode; @override @optionalTypeArgs TResult when({ - required TResult Function(BigInt field0) fixedLimitMsat, - required TResult Function(BigInt field0) feeRateMultiplier, + required TResult Function() noFeeCap, + required TResult Function(BigInt amountMsat) feeCap, }) { - return fixedLimitMsat(field0); + return noFeeCap(); } @override @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(BigInt field0)? fixedLimitMsat, - TResult? Function(BigInt field0)? feeRateMultiplier, + TResult? Function()? noFeeCap, + TResult? Function(BigInt amountMsat)? feeCap, }) { - return fixedLimitMsat?.call(field0); + return noFeeCap?.call(); } @override @optionalTypeArgs TResult maybeWhen({ - TResult Function(BigInt field0)? fixedLimitMsat, - TResult Function(BigInt field0)? feeRateMultiplier, + TResult Function()? noFeeCap, + TResult Function(BigInt amountMsat)? feeCap, required TResult orElse(), }) { - if (fixedLimitMsat != null) { - return fixedLimitMsat(field0); + if (noFeeCap != null) { + return noFeeCap(); } return orElse(); } @@ -8508,84 +9961,71 @@ class _$MaxDustHTLCExposure_FixedLimitMsatImpl @override @optionalTypeArgs TResult map({ - required TResult Function(MaxDustHTLCExposure_FixedLimitMsat value) - fixedLimitMsat, - required TResult Function(MaxDustHTLCExposure_FeeRateMultiplier value) - feeRateMultiplier, + required TResult Function(MaxTotalRoutingFeeLimit_NoFeeCap value) noFeeCap, + required TResult Function(MaxTotalRoutingFeeLimit_FeeCap value) feeCap, }) { - return fixedLimitMsat(this); + return noFeeCap(this); } @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(MaxDustHTLCExposure_FixedLimitMsat value)? fixedLimitMsat, - TResult? Function(MaxDustHTLCExposure_FeeRateMultiplier value)? - feeRateMultiplier, + TResult? Function(MaxTotalRoutingFeeLimit_NoFeeCap value)? noFeeCap, + TResult? Function(MaxTotalRoutingFeeLimit_FeeCap value)? feeCap, }) { - return fixedLimitMsat?.call(this); + return noFeeCap?.call(this); } @override @optionalTypeArgs TResult maybeMap({ - TResult Function(MaxDustHTLCExposure_FixedLimitMsat value)? fixedLimitMsat, - TResult Function(MaxDustHTLCExposure_FeeRateMultiplier value)? - feeRateMultiplier, + TResult Function(MaxTotalRoutingFeeLimit_NoFeeCap value)? noFeeCap, + TResult Function(MaxTotalRoutingFeeLimit_FeeCap value)? feeCap, required TResult orElse(), }) { - if (fixedLimitMsat != null) { - return fixedLimitMsat(this); + if (noFeeCap != null) { + return noFeeCap(this); } return orElse(); } } -abstract class MaxDustHTLCExposure_FixedLimitMsat extends MaxDustHTLCExposure { - const factory MaxDustHTLCExposure_FixedLimitMsat(final BigInt field0) = - _$MaxDustHTLCExposure_FixedLimitMsatImpl; - const MaxDustHTLCExposure_FixedLimitMsat._() : super._(); - - @override - BigInt get field0; - @override - @JsonKey(ignore: true) - _$$MaxDustHTLCExposure_FixedLimitMsatImplCopyWith< - _$MaxDustHTLCExposure_FixedLimitMsatImpl> - get copyWith => throw _privateConstructorUsedError; +abstract class MaxTotalRoutingFeeLimit_NoFeeCap + extends MaxTotalRoutingFeeLimit { + const factory MaxTotalRoutingFeeLimit_NoFeeCap() = + _$MaxTotalRoutingFeeLimit_NoFeeCapImpl; + const MaxTotalRoutingFeeLimit_NoFeeCap._() : super._(); } /// @nodoc -abstract class _$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWith<$Res> - implements $MaxDustHTLCExposureCopyWith<$Res> { - factory _$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWith( - _$MaxDustHTLCExposure_FeeRateMultiplierImpl value, - $Res Function(_$MaxDustHTLCExposure_FeeRateMultiplierImpl) then) = - __$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWithImpl<$Res>; - @override +abstract class _$$MaxTotalRoutingFeeLimit_FeeCapImplCopyWith<$Res> { + factory _$$MaxTotalRoutingFeeLimit_FeeCapImplCopyWith( + _$MaxTotalRoutingFeeLimit_FeeCapImpl value, + $Res Function(_$MaxTotalRoutingFeeLimit_FeeCapImpl) then) = + __$$MaxTotalRoutingFeeLimit_FeeCapImplCopyWithImpl<$Res>; @useResult - $Res call({BigInt field0}); + $Res call({BigInt amountMsat}); } /// @nodoc -class __$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWithImpl<$Res> - extends _$MaxDustHTLCExposureCopyWithImpl<$Res, - _$MaxDustHTLCExposure_FeeRateMultiplierImpl> - implements _$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWith<$Res> { - __$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWithImpl( - _$MaxDustHTLCExposure_FeeRateMultiplierImpl _value, - $Res Function(_$MaxDustHTLCExposure_FeeRateMultiplierImpl) _then) +class __$$MaxTotalRoutingFeeLimit_FeeCapImplCopyWithImpl<$Res> + extends _$MaxTotalRoutingFeeLimitCopyWithImpl<$Res, + _$MaxTotalRoutingFeeLimit_FeeCapImpl> + implements _$$MaxTotalRoutingFeeLimit_FeeCapImplCopyWith<$Res> { + __$$MaxTotalRoutingFeeLimit_FeeCapImplCopyWithImpl( + _$MaxTotalRoutingFeeLimit_FeeCapImpl _value, + $Res Function(_$MaxTotalRoutingFeeLimit_FeeCapImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ - Object? field0 = null, + Object? amountMsat = null, }) { - return _then(_$MaxDustHTLCExposure_FeeRateMultiplierImpl( - null == field0 - ? _value.field0 - : field0 // ignore: cast_nullable_to_non_nullable + return _then(_$MaxTotalRoutingFeeLimit_FeeCapImpl( + amountMsat: null == amountMsat + ? _value.amountMsat + : amountMsat // ignore: cast_nullable_to_non_nullable as BigInt, )); } @@ -8593,64 +10033,66 @@ class __$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWithImpl<$Res> /// @nodoc -class _$MaxDustHTLCExposure_FeeRateMultiplierImpl - extends MaxDustHTLCExposure_FeeRateMultiplier { - const _$MaxDustHTLCExposure_FeeRateMultiplierImpl(this.field0) : super._(); +class _$MaxTotalRoutingFeeLimit_FeeCapImpl + extends MaxTotalRoutingFeeLimit_FeeCap { + const _$MaxTotalRoutingFeeLimit_FeeCapImpl({required this.amountMsat}) + : super._(); @override - final BigInt field0; + final BigInt amountMsat; @override String toString() { - return 'MaxDustHTLCExposure.feeRateMultiplier(field0: $field0)'; + return 'MaxTotalRoutingFeeLimit.feeCap(amountMsat: $amountMsat)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$MaxDustHTLCExposure_FeeRateMultiplierImpl && - (identical(other.field0, field0) || other.field0 == field0)); + other is _$MaxTotalRoutingFeeLimit_FeeCapImpl && + (identical(other.amountMsat, amountMsat) || + other.amountMsat == amountMsat)); } @override - int get hashCode => Object.hash(runtimeType, field0); + int get hashCode => Object.hash(runtimeType, amountMsat); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWith< - _$MaxDustHTLCExposure_FeeRateMultiplierImpl> - get copyWith => __$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWithImpl< - _$MaxDustHTLCExposure_FeeRateMultiplierImpl>(this, _$identity); + _$$MaxTotalRoutingFeeLimit_FeeCapImplCopyWith< + _$MaxTotalRoutingFeeLimit_FeeCapImpl> + get copyWith => __$$MaxTotalRoutingFeeLimit_FeeCapImplCopyWithImpl< + _$MaxTotalRoutingFeeLimit_FeeCapImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ - required TResult Function(BigInt field0) fixedLimitMsat, - required TResult Function(BigInt field0) feeRateMultiplier, + required TResult Function() noFeeCap, + required TResult Function(BigInt amountMsat) feeCap, }) { - return feeRateMultiplier(field0); + return feeCap(amountMsat); } @override @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(BigInt field0)? fixedLimitMsat, - TResult? Function(BigInt field0)? feeRateMultiplier, + TResult? Function()? noFeeCap, + TResult? Function(BigInt amountMsat)? feeCap, }) { - return feeRateMultiplier?.call(field0); + return feeCap?.call(amountMsat); } @override @optionalTypeArgs TResult maybeWhen({ - TResult Function(BigInt field0)? fixedLimitMsat, - TResult Function(BigInt field0)? feeRateMultiplier, + TResult Function()? noFeeCap, + TResult Function(BigInt amountMsat)? feeCap, required TResult orElse(), }) { - if (feeRateMultiplier != null) { - return feeRateMultiplier(field0); + if (feeCap != null) { + return feeCap(amountMsat); } return orElse(); } @@ -8658,51 +10100,45 @@ class _$MaxDustHTLCExposure_FeeRateMultiplierImpl @override @optionalTypeArgs TResult map({ - required TResult Function(MaxDustHTLCExposure_FixedLimitMsat value) - fixedLimitMsat, - required TResult Function(MaxDustHTLCExposure_FeeRateMultiplier value) - feeRateMultiplier, + required TResult Function(MaxTotalRoutingFeeLimit_NoFeeCap value) noFeeCap, + required TResult Function(MaxTotalRoutingFeeLimit_FeeCap value) feeCap, }) { - return feeRateMultiplier(this); + return feeCap(this); } @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(MaxDustHTLCExposure_FixedLimitMsat value)? fixedLimitMsat, - TResult? Function(MaxDustHTLCExposure_FeeRateMultiplier value)? - feeRateMultiplier, + TResult? Function(MaxTotalRoutingFeeLimit_NoFeeCap value)? noFeeCap, + TResult? Function(MaxTotalRoutingFeeLimit_FeeCap value)? feeCap, }) { - return feeRateMultiplier?.call(this); + return feeCap?.call(this); } @override @optionalTypeArgs TResult maybeMap({ - TResult Function(MaxDustHTLCExposure_FixedLimitMsat value)? fixedLimitMsat, - TResult Function(MaxDustHTLCExposure_FeeRateMultiplier value)? - feeRateMultiplier, + TResult Function(MaxTotalRoutingFeeLimit_NoFeeCap value)? noFeeCap, + TResult Function(MaxTotalRoutingFeeLimit_FeeCap value)? feeCap, required TResult orElse(), }) { - if (feeRateMultiplier != null) { - return feeRateMultiplier(this); + if (feeCap != null) { + return feeCap(this); } return orElse(); } } -abstract class MaxDustHTLCExposure_FeeRateMultiplier - extends MaxDustHTLCExposure { - const factory MaxDustHTLCExposure_FeeRateMultiplier(final BigInt field0) = - _$MaxDustHTLCExposure_FeeRateMultiplierImpl; - const MaxDustHTLCExposure_FeeRateMultiplier._() : super._(); +abstract class MaxTotalRoutingFeeLimit_FeeCap extends MaxTotalRoutingFeeLimit { + const factory MaxTotalRoutingFeeLimit_FeeCap( + {required final BigInt amountMsat}) = + _$MaxTotalRoutingFeeLimit_FeeCapImpl; + const MaxTotalRoutingFeeLimit_FeeCap._() : super._(); - @override - BigInt get field0; - @override + BigInt get amountMsat; @JsonKey(ignore: true) - _$$MaxDustHTLCExposure_FeeRateMultiplierImplCopyWith< - _$MaxDustHTLCExposure_FeeRateMultiplierImpl> + _$$MaxTotalRoutingFeeLimit_FeeCapImplCopyWith< + _$MaxTotalRoutingFeeLimit_FeeCapImpl> get copyWith => throw _privateConstructorUsedError; } @@ -8719,11 +10155,16 @@ mixin _$PaymentKind { bolt11Jit, required TResult Function(PaymentHash hash, PaymentPreimage? preimage) spontaneous, - required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId) - bolt12Offer, required TResult Function( - PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret) + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity) + bolt12Offer, + required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, + PaymentSecret? secret, String? payerNote, BigInt? quantity) bolt12Refund, }) => throw _privateConstructorUsedError; @@ -8737,11 +10178,16 @@ mixin _$PaymentKind { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult? Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult? Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, }) => throw _privateConstructorUsedError; @@ -8755,11 +10201,16 @@ mixin _$PaymentKind { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, required TResult orElse(), }) => @@ -8863,11 +10314,16 @@ class _$PaymentKind_OnchainImpl extends PaymentKind_Onchain { bolt11Jit, required TResult Function(PaymentHash hash, PaymentPreimage? preimage) spontaneous, - required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId) - bolt12Offer, required TResult Function( - PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret) + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity) + bolt12Offer, + required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, + PaymentSecret? secret, String? payerNote, BigInt? quantity) bolt12Refund, }) { return onchain(); @@ -8884,11 +10340,16 @@ class _$PaymentKind_OnchainImpl extends PaymentKind_Onchain { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult? Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult? Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, }) { return onchain?.call(); @@ -8905,11 +10366,16 @@ class _$PaymentKind_OnchainImpl extends PaymentKind_Onchain { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, required TResult orElse(), }) { @@ -9067,11 +10533,16 @@ class _$PaymentKind_Bolt11Impl extends PaymentKind_Bolt11 { bolt11Jit, required TResult Function(PaymentHash hash, PaymentPreimage? preimage) spontaneous, - required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId) - bolt12Offer, required TResult Function( - PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret) + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity) + bolt12Offer, + required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, + PaymentSecret? secret, String? payerNote, BigInt? quantity) bolt12Refund, }) { return bolt11(hash, preimage, secret); @@ -9088,11 +10559,16 @@ class _$PaymentKind_Bolt11Impl extends PaymentKind_Bolt11 { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult? Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult? Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, }) { return bolt11?.call(hash, preimage, secret); @@ -9109,11 +10585,16 @@ class _$PaymentKind_Bolt11Impl extends PaymentKind_Bolt11 { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, required TResult orElse(), }) { @@ -9309,11 +10790,16 @@ class _$PaymentKind_Bolt11JitImpl extends PaymentKind_Bolt11Jit { bolt11Jit, required TResult Function(PaymentHash hash, PaymentPreimage? preimage) spontaneous, - required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId) - bolt12Offer, required TResult Function( - PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret) + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity) + bolt12Offer, + required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, + PaymentSecret? secret, String? payerNote, BigInt? quantity) bolt12Refund, }) { return bolt11Jit(hash, preimage, secret, lspFeeLimits); @@ -9330,11 +10816,16 @@ class _$PaymentKind_Bolt11JitImpl extends PaymentKind_Bolt11Jit { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult? Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult? Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, }) { return bolt11Jit?.call(hash, preimage, secret, lspFeeLimits); @@ -9351,11 +10842,16 @@ class _$PaymentKind_Bolt11JitImpl extends PaymentKind_Bolt11Jit { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, required TResult orElse(), }) { @@ -9526,11 +11022,16 @@ class _$PaymentKind_SpontaneousImpl extends PaymentKind_Spontaneous { bolt11Jit, required TResult Function(PaymentHash hash, PaymentPreimage? preimage) spontaneous, - required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId) - bolt12Offer, required TResult Function( - PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret) + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity) + bolt12Offer, + required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, + PaymentSecret? secret, String? payerNote, BigInt? quantity) bolt12Refund, }) { return spontaneous(hash, preimage); @@ -9547,11 +11048,16 @@ class _$PaymentKind_SpontaneousImpl extends PaymentKind_Spontaneous { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult? Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult? Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, }) { return spontaneous?.call(hash, preimage); @@ -9568,11 +11074,16 @@ class _$PaymentKind_SpontaneousImpl extends PaymentKind_Spontaneous { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, required TResult orElse(), }) { @@ -9653,7 +11164,9 @@ abstract class _$$PaymentKind_Bolt12OfferImplCopyWith<$Res> { {PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret, - OfferId offerId}); + OfferId offerId, + String? payerNote, + BigInt? quantity}); } /// @nodoc @@ -9672,6 +11185,8 @@ class __$$PaymentKind_Bolt12OfferImplCopyWithImpl<$Res> Object? preimage = freezed, Object? secret = freezed, Object? offerId = null, + Object? payerNote = freezed, + Object? quantity = freezed, }) { return _then(_$PaymentKind_Bolt12OfferImpl( hash: freezed == hash @@ -9690,6 +11205,14 @@ class __$$PaymentKind_Bolt12OfferImplCopyWithImpl<$Res> ? _value.offerId : offerId // ignore: cast_nullable_to_non_nullable as OfferId, + payerNote: freezed == payerNote + ? _value.payerNote + : payerNote // ignore: cast_nullable_to_non_nullable + as String?, + quantity: freezed == quantity + ? _value.quantity + : quantity // ignore: cast_nullable_to_non_nullable + as BigInt?, )); } } @@ -9698,7 +11221,12 @@ class __$$PaymentKind_Bolt12OfferImplCopyWithImpl<$Res> class _$PaymentKind_Bolt12OfferImpl extends PaymentKind_Bolt12Offer { const _$PaymentKind_Bolt12OfferImpl( - {this.hash, this.preimage, this.secret, required this.offerId}) + {this.hash, + this.preimage, + this.secret, + required this.offerId, + this.payerNote, + this.quantity}) : super._(); /// The payment hash, i.e., the hash of the `preimage`. @@ -9717,9 +11245,23 @@ class _$PaymentKind_Bolt12OfferImpl extends PaymentKind_Bolt12Offer { @override final OfferId offerId; + /// The payer note for the payment. + /// + /// Truncated to `PAYER_NOTE_LIMIT` characters. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + @override + final String? payerNote; + + /// The quantity of an item requested in the offer. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + @override + final BigInt? quantity; + @override String toString() { - return 'PaymentKind.bolt12Offer(hash: $hash, preimage: $preimage, secret: $secret, offerId: $offerId)'; + return 'PaymentKind.bolt12Offer(hash: $hash, preimage: $preimage, secret: $secret, offerId: $offerId, payerNote: $payerNote, quantity: $quantity)'; } @override @@ -9731,11 +11273,16 @@ class _$PaymentKind_Bolt12OfferImpl extends PaymentKind_Bolt12Offer { (identical(other.preimage, preimage) || other.preimage == preimage) && (identical(other.secret, secret) || other.secret == secret) && - (identical(other.offerId, offerId) || other.offerId == offerId)); + (identical(other.offerId, offerId) || other.offerId == offerId) && + (identical(other.payerNote, payerNote) || + other.payerNote == payerNote) && + (identical(other.quantity, quantity) || + other.quantity == quantity)); } @override - int get hashCode => Object.hash(runtimeType, hash, preimage, secret, offerId); + int get hashCode => Object.hash( + runtimeType, hash, preimage, secret, offerId, payerNote, quantity); @JsonKey(ignore: true) @override @@ -9756,14 +11303,19 @@ class _$PaymentKind_Bolt12OfferImpl extends PaymentKind_Bolt12Offer { bolt11Jit, required TResult Function(PaymentHash hash, PaymentPreimage? preimage) spontaneous, - required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId) - bolt12Offer, required TResult Function( - PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret) + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity) + bolt12Offer, + required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, + PaymentSecret? secret, String? payerNote, BigInt? quantity) bolt12Refund, }) { - return bolt12Offer(hash, preimage, secret, offerId); + return bolt12Offer(hash, preimage, secret, offerId, payerNote, quantity); } @override @@ -9777,14 +11329,20 @@ class _$PaymentKind_Bolt12OfferImpl extends PaymentKind_Bolt12Offer { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult? Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult? Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, }) { - return bolt12Offer?.call(hash, preimage, secret, offerId); + return bolt12Offer?.call( + hash, preimage, secret, offerId, payerNote, quantity); } @override @@ -9798,16 +11356,21 @@ class _$PaymentKind_Bolt12OfferImpl extends PaymentKind_Bolt12Offer { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, required TResult orElse(), }) { if (bolt12Offer != null) { - return bolt12Offer(hash, preimage, secret, offerId); + return bolt12Offer(hash, preimage, secret, offerId, payerNote, quantity); } return orElse(); } @@ -9861,7 +11424,9 @@ abstract class PaymentKind_Bolt12Offer extends PaymentKind { {final PaymentHash? hash, final PaymentPreimage? preimage, final PaymentSecret? secret, - required final OfferId offerId}) = _$PaymentKind_Bolt12OfferImpl; + required final OfferId offerId, + final String? payerNote, + final BigInt? quantity}) = _$PaymentKind_Bolt12OfferImpl; const PaymentKind_Bolt12Offer._() : super._(); /// The payment hash, i.e., the hash of the `preimage`. @@ -9875,6 +11440,18 @@ abstract class PaymentKind_Bolt12Offer extends PaymentKind { /// The ID of the offer this payment is for. OfferId get offerId; + + /// The payer note for the payment. + /// + /// Truncated to `PAYER_NOTE_LIMIT` characters. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + String? get payerNote; + + /// The quantity of an item requested in the offer. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + BigInt? get quantity; @JsonKey(ignore: true) _$$PaymentKind_Bolt12OfferImplCopyWith<_$PaymentKind_Bolt12OfferImpl> get copyWith => throw _privateConstructorUsedError; @@ -9888,7 +11465,11 @@ abstract class _$$PaymentKind_Bolt12RefundImplCopyWith<$Res> { __$$PaymentKind_Bolt12RefundImplCopyWithImpl<$Res>; @useResult $Res call( - {PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret}); + {PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + String? payerNote, + BigInt? quantity}); } /// @nodoc @@ -9906,6 +11487,8 @@ class __$$PaymentKind_Bolt12RefundImplCopyWithImpl<$Res> Object? hash = freezed, Object? preimage = freezed, Object? secret = freezed, + Object? payerNote = freezed, + Object? quantity = freezed, }) { return _then(_$PaymentKind_Bolt12RefundImpl( hash: freezed == hash @@ -9920,6 +11503,14 @@ class __$$PaymentKind_Bolt12RefundImplCopyWithImpl<$Res> ? _value.secret : secret // ignore: cast_nullable_to_non_nullable as PaymentSecret?, + payerNote: freezed == payerNote + ? _value.payerNote + : payerNote // ignore: cast_nullable_to_non_nullable + as String?, + quantity: freezed == quantity + ? _value.quantity + : quantity // ignore: cast_nullable_to_non_nullable + as BigInt?, )); } } @@ -9927,7 +11518,8 @@ class __$$PaymentKind_Bolt12RefundImplCopyWithImpl<$Res> /// @nodoc class _$PaymentKind_Bolt12RefundImpl extends PaymentKind_Bolt12Refund { - const _$PaymentKind_Bolt12RefundImpl({this.hash, this.preimage, this.secret}) + const _$PaymentKind_Bolt12RefundImpl( + {this.hash, this.preimage, this.secret, this.payerNote, this.quantity}) : super._(); /// The payment hash, i.e., the hash of the `preimage`. @@ -9942,9 +11534,20 @@ class _$PaymentKind_Bolt12RefundImpl extends PaymentKind_Bolt12Refund { @override final PaymentSecret? secret; + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + @override + final String? payerNote; + + /// The quantity of an item that the refund is for. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + @override + final BigInt? quantity; + @override String toString() { - return 'PaymentKind.bolt12Refund(hash: $hash, preimage: $preimage, secret: $secret)'; + return 'PaymentKind.bolt12Refund(hash: $hash, preimage: $preimage, secret: $secret, payerNote: $payerNote, quantity: $quantity)'; } @override @@ -9955,11 +11558,16 @@ class _$PaymentKind_Bolt12RefundImpl extends PaymentKind_Bolt12Refund { (identical(other.hash, hash) || other.hash == hash) && (identical(other.preimage, preimage) || other.preimage == preimage) && - (identical(other.secret, secret) || other.secret == secret)); + (identical(other.secret, secret) || other.secret == secret) && + (identical(other.payerNote, payerNote) || + other.payerNote == payerNote) && + (identical(other.quantity, quantity) || + other.quantity == quantity)); } @override - int get hashCode => Object.hash(runtimeType, hash, preimage, secret); + int get hashCode => + Object.hash(runtimeType, hash, preimage, secret, payerNote, quantity); @JsonKey(ignore: true) @override @@ -9980,14 +11588,19 @@ class _$PaymentKind_Bolt12RefundImpl extends PaymentKind_Bolt12Refund { bolt11Jit, required TResult Function(PaymentHash hash, PaymentPreimage? preimage) spontaneous, - required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId) - bolt12Offer, required TResult Function( - PaymentHash? hash, PaymentPreimage? preimage, PaymentSecret? secret) + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity) + bolt12Offer, + required TResult Function(PaymentHash? hash, PaymentPreimage? preimage, + PaymentSecret? secret, String? payerNote, BigInt? quantity) bolt12Refund, }) { - return bolt12Refund(hash, preimage, secret); + return bolt12Refund(hash, preimage, secret, payerNote, quantity); } @override @@ -10001,14 +11614,19 @@ class _$PaymentKind_Bolt12RefundImpl extends PaymentKind_Bolt12Refund { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult? Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult? Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult? Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, }) { - return bolt12Refund?.call(hash, preimage, secret); + return bolt12Refund?.call(hash, preimage, secret, payerNote, quantity); } @override @@ -10022,16 +11640,21 @@ class _$PaymentKind_Bolt12RefundImpl extends PaymentKind_Bolt12Refund { PaymentSecret? secret, LSPFeeLimits lspFeeLimits)? bolt11Jit, TResult Function(PaymentHash hash, PaymentPreimage? preimage)? spontaneous, - TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret, OfferId offerId)? + TResult Function( + PaymentHash? hash, + PaymentPreimage? preimage, + PaymentSecret? secret, + OfferId offerId, + String? payerNote, + BigInt? quantity)? bolt12Offer, TResult Function(PaymentHash? hash, PaymentPreimage? preimage, - PaymentSecret? secret)? + PaymentSecret? secret, String? payerNote, BigInt? quantity)? bolt12Refund, required TResult orElse(), }) { if (bolt12Refund != null) { - return bolt12Refund(hash, preimage, secret); + return bolt12Refund(hash, preimage, secret, payerNote, quantity); } return orElse(); } @@ -10084,7 +11707,9 @@ abstract class PaymentKind_Bolt12Refund extends PaymentKind { const factory PaymentKind_Bolt12Refund( {final PaymentHash? hash, final PaymentPreimage? preimage, - final PaymentSecret? secret}) = _$PaymentKind_Bolt12RefundImpl; + final PaymentSecret? secret, + final String? payerNote, + final BigInt? quantity}) = _$PaymentKind_Bolt12RefundImpl; const PaymentKind_Bolt12Refund._() : super._(); /// The payment hash, i.e., the hash of the `preimage`. @@ -10095,6 +11720,15 @@ abstract class PaymentKind_Bolt12Refund extends PaymentKind { /// The secret used by the payment. PaymentSecret? get secret; + + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + String? get payerNote; + + /// The quantity of an item that the refund is for. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + BigInt? get quantity; @JsonKey(ignore: true) _$$PaymentKind_Bolt12RefundImplCopyWith<_$PaymentKind_Bolt12RefundImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/lib/src/generated/api/unified_qr.dart b/lib/src/generated/api/unified_qr.dart new file mode 100644 index 0000000..742223c --- /dev/null +++ b/lib/src/generated/api/unified_qr.dart @@ -0,0 +1,92 @@ +// This file is automatically generated, so please do not edit it. +// @generated by `flutter_rust_bridge`@ 2.4.0. + +// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import + +import '../frb_generated.dart'; +import '../lib.dart'; +import '../utils/error.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; +import 'package:freezed_annotation/freezed_annotation.dart' hide protected; +import 'types.dart'; +part 'unified_qr.freezed.dart'; + +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `from`, `from` + +class FfiUnifiedQrPayment { + final UnifiedQrPayment opaque; + + const FfiUnifiedQrPayment({ + required this.opaque, + }); + + /// can always pay using the provided on-chain address, while newer wallets will + /// typically opt to use the provided BOLT11 invoice or BOLT12 offer. + /// + /// # Parameters + /// - `amount_sats`: The amount to be received, specified in satoshis. + /// - `description`: A description or note associated with the payment. + /// This message is visible to the payer and can provide context or details about the payment. + /// - `expiry_sec`: The expiration time for the payment, specified in seconds. + /// + /// Returns a payable URI that can be used to request and receive a payment of the amount + /// given. In case of an error, the function throws `:WalletOperationFailed`for on-chain + /// address issues, `InvoiceCreationFailed` for BOLT11 invoice issues, or + /// `OfferCreationFailed` for BOLT12 offer issues. + /// + /// The generated URI can then be given to a QR code library. + /// + /// [BOLT 11]: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md + /// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md + Future receive( + {required BigInt amountSats, + required String message, + required int expirySec}) => + core.instance.api.crateApiUnifiedQrFfiUnifiedQrPaymentReceive( + that: this, + amountSats: amountSats, + message: message, + expirySec: expirySec); + + ///Sends a payment given a BIP 21 URI. + ///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. + Future send({required String uriStr}) => core.instance.api + .crateApiUnifiedQrFfiUnifiedQrPaymentSend(that: this, uriStr: uriStr); + + @override + int get hashCode => opaque.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is FfiUnifiedQrPayment && + runtimeType == other.runtimeType && + opaque == other.opaque; +} + +@freezed +sealed class QrPaymentResult with _$QrPaymentResult { + const QrPaymentResult._(); + + /// An on-chain payment. + const factory QrPaymentResult.onchain({ + /// The transaction ID (txid) of the on-chain payment. + required Txid txid, + }) = QrPaymentResult_Onchain; + + /// A [BOLT 11] payment. + /// + /// [BOLT 11]: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md + const factory QrPaymentResult.bolt11({ + /// The payment ID for the BOLT11 invoice. + required PaymentId paymentId, + }) = QrPaymentResult_Bolt11; + + /// A [BOLT 12] offer payment, i.e., a payment for an [Offer]. + /// + /// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md + const factory QrPaymentResult.bolt12({ + /// The payment ID for the BOLT12 offer. + required PaymentId paymentId, + }) = QrPaymentResult_Bolt12; +} diff --git a/lib/src/generated/api/unified_qr.freezed.dart b/lib/src/generated/api/unified_qr.freezed.dart new file mode 100644 index 0000000..dd73553 --- /dev/null +++ b/lib/src/generated/api/unified_qr.freezed.dart @@ -0,0 +1,521 @@ +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'unified_qr.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +T _$identity(T value) => value; + +final _privateConstructorUsedError = UnsupportedError( + 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); + +/// @nodoc +mixin _$QrPaymentResult { + @optionalTypeArgs + TResult when({ + required TResult Function(Txid txid) onchain, + required TResult Function(PaymentId paymentId) bolt11, + required TResult Function(PaymentId paymentId) bolt12, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(Txid txid)? onchain, + TResult? Function(PaymentId paymentId)? bolt11, + TResult? Function(PaymentId paymentId)? bolt12, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(Txid txid)? onchain, + TResult Function(PaymentId paymentId)? bolt11, + TResult Function(PaymentId paymentId)? bolt12, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult map({ + required TResult Function(QrPaymentResult_Onchain value) onchain, + required TResult Function(QrPaymentResult_Bolt11 value) bolt11, + required TResult Function(QrPaymentResult_Bolt12 value) bolt12, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(QrPaymentResult_Onchain value)? onchain, + TResult? Function(QrPaymentResult_Bolt11 value)? bolt11, + TResult? Function(QrPaymentResult_Bolt12 value)? bolt12, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeMap({ + TResult Function(QrPaymentResult_Onchain value)? onchain, + TResult Function(QrPaymentResult_Bolt11 value)? bolt11, + TResult Function(QrPaymentResult_Bolt12 value)? bolt12, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class $QrPaymentResultCopyWith<$Res> { + factory $QrPaymentResultCopyWith( + QrPaymentResult value, $Res Function(QrPaymentResult) then) = + _$QrPaymentResultCopyWithImpl<$Res, QrPaymentResult>; +} + +/// @nodoc +class _$QrPaymentResultCopyWithImpl<$Res, $Val extends QrPaymentResult> + implements $QrPaymentResultCopyWith<$Res> { + _$QrPaymentResultCopyWithImpl(this._value, this._then); + + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; +} + +/// @nodoc +abstract class _$$QrPaymentResult_OnchainImplCopyWith<$Res> { + factory _$$QrPaymentResult_OnchainImplCopyWith( + _$QrPaymentResult_OnchainImpl value, + $Res Function(_$QrPaymentResult_OnchainImpl) then) = + __$$QrPaymentResult_OnchainImplCopyWithImpl<$Res>; + @useResult + $Res call({Txid txid}); +} + +/// @nodoc +class __$$QrPaymentResult_OnchainImplCopyWithImpl<$Res> + extends _$QrPaymentResultCopyWithImpl<$Res, _$QrPaymentResult_OnchainImpl> + implements _$$QrPaymentResult_OnchainImplCopyWith<$Res> { + __$$QrPaymentResult_OnchainImplCopyWithImpl( + _$QrPaymentResult_OnchainImpl _value, + $Res Function(_$QrPaymentResult_OnchainImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? txid = null, + }) { + return _then(_$QrPaymentResult_OnchainImpl( + txid: null == txid + ? _value.txid + : txid // ignore: cast_nullable_to_non_nullable + as Txid, + )); + } +} + +/// @nodoc + +class _$QrPaymentResult_OnchainImpl extends QrPaymentResult_Onchain { + const _$QrPaymentResult_OnchainImpl({required this.txid}) : super._(); + + /// The transaction ID (txid) of the on-chain payment. + @override + final Txid txid; + + @override + String toString() { + return 'QrPaymentResult.onchain(txid: $txid)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$QrPaymentResult_OnchainImpl && + (identical(other.txid, txid) || other.txid == txid)); + } + + @override + int get hashCode => Object.hash(runtimeType, txid); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$QrPaymentResult_OnchainImplCopyWith<_$QrPaymentResult_OnchainImpl> + get copyWith => __$$QrPaymentResult_OnchainImplCopyWithImpl< + _$QrPaymentResult_OnchainImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(Txid txid) onchain, + required TResult Function(PaymentId paymentId) bolt11, + required TResult Function(PaymentId paymentId) bolt12, + }) { + return onchain(txid); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(Txid txid)? onchain, + TResult? Function(PaymentId paymentId)? bolt11, + TResult? Function(PaymentId paymentId)? bolt12, + }) { + return onchain?.call(txid); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(Txid txid)? onchain, + TResult Function(PaymentId paymentId)? bolt11, + TResult Function(PaymentId paymentId)? bolt12, + required TResult orElse(), + }) { + if (onchain != null) { + return onchain(txid); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(QrPaymentResult_Onchain value) onchain, + required TResult Function(QrPaymentResult_Bolt11 value) bolt11, + required TResult Function(QrPaymentResult_Bolt12 value) bolt12, + }) { + return onchain(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(QrPaymentResult_Onchain value)? onchain, + TResult? Function(QrPaymentResult_Bolt11 value)? bolt11, + TResult? Function(QrPaymentResult_Bolt12 value)? bolt12, + }) { + return onchain?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(QrPaymentResult_Onchain value)? onchain, + TResult Function(QrPaymentResult_Bolt11 value)? bolt11, + TResult Function(QrPaymentResult_Bolt12 value)? bolt12, + required TResult orElse(), + }) { + if (onchain != null) { + return onchain(this); + } + return orElse(); + } +} + +abstract class QrPaymentResult_Onchain extends QrPaymentResult { + const factory QrPaymentResult_Onchain({required final Txid txid}) = + _$QrPaymentResult_OnchainImpl; + const QrPaymentResult_Onchain._() : super._(); + + /// The transaction ID (txid) of the on-chain payment. + Txid get txid; + @JsonKey(ignore: true) + _$$QrPaymentResult_OnchainImplCopyWith<_$QrPaymentResult_OnchainImpl> + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$QrPaymentResult_Bolt11ImplCopyWith<$Res> { + factory _$$QrPaymentResult_Bolt11ImplCopyWith( + _$QrPaymentResult_Bolt11Impl value, + $Res Function(_$QrPaymentResult_Bolt11Impl) then) = + __$$QrPaymentResult_Bolt11ImplCopyWithImpl<$Res>; + @useResult + $Res call({PaymentId paymentId}); +} + +/// @nodoc +class __$$QrPaymentResult_Bolt11ImplCopyWithImpl<$Res> + extends _$QrPaymentResultCopyWithImpl<$Res, _$QrPaymentResult_Bolt11Impl> + implements _$$QrPaymentResult_Bolt11ImplCopyWith<$Res> { + __$$QrPaymentResult_Bolt11ImplCopyWithImpl( + _$QrPaymentResult_Bolt11Impl _value, + $Res Function(_$QrPaymentResult_Bolt11Impl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? paymentId = null, + }) { + return _then(_$QrPaymentResult_Bolt11Impl( + paymentId: null == paymentId + ? _value.paymentId + : paymentId // ignore: cast_nullable_to_non_nullable + as PaymentId, + )); + } +} + +/// @nodoc + +class _$QrPaymentResult_Bolt11Impl extends QrPaymentResult_Bolt11 { + const _$QrPaymentResult_Bolt11Impl({required this.paymentId}) : super._(); + + /// The payment ID for the BOLT11 invoice. + @override + final PaymentId paymentId; + + @override + String toString() { + return 'QrPaymentResult.bolt11(paymentId: $paymentId)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$QrPaymentResult_Bolt11Impl && + (identical(other.paymentId, paymentId) || + other.paymentId == paymentId)); + } + + @override + int get hashCode => Object.hash(runtimeType, paymentId); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$QrPaymentResult_Bolt11ImplCopyWith<_$QrPaymentResult_Bolt11Impl> + get copyWith => __$$QrPaymentResult_Bolt11ImplCopyWithImpl< + _$QrPaymentResult_Bolt11Impl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(Txid txid) onchain, + required TResult Function(PaymentId paymentId) bolt11, + required TResult Function(PaymentId paymentId) bolt12, + }) { + return bolt11(paymentId); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(Txid txid)? onchain, + TResult? Function(PaymentId paymentId)? bolt11, + TResult? Function(PaymentId paymentId)? bolt12, + }) { + return bolt11?.call(paymentId); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(Txid txid)? onchain, + TResult Function(PaymentId paymentId)? bolt11, + TResult Function(PaymentId paymentId)? bolt12, + required TResult orElse(), + }) { + if (bolt11 != null) { + return bolt11(paymentId); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(QrPaymentResult_Onchain value) onchain, + required TResult Function(QrPaymentResult_Bolt11 value) bolt11, + required TResult Function(QrPaymentResult_Bolt12 value) bolt12, + }) { + return bolt11(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(QrPaymentResult_Onchain value)? onchain, + TResult? Function(QrPaymentResult_Bolt11 value)? bolt11, + TResult? Function(QrPaymentResult_Bolt12 value)? bolt12, + }) { + return bolt11?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(QrPaymentResult_Onchain value)? onchain, + TResult Function(QrPaymentResult_Bolt11 value)? bolt11, + TResult Function(QrPaymentResult_Bolt12 value)? bolt12, + required TResult orElse(), + }) { + if (bolt11 != null) { + return bolt11(this); + } + return orElse(); + } +} + +abstract class QrPaymentResult_Bolt11 extends QrPaymentResult { + const factory QrPaymentResult_Bolt11({required final PaymentId paymentId}) = + _$QrPaymentResult_Bolt11Impl; + const QrPaymentResult_Bolt11._() : super._(); + + /// The payment ID for the BOLT11 invoice. + PaymentId get paymentId; + @JsonKey(ignore: true) + _$$QrPaymentResult_Bolt11ImplCopyWith<_$QrPaymentResult_Bolt11Impl> + get copyWith => throw _privateConstructorUsedError; +} + +/// @nodoc +abstract class _$$QrPaymentResult_Bolt12ImplCopyWith<$Res> { + factory _$$QrPaymentResult_Bolt12ImplCopyWith( + _$QrPaymentResult_Bolt12Impl value, + $Res Function(_$QrPaymentResult_Bolt12Impl) then) = + __$$QrPaymentResult_Bolt12ImplCopyWithImpl<$Res>; + @useResult + $Res call({PaymentId paymentId}); +} + +/// @nodoc +class __$$QrPaymentResult_Bolt12ImplCopyWithImpl<$Res> + extends _$QrPaymentResultCopyWithImpl<$Res, _$QrPaymentResult_Bolt12Impl> + implements _$$QrPaymentResult_Bolt12ImplCopyWith<$Res> { + __$$QrPaymentResult_Bolt12ImplCopyWithImpl( + _$QrPaymentResult_Bolt12Impl _value, + $Res Function(_$QrPaymentResult_Bolt12Impl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? paymentId = null, + }) { + return _then(_$QrPaymentResult_Bolt12Impl( + paymentId: null == paymentId + ? _value.paymentId + : paymentId // ignore: cast_nullable_to_non_nullable + as PaymentId, + )); + } +} + +/// @nodoc + +class _$QrPaymentResult_Bolt12Impl extends QrPaymentResult_Bolt12 { + const _$QrPaymentResult_Bolt12Impl({required this.paymentId}) : super._(); + + /// The payment ID for the BOLT12 offer. + @override + final PaymentId paymentId; + + @override + String toString() { + return 'QrPaymentResult.bolt12(paymentId: $paymentId)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$QrPaymentResult_Bolt12Impl && + (identical(other.paymentId, paymentId) || + other.paymentId == paymentId)); + } + + @override + int get hashCode => Object.hash(runtimeType, paymentId); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$QrPaymentResult_Bolt12ImplCopyWith<_$QrPaymentResult_Bolt12Impl> + get copyWith => __$$QrPaymentResult_Bolt12ImplCopyWithImpl< + _$QrPaymentResult_Bolt12Impl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(Txid txid) onchain, + required TResult Function(PaymentId paymentId) bolt11, + required TResult Function(PaymentId paymentId) bolt12, + }) { + return bolt12(paymentId); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(Txid txid)? onchain, + TResult? Function(PaymentId paymentId)? bolt11, + TResult? Function(PaymentId paymentId)? bolt12, + }) { + return bolt12?.call(paymentId); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(Txid txid)? onchain, + TResult Function(PaymentId paymentId)? bolt11, + TResult Function(PaymentId paymentId)? bolt12, + required TResult orElse(), + }) { + if (bolt12 != null) { + return bolt12(paymentId); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(QrPaymentResult_Onchain value) onchain, + required TResult Function(QrPaymentResult_Bolt11 value) bolt11, + required TResult Function(QrPaymentResult_Bolt12 value) bolt12, + }) { + return bolt12(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(QrPaymentResult_Onchain value)? onchain, + TResult? Function(QrPaymentResult_Bolt11 value)? bolt11, + TResult? Function(QrPaymentResult_Bolt12 value)? bolt12, + }) { + return bolt12?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(QrPaymentResult_Onchain value)? onchain, + TResult Function(QrPaymentResult_Bolt11 value)? bolt11, + TResult Function(QrPaymentResult_Bolt12 value)? bolt12, + required TResult orElse(), + }) { + if (bolt12 != null) { + return bolt12(this); + } + return orElse(); + } +} + +abstract class QrPaymentResult_Bolt12 extends QrPaymentResult { + const factory QrPaymentResult_Bolt12({required final PaymentId paymentId}) = + _$QrPaymentResult_Bolt12Impl; + const QrPaymentResult_Bolt12._() : super._(); + + /// The payment ID for the BOLT12 offer. + PaymentId get paymentId; + @JsonKey(ignore: true) + _$$QrPaymentResult_Bolt12ImplCopyWith<_$QrPaymentResult_Bolt12Impl> + get copyWith => throw _privateConstructorUsedError; +} diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index d20793e..42d3d01 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.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 @@ -11,6 +11,7 @@ import 'api/node.dart'; import 'api/on_chain.dart'; import 'api/spontaneous.dart'; import 'api/types.dart'; +import 'api/unified_qr.dart'; import 'dart:async'; import 'dart:convert'; import 'frb_generated.dart'; @@ -40,6 +41,16 @@ class core extends BaseEntrypoint { ); } + /// Initialize flutter_rust_bridge in mock mode. + /// No libraries for FFI are loaded. + static void initMock({ + required coreApi api, + }) { + instance.initMockImpl( + api: api, + ); + } + /// Dispose flutter_rust_bridge /// /// The call to this function is optional, since flutter_rust_bridge (and everything else) @@ -61,10 +72,10 @@ class core extends BaseEntrypoint { kDefaultExternalLibraryLoaderConfig; @override - String get codegenVersion => '2.0.0'; + String get codegenVersion => '2.4.0'; @override - int get rustContentHash => 1761952349; + int get rustContentHash => 968713453; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -75,274 +86,307 @@ class core extends BaseEntrypoint { } abstract class coreApi extends BaseApi { - Future crateApiBolt11LdkBolt11PaymentClaimForHash( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentClaimForHash( + {required FfiBolt11Payment that, required PaymentHash paymentHash, required BigInt claimableAmountMsat, required PaymentPreimage preimage}); - Future crateApiBolt11LdkBolt11PaymentFailForHash( - {required LdkBolt11Payment that, required PaymentHash paymentHash}); + Future crateApiBolt11FfiBolt11PaymentFailForHash( + {required FfiBolt11Payment that, required PaymentHash paymentHash}); - Future crateApiBolt11LdkBolt11PaymentReceive( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentReceive( + {required FfiBolt11Payment that, required BigInt amountMsat, required String description, required int expirySecs}); - Future crateApiBolt11LdkBolt11PaymentReceiveForHash( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentReceiveForHash( + {required FfiBolt11Payment that, required PaymentHash paymentHash, required BigInt amountMsat, required String description, required int expirySecs}); - Future crateApiBolt11LdkBolt11PaymentReceiveVariableAmount( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentReceiveVariableAmount( + {required FfiBolt11Payment that, required String description, required int expirySecs}); Future - crateApiBolt11LdkBolt11PaymentReceiveVariableAmountForHash( - {required LdkBolt11Payment that, + crateApiBolt11FfiBolt11PaymentReceiveVariableAmountForHash( + {required FfiBolt11Payment that, required String description, required int expirySecs, required PaymentHash paymentHash}); Future - crateApiBolt11LdkBolt11PaymentReceiveVariableAmountViaJitChannel( - {required LdkBolt11Payment that, + crateApiBolt11FfiBolt11PaymentReceiveVariableAmountViaJitChannel( + {required FfiBolt11Payment that, required String description, required int expirySecs, BigInt? maxProportionalLspFeeLimitPpmMsat}); - Future crateApiBolt11LdkBolt11PaymentReceiveViaJitChannel( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentReceiveViaJitChannel( + {required FfiBolt11Payment that, required BigInt amountMsat, required String description, required int expirySecs, BigInt? maxTotalLspFeeLimitMsat}); - Future crateApiBolt11LdkBolt11PaymentSend( - {required LdkBolt11Payment that, required Bolt11Invoice invoice}); + Future crateApiBolt11FfiBolt11PaymentSend( + {required FfiBolt11Payment that, + required Bolt11Invoice invoice, + SendingParameters? sendingParameters}); - Future crateApiBolt11LdkBolt11PaymentSendProbes( - {required LdkBolt11Payment that, required Bolt11Invoice invoice}); + Future crateApiBolt11FfiBolt11PaymentSendProbes( + {required FfiBolt11Payment that, required Bolt11Invoice invoice}); - Future crateApiBolt11LdkBolt11PaymentSendProbesUsingAmount( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentSendProbesUsingAmount( + {required FfiBolt11Payment that, required Bolt11Invoice invoice, required BigInt amountMsat}); - Future crateApiBolt11LdkBolt11PaymentSendUsingAmount( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentSendUsingAmount( + {required FfiBolt11Payment that, required Bolt11Invoice invoice, - required BigInt amountMsat}); + required BigInt amountMsat, + SendingParameters? sendingParameters}); - Future crateApiBolt12LdkBolt12PaymentInitiateRefund( - {required LdkBolt12Payment that, + Future crateApiBolt12FfiBolt12PaymentInitiateRefund( + {required FfiBolt12Payment that, required BigInt amountMsat, - required int expirySecs}); + required int expirySecs, + BigInt? quantity, + String? payerNote}); - Future crateApiBolt12LdkBolt12PaymentReceive( - {required LdkBolt12Payment that, + Future crateApiBolt12FfiBolt12PaymentReceive( + {required FfiBolt12Payment that, required BigInt amountMsat, - required String description}); + required String description, + int? expirySecs, + BigInt? quantity}); - Future crateApiBolt12LdkBolt12PaymentReceiveVariableAmount( - {required LdkBolt12Payment that, required String description}); + Future crateApiBolt12FfiBolt12PaymentReceiveVariableAmount( + {required FfiBolt12Payment that, + required String description, + int? expirySecs}); - Future crateApiBolt12LdkBolt12PaymentRequestRefundPayment( - {required LdkBolt12Payment that, required Refund refund}); + Future crateApiBolt12FfiBolt12PaymentRequestRefundPayment( + {required FfiBolt12Payment that, required Refund refund}); - Future crateApiBolt12LdkBolt12PaymentSend( - {required LdkBolt12Payment that, + Future crateApiBolt12FfiBolt12PaymentSend( + {required FfiBolt12Payment that, required Offer offer, + BigInt? quantity, String? payerNote}); - Future crateApiBolt12LdkBolt12PaymentSendUsingAmount( - {required LdkBolt12Payment that, + Future crateApiBolt12FfiBolt12PaymentSendUsingAmount( + {required FfiBolt12Payment that, required Offer offer, - String? payerNote, - required BigInt amountMsat}); + required BigInt amountMsat, + BigInt? quantity, + String? payerNote}); + + Builder crateApiBuilderFfiBuilderAutoAccessorGetOpaque( + {required FfiBuilder that}); - Builder crateApiBuilderNodeBuilderAutoAccessorGetBuilder( - {required NodeBuilder that}); + void crateApiBuilderFfiBuilderAutoAccessorSetOpaque( + {required FfiBuilder that, required Builder opaque}); - void crateApiBuilderNodeBuilderAutoAccessorSetBuilder( - {required NodeBuilder that, required Builder builder}); + Future crateApiBuilderFfiBuilderBuild({required FfiBuilder that}); - Future crateApiBuilderNodeBuilderBuild({required NodeBuilder that}); + Future crateApiBuilderFfiBuilderBuildWithFsStore( + {required FfiBuilder that}); - Future crateApiBuilderNodeBuilderBuildWithFsStore( - {required NodeBuilder that}); + Future crateApiBuilderFfiBuilderBuildWithVssStore( + {required FfiBuilder that, + required String vssUrl, + required String storeId, + required String lnurlAuthServerUrl, + required Map fixedHeaders}); - Future crateApiBuilderNodeBuilderCreateBuilder( + Future crateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeaders( + {required FfiBuilder that, + required String vssUrl, + required String storeId, + required Map fixedHeaders}); + + Future crateApiBuilderFfiBuilderCreateBuilder( {required Config config, ChainDataSourceConfig? chainDataSourceConfig, EntropySourceConfig? entropySourceConfig, GossipSourceConfig? gossipSourceConfig, LiquiditySourceConfig? liquiditySourceConfig}); - Future crateApiBuilderLdkMnemonicGenerate(); + Future crateApiBuilderFfiMnemonicGenerate(); - Future crateApiGraphLdkNetworkGraphChannel( - {required LdkNetworkGraph that, required BigInt shortChannelId}); + Future crateApiGraphFfiNetworkGraphChannel( + {required FfiNetworkGraph that, required BigInt shortChannelId}); - Future crateApiGraphLdkNetworkGraphListChannels( - {required LdkNetworkGraph that}); + Future crateApiGraphFfiNetworkGraphListChannels( + {required FfiNetworkGraph that}); - Future> crateApiGraphLdkNetworkGraphListNodes( - {required LdkNetworkGraph that}); + Future> crateApiGraphFfiNetworkGraphListNodes( + {required FfiNetworkGraph that}); - Future crateApiGraphLdkNetworkGraphNode( - {required LdkNetworkGraph that, required NodeId nodeId}); + Future crateApiGraphFfiNetworkGraphNode( + {required FfiNetworkGraph that, required NodeId nodeId}); - Future crateApiNodeLdkNodeBolt11Payment( - {required LdkNode ptr}); + Future crateApiNodeFfiNodeBolt11Payment( + {required FfiNode ptr}); - Future crateApiNodeLdkNodeBolt12Payment( - {required LdkNode ptr}); + Future crateApiNodeFfiNodeBolt12Payment( + {required FfiNode ptr}); - Future crateApiNodeLdkNodeCloseChannel( - {required LdkNode that, + Future crateApiNodeFfiNodeCloseChannel( + {required FfiNode that, required UserChannelId userChannelId, required PublicKey counterpartyNodeId}); - Future crateApiNodeLdkNodeConfig({required LdkNode that}); + Future crateApiNodeFfiNodeConfig({required FfiNode that}); - Future crateApiNodeLdkNodeConnect( - {required LdkNode that, + Future crateApiNodeFfiNodeConnect( + {required FfiNode that, required PublicKey nodeId, required SocketAddress address, required bool persist}); - Future crateApiNodeLdkNodeConnectOpenChannel( - {required LdkNode that, - required SocketAddress socketAddress, - required PublicKey nodeId, - required BigInt channelAmountSats, - BigInt? pushToCounterpartyMsat, - required bool announceChannel, - ChannelConfig? channelConfig}); - - Future crateApiNodeLdkNodeDisconnect( - {required LdkNode that, required PublicKey counterpartyNodeId}); + Future crateApiNodeFfiNodeDisconnect( + {required FfiNode that, required PublicKey counterpartyNodeId}); - Future crateApiNodeLdkNodeEventHandled({required LdkNode that}); + Future crateApiNodeFfiNodeEventHandled({required FfiNode that}); - Future crateApiNodeLdkNodeForceCloseChannel( - {required LdkNode that, + Future crateApiNodeFfiNodeForceCloseChannel( + {required FfiNode that, required UserChannelId userChannelId, required PublicKey counterpartyNodeId}); - Future crateApiNodeLdkNodeListBalances( - {required LdkNode that}); + Future crateApiNodeFfiNodeListBalances( + {required FfiNode that}); - Future> crateApiNodeLdkNodeListChannels( - {required LdkNode that}); + Future> crateApiNodeFfiNodeListChannels( + {required FfiNode that}); - Future> crateApiNodeLdkNodeListPayments( - {required LdkNode that}); + Future> crateApiNodeFfiNodeListPayments( + {required FfiNode that}); - Future> crateApiNodeLdkNodeListPaymentsWithFilter( - {required LdkNode that, required PaymentDirection paymentDirection}); + Future> crateApiNodeFfiNodeListPaymentsWithFilter( + {required FfiNode that, required PaymentDirection paymentDirection}); - Future> crateApiNodeLdkNodeListPeers( - {required LdkNode that}); + Future> crateApiNodeFfiNodeListPeers( + {required FfiNode that}); - Future?> crateApiNodeLdkNodeListeningAddresses( - {required LdkNode that}); + Future?> crateApiNodeFfiNodeListeningAddresses( + {required FfiNode that}); - Future crateApiNodeLdkNodeNetworkGraph( - {required LdkNode ptr}); + Future crateApiNodeFfiNodeNetworkGraph( + {required FfiNode ptr}); - Future crateApiNodeLdkNodeNextEvent({required LdkNode that}); + Future crateApiNodeFfiNodeNextEvent({required FfiNode that}); - Future crateApiNodeLdkNodeNextEventAsync({required LdkNode that}); + Future crateApiNodeFfiNodeNextEventAsync({required FfiNode that}); - Future crateApiNodeLdkNodeNodeId({required LdkNode that}); + Future crateApiNodeFfiNodeNodeId({required FfiNode that}); - Future crateApiNodeLdkNodeOnChainPayment( - {required LdkNode ptr}); + Future crateApiNodeFfiNodeOnChainPayment( + {required FfiNode ptr}); - Future crateApiNodeLdkNodePayment( - {required LdkNode that, required PaymentId paymentId}); + Future crateApiNodeFfiNodeOpenAnnouncedChannel( + {required FfiNode that, + required SocketAddress socketAddress, + required PublicKey nodeId, + required BigInt channelAmountSats, + BigInt? pushToCounterpartyMsat, + ChannelConfig? channelConfig}); + + Future crateApiNodeFfiNodeOpenChannel( + {required FfiNode that, + required SocketAddress socketAddress, + required PublicKey nodeId, + required BigInt channelAmountSats, + BigInt? pushToCounterpartyMsat, + ChannelConfig? channelConfig}); - Future crateApiNodeLdkNodeRemovePayment( - {required LdkNode that, required PaymentId paymentId}); + Future crateApiNodeFfiNodePayment( + {required FfiNode that, required PaymentId paymentId}); - Future crateApiNodeLdkNodeSignMessage( - {required LdkNode that, required List msg}); + Future crateApiNodeFfiNodeRemovePayment( + {required FfiNode that, required PaymentId paymentId}); - Future crateApiNodeLdkNodeSpontaneousPayment( - {required LdkNode ptr}); + Future crateApiNodeFfiNodeSignMessage( + {required FfiNode that, required List msg}); - Future crateApiNodeLdkNodeStart({required LdkNode that}); + Future crateApiNodeFfiNodeSpontaneousPayment( + {required FfiNode ptr}); - Future crateApiNodeLdkNodeStatus({required LdkNode that}); + Future crateApiNodeFfiNodeStart({required FfiNode that}); - Future crateApiNodeLdkNodeStop({required LdkNode that}); + Future crateApiNodeFfiNodeStatus({required FfiNode that}); - Future crateApiNodeLdkNodeSyncWallets({required LdkNode that}); + Future crateApiNodeFfiNodeStop({required FfiNode that}); - Future crateApiNodeLdkNodeUpdateChannelConfig( - {required LdkNode that, + Future crateApiNodeFfiNodeSyncWallets({required FfiNode that}); + + Future crateApiNodeFfiNodeUnifiedQrPayment( + {required FfiNode ptr}); + + Future crateApiNodeFfiNodeUpdateChannelConfig( + {required FfiNode that, required UserChannelId userChannelId, required PublicKey counterpartyNodeId, required ChannelConfig channelConfig}); - Future crateApiNodeLdkNodeVerifySignature( - {required LdkNode that, + Future crateApiNodeFfiNodeVerifySignature( + {required FfiNode that, required List msg, required String sig, required PublicKey publicKey}); - Future crateApiNodeLdkNodeWaitNextEvent({required LdkNode that}); + Future crateApiNodeFfiNodeWaitNextEvent({required FfiNode that}); - Future
crateApiOnChainLdkOnChainPaymentNewAddress( - {required LdkOnChainPayment that}); + Future
crateApiOnChainFfiOnChainPaymentNewAddress( + {required FfiOnChainPayment that}); - Future crateApiOnChainLdkOnChainPaymentSendAllToAddress( - {required LdkOnChainPayment that, required Address address}); + Future crateApiOnChainFfiOnChainPaymentSendAllToAddress( + {required FfiOnChainPayment that, required Address address}); - Future crateApiOnChainLdkOnChainPaymentSendToAddress( - {required LdkOnChainPayment that, + Future crateApiOnChainFfiOnChainPaymentSendToAddress( + {required FfiOnChainPayment that, required Address address, required BigInt amountSats}); - Future crateApiSpontaneousLdkSpontaneousPaymentSend( - {required LdkSpontaneousPayment that, + Future crateApiSpontaneousFfiSpontaneousPaymentSend( + {required FfiSpontaneousPayment that, required BigInt amountMsat, - required PublicKey nodeId}); + required PublicKey nodeId, + SendingParameters? sendingParameters}); - Future crateApiSpontaneousLdkSpontaneousPaymentSendProbes( - {required LdkSpontaneousPayment that, + Future crateApiSpontaneousFfiSpontaneousPaymentSendProbes( + {required FfiSpontaneousPayment that, required BigInt amountMsat, required PublicKey nodeId}); - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcBolt12Payment; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcBolt12Payment; + Future crateApiTypesAnchorChannelsConfigDefault(); - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcBolt12PaymentPtr; + Future crateApiTypesConfigDefault(); - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Node; + Future crateApiUnifiedQrFfiUnifiedQrPaymentReceive( + {required FfiUnifiedQrPayment that, + required BigInt amountSats, + required String message, + required int expirySec}); - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Node; - - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_NodePtr; + Future crateApiUnifiedQrFfiUnifiedQrPaymentSend( + {required FfiUnifiedQrPayment that, required String uriStr}); RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_NodeBuilder; + get rust_arc_increment_strong_count_FfiBuilder; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_NodeBuilder; + get rust_arc_decrement_strong_count_FfiBuilder; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_NodeBuilderPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_FfiBuilderPtr; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Builder; @@ -350,6 +394,12 @@ abstract class coreApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_BuilderPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Node; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Node; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_NodePtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_NetworkGraph; @@ -367,6 +417,15 @@ abstract class coreApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_Bolt11PaymentPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_Bolt12Payment; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_Bolt12Payment; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_Bolt12PaymentPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_OnchainPayment; @@ -384,6 +443,15 @@ abstract class coreApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SpontaneousPaymentPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_UnifiedQrPayment; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_UnifiedQrPayment; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_UnifiedQrPaymentPtr; } class coreApiImpl extends coreApiImplPlatform implements coreApi { @@ -395,125 +463,125 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { }); @override - Future crateApiBolt11LdkBolt11PaymentClaimForHash( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentClaimForHash( + {required FfiBolt11Payment that, required PaymentHash paymentHash, required BigInt claimableAmountMsat, required PaymentPreimage preimage}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_box_autoadd_payment_hash(paymentHash); var arg2 = cst_encode_u_64(claimableAmountMsat); var arg3 = cst_encode_box_autoadd_payment_preimage(preimage); return wire - .wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hash( + .wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt11LdkBolt11PaymentClaimForHashConstMeta, + constMeta: kCrateApiBolt11FfiBolt11PaymentClaimForHashConstMeta, argValues: [that, paymentHash, claimableAmountMsat, preimage], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt11LdkBolt11PaymentClaimForHashConstMeta => + TaskConstMeta get kCrateApiBolt11FfiBolt11PaymentClaimForHashConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_claim_for_hash", + debugName: "ffi_bolt_11_payment_claim_for_hash", argNames: ["that", "paymentHash", "claimableAmountMsat", "preimage"], ); @override - Future crateApiBolt11LdkBolt11PaymentFailForHash( - {required LdkBolt11Payment that, required PaymentHash paymentHash}) { + Future crateApiBolt11FfiBolt11PaymentFailForHash( + {required FfiBolt11Payment that, required PaymentHash paymentHash}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_box_autoadd_payment_hash(paymentHash); - return wire.wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hash( + return wire.wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash( port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt11LdkBolt11PaymentFailForHashConstMeta, + constMeta: kCrateApiBolt11FfiBolt11PaymentFailForHashConstMeta, argValues: [that, paymentHash], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt11LdkBolt11PaymentFailForHashConstMeta => + TaskConstMeta get kCrateApiBolt11FfiBolt11PaymentFailForHashConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_fail_for_hash", + debugName: "ffi_bolt_11_payment_fail_for_hash", argNames: ["that", "paymentHash"], ); @override - Future crateApiBolt11LdkBolt11PaymentReceive( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentReceive( + {required FfiBolt11Payment that, required BigInt amountMsat, required String description, required int expirySecs}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_u_64(amountMsat); var arg2 = cst_encode_String(description); var arg3 = cst_encode_u_32(expirySecs); - return wire.wire__crate__api__bolt11__ldk_bolt_11_payment_receive( + return wire.wire__crate__api__bolt11__ffi_bolt_11_payment_receive( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bolt_11_invoice, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt11LdkBolt11PaymentReceiveConstMeta, + constMeta: kCrateApiBolt11FfiBolt11PaymentReceiveConstMeta, argValues: [that, amountMsat, description, expirySecs], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt11LdkBolt11PaymentReceiveConstMeta => + TaskConstMeta get kCrateApiBolt11FfiBolt11PaymentReceiveConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_receive", + debugName: "ffi_bolt_11_payment_receive", argNames: ["that", "amountMsat", "description", "expirySecs"], ); @override - Future crateApiBolt11LdkBolt11PaymentReceiveForHash( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentReceiveForHash( + {required FfiBolt11Payment that, required PaymentHash paymentHash, required BigInt amountMsat, required String description, required int expirySecs}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_box_autoadd_payment_hash(paymentHash); var arg2 = cst_encode_u_64(amountMsat); var arg3 = cst_encode_String(description); var arg4 = cst_encode_u_32(expirySecs); return wire - .wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash( + .wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash( port_, arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: dco_decode_bolt_11_invoice, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt11LdkBolt11PaymentReceiveForHashConstMeta, + constMeta: kCrateApiBolt11FfiBolt11PaymentReceiveForHashConstMeta, argValues: [that, paymentHash, amountMsat, description, expirySecs], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt11LdkBolt11PaymentReceiveForHashConstMeta => + TaskConstMeta get kCrateApiBolt11FfiBolt11PaymentReceiveForHashConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_receive_for_hash", + debugName: "ffi_bolt_11_payment_receive_for_hash", argNames: [ "that", "paymentHash", @@ -524,95 +592,95 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future crateApiBolt11LdkBolt11PaymentReceiveVariableAmount( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentReceiveVariableAmount( + {required FfiBolt11Payment that, required String description, required int expirySecs}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_String(description); var arg2 = cst_encode_u_32(expirySecs); return wire - .wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount( + .wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount( port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_bolt_11_invoice, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt11LdkBolt11PaymentReceiveVariableAmountConstMeta, + constMeta: kCrateApiBolt11FfiBolt11PaymentReceiveVariableAmountConstMeta, argValues: [that, description, expirySecs], apiImpl: this, )); } TaskConstMeta - get kCrateApiBolt11LdkBolt11PaymentReceiveVariableAmountConstMeta => + get kCrateApiBolt11FfiBolt11PaymentReceiveVariableAmountConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_receive_variable_amount", + debugName: "ffi_bolt_11_payment_receive_variable_amount", argNames: ["that", "description", "expirySecs"], ); @override Future - crateApiBolt11LdkBolt11PaymentReceiveVariableAmountForHash( - {required LdkBolt11Payment that, + crateApiBolt11FfiBolt11PaymentReceiveVariableAmountForHash( + {required FfiBolt11Payment that, required String description, required int expirySecs, required PaymentHash paymentHash}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_String(description); var arg2 = cst_encode_u_32(expirySecs); var arg3 = cst_encode_box_autoadd_payment_hash(paymentHash); return wire - .wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_hash( + .wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bolt_11_invoice, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), constMeta: - kCrateApiBolt11LdkBolt11PaymentReceiveVariableAmountForHashConstMeta, + kCrateApiBolt11FfiBolt11PaymentReceiveVariableAmountForHashConstMeta, argValues: [that, description, expirySecs, paymentHash], apiImpl: this, )); } TaskConstMeta - get kCrateApiBolt11LdkBolt11PaymentReceiveVariableAmountForHashConstMeta => + get kCrateApiBolt11FfiBolt11PaymentReceiveVariableAmountForHashConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_receive_variable_amount_for_hash", + debugName: "ffi_bolt_11_payment_receive_variable_amount_for_hash", argNames: ["that", "description", "expirySecs", "paymentHash"], ); @override Future - crateApiBolt11LdkBolt11PaymentReceiveVariableAmountViaJitChannel( - {required LdkBolt11Payment that, + crateApiBolt11FfiBolt11PaymentReceiveVariableAmountViaJitChannel( + {required FfiBolt11Payment that, required String description, required int expirySecs, BigInt? maxProportionalLspFeeLimitPpmMsat}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_String(description); var arg2 = cst_encode_u_32(expirySecs); var arg3 = cst_encode_opt_box_autoadd_u_64(maxProportionalLspFeeLimitPpmMsat); return wire - .wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_via_jit_channel( + .wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bolt_11_invoice, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), constMeta: - kCrateApiBolt11LdkBolt11PaymentReceiveVariableAmountViaJitChannelConstMeta, + kCrateApiBolt11FfiBolt11PaymentReceiveVariableAmountViaJitChannelConstMeta, argValues: [ that, description, @@ -624,10 +692,10 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } TaskConstMeta - get kCrateApiBolt11LdkBolt11PaymentReceiveVariableAmountViaJitChannelConstMeta => + get kCrateApiBolt11FfiBolt11PaymentReceiveVariableAmountViaJitChannelConstMeta => const TaskConstMeta( debugName: - "ldk_bolt_11_payment_receive_variable_amount_via_jit_channel", + "ffi_bolt_11_payment_receive_variable_amount_via_jit_channel", argNames: [ "that", "description", @@ -637,28 +705,28 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future crateApiBolt11LdkBolt11PaymentReceiveViaJitChannel( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentReceiveViaJitChannel( + {required FfiBolt11Payment that, required BigInt amountMsat, required String description, required int expirySecs, BigInt? maxTotalLspFeeLimitMsat}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_u_64(amountMsat); var arg2 = cst_encode_String(description); var arg3 = cst_encode_u_32(expirySecs); var arg4 = cst_encode_opt_box_autoadd_u_64(maxTotalLspFeeLimitMsat); return wire - .wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel( + .wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel( port_, arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: dco_decode_bolt_11_invoice, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt11LdkBolt11PaymentReceiveViaJitChannelConstMeta, + constMeta: kCrateApiBolt11FfiBolt11PaymentReceiveViaJitChannelConstMeta, argValues: [ that, amountMsat, @@ -671,9 +739,9 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } TaskConstMeta - get kCrateApiBolt11LdkBolt11PaymentReceiveViaJitChannelConstMeta => + get kCrateApiBolt11FfiBolt11PaymentReceiveViaJitChannelConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_receive_via_jit_channel", + debugName: "ffi_bolt_11_payment_receive_via_jit_channel", argNames: [ "that", "amountMsat", @@ -684,407 +752,510 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future crateApiBolt11LdkBolt11PaymentSend( - {required LdkBolt11Payment that, required Bolt11Invoice invoice}) { + Future crateApiBolt11FfiBolt11PaymentSend( + {required FfiBolt11Payment that, + required Bolt11Invoice invoice, + SendingParameters? sendingParameters}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_box_autoadd_bolt_11_invoice(invoice); - return wire.wire__crate__api__bolt11__ldk_bolt_11_payment_send( - port_, arg0, arg1); + var arg2 = + cst_encode_opt_box_autoadd_sending_parameters(sendingParameters); + return wire.wire__crate__api__bolt11__ffi_bolt_11_payment_send( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_payment_id, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt11LdkBolt11PaymentSendConstMeta, - argValues: [that, invoice], + constMeta: kCrateApiBolt11FfiBolt11PaymentSendConstMeta, + argValues: [that, invoice, sendingParameters], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt11LdkBolt11PaymentSendConstMeta => + TaskConstMeta get kCrateApiBolt11FfiBolt11PaymentSendConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_send", - argNames: ["that", "invoice"], + debugName: "ffi_bolt_11_payment_send", + argNames: ["that", "invoice", "sendingParameters"], ); @override - Future crateApiBolt11LdkBolt11PaymentSendProbes( - {required LdkBolt11Payment that, required Bolt11Invoice invoice}) { + Future crateApiBolt11FfiBolt11PaymentSendProbes( + {required FfiBolt11Payment that, required Bolt11Invoice invoice}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_box_autoadd_bolt_11_invoice(invoice); - return wire.wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes( + return wire.wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes( port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt11LdkBolt11PaymentSendProbesConstMeta, + constMeta: kCrateApiBolt11FfiBolt11PaymentSendProbesConstMeta, argValues: [that, invoice], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt11LdkBolt11PaymentSendProbesConstMeta => + TaskConstMeta get kCrateApiBolt11FfiBolt11PaymentSendProbesConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_send_probes", + debugName: "ffi_bolt_11_payment_send_probes", argNames: ["that", "invoice"], ); @override - Future crateApiBolt11LdkBolt11PaymentSendProbesUsingAmount( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentSendProbesUsingAmount( + {required FfiBolt11Payment that, required Bolt11Invoice invoice, required BigInt amountMsat}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_box_autoadd_bolt_11_invoice(invoice); var arg2 = cst_encode_u_64(amountMsat); return wire - .wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amount( + .wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount( port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt11LdkBolt11PaymentSendProbesUsingAmountConstMeta, + constMeta: kCrateApiBolt11FfiBolt11PaymentSendProbesUsingAmountConstMeta, argValues: [that, invoice, amountMsat], apiImpl: this, )); } TaskConstMeta - get kCrateApiBolt11LdkBolt11PaymentSendProbesUsingAmountConstMeta => + get kCrateApiBolt11FfiBolt11PaymentSendProbesUsingAmountConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_send_probes_using_amount", + debugName: "ffi_bolt_11_payment_send_probes_using_amount", argNames: ["that", "invoice", "amountMsat"], ); @override - Future crateApiBolt11LdkBolt11PaymentSendUsingAmount( - {required LdkBolt11Payment that, + Future crateApiBolt11FfiBolt11PaymentSendUsingAmount( + {required FfiBolt11Payment that, required Bolt11Invoice invoice, - required BigInt amountMsat}) { + required BigInt amountMsat, + SendingParameters? sendingParameters}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_11_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_11_payment(that); var arg1 = cst_encode_box_autoadd_bolt_11_invoice(invoice); var arg2 = cst_encode_u_64(amountMsat); + var arg3 = + cst_encode_opt_box_autoadd_sending_parameters(sendingParameters); return wire - .wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amount( - port_, arg0, arg1, arg2); + .wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_payment_id, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt11LdkBolt11PaymentSendUsingAmountConstMeta, - argValues: [that, invoice, amountMsat], + constMeta: kCrateApiBolt11FfiBolt11PaymentSendUsingAmountConstMeta, + argValues: [that, invoice, amountMsat, sendingParameters], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt11LdkBolt11PaymentSendUsingAmountConstMeta => + TaskConstMeta get kCrateApiBolt11FfiBolt11PaymentSendUsingAmountConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_11_payment_send_using_amount", - argNames: ["that", "invoice", "amountMsat"], + debugName: "ffi_bolt_11_payment_send_using_amount", + argNames: ["that", "invoice", "amountMsat", "sendingParameters"], ); @override - Future crateApiBolt12LdkBolt12PaymentInitiateRefund( - {required LdkBolt12Payment that, + Future crateApiBolt12FfiBolt12PaymentInitiateRefund( + {required FfiBolt12Payment that, required BigInt amountMsat, - required int expirySecs}) { + required int expirySecs, + BigInt? quantity, + String? payerNote}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_12_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); var arg1 = cst_encode_u_64(amountMsat); var arg2 = cst_encode_u_32(expirySecs); + var arg3 = cst_encode_opt_box_autoadd_u_64(quantity); + var arg4 = cst_encode_opt_String(payerNote); return wire - .wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refund( - port_, arg0, arg1, arg2); + .wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund( + port_, arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: dco_decode_refund, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt12LdkBolt12PaymentInitiateRefundConstMeta, - argValues: [that, amountMsat, expirySecs], + constMeta: kCrateApiBolt12FfiBolt12PaymentInitiateRefundConstMeta, + argValues: [that, amountMsat, expirySecs, quantity, payerNote], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt12LdkBolt12PaymentInitiateRefundConstMeta => + TaskConstMeta get kCrateApiBolt12FfiBolt12PaymentInitiateRefundConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_12_payment_initiate_refund", - argNames: ["that", "amountMsat", "expirySecs"], + debugName: "ffi_bolt_12_payment_initiate_refund", + argNames: ["that", "amountMsat", "expirySecs", "quantity", "payerNote"], ); @override - Future crateApiBolt12LdkBolt12PaymentReceive( - {required LdkBolt12Payment that, + Future crateApiBolt12FfiBolt12PaymentReceive( + {required FfiBolt12Payment that, required BigInt amountMsat, - required String description}) { + required String description, + int? expirySecs, + BigInt? quantity}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_12_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); var arg1 = cst_encode_u_64(amountMsat); var arg2 = cst_encode_String(description); - return wire.wire__crate__api__bolt12__ldk_bolt_12_payment_receive( - port_, arg0, arg1, arg2); + var arg3 = cst_encode_opt_box_autoadd_u_32(expirySecs); + var arg4 = cst_encode_opt_box_autoadd_u_64(quantity); + return wire.wire__crate__api__bolt12__ffi_bolt_12_payment_receive( + port_, arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: dco_decode_offer, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt12LdkBolt12PaymentReceiveConstMeta, - argValues: [that, amountMsat, description], + constMeta: kCrateApiBolt12FfiBolt12PaymentReceiveConstMeta, + argValues: [that, amountMsat, description, expirySecs, quantity], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt12LdkBolt12PaymentReceiveConstMeta => + TaskConstMeta get kCrateApiBolt12FfiBolt12PaymentReceiveConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_12_payment_receive", - argNames: ["that", "amountMsat", "description"], + debugName: "ffi_bolt_12_payment_receive", + argNames: [ + "that", + "amountMsat", + "description", + "expirySecs", + "quantity" + ], ); @override - Future crateApiBolt12LdkBolt12PaymentReceiveVariableAmount( - {required LdkBolt12Payment that, required String description}) { + Future crateApiBolt12FfiBolt12PaymentReceiveVariableAmount( + {required FfiBolt12Payment that, + required String description, + int? expirySecs}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_12_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); var arg1 = cst_encode_String(description); + var arg2 = cst_encode_opt_box_autoadd_u_32(expirySecs); return wire - .wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amount( - port_, arg0, arg1); + .wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_offer, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt12LdkBolt12PaymentReceiveVariableAmountConstMeta, - argValues: [that, description], + constMeta: kCrateApiBolt12FfiBolt12PaymentReceiveVariableAmountConstMeta, + argValues: [that, description, expirySecs], apiImpl: this, )); } TaskConstMeta - get kCrateApiBolt12LdkBolt12PaymentReceiveVariableAmountConstMeta => + get kCrateApiBolt12FfiBolt12PaymentReceiveVariableAmountConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_12_payment_receive_variable_amount", - argNames: ["that", "description"], + debugName: "ffi_bolt_12_payment_receive_variable_amount", + argNames: ["that", "description", "expirySecs"], ); @override - Future crateApiBolt12LdkBolt12PaymentRequestRefundPayment( - {required LdkBolt12Payment that, required Refund refund}) { + Future crateApiBolt12FfiBolt12PaymentRequestRefundPayment( + {required FfiBolt12Payment that, required Refund refund}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_12_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); var arg1 = cst_encode_box_autoadd_refund(refund); return wire - .wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_payment( + .wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment( port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_bolt_12_invoice, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt12LdkBolt12PaymentRequestRefundPaymentConstMeta, + constMeta: kCrateApiBolt12FfiBolt12PaymentRequestRefundPaymentConstMeta, argValues: [that, refund], apiImpl: this, )); } TaskConstMeta - get kCrateApiBolt12LdkBolt12PaymentRequestRefundPaymentConstMeta => + get kCrateApiBolt12FfiBolt12PaymentRequestRefundPaymentConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_12_payment_request_refund_payment", + debugName: "ffi_bolt_12_payment_request_refund_payment", argNames: ["that", "refund"], ); @override - Future crateApiBolt12LdkBolt12PaymentSend( - {required LdkBolt12Payment that, + Future crateApiBolt12FfiBolt12PaymentSend( + {required FfiBolt12Payment that, required Offer offer, + BigInt? quantity, String? payerNote}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_12_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); var arg1 = cst_encode_box_autoadd_offer(offer); - var arg2 = cst_encode_opt_String(payerNote); - return wire.wire__crate__api__bolt12__ldk_bolt_12_payment_send( - port_, arg0, arg1, arg2); + var arg2 = cst_encode_opt_box_autoadd_u_64(quantity); + var arg3 = cst_encode_opt_String(payerNote); + return wire.wire__crate__api__bolt12__ffi_bolt_12_payment_send( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_payment_id, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt12LdkBolt12PaymentSendConstMeta, - argValues: [that, offer, payerNote], + constMeta: kCrateApiBolt12FfiBolt12PaymentSendConstMeta, + argValues: [that, offer, quantity, payerNote], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt12LdkBolt12PaymentSendConstMeta => + TaskConstMeta get kCrateApiBolt12FfiBolt12PaymentSendConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_12_payment_send", - argNames: ["that", "offer", "payerNote"], + debugName: "ffi_bolt_12_payment_send", + argNames: ["that", "offer", "quantity", "payerNote"], ); @override - Future crateApiBolt12LdkBolt12PaymentSendUsingAmount( - {required LdkBolt12Payment that, + Future crateApiBolt12FfiBolt12PaymentSendUsingAmount( + {required FfiBolt12Payment that, required Offer offer, - String? payerNote, - required BigInt amountMsat}) { + required BigInt amountMsat, + BigInt? quantity, + String? payerNote}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_bolt_12_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); var arg1 = cst_encode_box_autoadd_offer(offer); - var arg2 = cst_encode_opt_String(payerNote); - var arg3 = cst_encode_u_64(amountMsat); + var arg2 = cst_encode_u_64(amountMsat); + var arg3 = cst_encode_opt_box_autoadd_u_64(quantity); + var arg4 = cst_encode_opt_String(payerNote); return wire - .wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amount( - port_, arg0, arg1, arg2, arg3); + .wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount( + port_, arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: dco_decode_payment_id, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBolt12LdkBolt12PaymentSendUsingAmountConstMeta, - argValues: [that, offer, payerNote, amountMsat], + constMeta: kCrateApiBolt12FfiBolt12PaymentSendUsingAmountConstMeta, + argValues: [that, offer, amountMsat, quantity, payerNote], apiImpl: this, )); } - TaskConstMeta get kCrateApiBolt12LdkBolt12PaymentSendUsingAmountConstMeta => + TaskConstMeta get kCrateApiBolt12FfiBolt12PaymentSendUsingAmountConstMeta => const TaskConstMeta( - debugName: "ldk_bolt_12_payment_send_using_amount", - argNames: ["that", "offer", "payerNote", "amountMsat"], + debugName: "ffi_bolt_12_payment_send_using_amount", + argNames: ["that", "offer", "amountMsat", "quantity", "payerNote"], ); @override - Builder crateApiBuilderNodeBuilderAutoAccessorGetBuilder( - {required NodeBuilder that}) { + Builder crateApiBuilderFfiBuilderAutoAccessorGetOpaque( + {required FfiBuilder that}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( that); return wire - .wire__crate__api__builder__NodeBuilder_auto_accessor_get_builder( + .wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_RustOpaque_ldk_nodeBuilder, decodeErrorData: null, ), - constMeta: kCrateApiBuilderNodeBuilderAutoAccessorGetBuilderConstMeta, + constMeta: kCrateApiBuilderFfiBuilderAutoAccessorGetOpaqueConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta - get kCrateApiBuilderNodeBuilderAutoAccessorGetBuilderConstMeta => - const TaskConstMeta( - debugName: "NodeBuilder_auto_accessor_get_builder", - argNames: ["that"], - ); + TaskConstMeta get kCrateApiBuilderFfiBuilderAutoAccessorGetOpaqueConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_auto_accessor_get_opaque", + argNames: ["that"], + ); @override - void crateApiBuilderNodeBuilderAutoAccessorSetBuilder( - {required NodeBuilder that, required Builder builder}) { + void crateApiBuilderFfiBuilderAutoAccessorSetOpaque( + {required FfiBuilder that, required Builder opaque}) { return handler.executeSync(SyncTask( callFfi: () { var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( that); - var arg1 = cst_encode_RustOpaque_ldk_nodeBuilder(builder); + var arg1 = cst_encode_RustOpaque_ldk_nodeBuilder(opaque); return wire - .wire__crate__api__builder__NodeBuilder_auto_accessor_set_builder( + .wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: null, ), - constMeta: kCrateApiBuilderNodeBuilderAutoAccessorSetBuilderConstMeta, - argValues: [that, builder], + constMeta: kCrateApiBuilderFfiBuilderAutoAccessorSetOpaqueConstMeta, + argValues: [that, opaque], apiImpl: this, )); } - TaskConstMeta - get kCrateApiBuilderNodeBuilderAutoAccessorSetBuilderConstMeta => - const TaskConstMeta( - debugName: "NodeBuilder_auto_accessor_set_builder", - argNames: ["that", "builder"], - ); + TaskConstMeta get kCrateApiBuilderFfiBuilderAutoAccessorSetOpaqueConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_auto_accessor_set_opaque", + argNames: ["that", "opaque"], + ); @override - Future crateApiBuilderNodeBuilderBuild({required NodeBuilder that}) { + Future crateApiBuilderFfiBuilderBuild({required FfiBuilder that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( that); - return wire.wire__crate__api__builder__NodeBuilder_build(port_, arg0); + return wire.wire__crate__api__builder__FfiBuilder_build(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ldk_node, - decodeErrorData: dco_decode_ldk_builder_error, + decodeSuccessData: dco_decode_ffi_node, + decodeErrorData: dco_decode_ffi_builder_error, ), - constMeta: kCrateApiBuilderNodeBuilderBuildConstMeta, + constMeta: kCrateApiBuilderFfiBuilderBuildConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiBuilderNodeBuilderBuildConstMeta => + TaskConstMeta get kCrateApiBuilderFfiBuilderBuildConstMeta => const TaskConstMeta( - debugName: "NodeBuilder_build", + debugName: "FfiBuilder_build", argNames: ["that"], ); @override - Future crateApiBuilderNodeBuilderBuildWithFsStore( - {required NodeBuilder that}) { + Future crateApiBuilderFfiBuilderBuildWithFsStore( + {required FfiBuilder that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( that); - return wire.wire__crate__api__builder__NodeBuilder_build_with_fs_store( + return wire.wire__crate__api__builder__FfiBuilder_build_with_fs_store( port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ldk_node, - decodeErrorData: dco_decode_ldk_builder_error, + decodeSuccessData: dco_decode_ffi_node, + decodeErrorData: dco_decode_ffi_builder_error, ), - constMeta: kCrateApiBuilderNodeBuilderBuildWithFsStoreConstMeta, + constMeta: kCrateApiBuilderFfiBuilderBuildWithFsStoreConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiBuilderNodeBuilderBuildWithFsStoreConstMeta => + TaskConstMeta get kCrateApiBuilderFfiBuilderBuildWithFsStoreConstMeta => const TaskConstMeta( - debugName: "NodeBuilder_build_with_fs_store", + debugName: "FfiBuilder_build_with_fs_store", argNames: ["that"], ); @override - Future crateApiBuilderNodeBuilderCreateBuilder( + Future crateApiBuilderFfiBuilderBuildWithVssStore( + {required FfiBuilder that, + required String vssUrl, + required String storeId, + required String lnurlAuthServerUrl, + required Map fixedHeaders}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + that); + var arg1 = cst_encode_String(vssUrl); + var arg2 = cst_encode_String(storeId); + var arg3 = cst_encode_String(lnurlAuthServerUrl); + var arg4 = cst_encode_Map_String_String(fixedHeaders); + return wire.wire__crate__api__builder__FfiBuilder_build_with_vss_store( + port_, arg0, arg1, arg2, arg3, arg4); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_node, + decodeErrorData: dco_decode_ffi_builder_error, + ), + constMeta: kCrateApiBuilderFfiBuilderBuildWithVssStoreConstMeta, + argValues: [that, vssUrl, storeId, lnurlAuthServerUrl, fixedHeaders], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiBuilderFfiBuilderBuildWithVssStoreConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_build_with_vss_store", + argNames: [ + "that", + "vssUrl", + "storeId", + "lnurlAuthServerUrl", + "fixedHeaders" + ], + ); + + @override + Future crateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeaders( + {required FfiBuilder that, + required String vssUrl, + required String storeId, + required Map fixedHeaders}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + that); + var arg1 = cst_encode_String(vssUrl); + var arg2 = cst_encode_String(storeId); + var arg3 = cst_encode_Map_String_String(fixedHeaders); + return wire + .wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( + port_, arg0, arg1, arg2, arg3); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_node, + decodeErrorData: dco_decode_ffi_builder_error, + ), + constMeta: + kCrateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeadersConstMeta, + argValues: [that, vssUrl, storeId, fixedHeaders], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeadersConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_build_with_vss_store_and_fixed_headers", + argNames: ["that", "vssUrl", "storeId", "fixedHeaders"], + ); + + @override + Future crateApiBuilderFfiBuilderCreateBuilder( {required Config config, ChainDataSourceConfig? chainDataSourceConfig, EntropySourceConfig? entropySourceConfig, @@ -1101,15 +1272,15 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { cst_encode_opt_box_autoadd_gossip_source_config(gossipSourceConfig); var arg4 = cst_encode_opt_box_autoadd_liquidity_source_config( liquiditySourceConfig); - return wire.wire__crate__api__builder__NodeBuilder_create_builder( + return wire.wire__crate__api__builder__FfiBuilder_create_builder( port_, arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder, - decodeErrorData: dco_decode_ldk_builder_error, + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder, + decodeErrorData: dco_decode_ffi_builder_error, ), - constMeta: kCrateApiBuilderNodeBuilderCreateBuilderConstMeta, + constMeta: kCrateApiBuilderFfiBuilderCreateBuilderConstMeta, argValues: [ config, chainDataSourceConfig, @@ -1121,9 +1292,9 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { )); } - TaskConstMeta get kCrateApiBuilderNodeBuilderCreateBuilderConstMeta => + TaskConstMeta get kCrateApiBuilderFfiBuilderCreateBuilderConstMeta => const TaskConstMeta( - debugName: "NodeBuilder_create_builder", + debugName: "FfiBuilder_create_builder", argNames: [ "config", "chainDataSourceConfig", @@ -1134,874 +1305,944 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future crateApiBuilderLdkMnemonicGenerate() { + Future crateApiBuilderFfiMnemonicGenerate() { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire__crate__api__builder__ldk_mnemonic_generate(port_); + return wire.wire__crate__api__builder__ffi_mnemonic_generate(port_); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ldk_mnemonic, + decodeSuccessData: dco_decode_ffi_mnemonic, decodeErrorData: null, ), - constMeta: kCrateApiBuilderLdkMnemonicGenerateConstMeta, + constMeta: kCrateApiBuilderFfiMnemonicGenerateConstMeta, argValues: [], apiImpl: this, )); } - TaskConstMeta get kCrateApiBuilderLdkMnemonicGenerateConstMeta => + TaskConstMeta get kCrateApiBuilderFfiMnemonicGenerateConstMeta => const TaskConstMeta( - debugName: "ldk_mnemonic_generate", + debugName: "ffi_mnemonic_generate", argNames: [], ); @override - Future crateApiGraphLdkNetworkGraphChannel( - {required LdkNetworkGraph that, required BigInt shortChannelId}) { + Future crateApiGraphFfiNetworkGraphChannel( + {required FfiNetworkGraph that, required BigInt shortChannelId}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_network_graph(that); + var arg0 = cst_encode_box_autoadd_ffi_network_graph(that); var arg1 = cst_encode_u_64(shortChannelId); - return wire.wire__crate__api__graph__ldk_network_graph_channel( + return wire.wire__crate__api__graph__ffi_network_graph_channel( port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_channel_info, decodeErrorData: null, ), - constMeta: kCrateApiGraphLdkNetworkGraphChannelConstMeta, + constMeta: kCrateApiGraphFfiNetworkGraphChannelConstMeta, argValues: [that, shortChannelId], apiImpl: this, )); } - TaskConstMeta get kCrateApiGraphLdkNetworkGraphChannelConstMeta => + TaskConstMeta get kCrateApiGraphFfiNetworkGraphChannelConstMeta => const TaskConstMeta( - debugName: "ldk_network_graph_channel", + debugName: "ffi_network_graph_channel", argNames: ["that", "shortChannelId"], ); @override - Future crateApiGraphLdkNetworkGraphListChannels( - {required LdkNetworkGraph that}) { + Future crateApiGraphFfiNetworkGraphListChannels( + {required FfiNetworkGraph that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_network_graph(that); - return wire.wire__crate__api__graph__ldk_network_graph_list_channels( + var arg0 = cst_encode_box_autoadd_ffi_network_graph(that); + return wire.wire__crate__api__graph__ffi_network_graph_list_channels( port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_64_strict, decodeErrorData: null, ), - constMeta: kCrateApiGraphLdkNetworkGraphListChannelsConstMeta, + constMeta: kCrateApiGraphFfiNetworkGraphListChannelsConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiGraphLdkNetworkGraphListChannelsConstMeta => + TaskConstMeta get kCrateApiGraphFfiNetworkGraphListChannelsConstMeta => const TaskConstMeta( - debugName: "ldk_network_graph_list_channels", + debugName: "ffi_network_graph_list_channels", argNames: ["that"], ); @override - Future> crateApiGraphLdkNetworkGraphListNodes( - {required LdkNetworkGraph that}) { + Future> crateApiGraphFfiNetworkGraphListNodes( + {required FfiNetworkGraph that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_network_graph(that); - return wire.wire__crate__api__graph__ldk_network_graph_list_nodes( + var arg0 = cst_encode_box_autoadd_ffi_network_graph(that); + return wire.wire__crate__api__graph__ffi_network_graph_list_nodes( port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_node_id, decodeErrorData: null, ), - constMeta: kCrateApiGraphLdkNetworkGraphListNodesConstMeta, + constMeta: kCrateApiGraphFfiNetworkGraphListNodesConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiGraphLdkNetworkGraphListNodesConstMeta => + TaskConstMeta get kCrateApiGraphFfiNetworkGraphListNodesConstMeta => const TaskConstMeta( - debugName: "ldk_network_graph_list_nodes", + debugName: "ffi_network_graph_list_nodes", argNames: ["that"], ); @override - Future crateApiGraphLdkNetworkGraphNode( - {required LdkNetworkGraph that, required NodeId nodeId}) { + Future crateApiGraphFfiNetworkGraphNode( + {required FfiNetworkGraph that, required NodeId nodeId}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_network_graph(that); + var arg0 = cst_encode_box_autoadd_ffi_network_graph(that); var arg1 = cst_encode_box_autoadd_node_id(nodeId); - return wire.wire__crate__api__graph__ldk_network_graph_node( + return wire.wire__crate__api__graph__ffi_network_graph_node( port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_node_info, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiGraphLdkNetworkGraphNodeConstMeta, + constMeta: kCrateApiGraphFfiNetworkGraphNodeConstMeta, argValues: [that, nodeId], apiImpl: this, )); } - TaskConstMeta get kCrateApiGraphLdkNetworkGraphNodeConstMeta => + TaskConstMeta get kCrateApiGraphFfiNetworkGraphNodeConstMeta => const TaskConstMeta( - debugName: "ldk_network_graph_node", + debugName: "ffi_network_graph_node", argNames: ["that", "nodeId"], ); @override - Future crateApiNodeLdkNodeBolt11Payment( - {required LdkNode ptr}) { + Future crateApiNodeFfiNodeBolt11Payment( + {required FfiNode ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(ptr); - return wire.wire__crate__api__node__ldk_node_bolt11_payment( + var arg0 = cst_encode_box_autoadd_ffi_node(ptr); + return wire.wire__crate__api__node__ffi_node_bolt11_payment( port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ldk_bolt_11_payment, + decodeSuccessData: dco_decode_ffi_bolt_11_payment, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeBolt11PaymentConstMeta, + constMeta: kCrateApiNodeFfiNodeBolt11PaymentConstMeta, argValues: [ptr], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeBolt11PaymentConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeBolt11PaymentConstMeta => const TaskConstMeta( - debugName: "ldk_node_bolt11_payment", + debugName: "ffi_node_bolt11_payment", argNames: ["ptr"], ); @override - Future crateApiNodeLdkNodeBolt12Payment( - {required LdkNode ptr}) { + Future crateApiNodeFfiNodeBolt12Payment( + {required FfiNode ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(ptr); - return wire.wire__crate__api__node__ldk_node_bolt12_payment( + var arg0 = cst_encode_box_autoadd_ffi_node(ptr); + return wire.wire__crate__api__node__ffi_node_bolt12_payment( port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ldk_bolt_12_payment, + decodeSuccessData: dco_decode_ffi_bolt_12_payment, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeBolt12PaymentConstMeta, + constMeta: kCrateApiNodeFfiNodeBolt12PaymentConstMeta, argValues: [ptr], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeBolt12PaymentConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeBolt12PaymentConstMeta => const TaskConstMeta( - debugName: "ldk_node_bolt12_payment", + debugName: "ffi_node_bolt12_payment", argNames: ["ptr"], ); @override - Future crateApiNodeLdkNodeCloseChannel( - {required LdkNode that, + Future crateApiNodeFfiNodeCloseChannel( + {required FfiNode that, required UserChannelId userChannelId, required PublicKey counterpartyNodeId}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); + var arg0 = cst_encode_box_autoadd_ffi_node(that); var arg1 = cst_encode_box_autoadd_user_channel_id(userChannelId); var arg2 = cst_encode_box_autoadd_public_key(counterpartyNodeId); - return wire.wire__crate__api__node__ldk_node_close_channel( + return wire.wire__crate__api__node__ffi_node_close_channel( port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeCloseChannelConstMeta, + constMeta: kCrateApiNodeFfiNodeCloseChannelConstMeta, argValues: [that, userChannelId, counterpartyNodeId], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeCloseChannelConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeCloseChannelConstMeta => const TaskConstMeta( - debugName: "ldk_node_close_channel", + debugName: "ffi_node_close_channel", argNames: ["that", "userChannelId", "counterpartyNodeId"], ); @override - Future crateApiNodeLdkNodeConfig({required LdkNode that}) { + Future crateApiNodeFfiNodeConfig({required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_config(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_config(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_config, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeConfigConstMeta, + constMeta: kCrateApiNodeFfiNodeConfigConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeConfigConstMeta => const TaskConstMeta( - debugName: "ldk_node_config", + TaskConstMeta get kCrateApiNodeFfiNodeConfigConstMeta => const TaskConstMeta( + debugName: "ffi_node_config", argNames: ["that"], ); @override - Future crateApiNodeLdkNodeConnect( - {required LdkNode that, + Future crateApiNodeFfiNodeConnect( + {required FfiNode that, required PublicKey nodeId, required SocketAddress address, required bool persist}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); + var arg0 = cst_encode_box_autoadd_ffi_node(that); var arg1 = cst_encode_box_autoadd_public_key(nodeId); var arg2 = cst_encode_box_autoadd_socket_address(address); var arg3 = cst_encode_bool(persist); - return wire.wire__crate__api__node__ldk_node_connect( + return wire.wire__crate__api__node__ffi_node_connect( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeConnectConstMeta, + constMeta: kCrateApiNodeFfiNodeConnectConstMeta, argValues: [that, nodeId, address, persist], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeConnectConstMeta => const TaskConstMeta( - debugName: "ldk_node_connect", + TaskConstMeta get kCrateApiNodeFfiNodeConnectConstMeta => const TaskConstMeta( + debugName: "ffi_node_connect", argNames: ["that", "nodeId", "address", "persist"], ); @override - Future crateApiNodeLdkNodeConnectOpenChannel( - {required LdkNode that, - required SocketAddress socketAddress, - required PublicKey nodeId, - required BigInt channelAmountSats, - BigInt? pushToCounterpartyMsat, - required bool announceChannel, - ChannelConfig? channelConfig}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - var arg1 = cst_encode_box_autoadd_socket_address(socketAddress); - var arg2 = cst_encode_box_autoadd_public_key(nodeId); - var arg3 = cst_encode_u_64(channelAmountSats); - var arg4 = cst_encode_opt_box_autoadd_u_64(pushToCounterpartyMsat); - var arg5 = cst_encode_bool(announceChannel); - var arg6 = cst_encode_opt_box_autoadd_channel_config(channelConfig); - return wire.wire__crate__api__node__ldk_node_connect_open_channel( - port_, arg0, arg1, arg2, arg3, arg4, arg5, arg6); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_user_channel_id, - decodeErrorData: dco_decode_ldk_node_error, - ), - constMeta: kCrateApiNodeLdkNodeConnectOpenChannelConstMeta, - argValues: [ - that, - socketAddress, - nodeId, - channelAmountSats, - pushToCounterpartyMsat, - announceChannel, - channelConfig - ], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiNodeLdkNodeConnectOpenChannelConstMeta => - const TaskConstMeta( - debugName: "ldk_node_connect_open_channel", - argNames: [ - "that", - "socketAddress", - "nodeId", - "channelAmountSats", - "pushToCounterpartyMsat", - "announceChannel", - "channelConfig" - ], - ); - - @override - Future crateApiNodeLdkNodeDisconnect( - {required LdkNode that, required PublicKey counterpartyNodeId}) { + Future crateApiNodeFfiNodeDisconnect( + {required FfiNode that, required PublicKey counterpartyNodeId}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); + var arg0 = cst_encode_box_autoadd_ffi_node(that); var arg1 = cst_encode_box_autoadd_public_key(counterpartyNodeId); - return wire.wire__crate__api__node__ldk_node_disconnect( + return wire.wire__crate__api__node__ffi_node_disconnect( port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeDisconnectConstMeta, + constMeta: kCrateApiNodeFfiNodeDisconnectConstMeta, argValues: [that, counterpartyNodeId], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeDisconnectConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeDisconnectConstMeta => const TaskConstMeta( - debugName: "ldk_node_disconnect", + debugName: "ffi_node_disconnect", argNames: ["that", "counterpartyNodeId"], ); @override - Future crateApiNodeLdkNodeEventHandled({required LdkNode that}) { + Future crateApiNodeFfiNodeEventHandled({required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_event_handled(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_event_handled(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeEventHandledConstMeta, + constMeta: kCrateApiNodeFfiNodeEventHandledConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeEventHandledConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeEventHandledConstMeta => const TaskConstMeta( - debugName: "ldk_node_event_handled", + debugName: "ffi_node_event_handled", argNames: ["that"], ); @override - Future crateApiNodeLdkNodeForceCloseChannel( - {required LdkNode that, + Future crateApiNodeFfiNodeForceCloseChannel( + {required FfiNode that, required UserChannelId userChannelId, required PublicKey counterpartyNodeId}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); + var arg0 = cst_encode_box_autoadd_ffi_node(that); var arg1 = cst_encode_box_autoadd_user_channel_id(userChannelId); var arg2 = cst_encode_box_autoadd_public_key(counterpartyNodeId); - return wire.wire__crate__api__node__ldk_node_force_close_channel( + return wire.wire__crate__api__node__ffi_node_force_close_channel( port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeForceCloseChannelConstMeta, + constMeta: kCrateApiNodeFfiNodeForceCloseChannelConstMeta, argValues: [that, userChannelId, counterpartyNodeId], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeForceCloseChannelConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeForceCloseChannelConstMeta => const TaskConstMeta( - debugName: "ldk_node_force_close_channel", + debugName: "ffi_node_force_close_channel", argNames: ["that", "userChannelId", "counterpartyNodeId"], ); @override - Future crateApiNodeLdkNodeListBalances( - {required LdkNode that}) { + Future crateApiNodeFfiNodeListBalances( + {required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_list_balances(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_list_balances(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_balance_details, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeListBalancesConstMeta, + constMeta: kCrateApiNodeFfiNodeListBalancesConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeListBalancesConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeListBalancesConstMeta => const TaskConstMeta( - debugName: "ldk_node_list_balances", + debugName: "ffi_node_list_balances", argNames: ["that"], ); @override - Future> crateApiNodeLdkNodeListChannels( - {required LdkNode that}) { + Future> crateApiNodeFfiNodeListChannels( + {required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_list_channels(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_list_channels(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_channel_details, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeListChannelsConstMeta, + constMeta: kCrateApiNodeFfiNodeListChannelsConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeListChannelsConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeListChannelsConstMeta => const TaskConstMeta( - debugName: "ldk_node_list_channels", + debugName: "ffi_node_list_channels", argNames: ["that"], ); @override - Future> crateApiNodeLdkNodeListPayments( - {required LdkNode that}) { + Future> crateApiNodeFfiNodeListPayments( + {required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_list_payments(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_list_payments(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_payment_details, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeListPaymentsConstMeta, + constMeta: kCrateApiNodeFfiNodeListPaymentsConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeListPaymentsConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeListPaymentsConstMeta => const TaskConstMeta( - debugName: "ldk_node_list_payments", + debugName: "ffi_node_list_payments", argNames: ["that"], ); @override - Future> crateApiNodeLdkNodeListPaymentsWithFilter( - {required LdkNode that, required PaymentDirection paymentDirection}) { + Future> crateApiNodeFfiNodeListPaymentsWithFilter( + {required FfiNode that, required PaymentDirection paymentDirection}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); + var arg0 = cst_encode_box_autoadd_ffi_node(that); var arg1 = cst_encode_payment_direction(paymentDirection); - return wire.wire__crate__api__node__ldk_node_list_payments_with_filter( + return wire.wire__crate__api__node__ffi_node_list_payments_with_filter( port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_payment_details, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeListPaymentsWithFilterConstMeta, + constMeta: kCrateApiNodeFfiNodeListPaymentsWithFilterConstMeta, argValues: [that, paymentDirection], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeListPaymentsWithFilterConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeListPaymentsWithFilterConstMeta => const TaskConstMeta( - debugName: "ldk_node_list_payments_with_filter", + debugName: "ffi_node_list_payments_with_filter", argNames: ["that", "paymentDirection"], ); @override - Future> crateApiNodeLdkNodeListPeers( - {required LdkNode that}) { + Future> crateApiNodeFfiNodeListPeers( + {required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_list_peers(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_list_peers(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_peer_details, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeListPeersConstMeta, + constMeta: kCrateApiNodeFfiNodeListPeersConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeListPeersConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeListPeersConstMeta => const TaskConstMeta( - debugName: "ldk_node_list_peers", + debugName: "ffi_node_list_peers", argNames: ["that"], ); @override - Future?> crateApiNodeLdkNodeListeningAddresses( - {required LdkNode that}) { + Future?> crateApiNodeFfiNodeListeningAddresses( + {required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_listening_addresses( + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_listening_addresses( port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_list_socket_address, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeListeningAddressesConstMeta, + constMeta: kCrateApiNodeFfiNodeListeningAddressesConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeListeningAddressesConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeListeningAddressesConstMeta => const TaskConstMeta( - debugName: "ldk_node_listening_addresses", + debugName: "ffi_node_listening_addresses", argNames: ["that"], ); @override - Future crateApiNodeLdkNodeNetworkGraph( - {required LdkNode ptr}) { + Future crateApiNodeFfiNodeNetworkGraph( + {required FfiNode ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(ptr); - return wire.wire__crate__api__node__ldk_node_network_graph(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(ptr); + return wire.wire__crate__api__node__ffi_node_network_graph(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ldk_network_graph, + decodeSuccessData: dco_decode_ffi_network_graph, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeNetworkGraphConstMeta, + constMeta: kCrateApiNodeFfiNodeNetworkGraphConstMeta, argValues: [ptr], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeNetworkGraphConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeNetworkGraphConstMeta => const TaskConstMeta( - debugName: "ldk_node_network_graph", + debugName: "ffi_node_network_graph", argNames: ["ptr"], ); @override - Future crateApiNodeLdkNodeNextEvent({required LdkNode that}) { + Future crateApiNodeFfiNodeNextEvent({required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_next_event(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_next_event(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_event, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeNextEventConstMeta, + constMeta: kCrateApiNodeFfiNodeNextEventConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeNextEventConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeNextEventConstMeta => const TaskConstMeta( - debugName: "ldk_node_next_event", + debugName: "ffi_node_next_event", argNames: ["that"], ); @override - Future crateApiNodeLdkNodeNextEventAsync({required LdkNode that}) { + Future crateApiNodeFfiNodeNextEventAsync({required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_next_event_async( + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_next_event_async( port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_event, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeNextEventAsyncConstMeta, + constMeta: kCrateApiNodeFfiNodeNextEventAsyncConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeNextEventAsyncConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeNextEventAsyncConstMeta => const TaskConstMeta( - debugName: "ldk_node_next_event_async", + debugName: "ffi_node_next_event_async", argNames: ["that"], ); @override - Future crateApiNodeLdkNodeNodeId({required LdkNode that}) { + Future crateApiNodeFfiNodeNodeId({required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_node_id(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_node_id(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_public_key, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeNodeIdConstMeta, + constMeta: kCrateApiNodeFfiNodeNodeIdConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeNodeIdConstMeta => const TaskConstMeta( - debugName: "ldk_node_node_id", + TaskConstMeta get kCrateApiNodeFfiNodeNodeIdConstMeta => const TaskConstMeta( + debugName: "ffi_node_node_id", argNames: ["that"], ); @override - Future crateApiNodeLdkNodeOnChainPayment( - {required LdkNode ptr}) { + Future crateApiNodeFfiNodeOnChainPayment( + {required FfiNode ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(ptr); - return wire.wire__crate__api__node__ldk_node_on_chain_payment( + var arg0 = cst_encode_box_autoadd_ffi_node(ptr); + return wire.wire__crate__api__node__ffi_node_on_chain_payment( port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ldk_on_chain_payment, + decodeSuccessData: dco_decode_ffi_on_chain_payment, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeOnChainPaymentConstMeta, + constMeta: kCrateApiNodeFfiNodeOnChainPaymentConstMeta, argValues: [ptr], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeOnChainPaymentConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeOnChainPaymentConstMeta => const TaskConstMeta( - debugName: "ldk_node_on_chain_payment", + debugName: "ffi_node_on_chain_payment", argNames: ["ptr"], ); @override - Future crateApiNodeLdkNodePayment( - {required LdkNode that, required PaymentId paymentId}) { + Future crateApiNodeFfiNodeOpenAnnouncedChannel( + {required FfiNode that, + required SocketAddress socketAddress, + required PublicKey nodeId, + required BigInt channelAmountSats, + BigInt? pushToCounterpartyMsat, + ChannelConfig? channelConfig}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + var arg1 = cst_encode_box_autoadd_socket_address(socketAddress); + var arg2 = cst_encode_box_autoadd_public_key(nodeId); + var arg3 = cst_encode_u_64(channelAmountSats); + var arg4 = cst_encode_opt_box_autoadd_u_64(pushToCounterpartyMsat); + var arg5 = cst_encode_opt_box_autoadd_channel_config(channelConfig); + return wire.wire__crate__api__node__ffi_node_open_announced_channel( + port_, arg0, arg1, arg2, arg3, arg4, arg5); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_user_channel_id, + decodeErrorData: dco_decode_ffi_node_error, + ), + constMeta: kCrateApiNodeFfiNodeOpenAnnouncedChannelConstMeta, + argValues: [ + that, + socketAddress, + nodeId, + channelAmountSats, + pushToCounterpartyMsat, + channelConfig + ], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiNodeFfiNodeOpenAnnouncedChannelConstMeta => + const TaskConstMeta( + debugName: "ffi_node_open_announced_channel", + argNames: [ + "that", + "socketAddress", + "nodeId", + "channelAmountSats", + "pushToCounterpartyMsat", + "channelConfig" + ], + ); + + @override + Future crateApiNodeFfiNodeOpenChannel( + {required FfiNode that, + required SocketAddress socketAddress, + required PublicKey nodeId, + required BigInt channelAmountSats, + BigInt? pushToCounterpartyMsat, + ChannelConfig? channelConfig}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_ffi_node(that); + var arg1 = cst_encode_box_autoadd_socket_address(socketAddress); + var arg2 = cst_encode_box_autoadd_public_key(nodeId); + var arg3 = cst_encode_u_64(channelAmountSats); + var arg4 = cst_encode_opt_box_autoadd_u_64(pushToCounterpartyMsat); + var arg5 = cst_encode_opt_box_autoadd_channel_config(channelConfig); + return wire.wire__crate__api__node__ffi_node_open_channel( + port_, arg0, arg1, arg2, arg3, arg4, arg5); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_user_channel_id, + decodeErrorData: dco_decode_ffi_node_error, + ), + constMeta: kCrateApiNodeFfiNodeOpenChannelConstMeta, + argValues: [ + that, + socketAddress, + nodeId, + channelAmountSats, + pushToCounterpartyMsat, + channelConfig + ], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiNodeFfiNodeOpenChannelConstMeta => + const TaskConstMeta( + debugName: "ffi_node_open_channel", + argNames: [ + "that", + "socketAddress", + "nodeId", + "channelAmountSats", + "pushToCounterpartyMsat", + "channelConfig" + ], + ); + + @override + Future crateApiNodeFfiNodePayment( + {required FfiNode that, required PaymentId paymentId}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_ffi_node(that); var arg1 = cst_encode_box_autoadd_payment_id(paymentId); - return wire.wire__crate__api__node__ldk_node_payment(port_, arg0, arg1); + return wire.wire__crate__api__node__ffi_node_payment(port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_payment_details, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodePaymentConstMeta, + constMeta: kCrateApiNodeFfiNodePaymentConstMeta, argValues: [that, paymentId], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodePaymentConstMeta => const TaskConstMeta( - debugName: "ldk_node_payment", + TaskConstMeta get kCrateApiNodeFfiNodePaymentConstMeta => const TaskConstMeta( + debugName: "ffi_node_payment", argNames: ["that", "paymentId"], ); @override - Future crateApiNodeLdkNodeRemovePayment( - {required LdkNode that, required PaymentId paymentId}) { + Future crateApiNodeFfiNodeRemovePayment( + {required FfiNode that, required PaymentId paymentId}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); + var arg0 = cst_encode_box_autoadd_ffi_node(that); var arg1 = cst_encode_box_autoadd_payment_id(paymentId); - return wire.wire__crate__api__node__ldk_node_remove_payment( + return wire.wire__crate__api__node__ffi_node_remove_payment( port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeRemovePaymentConstMeta, + constMeta: kCrateApiNodeFfiNodeRemovePaymentConstMeta, argValues: [that, paymentId], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeRemovePaymentConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeRemovePaymentConstMeta => const TaskConstMeta( - debugName: "ldk_node_remove_payment", + debugName: "ffi_node_remove_payment", argNames: ["that", "paymentId"], ); @override - Future crateApiNodeLdkNodeSignMessage( - {required LdkNode that, required List msg}) { + Future crateApiNodeFfiNodeSignMessage( + {required FfiNode that, required List msg}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); + var arg0 = cst_encode_box_autoadd_ffi_node(that); var arg1 = cst_encode_list_prim_u_8_loose(msg); - return wire.wire__crate__api__node__ldk_node_sign_message( + return wire.wire__crate__api__node__ffi_node_sign_message( port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeSignMessageConstMeta, + constMeta: kCrateApiNodeFfiNodeSignMessageConstMeta, argValues: [that, msg], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeSignMessageConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeSignMessageConstMeta => const TaskConstMeta( - debugName: "ldk_node_sign_message", + debugName: "ffi_node_sign_message", argNames: ["that", "msg"], ); @override - Future crateApiNodeLdkNodeSpontaneousPayment( - {required LdkNode ptr}) { + Future crateApiNodeFfiNodeSpontaneousPayment( + {required FfiNode ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(ptr); - return wire.wire__crate__api__node__ldk_node_spontaneous_payment( + var arg0 = cst_encode_box_autoadd_ffi_node(ptr); + return wire.wire__crate__api__node__ffi_node_spontaneous_payment( port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ldk_spontaneous_payment, + decodeSuccessData: dco_decode_ffi_spontaneous_payment, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeSpontaneousPaymentConstMeta, + constMeta: kCrateApiNodeFfiNodeSpontaneousPaymentConstMeta, argValues: [ptr], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeSpontaneousPaymentConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeSpontaneousPaymentConstMeta => const TaskConstMeta( - debugName: "ldk_node_spontaneous_payment", + debugName: "ffi_node_spontaneous_payment", argNames: ["ptr"], ); @override - Future crateApiNodeLdkNodeStart({required LdkNode that}) { + Future crateApiNodeFfiNodeStart({required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_start(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_start(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeStartConstMeta, + constMeta: kCrateApiNodeFfiNodeStartConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeStartConstMeta => const TaskConstMeta( - debugName: "ldk_node_start", + TaskConstMeta get kCrateApiNodeFfiNodeStartConstMeta => const TaskConstMeta( + debugName: "ffi_node_start", argNames: ["that"], ); @override - Future crateApiNodeLdkNodeStatus({required LdkNode that}) { + Future crateApiNodeFfiNodeStatus({required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_status(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_status(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_node_status, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeStatusConstMeta, + constMeta: kCrateApiNodeFfiNodeStatusConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeStatusConstMeta => const TaskConstMeta( - debugName: "ldk_node_status", + TaskConstMeta get kCrateApiNodeFfiNodeStatusConstMeta => const TaskConstMeta( + debugName: "ffi_node_status", argNames: ["that"], ); @override - Future crateApiNodeLdkNodeStop({required LdkNode that}) { + Future crateApiNodeFfiNodeStop({required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_stop(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_stop(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeStopConstMeta, + constMeta: kCrateApiNodeFfiNodeStopConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeStopConstMeta => const TaskConstMeta( - debugName: "ldk_node_stop", + TaskConstMeta get kCrateApiNodeFfiNodeStopConstMeta => const TaskConstMeta( + debugName: "ffi_node_stop", argNames: ["that"], ); @override - Future crateApiNodeLdkNodeSyncWallets({required LdkNode that}) { + Future crateApiNodeFfiNodeSyncWallets({required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_sync_wallets(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_sync_wallets(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeSyncWalletsConstMeta, + constMeta: kCrateApiNodeFfiNodeSyncWalletsConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeSyncWalletsConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeSyncWalletsConstMeta => const TaskConstMeta( - debugName: "ldk_node_sync_wallets", + debugName: "ffi_node_sync_wallets", argNames: ["that"], ); @override - Future crateApiNodeLdkNodeUpdateChannelConfig( - {required LdkNode that, + Future crateApiNodeFfiNodeUnifiedQrPayment( + {required FfiNode ptr}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_ffi_node(ptr); + return wire.wire__crate__api__node__ffi_node_unified_qr_payment( + port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_unified_qr_payment, + decodeErrorData: null, + ), + constMeta: kCrateApiNodeFfiNodeUnifiedQrPaymentConstMeta, + argValues: [ptr], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiNodeFfiNodeUnifiedQrPaymentConstMeta => + const TaskConstMeta( + debugName: "ffi_node_unified_qr_payment", + argNames: ["ptr"], + ); + + @override + Future crateApiNodeFfiNodeUpdateChannelConfig( + {required FfiNode that, required UserChannelId userChannelId, required PublicKey counterpartyNodeId, required ChannelConfig channelConfig}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); + var arg0 = cst_encode_box_autoadd_ffi_node(that); var arg1 = cst_encode_box_autoadd_user_channel_id(userChannelId); var arg2 = cst_encode_box_autoadd_public_key(counterpartyNodeId); var arg3 = cst_encode_box_autoadd_channel_config(channelConfig); - return wire.wire__crate__api__node__ldk_node_update_channel_config( + return wire.wire__crate__api__node__ffi_node_update_channel_config( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeUpdateChannelConfigConstMeta, + constMeta: kCrateApiNodeFfiNodeUpdateChannelConfigConstMeta, argValues: [that, userChannelId, counterpartyNodeId, channelConfig], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeUpdateChannelConfigConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeUpdateChannelConfigConstMeta => const TaskConstMeta( - debugName: "ldk_node_update_channel_config", + debugName: "ffi_node_update_channel_config", argNames: [ "that", "userChannelId", @@ -2011,225 +2252,316 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future crateApiNodeLdkNodeVerifySignature( - {required LdkNode that, + Future crateApiNodeFfiNodeVerifySignature( + {required FfiNode that, required List msg, required String sig, required PublicKey publicKey}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); + var arg0 = cst_encode_box_autoadd_ffi_node(that); var arg1 = cst_encode_list_prim_u_8_loose(msg); var arg2 = cst_encode_String(sig); var arg3 = cst_encode_box_autoadd_public_key(publicKey); - return wire.wire__crate__api__node__ldk_node_verify_signature( + return wire.wire__crate__api__node__ffi_node_verify_signature( port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiNodeLdkNodeVerifySignatureConstMeta, + constMeta: kCrateApiNodeFfiNodeVerifySignatureConstMeta, argValues: [that, msg, sig, publicKey], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeVerifySignatureConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeVerifySignatureConstMeta => const TaskConstMeta( - debugName: "ldk_node_verify_signature", + debugName: "ffi_node_verify_signature", argNames: ["that", "msg", "sig", "publicKey"], ); @override - Future crateApiNodeLdkNodeWaitNextEvent({required LdkNode that}) { + Future crateApiNodeFfiNodeWaitNextEvent({required FfiNode that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_node(that); - return wire.wire__crate__api__node__ldk_node_wait_next_event( + var arg0 = cst_encode_box_autoadd_ffi_node(that); + return wire.wire__crate__api__node__ffi_node_wait_next_event( port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_event, decodeErrorData: null, ), - constMeta: kCrateApiNodeLdkNodeWaitNextEventConstMeta, + constMeta: kCrateApiNodeFfiNodeWaitNextEventConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiNodeLdkNodeWaitNextEventConstMeta => + TaskConstMeta get kCrateApiNodeFfiNodeWaitNextEventConstMeta => const TaskConstMeta( - debugName: "ldk_node_wait_next_event", + debugName: "ffi_node_wait_next_event", argNames: ["that"], ); @override - Future
crateApiOnChainLdkOnChainPaymentNewAddress( - {required LdkOnChainPayment that}) { + Future
crateApiOnChainFfiOnChainPaymentNewAddress( + {required FfiOnChainPayment that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_on_chain_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_on_chain_payment(that); return wire - .wire__crate__api__on_chain__ldk_on_chain_payment_new_address( + .wire__crate__api__on_chain__ffi_on_chain_payment_new_address( port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_address, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiOnChainLdkOnChainPaymentNewAddressConstMeta, + constMeta: kCrateApiOnChainFfiOnChainPaymentNewAddressConstMeta, argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiOnChainLdkOnChainPaymentNewAddressConstMeta => + TaskConstMeta get kCrateApiOnChainFfiOnChainPaymentNewAddressConstMeta => const TaskConstMeta( - debugName: "ldk_on_chain_payment_new_address", + debugName: "ffi_on_chain_payment_new_address", argNames: ["that"], ); @override - Future crateApiOnChainLdkOnChainPaymentSendAllToAddress( - {required LdkOnChainPayment that, required Address address}) { + Future crateApiOnChainFfiOnChainPaymentSendAllToAddress( + {required FfiOnChainPayment that, required Address address}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_on_chain_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_on_chain_payment(that); var arg1 = cst_encode_box_autoadd_address(address); return wire - .wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_address( + .wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address( port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_txid, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiOnChainLdkOnChainPaymentSendAllToAddressConstMeta, + constMeta: kCrateApiOnChainFfiOnChainPaymentSendAllToAddressConstMeta, argValues: [that, address], apiImpl: this, )); } TaskConstMeta - get kCrateApiOnChainLdkOnChainPaymentSendAllToAddressConstMeta => + get kCrateApiOnChainFfiOnChainPaymentSendAllToAddressConstMeta => const TaskConstMeta( - debugName: "ldk_on_chain_payment_send_all_to_address", + debugName: "ffi_on_chain_payment_send_all_to_address", argNames: ["that", "address"], ); @override - Future crateApiOnChainLdkOnChainPaymentSendToAddress( - {required LdkOnChainPayment that, + Future crateApiOnChainFfiOnChainPaymentSendToAddress( + {required FfiOnChainPayment that, required Address address, required BigInt amountSats}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_on_chain_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_on_chain_payment(that); var arg1 = cst_encode_box_autoadd_address(address); var arg2 = cst_encode_u_64(amountSats); return wire - .wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address( + .wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address( port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_txid, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiOnChainLdkOnChainPaymentSendToAddressConstMeta, + constMeta: kCrateApiOnChainFfiOnChainPaymentSendToAddressConstMeta, argValues: [that, address, amountSats], apiImpl: this, )); } - TaskConstMeta get kCrateApiOnChainLdkOnChainPaymentSendToAddressConstMeta => + TaskConstMeta get kCrateApiOnChainFfiOnChainPaymentSendToAddressConstMeta => const TaskConstMeta( - debugName: "ldk_on_chain_payment_send_to_address", + debugName: "ffi_on_chain_payment_send_to_address", argNames: ["that", "address", "amountSats"], ); @override - Future crateApiSpontaneousLdkSpontaneousPaymentSend( - {required LdkSpontaneousPayment that, + Future crateApiSpontaneousFfiSpontaneousPaymentSend( + {required FfiSpontaneousPayment that, required BigInt amountMsat, - required PublicKey nodeId}) { + required PublicKey nodeId, + SendingParameters? sendingParameters}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_spontaneous_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_spontaneous_payment(that); var arg1 = cst_encode_u_64(amountMsat); var arg2 = cst_encode_box_autoadd_public_key(nodeId); - return wire.wire__crate__api__spontaneous__ldk_spontaneous_payment_send( - port_, arg0, arg1, arg2); + var arg3 = + cst_encode_opt_box_autoadd_sending_parameters(sendingParameters); + return wire.wire__crate__api__spontaneous__ffi_spontaneous_payment_send( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( decodeSuccessData: dco_decode_payment_id, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiSpontaneousLdkSpontaneousPaymentSendConstMeta, - argValues: [that, amountMsat, nodeId], + constMeta: kCrateApiSpontaneousFfiSpontaneousPaymentSendConstMeta, + argValues: [that, amountMsat, nodeId, sendingParameters], apiImpl: this, )); } - TaskConstMeta get kCrateApiSpontaneousLdkSpontaneousPaymentSendConstMeta => + TaskConstMeta get kCrateApiSpontaneousFfiSpontaneousPaymentSendConstMeta => const TaskConstMeta( - debugName: "ldk_spontaneous_payment_send", - argNames: ["that", "amountMsat", "nodeId"], + debugName: "ffi_spontaneous_payment_send", + argNames: ["that", "amountMsat", "nodeId", "sendingParameters"], ); @override - Future crateApiSpontaneousLdkSpontaneousPaymentSendProbes( - {required LdkSpontaneousPayment that, + Future crateApiSpontaneousFfiSpontaneousPaymentSendProbes( + {required FfiSpontaneousPayment that, required BigInt amountMsat, required PublicKey nodeId}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ldk_spontaneous_payment(that); + var arg0 = cst_encode_box_autoadd_ffi_spontaneous_payment(that); var arg1 = cst_encode_u_64(amountMsat); var arg2 = cst_encode_box_autoadd_public_key(nodeId); return wire - .wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes( + .wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes( port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_ldk_node_error, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiSpontaneousLdkSpontaneousPaymentSendProbesConstMeta, + constMeta: kCrateApiSpontaneousFfiSpontaneousPaymentSendProbesConstMeta, argValues: [that, amountMsat, nodeId], apiImpl: this, )); } TaskConstMeta - get kCrateApiSpontaneousLdkSpontaneousPaymentSendProbesConstMeta => + get kCrateApiSpontaneousFfiSpontaneousPaymentSendProbesConstMeta => const TaskConstMeta( - debugName: "ldk_spontaneous_payment_send_probes", + debugName: "ffi_spontaneous_payment_send_probes", argNames: ["that", "amountMsat", "nodeId"], ); - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcBolt12Payment => wire - .rust_arc_increment_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment; + @override + Future crateApiTypesAnchorChannelsConfigDefault() { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + return wire + .wire__crate__api__types__anchor_channels_config_default(port_); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_anchor_channels_config, + decodeErrorData: null, + ), + constMeta: kCrateApiTypesAnchorChannelsConfigDefaultConstMeta, + argValues: [], + apiImpl: this, + )); + } - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcBolt12Payment => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment; + TaskConstMeta get kCrateApiTypesAnchorChannelsConfigDefaultConstMeta => + const TaskConstMeta( + debugName: "anchor_channels_config_default", + argNames: [], + ); - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Node => - wire.rust_arc_increment_strong_count_RustOpaque_Node; + @override + Future crateApiTypesConfigDefault() { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + return wire.wire__crate__api__types__config_default(port_); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_config, + decodeErrorData: null, + ), + constMeta: kCrateApiTypesConfigDefaultConstMeta, + argValues: [], + apiImpl: this, + )); + } - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Node => - wire.rust_arc_decrement_strong_count_RustOpaque_Node; + TaskConstMeta get kCrateApiTypesConfigDefaultConstMeta => const TaskConstMeta( + debugName: "config_default", + argNames: [], + ); + + @override + Future crateApiUnifiedQrFfiUnifiedQrPaymentReceive( + {required FfiUnifiedQrPayment that, + required BigInt amountSats, + required String message, + required int expirySec}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_ffi_unified_qr_payment(that); + var arg1 = cst_encode_u_64(amountSats); + var arg2 = cst_encode_String(message); + var arg3 = cst_encode_u_32(expirySec); + return wire + .wire__crate__api__unified_qr__ffi_unified_qr_payment_receive( + port_, arg0, arg1, arg2, arg3); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: dco_decode_ffi_node_error, + ), + constMeta: kCrateApiUnifiedQrFfiUnifiedQrPaymentReceiveConstMeta, + argValues: [that, amountSats, message, expirySec], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUnifiedQrFfiUnifiedQrPaymentReceiveConstMeta => + const TaskConstMeta( + debugName: "ffi_unified_qr_payment_receive", + argNames: ["that", "amountSats", "message", "expirySec"], + ); + + @override + Future crateApiUnifiedQrFfiUnifiedQrPaymentSend( + {required FfiUnifiedQrPayment that, required String uriStr}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_ffi_unified_qr_payment(that); + var arg1 = cst_encode_String(uriStr); + return wire.wire__crate__api__unified_qr__ffi_unified_qr_payment_send( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_qr_payment_result, + decodeErrorData: dco_decode_ffi_node_error, + ), + constMeta: kCrateApiUnifiedQrFfiUnifiedQrPaymentSendConstMeta, + argValues: [that, uriStr], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUnifiedQrFfiUnifiedQrPaymentSendConstMeta => + const TaskConstMeta( + debugName: "ffi_unified_qr_payment_send", + argNames: ["that", "uriStr"], + ); RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_NodeBuilder => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder; + get rust_arc_increment_strong_count_FfiBuilder => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_NodeBuilder => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder; + get rust_arc_decrement_strong_count_FfiBuilder => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder; RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Builder => @@ -2239,6 +2571,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { get rust_arc_decrement_strong_count_Builder => wire.rust_arc_decrement_strong_count_RustOpaque_ldk_nodeBuilder; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Node => + wire.rust_arc_increment_strong_count_RustOpaque_ldk_nodeNode; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Node => + wire.rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNode; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_NetworkGraph => wire .rust_arc_increment_strong_count_RustOpaque_ldk_nodegraphNetworkGraph; @@ -2255,6 +2593,14 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { get rust_arc_decrement_strong_count_Bolt11Payment => wire .rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt11Payment; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_Bolt12Payment => wire + .rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_Bolt12Payment => wire + .rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_OnchainPayment => wire .rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment; @@ -2271,55 +2617,63 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { get rust_arc_decrement_strong_count_SpontaneousPayment => wire .rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPayment; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_UnifiedQrPayment => wire + .rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_UnifiedQrPayment => wire + .rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment; + @protected - NodeBuilder - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return NodeBuilderImpl.frbInternalDcoDecode(raw as List); + return FfiBuilderImpl.frbInternalDcoDecode(raw as List); } @protected - NodeBuilder - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return NodeBuilderImpl.frbInternalDcoDecode(raw as List); + return FfiBuilderImpl.frbInternalDcoDecode(raw as List); } @protected - NodeBuilder - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return NodeBuilderImpl.frbInternalDcoDecode(raw as List); + return FfiBuilderImpl.frbInternalDcoDecode(raw as List); } @protected - ArcBolt12Payment dco_decode_RustOpaque_Arcldk_nodepaymentBolt12Payment( - dynamic raw) { + Map dco_decode_Map_String_String(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcBolt12PaymentImpl.frbInternalDcoDecode(raw as List); + return Map.fromEntries(dco_decode_list_record_string_string(raw) + .map((e) => MapEntry(e.$1, e.$2))); } @protected - Node dco_decode_RustOpaque_Node(dynamic raw) { + FfiBuilder + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return NodeImpl.frbInternalDcoDecode(raw as List); + return FfiBuilderImpl.frbInternalDcoDecode(raw as List); } @protected - NodeBuilder - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - dynamic raw) { + Builder dco_decode_RustOpaque_ldk_nodeBuilder(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return NodeBuilderImpl.frbInternalDcoDecode(raw as List); + return BuilderImpl.frbInternalDcoDecode(raw as List); } @protected - Builder dco_decode_RustOpaque_ldk_nodeBuilder(dynamic raw) { + Node dco_decode_RustOpaque_ldk_nodeNode(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return BuilderImpl.frbInternalDcoDecode(raw as List); + return NodeImpl.frbInternalDcoDecode(raw as List); } @protected @@ -2335,6 +2689,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return Bolt11PaymentImpl.frbInternalDcoDecode(raw as List); } + @protected + Bolt12Payment dco_decode_RustOpaque_ldk_nodepaymentBolt12Payment( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return Bolt12PaymentImpl.frbInternalDcoDecode(raw as List); + } + @protected OnchainPayment dco_decode_RustOpaque_ldk_nodepaymentOnchainPayment( dynamic raw) { @@ -2349,6 +2710,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return SpontaneousPaymentImpl.frbInternalDcoDecode(raw as List); } + @protected + UnifiedQrPayment dco_decode_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return UnifiedQrPaymentImpl.frbInternalDcoDecode(raw as List); + } + @protected String dco_decode_String(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -2394,6 +2762,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); } + @protected + BalanceSource dco_decode_balance_source(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return BalanceSource.values[raw as int]; + } + @protected BestBlock dco_decode_best_block(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -2488,6 +2862,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return dco_decode_bolt_12_parse_error(raw); } + @protected + bool dco_decode_box_autoadd_bool(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as bool; + } + @protected ChainDataSourceConfig dco_decode_box_autoadd_chain_data_source_config( dynamic raw) { @@ -2544,6 +2924,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return dco_decode_entropy_source_config(raw); } + @protected + EsploraSyncConfig dco_decode_box_autoadd_esplora_sync_config(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_esplora_sync_config(raw); + } + @protected Event dco_decode_box_autoadd_event(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -2551,52 +2937,59 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - GossipSourceConfig dco_decode_box_autoadd_gossip_source_config(dynamic raw) { + FfiBolt11Payment dco_decode_box_autoadd_ffi_bolt_11_payment(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_gossip_source_config(raw); + return dco_decode_ffi_bolt_11_payment(raw); } @protected - LdkBolt11Payment dco_decode_box_autoadd_ldk_bolt_11_payment(dynamic raw) { + FfiBolt12Payment dco_decode_box_autoadd_ffi_bolt_12_payment(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_ldk_bolt_11_payment(raw); + return dco_decode_ffi_bolt_12_payment(raw); } @protected - LdkBolt12Payment dco_decode_box_autoadd_ldk_bolt_12_payment(dynamic raw) { + FfiMnemonic dco_decode_box_autoadd_ffi_mnemonic(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_ldk_bolt_12_payment(raw); + return dco_decode_ffi_mnemonic(raw); } @protected - LdkMnemonic dco_decode_box_autoadd_ldk_mnemonic(dynamic raw) { + FfiNetworkGraph dco_decode_box_autoadd_ffi_network_graph(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_ldk_mnemonic(raw); + return dco_decode_ffi_network_graph(raw); } @protected - LdkNetworkGraph dco_decode_box_autoadd_ldk_network_graph(dynamic raw) { + FfiNode dco_decode_box_autoadd_ffi_node(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_ldk_network_graph(raw); + return dco_decode_ffi_node(raw); } @protected - LdkNode dco_decode_box_autoadd_ldk_node(dynamic raw) { + FfiOnChainPayment dco_decode_box_autoadd_ffi_on_chain_payment(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_ldk_node(raw); + return dco_decode_ffi_on_chain_payment(raw); } @protected - LdkOnChainPayment dco_decode_box_autoadd_ldk_on_chain_payment(dynamic raw) { + FfiSpontaneousPayment dco_decode_box_autoadd_ffi_spontaneous_payment( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_ldk_on_chain_payment(raw); + return dco_decode_ffi_spontaneous_payment(raw); } @protected - LdkSpontaneousPayment dco_decode_box_autoadd_ldk_spontaneous_payment( + FfiUnifiedQrPayment dco_decode_box_autoadd_ffi_unified_qr_payment( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_ldk_spontaneous_payment(raw); + return dco_decode_ffi_unified_qr_payment(raw); + } + + @protected + GossipSourceConfig dco_decode_box_autoadd_gossip_source_config(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_gossip_source_config(raw); } @protected @@ -2613,10 +3006,16 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - MaxDustHTLCExposure dco_decode_box_autoadd_max_dust_htlc_exposure( + MaxTotalRoutingFeeLimit dco_decode_box_autoadd_max_total_routing_fee_limit( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_max_dust_htlc_exposure(raw); + return dco_decode_max_total_routing_fee_limit(raw); + } + + @protected + NodeAlias dco_decode_box_autoadd_node_alias(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_node_alias(raw); } @protected @@ -2700,9 +3099,15 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - Refund dco_decode_box_autoadd_refund(dynamic raw) { + Refund dco_decode_box_autoadd_refund(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_refund(raw); + } + + @protected + SendingParameters dco_decode_box_autoadd_sending_parameters(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_refund(raw); + return dco_decode_sending_parameters(raw); } @protected @@ -2735,6 +3140,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return dco_decode_u_64(raw); } + @protected + int dco_decode_box_autoadd_u_8(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as int; + } + @protected UserChannelId dco_decode_box_autoadd_user_channel_id(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -2747,7 +3158,15 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { switch (raw[0]) { case 0: return ChainDataSourceConfig_Esplora( - dco_decode_String(raw[1]), + serverUrl: dco_decode_String(raw[1]), + syncConfig: dco_decode_opt_box_autoadd_esplora_sync_config(raw[2]), + ); + case 1: + return ChainDataSourceConfig_BitcoindRpc( + rpcHost: dco_decode_String(raw[1]), + rpcPort: dco_decode_u_16(raw[2]), + rpcUser: dco_decode_String(raw[3]), + rpcPassword: dco_decode_String(raw[4]), ); default: throw Exception("unreachable"); @@ -2764,8 +3183,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { forwardingFeeProportionalMillionths: dco_decode_u_32(arr[0]), forwardingFeeBaseMsat: dco_decode_u_32(arr[1]), cltvExpiryDelta: dco_decode_u_16(arr[2]), - maxDustHtlcExposure: - dco_decode_opt_box_autoadd_max_dust_htlc_exposure(arr[3]), + maxDustHtlcExposure: dco_decode_max_dust_htlc_exposure(arr[3]), forceCloseAvoidanceMaxFeeSatoshis: dco_decode_u_64(arr[4]), acceptUnderpayingHtlcs: dco_decode_bool(arr[5]), ); @@ -2775,8 +3193,8 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ChannelDetails dco_decode_channel_details(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 28) - throw Exception('unexpected arr length: expect 28 but see ${arr.length}'); + if (arr.length != 27) + throw Exception('unexpected arr length: expect 27 but see ${arr.length}'); return ChannelDetails( channelId: dco_decode_channel_id(arr[0]), counterpartyNodeId: dco_decode_public_key(arr[1]), @@ -2792,25 +3210,24 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { isOutbound: dco_decode_bool(arr[11]), isChannelReady: dco_decode_bool(arr[12]), isUsable: dco_decode_bool(arr[13]), - isPublic: dco_decode_bool(arr[14]), - cltvExpiryDelta: dco_decode_opt_box_autoadd_u_16(arr[15]), - counterpartyUnspendablePunishmentReserve: dco_decode_u_64(arr[16]), + cltvExpiryDelta: dco_decode_opt_box_autoadd_u_16(arr[14]), + counterpartyUnspendablePunishmentReserve: dco_decode_u_64(arr[15]), counterpartyOutboundHtlcMinimumMsat: - dco_decode_opt_box_autoadd_u_64(arr[17]), + dco_decode_opt_box_autoadd_u_64(arr[16]), counterpartyOutboundHtlcMaximumMsat: - dco_decode_opt_box_autoadd_u_64(arr[18]), + dco_decode_opt_box_autoadd_u_64(arr[17]), counterpartyForwardingInfoFeeBaseMsat: - dco_decode_opt_box_autoadd_u_32(arr[19]), + dco_decode_opt_box_autoadd_u_32(arr[18]), counterpartyForwardingInfoFeeProportionalMillionths: - dco_decode_opt_box_autoadd_u_32(arr[20]), + dco_decode_opt_box_autoadd_u_32(arr[19]), counterpartyForwardingInfoCltvExpiryDelta: - dco_decode_opt_box_autoadd_u_16(arr[21]), - nextOutboundHtlcLimitMsat: dco_decode_u_64(arr[22]), - nextOutboundHtlcMinimumMsat: dco_decode_u_64(arr[23]), - forceCloseSpendDelay: dco_decode_opt_box_autoadd_u_16(arr[24]), - inboundHtlcMinimumMsat: dco_decode_u_64(arr[25]), - inboundHtlcMaximumMsat: dco_decode_opt_box_autoadd_u_64(arr[26]), - config: dco_decode_channel_config(arr[27]), + dco_decode_opt_box_autoadd_u_16(arr[20]), + nextOutboundHtlcLimitMsat: dco_decode_u_64(arr[21]), + nextOutboundHtlcMinimumMsat: dco_decode_u_64(arr[22]), + forceCloseSpendDelay: dco_decode_opt_box_autoadd_u_16(arr[23]), + inboundHtlcMinimumMsat: dco_decode_u_64(arr[24]), + inboundHtlcMaximumMsat: dco_decode_opt_box_autoadd_u_64(arr[25]), + config: dco_decode_channel_config(arr[26]), ); } @@ -2861,34 +3278,41 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { // Codec=Dco (DartCObject based), see doc to use other codecs switch (raw[0]) { case 0: + return ClosureReason_PeerFeerateTooLow( + peerFeerateSatPerKw: dco_decode_u_32(raw[1]), + requiredFeerateSatPerKw: dco_decode_u_32(raw[2]), + ); + case 1: return ClosureReason_CounterpartyForceClosed( peerMsg: dco_decode_String(raw[1]), ); - case 1: - return ClosureReason_HolderForceClosed(); case 2: - return ClosureReason_LegacyCooperativeClosure(); + return ClosureReason_HolderForceClosed( + broadcastedLatestTxn: dco_decode_opt_box_autoadd_bool(raw[1]), + ); case 3: - return ClosureReason_CounterpartyInitiatedCooperativeClosure(); + return ClosureReason_LegacyCooperativeClosure(); case 4: - return ClosureReason_LocallyInitiatedCooperativeClosure(); + return ClosureReason_CounterpartyInitiatedCooperativeClosure(); case 5: - return ClosureReason_CommitmentTxConfirmed(); + return ClosureReason_LocallyInitiatedCooperativeClosure(); case 6: - return ClosureReason_FundingTimedOut(); + return ClosureReason_CommitmentTxConfirmed(); case 7: + return ClosureReason_FundingTimedOut(); + case 8: return ClosureReason_ProcessingError( err: dco_decode_String(raw[1]), ); - case 8: - return ClosureReason_DisconnectedPeer(); case 9: - return ClosureReason_OutdatedChannelManager(); + return ClosureReason_DisconnectedPeer(); case 10: - return ClosureReason_CounterpartyCoopClosedUnfundedChannel(); + return ClosureReason_OutdatedChannelManager(); case 11: - return ClosureReason_FundingBatchClosure(); + return ClosureReason_CounterpartyCoopClosedUnfundedChannel(); case 12: + return ClosureReason_FundingBatchClosure(); + case 13: return ClosureReason_HTLCsTimedOut(); default: throw Exception("unreachable"); @@ -2899,22 +3323,20 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { Config dco_decode_config(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 12) - throw Exception('unexpected arr length: expect 12 but see ${arr.length}'); + if (arr.length != 10) + throw Exception('unexpected arr length: expect 10 but see ${arr.length}'); return Config( storageDirPath: dco_decode_String(arr[0]), logDirPath: dco_decode_opt_String(arr[1]), network: dco_decode_network(arr[2]), listeningAddresses: dco_decode_opt_list_socket_address(arr[3]), - defaultCltvExpiryDelta: dco_decode_u_32(arr[4]), - onchainWalletSyncIntervalSecs: dco_decode_u_64(arr[5]), - walletSyncIntervalSecs: dco_decode_u_64(arr[6]), - feeRateCacheUpdateIntervalSecs: dco_decode_u_64(arr[7]), - trustedPeers0Conf: dco_decode_list_public_key(arr[8]), - probingLiquidityLimitMultiplier: dco_decode_u_64(arr[9]), - logLevel: dco_decode_log_level(arr[10]), + nodeAlias: dco_decode_opt_box_autoadd_node_alias(arr[4]), + trustedPeers0Conf: dco_decode_list_public_key(arr[5]), + probingLiquidityLimitMultiplier: dco_decode_u_64(arr[6]), + logLevel: dco_decode_log_level(arr[7]), anchorChannelsConfig: - dco_decode_opt_box_autoadd_anchor_channels_config(arr[11]), + dco_decode_opt_box_autoadd_anchor_channels_config(arr[8]), + sendingParameters: dco_decode_opt_box_autoadd_sending_parameters(arr[9]), ); } @@ -2959,7 +3381,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); case 2: return EntropySourceConfig_Bip39Mnemonic( - mnemonic: dco_decode_box_autoadd_ldk_mnemonic(raw[1]), + mnemonic: dco_decode_box_autoadd_ffi_mnemonic(raw[1]), passphrase: dco_decode_opt_String(raw[2]), ); default: @@ -2967,6 +3389,19 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + EsploraSyncConfig dco_decode_esplora_sync_config(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 3) + throw Exception('unexpected arr length: expect 3 but see ${arr.length}'); + return EsploraSyncConfig( + onchainWalletSyncIntervalSecs: dco_decode_u_64(arr[0]), + lightningWalletSyncIntervalSecs: dco_decode_u_64(arr[1]), + feeRateCacheUpdateIntervalSecs: dco_decode_u_64(arr[2]), + ); + } + @protected Event dco_decode_event(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -2987,7 +3422,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { case 2: return Event_PaymentFailed( paymentId: dco_decode_opt_box_autoadd_payment_id(raw[1]), - paymentHash: dco_decode_box_autoadd_payment_hash(raw[2]), + paymentHash: dco_decode_opt_box_autoadd_payment_hash(raw[2]), reason: dco_decode_opt_box_autoadd_payment_failure_reason(raw[3]), ); case 3: @@ -3023,220 +3458,239 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - GossipSourceConfig dco_decode_gossip_source_config(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - switch (raw[0]) { - case 0: - return GossipSourceConfig_P2PNetwork(); - case 1: - return GossipSourceConfig_RapidGossipSync( - dco_decode_String(raw[1]), - ); - default: - throw Exception("unreachable"); - } - } - - @protected - int dco_decode_i_32(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as int; - } - - @protected - LdkBolt11Payment dco_decode_ldk_bolt_11_payment(dynamic raw) { + FfiBolt11Payment dco_decode_ffi_bolt_11_payment(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return LdkBolt11Payment( - ptr: dco_decode_RustOpaque_ldk_nodepaymentBolt11Payment(arr[0]), + return FfiBolt11Payment( + opaque: dco_decode_RustOpaque_ldk_nodepaymentBolt11Payment(arr[0]), ); } @protected - LdkBolt12Payment dco_decode_ldk_bolt_12_payment(dynamic raw) { + FfiBolt12Payment dco_decode_ffi_bolt_12_payment(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return LdkBolt12Payment( - ptr: dco_decode_RustOpaque_Arcldk_nodepaymentBolt12Payment(arr[0]), + return FfiBolt12Payment( + opaque: dco_decode_RustOpaque_ldk_nodepaymentBolt12Payment(arr[0]), ); } @protected - LdkBuilderError dco_decode_ldk_builder_error(dynamic raw) { + FfiBuilderError dco_decode_ffi_builder_error(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return LdkBuilderError.values[raw as int]; + return FfiBuilderError.values[raw as int]; } @protected - LdkMnemonic dco_decode_ldk_mnemonic(dynamic raw) { + FfiMnemonic dco_decode_ffi_mnemonic(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return LdkMnemonic( + return FfiMnemonic( seedPhrase: dco_decode_String(arr[0]), ); } @protected - LdkNetworkGraph dco_decode_ldk_network_graph(dynamic raw) { + FfiNetworkGraph dco_decode_ffi_network_graph(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return LdkNetworkGraph( - ptr: dco_decode_RustOpaque_ldk_nodegraphNetworkGraph(arr[0]), + return FfiNetworkGraph( + opaque: dco_decode_RustOpaque_ldk_nodegraphNetworkGraph(arr[0]), ); } @protected - LdkNode dco_decode_ldk_node(dynamic raw) { + FfiNode dco_decode_ffi_node(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return LdkNode( - ptr: dco_decode_RustOpaque_Node(arr[0]), + return FfiNode( + opaque: dco_decode_RustOpaque_ldk_nodeNode(arr[0]), ); } @protected - LdkNodeError dco_decode_ldk_node_error(dynamic raw) { + FfiNodeError dco_decode_ffi_node_error(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs switch (raw[0]) { case 0: - return LdkNodeError_InvalidTxid(); + return FfiNodeError_InvalidTxid(); case 1: - return LdkNodeError_AlreadyRunning(); + return FfiNodeError_AlreadyRunning(); case 2: - return LdkNodeError_NotRunning(); + return FfiNodeError_NotRunning(); case 3: - return LdkNodeError_OnchainTxCreationFailed(); + return FfiNodeError_OnchainTxCreationFailed(); case 4: - return LdkNodeError_ConnectionFailed(); + return FfiNodeError_ConnectionFailed(); case 5: - return LdkNodeError_InvoiceCreationFailed(); + return FfiNodeError_InvoiceCreationFailed(); case 6: - return LdkNodeError_PaymentSendingFailed(); + return FfiNodeError_PaymentSendingFailed(); case 7: - return LdkNodeError_ProbeSendingFailed(); + return FfiNodeError_ProbeSendingFailed(); case 8: - return LdkNodeError_ChannelCreationFailed(); + return FfiNodeError_ChannelCreationFailed(); case 9: - return LdkNodeError_ChannelClosingFailed(); + return FfiNodeError_ChannelClosingFailed(); case 10: - return LdkNodeError_ChannelConfigUpdateFailed(); + return FfiNodeError_ChannelConfigUpdateFailed(); case 11: - return LdkNodeError_PersistenceFailed(); + return FfiNodeError_PersistenceFailed(); case 12: - return LdkNodeError_WalletOperationFailed(); + return FfiNodeError_WalletOperationFailed(); case 13: - return LdkNodeError_OnchainTxSigningFailed(); + return FfiNodeError_OnchainTxSigningFailed(); case 14: - return LdkNodeError_MessageSigningFailed(); + return FfiNodeError_MessageSigningFailed(); case 15: - return LdkNodeError_TxSyncFailed(); + return FfiNodeError_TxSyncFailed(); case 16: - return LdkNodeError_GossipUpdateFailed(); + return FfiNodeError_GossipUpdateFailed(); case 17: - return LdkNodeError_InvalidAddress(); + return FfiNodeError_InvalidAddress(); case 18: - return LdkNodeError_InvalidSocketAddress(); + return FfiNodeError_InvalidSocketAddress(); case 19: - return LdkNodeError_InvalidPublicKey(); + return FfiNodeError_InvalidPublicKey(); case 20: - return LdkNodeError_InvalidSecretKey(); + return FfiNodeError_InvalidSecretKey(); case 21: - return LdkNodeError_InvalidPaymentHash(); + return FfiNodeError_InvalidPaymentHash(); case 22: - return LdkNodeError_InvalidPaymentPreimage(); + return FfiNodeError_InvalidPaymentPreimage(); case 23: - return LdkNodeError_InvalidPaymentSecret(); + return FfiNodeError_InvalidPaymentSecret(); case 24: - return LdkNodeError_InvalidAmount(); + return FfiNodeError_InvalidAmount(); case 25: - return LdkNodeError_InvalidInvoice(); + return FfiNodeError_InvalidInvoice(); case 26: - return LdkNodeError_InvalidChannelId(); + return FfiNodeError_InvalidChannelId(); case 27: - return LdkNodeError_InvalidNetwork(); + return FfiNodeError_InvalidNetwork(); case 28: - return LdkNodeError_DuplicatePayment(); + return FfiNodeError_DuplicatePayment(); case 29: - return LdkNodeError_InsufficientFunds(); + return FfiNodeError_InsufficientFunds(); case 30: - return LdkNodeError_FeerateEstimationUpdateFailed(); + return FfiNodeError_FeerateEstimationUpdateFailed(); case 31: - return LdkNodeError_LiquidityRequestFailed(); + return FfiNodeError_LiquidityRequestFailed(); case 32: - return LdkNodeError_LiquiditySourceUnavailable(); + return FfiNodeError_LiquiditySourceUnavailable(); case 33: - return LdkNodeError_LiquidityFeeTooHigh(); + return FfiNodeError_LiquidityFeeTooHigh(); case 34: - return LdkNodeError_InvalidPaymentId(); + return FfiNodeError_InvalidPaymentId(); case 35: - return LdkNodeError_Decode( + return FfiNodeError_Decode( dco_decode_box_autoadd_decode_error(raw[1]), ); case 36: - return LdkNodeError_Bolt12Parse( + return FfiNodeError_Bolt12Parse( dco_decode_box_autoadd_bolt_12_parse_error(raw[1]), ); case 37: - return LdkNodeError_InvoiceRequestCreationFailed(); + return FfiNodeError_InvoiceRequestCreationFailed(); case 38: - return LdkNodeError_OfferCreationFailed(); + return FfiNodeError_OfferCreationFailed(); case 39: - return LdkNodeError_RefundCreationFailed(); + return FfiNodeError_RefundCreationFailed(); case 40: - return LdkNodeError_FeerateEstimationUpdateTimeout(); + return FfiNodeError_FeerateEstimationUpdateTimeout(); case 41: - return LdkNodeError_WalletOperationTimeout(); + return FfiNodeError_WalletOperationTimeout(); case 42: - return LdkNodeError_TxSyncTimeout(); + return FfiNodeError_TxSyncTimeout(); case 43: - return LdkNodeError_GossipUpdateTimeout(); + return FfiNodeError_GossipUpdateTimeout(); case 44: - return LdkNodeError_InvalidOfferId(); + return FfiNodeError_InvalidOfferId(); case 45: - return LdkNodeError_InvalidNodeId(); + return FfiNodeError_InvalidNodeId(); case 46: - return LdkNodeError_InvalidOffer(); + return FfiNodeError_InvalidOffer(); case 47: - return LdkNodeError_InvalidRefund(); + return FfiNodeError_InvalidRefund(); case 48: - return LdkNodeError_UnsupportedCurrency(); + return FfiNodeError_UnsupportedCurrency(); + case 49: + return FfiNodeError_UriParameterParsingFailed(); + case 50: + return FfiNodeError_InvalidUri(); + case 51: + return FfiNodeError_InvalidQuantity(); + case 52: + return FfiNodeError_InvalidNodeAlias(); default: throw Exception("unreachable"); } } @protected - LdkOnChainPayment dco_decode_ldk_on_chain_payment(dynamic raw) { + FfiOnChainPayment dco_decode_ffi_on_chain_payment(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return FfiOnChainPayment( + opaque: dco_decode_RustOpaque_ldk_nodepaymentOnchainPayment(arr[0]), + ); + } + + @protected + FfiSpontaneousPayment dco_decode_ffi_spontaneous_payment(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return LdkOnChainPayment( - ptr: dco_decode_RustOpaque_ldk_nodepaymentOnchainPayment(arr[0]), + return FfiSpontaneousPayment( + opaque: dco_decode_RustOpaque_ldk_nodepaymentSpontaneousPayment(arr[0]), ); } @protected - LdkSpontaneousPayment dco_decode_ldk_spontaneous_payment(dynamic raw) { + FfiUnifiedQrPayment dco_decode_ffi_unified_qr_payment(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; if (arr.length != 1) throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return LdkSpontaneousPayment( - ptr: dco_decode_RustOpaque_ldk_nodepaymentSpontaneousPayment(arr[0]), + return FfiUnifiedQrPayment( + opaque: dco_decode_RustOpaque_ldk_nodepaymentUnifiedQrPayment(arr[0]), ); } + @protected + GossipSourceConfig dco_decode_gossip_source_config(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + switch (raw[0]) { + case 0: + return GossipSourceConfig_P2PNetwork(); + case 1: + return GossipSourceConfig_RapidGossipSync( + dco_decode_String(raw[1]), + ); + default: + throw Exception("unreachable"); + } + } + + @protected + int dco_decode_i_32(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as int; + } + @protected LightningBalance dco_decode_lightning_balance(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3246,6 +3700,11 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { channelId: dco_decode_box_autoadd_channel_id(raw[1]), counterpartyNodeId: dco_decode_box_autoadd_public_key(raw[2]), amountSatoshis: dco_decode_u_64(raw[3]), + transactionFeeSatoshis: dco_decode_u_64(raw[4]), + outboundPaymentHtlcRoundedMsat: dco_decode_u_64(raw[5]), + outboundForwardedHtlcRoundedMsat: dco_decode_u_64(raw[6]), + inboundClaimingHtlcRoundedMsat: dco_decode_u_64(raw[7]), + inboundHtlcRoundedMsat: dco_decode_u_64(raw[8]), ); case 1: return LightningBalance_ClaimableAwaitingConfirmations( @@ -3253,6 +3712,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { counterpartyNodeId: dco_decode_box_autoadd_public_key(raw[2]), amountSatoshis: dco_decode_u_64(raw[3]), confirmationHeight: dco_decode_u_32(raw[4]), + source: dco_decode_balance_source(raw[5]), ); case 2: return LightningBalance_ContentiousClaimable( @@ -3270,6 +3730,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { amountSatoshis: dco_decode_u_64(raw[3]), claimableHeight: dco_decode_u_32(raw[4]), paymentHash: dco_decode_box_autoadd_payment_hash(raw[5]), + outboundPayment: dco_decode_bool(raw[6]), ); case 4: return LightningBalance_MaybePreimageClaimableHTLC( @@ -3364,6 +3825,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return (raw as List).map(dco_decode_public_key).toList(); } + @protected + List<(String, String)> dco_decode_list_record_string_string(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return (raw as List).map(dco_decode_record_string_string).toList(); + } + @protected List dco_decode_list_socket_address(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3405,12 +3872,38 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + MaxTotalRoutingFeeLimit dco_decode_max_total_routing_fee_limit(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + switch (raw[0]) { + case 0: + return MaxTotalRoutingFeeLimit_NoFeeCap(); + case 1: + return MaxTotalRoutingFeeLimit_FeeCap( + amountMsat: dco_decode_u_64(raw[1]), + ); + default: + throw Exception("unreachable"); + } + } + @protected Network dco_decode_network(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return Network.values[raw as int]; } + @protected + NodeAlias dco_decode_node_alias(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return NodeAlias( + field0: dco_decode_u_8_array_32(arr[0]), + ); + } + @protected NodeAnnouncementInfo dco_decode_node_announcement_info(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3452,19 +3945,22 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { NodeStatus dco_decode_node_status(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 8) - throw Exception('unexpected arr length: expect 8 but see ${arr.length}'); + if (arr.length != 9) + throw Exception('unexpected arr length: expect 9 but see ${arr.length}'); return NodeStatus( isRunning: dco_decode_bool(arr[0]), isListening: dco_decode_bool(arr[1]), currentBestBlock: dco_decode_best_block(arr[2]), - latestWalletSyncTimestamp: dco_decode_opt_box_autoadd_u_64(arr[3]), + latestLightningWalletSyncTimestamp: + dco_decode_opt_box_autoadd_u_64(arr[3]), latestOnchainWalletSyncTimestamp: dco_decode_opt_box_autoadd_u_64(arr[4]), latestFeeRateCacheUpdateTimestamp: dco_decode_opt_box_autoadd_u_64(arr[5]), latestRgsSnapshotTimestamp: dco_decode_opt_box_autoadd_u_64(arr[6]), latestNodeAnnouncementBroadcastTimestamp: dco_decode_opt_box_autoadd_u_64(arr[7]), + latestChannelMonitorArchivalHeight: + dco_decode_opt_box_autoadd_u_32(arr[8]), ); } @@ -3505,6 +4001,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { : dco_decode_box_autoadd_anchor_channels_config(raw); } + @protected + bool? dco_decode_opt_box_autoadd_bool(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_box_autoadd_bool(raw); + } + @protected ChainDataSourceConfig? dco_decode_opt_box_autoadd_chain_data_source_config( dynamic raw) { @@ -3554,6 +4056,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { : dco_decode_box_autoadd_entropy_source_config(raw); } + @protected + EsploraSyncConfig? dco_decode_opt_box_autoadd_esplora_sync_config( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_box_autoadd_esplora_sync_config(raw); + } + @protected Event? dco_decode_opt_box_autoadd_event(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3579,12 +4088,18 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - MaxDustHTLCExposure? dco_decode_opt_box_autoadd_max_dust_htlc_exposure( - dynamic raw) { + MaxTotalRoutingFeeLimit? + dco_decode_opt_box_autoadd_max_total_routing_fee_limit(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return raw == null ? null - : dco_decode_box_autoadd_max_dust_htlc_exposure(raw); + : dco_decode_box_autoadd_max_total_routing_fee_limit(raw); + } + + @protected + NodeAlias? dco_decode_opt_box_autoadd_node_alias(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_box_autoadd_node_alias(raw); } @protected @@ -3653,6 +4168,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return raw == null ? null : dco_decode_box_autoadd_public_key(raw); } + @protected + SendingParameters? dco_decode_opt_box_autoadd_sending_parameters( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_box_autoadd_sending_parameters(raw); + } + @protected int? dco_decode_opt_box_autoadd_u_16(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3671,6 +4193,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return raw == null ? null : dco_decode_box_autoadd_u_64(raw); } + @protected + int? dco_decode_opt_box_autoadd_u_8(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_box_autoadd_u_8(raw); + } + @protected List? dco_decode_opt_list_socket_address(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3769,12 +4297,16 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { preimage: dco_decode_opt_box_autoadd_payment_preimage(raw[2]), secret: dco_decode_opt_box_autoadd_payment_secret(raw[3]), offerId: dco_decode_box_autoadd_offer_id(raw[4]), + payerNote: dco_decode_opt_String(raw[5]), + quantity: dco_decode_opt_box_autoadd_u_64(raw[6]), ); case 5: return PaymentKind_Bolt12Refund( hash: dco_decode_opt_box_autoadd_payment_hash(raw[1]), preimage: dco_decode_opt_box_autoadd_payment_preimage(raw[2]), secret: dco_decode_opt_box_autoadd_payment_secret(raw[3]), + payerNote: dco_decode_opt_String(raw[4]), + quantity: dco_decode_opt_box_autoadd_u_64(raw[5]), ); default: throw Exception("unreachable"); @@ -3862,6 +4394,27 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); } + @protected + QrPaymentResult dco_decode_qr_payment_result(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + switch (raw[0]) { + case 0: + return QrPaymentResult_Onchain( + txid: dco_decode_box_autoadd_txid(raw[1]), + ); + case 1: + return QrPaymentResult_Bolt11( + paymentId: dco_decode_box_autoadd_payment_id(raw[1]), + ); + case 2: + return QrPaymentResult_Bolt12( + paymentId: dco_decode_box_autoadd_payment_id(raw[1]), + ); + default: + throw Exception("unreachable"); + } + } + @protected (SocketAddress, PublicKey, String?) dco_decode_record_socket_address_public_key_opt_string(dynamic raw) { @@ -3877,6 +4430,19 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); } + @protected + (String, String) dco_decode_record_string_string(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) { + throw Exception('Expected 2 elements, got ${arr.length}'); + } + return ( + dco_decode_String(arr[0]), + dco_decode_String(arr[1]), + ); + } + @protected Refund dco_decode_refund(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3900,6 +4466,21 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); } + @protected + SendingParameters dco_decode_sending_parameters(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 4) + throw Exception('unexpected arr length: expect 4 but see ${arr.length}'); + return SendingParameters( + maxTotalRoutingFeeMsat: + dco_decode_opt_box_autoadd_max_total_routing_fee_limit(arr[0]), + maxTotalCltvExpiryDelta: dco_decode_opt_box_autoadd_u_32(arr[1]), + maxPathCount: dco_decode_opt_box_autoadd_u_8(arr[2]), + maxChannelSaturationPowerOfHalf: dco_decode_opt_box_autoadd_u_8(arr[3]), + ); + } + @protected SocketAddress dco_decode_socket_address(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -4024,60 +4605,60 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - NodeBuilder - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return NodeBuilderImpl.frbInternalSseDecode( + return FfiBuilderImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - NodeBuilder - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return NodeBuilderImpl.frbInternalSseDecode( + return FfiBuilderImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - NodeBuilder - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return NodeBuilderImpl.frbInternalSseDecode( + return FfiBuilderImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcBolt12Payment sse_decode_RustOpaque_Arcldk_nodepaymentBolt12Payment( + Map sse_decode_Map_String_String( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcBolt12PaymentImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + var inner = sse_decode_list_record_string_string(deserializer); + return Map.fromEntries(inner.map((e) => MapEntry(e.$1, e.$2))); } @protected - Node sse_decode_RustOpaque_Node(SseDeserializer deserializer) { + FfiBuilder + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return NodeImpl.frbInternalSseDecode( + return FfiBuilderImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - NodeBuilder - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - SseDeserializer deserializer) { + Builder sse_decode_RustOpaque_ldk_nodeBuilder(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return NodeBuilderImpl.frbInternalSseDecode( + return BuilderImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - Builder sse_decode_RustOpaque_ldk_nodeBuilder(SseDeserializer deserializer) { + Node sse_decode_RustOpaque_ldk_nodeNode(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return BuilderImpl.frbInternalSseDecode( + return NodeImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @@ -4097,6 +4678,14 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + Bolt12Payment sse_decode_RustOpaque_ldk_nodepaymentBolt12Payment( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return Bolt12PaymentImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected OnchainPayment sse_decode_RustOpaque_ldk_nodepaymentOnchainPayment( SseDeserializer deserializer) { @@ -4113,6 +4702,14 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + UnifiedQrPayment sse_decode_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return UnifiedQrPaymentImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected String sse_decode_String(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -4156,6 +4753,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var_pendingBalancesFromChannelClosures); } + @protected + BalanceSource sse_decode_balance_source(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = sse_decode_i_32(deserializer); + return BalanceSource.values[inner]; + } + @protected BestBlock sse_decode_best_block(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -4239,6 +4843,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return (sse_decode_bolt_12_parse_error(deserializer)); } + @protected + bool sse_decode_box_autoadd_bool(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_bool(deserializer)); + } + @protected ChainDataSourceConfig sse_decode_box_autoadd_chain_data_source_config( SseDeserializer deserializer) { @@ -4300,6 +4910,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return (sse_decode_entropy_source_config(deserializer)); } + @protected + EsploraSyncConfig sse_decode_box_autoadd_esplora_sync_config( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_esplora_sync_config(deserializer)); + } + @protected Event sse_decode_box_autoadd_event(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -4307,58 +4924,65 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - GossipSourceConfig sse_decode_box_autoadd_gossip_source_config( + FfiBolt11Payment sse_decode_box_autoadd_ffi_bolt_11_payment( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_gossip_source_config(deserializer)); + return (sse_decode_ffi_bolt_11_payment(deserializer)); } @protected - LdkBolt11Payment sse_decode_box_autoadd_ldk_bolt_11_payment( + FfiBolt12Payment sse_decode_box_autoadd_ffi_bolt_12_payment( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_ldk_bolt_11_payment(deserializer)); + return (sse_decode_ffi_bolt_12_payment(deserializer)); } @protected - LdkBolt12Payment sse_decode_box_autoadd_ldk_bolt_12_payment( + FfiMnemonic sse_decode_box_autoadd_ffi_mnemonic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_ldk_bolt_12_payment(deserializer)); + return (sse_decode_ffi_mnemonic(deserializer)); } @protected - LdkMnemonic sse_decode_box_autoadd_ldk_mnemonic( + FfiNetworkGraph sse_decode_box_autoadd_ffi_network_graph( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_ldk_mnemonic(deserializer)); + return (sse_decode_ffi_network_graph(deserializer)); + } + + @protected + FfiNode sse_decode_box_autoadd_ffi_node(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_ffi_node(deserializer)); } @protected - LdkNetworkGraph sse_decode_box_autoadd_ldk_network_graph( + FfiOnChainPayment sse_decode_box_autoadd_ffi_on_chain_payment( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_ldk_network_graph(deserializer)); + return (sse_decode_ffi_on_chain_payment(deserializer)); } @protected - LdkNode sse_decode_box_autoadd_ldk_node(SseDeserializer deserializer) { + FfiSpontaneousPayment sse_decode_box_autoadd_ffi_spontaneous_payment( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_ldk_node(deserializer)); + return (sse_decode_ffi_spontaneous_payment(deserializer)); } @protected - LdkOnChainPayment sse_decode_box_autoadd_ldk_on_chain_payment( + FfiUnifiedQrPayment sse_decode_box_autoadd_ffi_unified_qr_payment( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_ldk_on_chain_payment(deserializer)); + return (sse_decode_ffi_unified_qr_payment(deserializer)); } @protected - LdkSpontaneousPayment sse_decode_box_autoadd_ldk_spontaneous_payment( + GossipSourceConfig sse_decode_box_autoadd_gossip_source_config( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_ldk_spontaneous_payment(deserializer)); + return (sse_decode_gossip_source_config(deserializer)); } @protected @@ -4376,10 +5000,16 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - MaxDustHTLCExposure sse_decode_box_autoadd_max_dust_htlc_exposure( + MaxTotalRoutingFeeLimit sse_decode_box_autoadd_max_total_routing_fee_limit( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_max_dust_htlc_exposure(deserializer)); + return (sse_decode_max_total_routing_fee_limit(deserializer)); + } + + @protected + NodeAlias sse_decode_box_autoadd_node_alias(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_node_alias(deserializer)); } @protected @@ -4472,6 +5102,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return (sse_decode_refund(deserializer)); } + @protected + SendingParameters sse_decode_box_autoadd_sending_parameters( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_sending_parameters(deserializer)); + } + @protected SocketAddress sse_decode_box_autoadd_socket_address( SseDeserializer deserializer) { @@ -4503,6 +5140,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return (sse_decode_u_64(deserializer)); } + @protected + int sse_decode_box_autoadd_u_8(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_u_8(deserializer)); + } + @protected UserChannelId sse_decode_box_autoadd_user_channel_id( SseDeserializer deserializer) { @@ -4518,8 +5161,21 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var tag_ = sse_decode_i_32(deserializer); switch (tag_) { case 0: - var var_field0 = sse_decode_String(deserializer); - return ChainDataSourceConfig_Esplora(var_field0); + var var_serverUrl = sse_decode_String(deserializer); + var var_syncConfig = + sse_decode_opt_box_autoadd_esplora_sync_config(deserializer); + return ChainDataSourceConfig_Esplora( + serverUrl: var_serverUrl, syncConfig: var_syncConfig); + case 1: + var var_rpcHost = sse_decode_String(deserializer); + var var_rpcPort = sse_decode_u_16(deserializer); + var var_rpcUser = sse_decode_String(deserializer); + var var_rpcPassword = sse_decode_String(deserializer); + return ChainDataSourceConfig_BitcoindRpc( + rpcHost: var_rpcHost, + rpcPort: var_rpcPort, + rpcUser: var_rpcUser, + rpcPassword: var_rpcPassword); default: throw UnimplementedError(''); } @@ -4532,7 +5188,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var var_forwardingFeeBaseMsat = sse_decode_u_32(deserializer); var var_cltvExpiryDelta = sse_decode_u_16(deserializer); var var_maxDustHtlcExposure = - sse_decode_opt_box_autoadd_max_dust_htlc_exposure(deserializer); + sse_decode_max_dust_htlc_exposure(deserializer); var var_forceCloseAvoidanceMaxFeeSatoshis = sse_decode_u_64(deserializer); var var_acceptUnderpayingHtlcs = sse_decode_bool(deserializer); return ChannelConfig( @@ -4565,7 +5221,6 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var var_isOutbound = sse_decode_bool(deserializer); var var_isChannelReady = sse_decode_bool(deserializer); var var_isUsable = sse_decode_bool(deserializer); - var var_isPublic = sse_decode_bool(deserializer); var var_cltvExpiryDelta = sse_decode_opt_box_autoadd_u_16(deserializer); var var_counterpartyUnspendablePunishmentReserve = sse_decode_u_64(deserializer); @@ -4602,7 +5257,6 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { isOutbound: var_isOutbound, isChannelReady: var_isChannelReady, isUsable: var_isUsable, - isPublic: var_isPublic, cltvExpiryDelta: var_cltvExpiryDelta, counterpartyUnspendablePunishmentReserve: var_counterpartyUnspendablePunishmentReserve, @@ -4675,32 +5329,41 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var tag_ = sse_decode_i_32(deserializer); switch (tag_) { case 0: + var var_peerFeerateSatPerKw = sse_decode_u_32(deserializer); + var var_requiredFeerateSatPerKw = sse_decode_u_32(deserializer); + return ClosureReason_PeerFeerateTooLow( + peerFeerateSatPerKw: var_peerFeerateSatPerKw, + requiredFeerateSatPerKw: var_requiredFeerateSatPerKw); + case 1: var var_peerMsg = sse_decode_String(deserializer); return ClosureReason_CounterpartyForceClosed(peerMsg: var_peerMsg); - case 1: - return ClosureReason_HolderForceClosed(); case 2: - return ClosureReason_LegacyCooperativeClosure(); + var var_broadcastedLatestTxn = + sse_decode_opt_box_autoadd_bool(deserializer); + return ClosureReason_HolderForceClosed( + broadcastedLatestTxn: var_broadcastedLatestTxn); case 3: - return ClosureReason_CounterpartyInitiatedCooperativeClosure(); + return ClosureReason_LegacyCooperativeClosure(); case 4: - return ClosureReason_LocallyInitiatedCooperativeClosure(); + return ClosureReason_CounterpartyInitiatedCooperativeClosure(); case 5: - return ClosureReason_CommitmentTxConfirmed(); + return ClosureReason_LocallyInitiatedCooperativeClosure(); case 6: - return ClosureReason_FundingTimedOut(); + return ClosureReason_CommitmentTxConfirmed(); case 7: + return ClosureReason_FundingTimedOut(); + case 8: var var_err = sse_decode_String(deserializer); return ClosureReason_ProcessingError(err: var_err); - case 8: - return ClosureReason_DisconnectedPeer(); case 9: - return ClosureReason_OutdatedChannelManager(); + return ClosureReason_DisconnectedPeer(); case 10: - return ClosureReason_CounterpartyCoopClosedUnfundedChannel(); + return ClosureReason_OutdatedChannelManager(); case 11: - return ClosureReason_FundingBatchClosure(); + return ClosureReason_CounterpartyCoopClosedUnfundedChannel(); case 12: + return ClosureReason_FundingBatchClosure(); + case 13: return ClosureReason_HTLCsTimedOut(); default: throw UnimplementedError(''); @@ -4715,28 +5378,25 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var var_network = sse_decode_network(deserializer); var var_listeningAddresses = sse_decode_opt_list_socket_address(deserializer); - var var_defaultCltvExpiryDelta = sse_decode_u_32(deserializer); - var var_onchainWalletSyncIntervalSecs = sse_decode_u_64(deserializer); - var var_walletSyncIntervalSecs = sse_decode_u_64(deserializer); - var var_feeRateCacheUpdateIntervalSecs = sse_decode_u_64(deserializer); + var var_nodeAlias = sse_decode_opt_box_autoadd_node_alias(deserializer); var var_trustedPeers0Conf = sse_decode_list_public_key(deserializer); var var_probingLiquidityLimitMultiplier = sse_decode_u_64(deserializer); var var_logLevel = sse_decode_log_level(deserializer); var var_anchorChannelsConfig = sse_decode_opt_box_autoadd_anchor_channels_config(deserializer); + var var_sendingParameters = + sse_decode_opt_box_autoadd_sending_parameters(deserializer); return Config( storageDirPath: var_storageDirPath, logDirPath: var_logDirPath, network: var_network, listeningAddresses: var_listeningAddresses, - defaultCltvExpiryDelta: var_defaultCltvExpiryDelta, - onchainWalletSyncIntervalSecs: var_onchainWalletSyncIntervalSecs, - walletSyncIntervalSecs: var_walletSyncIntervalSecs, - feeRateCacheUpdateIntervalSecs: var_feeRateCacheUpdateIntervalSecs, + nodeAlias: var_nodeAlias, trustedPeers0Conf: var_trustedPeers0Conf, probingLiquidityLimitMultiplier: var_probingLiquidityLimitMultiplier, logLevel: var_logLevel, - anchorChannelsConfig: var_anchorChannelsConfig); + anchorChannelsConfig: var_anchorChannelsConfig, + sendingParameters: var_sendingParameters); } @protected @@ -4781,7 +5441,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var var_field0 = sse_decode_u_8_array_64(deserializer); return EntropySourceConfig_SeedBytes(var_field0); case 2: - var var_mnemonic = sse_decode_box_autoadd_ldk_mnemonic(deserializer); + var var_mnemonic = sse_decode_box_autoadd_ffi_mnemonic(deserializer); var var_passphrase = sse_decode_opt_String(deserializer); return EntropySourceConfig_Bip39Mnemonic( mnemonic: var_mnemonic, passphrase: var_passphrase); @@ -4790,6 +5450,19 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + EsploraSyncConfig sse_decode_esplora_sync_config( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_onchainWalletSyncIntervalSecs = sse_decode_u_64(deserializer); + var var_lightningWalletSyncIntervalSecs = sse_decode_u_64(deserializer); + var var_feeRateCacheUpdateIntervalSecs = sse_decode_u_64(deserializer); + return EsploraSyncConfig( + onchainWalletSyncIntervalSecs: var_onchainWalletSyncIntervalSecs, + lightningWalletSyncIntervalSecs: var_lightningWalletSyncIntervalSecs, + feeRateCacheUpdateIntervalSecs: var_feeRateCacheUpdateIntervalSecs); + } + @protected Event sse_decode_event(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -4816,7 +5489,8 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { feePaidMsat: var_feePaidMsat); case 2: var var_paymentId = sse_decode_opt_box_autoadd_payment_id(deserializer); - var var_paymentHash = sse_decode_box_autoadd_payment_hash(deserializer); + var var_paymentHash = + sse_decode_opt_box_autoadd_payment_hash(deserializer); var var_reason = sse_decode_opt_box_autoadd_payment_failure_reason(deserializer); return Event_PaymentFailed( @@ -4875,202 +5549,220 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - GossipSourceConfig sse_decode_gossip_source_config( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - - var tag_ = sse_decode_i_32(deserializer); - switch (tag_) { - case 0: - return GossipSourceConfig_P2PNetwork(); - case 1: - var var_field0 = sse_decode_String(deserializer); - return GossipSourceConfig_RapidGossipSync(var_field0); - default: - throw UnimplementedError(''); - } - } - - @protected - int sse_decode_i_32(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getInt32(); - } - - @protected - LdkBolt11Payment sse_decode_ldk_bolt_11_payment( + FfiBolt11Payment sse_decode_ffi_bolt_11_payment( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = + var var_opaque = sse_decode_RustOpaque_ldk_nodepaymentBolt11Payment(deserializer); - return LdkBolt11Payment(ptr: var_ptr); + return FfiBolt11Payment(opaque: var_opaque); } @protected - LdkBolt12Payment sse_decode_ldk_bolt_12_payment( + FfiBolt12Payment sse_decode_ffi_bolt_12_payment( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = - sse_decode_RustOpaque_Arcldk_nodepaymentBolt12Payment(deserializer); - return LdkBolt12Payment(ptr: var_ptr); + var var_opaque = + sse_decode_RustOpaque_ldk_nodepaymentBolt12Payment(deserializer); + return FfiBolt12Payment(opaque: var_opaque); } @protected - LdkBuilderError sse_decode_ldk_builder_error(SseDeserializer deserializer) { + FfiBuilderError sse_decode_ffi_builder_error(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var inner = sse_decode_i_32(deserializer); - return LdkBuilderError.values[inner]; + return FfiBuilderError.values[inner]; } @protected - LdkMnemonic sse_decode_ldk_mnemonic(SseDeserializer deserializer) { + FfiMnemonic sse_decode_ffi_mnemonic(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_seedPhrase = sse_decode_String(deserializer); - return LdkMnemonic(seedPhrase: var_seedPhrase); + return FfiMnemonic(seedPhrase: var_seedPhrase); } @protected - LdkNetworkGraph sse_decode_ldk_network_graph(SseDeserializer deserializer) { + FfiNetworkGraph sse_decode_ffi_network_graph(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_ldk_nodegraphNetworkGraph(deserializer); - return LdkNetworkGraph(ptr: var_ptr); + var var_opaque = + sse_decode_RustOpaque_ldk_nodegraphNetworkGraph(deserializer); + return FfiNetworkGraph(opaque: var_opaque); } @protected - LdkNode sse_decode_ldk_node(SseDeserializer deserializer) { + FfiNode sse_decode_ffi_node(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = sse_decode_RustOpaque_Node(deserializer); - return LdkNode(ptr: var_ptr); + var var_opaque = sse_decode_RustOpaque_ldk_nodeNode(deserializer); + return FfiNode(opaque: var_opaque); } @protected - LdkNodeError sse_decode_ldk_node_error(SseDeserializer deserializer) { + FfiNodeError sse_decode_ffi_node_error(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var tag_ = sse_decode_i_32(deserializer); switch (tag_) { case 0: - return LdkNodeError_InvalidTxid(); + return FfiNodeError_InvalidTxid(); case 1: - return LdkNodeError_AlreadyRunning(); + return FfiNodeError_AlreadyRunning(); case 2: - return LdkNodeError_NotRunning(); + return FfiNodeError_NotRunning(); case 3: - return LdkNodeError_OnchainTxCreationFailed(); + return FfiNodeError_OnchainTxCreationFailed(); case 4: - return LdkNodeError_ConnectionFailed(); + return FfiNodeError_ConnectionFailed(); case 5: - return LdkNodeError_InvoiceCreationFailed(); + return FfiNodeError_InvoiceCreationFailed(); case 6: - return LdkNodeError_PaymentSendingFailed(); + return FfiNodeError_PaymentSendingFailed(); case 7: - return LdkNodeError_ProbeSendingFailed(); + return FfiNodeError_ProbeSendingFailed(); case 8: - return LdkNodeError_ChannelCreationFailed(); + return FfiNodeError_ChannelCreationFailed(); case 9: - return LdkNodeError_ChannelClosingFailed(); + return FfiNodeError_ChannelClosingFailed(); case 10: - return LdkNodeError_ChannelConfigUpdateFailed(); + return FfiNodeError_ChannelConfigUpdateFailed(); case 11: - return LdkNodeError_PersistenceFailed(); + return FfiNodeError_PersistenceFailed(); case 12: - return LdkNodeError_WalletOperationFailed(); + return FfiNodeError_WalletOperationFailed(); case 13: - return LdkNodeError_OnchainTxSigningFailed(); + return FfiNodeError_OnchainTxSigningFailed(); case 14: - return LdkNodeError_MessageSigningFailed(); + return FfiNodeError_MessageSigningFailed(); case 15: - return LdkNodeError_TxSyncFailed(); + return FfiNodeError_TxSyncFailed(); case 16: - return LdkNodeError_GossipUpdateFailed(); + return FfiNodeError_GossipUpdateFailed(); case 17: - return LdkNodeError_InvalidAddress(); + return FfiNodeError_InvalidAddress(); case 18: - return LdkNodeError_InvalidSocketAddress(); + return FfiNodeError_InvalidSocketAddress(); case 19: - return LdkNodeError_InvalidPublicKey(); + return FfiNodeError_InvalidPublicKey(); case 20: - return LdkNodeError_InvalidSecretKey(); + return FfiNodeError_InvalidSecretKey(); case 21: - return LdkNodeError_InvalidPaymentHash(); + return FfiNodeError_InvalidPaymentHash(); case 22: - return LdkNodeError_InvalidPaymentPreimage(); + return FfiNodeError_InvalidPaymentPreimage(); case 23: - return LdkNodeError_InvalidPaymentSecret(); + return FfiNodeError_InvalidPaymentSecret(); case 24: - return LdkNodeError_InvalidAmount(); + return FfiNodeError_InvalidAmount(); case 25: - return LdkNodeError_InvalidInvoice(); + return FfiNodeError_InvalidInvoice(); case 26: - return LdkNodeError_InvalidChannelId(); + return FfiNodeError_InvalidChannelId(); case 27: - return LdkNodeError_InvalidNetwork(); + return FfiNodeError_InvalidNetwork(); case 28: - return LdkNodeError_DuplicatePayment(); + return FfiNodeError_DuplicatePayment(); case 29: - return LdkNodeError_InsufficientFunds(); + return FfiNodeError_InsufficientFunds(); case 30: - return LdkNodeError_FeerateEstimationUpdateFailed(); + return FfiNodeError_FeerateEstimationUpdateFailed(); case 31: - return LdkNodeError_LiquidityRequestFailed(); + return FfiNodeError_LiquidityRequestFailed(); case 32: - return LdkNodeError_LiquiditySourceUnavailable(); + return FfiNodeError_LiquiditySourceUnavailable(); case 33: - return LdkNodeError_LiquidityFeeTooHigh(); + return FfiNodeError_LiquidityFeeTooHigh(); case 34: - return LdkNodeError_InvalidPaymentId(); + return FfiNodeError_InvalidPaymentId(); case 35: var var_field0 = sse_decode_box_autoadd_decode_error(deserializer); - return LdkNodeError_Decode(var_field0); + return FfiNodeError_Decode(var_field0); case 36: var var_field0 = sse_decode_box_autoadd_bolt_12_parse_error(deserializer); - return LdkNodeError_Bolt12Parse(var_field0); + return FfiNodeError_Bolt12Parse(var_field0); case 37: - return LdkNodeError_InvoiceRequestCreationFailed(); + return FfiNodeError_InvoiceRequestCreationFailed(); case 38: - return LdkNodeError_OfferCreationFailed(); + return FfiNodeError_OfferCreationFailed(); case 39: - return LdkNodeError_RefundCreationFailed(); + return FfiNodeError_RefundCreationFailed(); case 40: - return LdkNodeError_FeerateEstimationUpdateTimeout(); + return FfiNodeError_FeerateEstimationUpdateTimeout(); case 41: - return LdkNodeError_WalletOperationTimeout(); + return FfiNodeError_WalletOperationTimeout(); case 42: - return LdkNodeError_TxSyncTimeout(); + return FfiNodeError_TxSyncTimeout(); case 43: - return LdkNodeError_GossipUpdateTimeout(); + return FfiNodeError_GossipUpdateTimeout(); case 44: - return LdkNodeError_InvalidOfferId(); + return FfiNodeError_InvalidOfferId(); case 45: - return LdkNodeError_InvalidNodeId(); + return FfiNodeError_InvalidNodeId(); case 46: - return LdkNodeError_InvalidOffer(); + return FfiNodeError_InvalidOffer(); case 47: - return LdkNodeError_InvalidRefund(); + return FfiNodeError_InvalidRefund(); case 48: - return LdkNodeError_UnsupportedCurrency(); + return FfiNodeError_UnsupportedCurrency(); + case 49: + return FfiNodeError_UriParameterParsingFailed(); + case 50: + return FfiNodeError_InvalidUri(); + case 51: + return FfiNodeError_InvalidQuantity(); + case 52: + return FfiNodeError_InvalidNodeAlias(); default: throw UnimplementedError(''); } } @protected - LdkOnChainPayment sse_decode_ldk_on_chain_payment( + FfiOnChainPayment sse_decode_ffi_on_chain_payment( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = + var var_opaque = sse_decode_RustOpaque_ldk_nodepaymentOnchainPayment(deserializer); - return LdkOnChainPayment(ptr: var_ptr); + return FfiOnChainPayment(opaque: var_opaque); } @protected - LdkSpontaneousPayment sse_decode_ldk_spontaneous_payment( + FfiSpontaneousPayment sse_decode_ffi_spontaneous_payment( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_ptr = + var var_opaque = sse_decode_RustOpaque_ldk_nodepaymentSpontaneousPayment(deserializer); - return LdkSpontaneousPayment(ptr: var_ptr); + return FfiSpontaneousPayment(opaque: var_opaque); + } + + @protected + FfiUnifiedQrPayment sse_decode_ffi_unified_qr_payment( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_opaque = + sse_decode_RustOpaque_ldk_nodepaymentUnifiedQrPayment(deserializer); + return FfiUnifiedQrPayment(opaque: var_opaque); + } + + @protected + GossipSourceConfig sse_decode_gossip_source_config( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + var tag_ = sse_decode_i_32(deserializer); + switch (tag_) { + case 0: + return GossipSourceConfig_P2PNetwork(); + case 1: + var var_field0 = sse_decode_String(deserializer); + return GossipSourceConfig_RapidGossipSync(var_field0); + default: + throw UnimplementedError(''); + } + } + + @protected + int sse_decode_i_32(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getInt32(); } @protected @@ -5084,21 +5776,35 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var var_counterpartyNodeId = sse_decode_box_autoadd_public_key(deserializer); var var_amountSatoshis = sse_decode_u_64(deserializer); + var var_transactionFeeSatoshis = sse_decode_u_64(deserializer); + var var_outboundPaymentHtlcRoundedMsat = sse_decode_u_64(deserializer); + var var_outboundForwardedHtlcRoundedMsat = + sse_decode_u_64(deserializer); + var var_inboundClaimingHtlcRoundedMsat = sse_decode_u_64(deserializer); + var var_inboundHtlcRoundedMsat = sse_decode_u_64(deserializer); return LightningBalance_ClaimableOnChannelClose( channelId: var_channelId, counterpartyNodeId: var_counterpartyNodeId, - amountSatoshis: var_amountSatoshis); + amountSatoshis: var_amountSatoshis, + transactionFeeSatoshis: var_transactionFeeSatoshis, + outboundPaymentHtlcRoundedMsat: var_outboundPaymentHtlcRoundedMsat, + outboundForwardedHtlcRoundedMsat: + var_outboundForwardedHtlcRoundedMsat, + inboundClaimingHtlcRoundedMsat: var_inboundClaimingHtlcRoundedMsat, + inboundHtlcRoundedMsat: var_inboundHtlcRoundedMsat); case 1: var var_channelId = sse_decode_box_autoadd_channel_id(deserializer); var var_counterpartyNodeId = sse_decode_box_autoadd_public_key(deserializer); var var_amountSatoshis = sse_decode_u_64(deserializer); var var_confirmationHeight = sse_decode_u_32(deserializer); + var var_source = sse_decode_balance_source(deserializer); return LightningBalance_ClaimableAwaitingConfirmations( channelId: var_channelId, counterpartyNodeId: var_counterpartyNodeId, amountSatoshis: var_amountSatoshis, - confirmationHeight: var_confirmationHeight); + confirmationHeight: var_confirmationHeight, + source: var_source); case 2: var var_channelId = sse_decode_box_autoadd_channel_id(deserializer); var var_counterpartyNodeId = @@ -5122,12 +5828,14 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var var_amountSatoshis = sse_decode_u_64(deserializer); var var_claimableHeight = sse_decode_u_32(deserializer); var var_paymentHash = sse_decode_box_autoadd_payment_hash(deserializer); + var var_outboundPayment = sse_decode_bool(deserializer); return LightningBalance_MaybeTimeoutClaimableHTLC( channelId: var_channelId, counterpartyNodeId: var_counterpartyNodeId, amountSatoshis: var_amountSatoshis, claimableHeight: var_claimableHeight, - paymentHash: var_paymentHash); + paymentHash: var_paymentHash, + outboundPayment: var_outboundPayment); case 4: var var_channelId = sse_decode_box_autoadd_channel_id(deserializer); var var_counterpartyNodeId = @@ -5273,6 +5981,19 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return ans_; } + @protected + List<(String, String)> sse_decode_list_record_string_string( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + var len_ = sse_decode_i_32(deserializer); + var ans_ = <(String, String)>[]; + for (var idx_ = 0; idx_ < len_; ++idx_) { + ans_.add(sse_decode_record_string_string(deserializer)); + } + return ans_; + } + @protected List sse_decode_list_socket_address( SseDeserializer deserializer) { @@ -5323,6 +6044,23 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + MaxTotalRoutingFeeLimit sse_decode_max_total_routing_fee_limit( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + var tag_ = sse_decode_i_32(deserializer); + switch (tag_) { + case 0: + return MaxTotalRoutingFeeLimit_NoFeeCap(); + case 1: + var var_amountMsat = sse_decode_u_64(deserializer); + return MaxTotalRoutingFeeLimit_FeeCap(amountMsat: var_amountMsat); + default: + throw UnimplementedError(''); + } + } + @protected Network sse_decode_network(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5330,6 +6068,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return Network.values[inner]; } + @protected + NodeAlias sse_decode_node_alias(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = sse_decode_u_8_array_32(deserializer); + return NodeAlias(field0: var_field0); + } + @protected NodeAnnouncementInfo sse_decode_node_announcement_info( SseDeserializer deserializer) { @@ -5364,7 +6109,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var var_isRunning = sse_decode_bool(deserializer); var var_isListening = sse_decode_bool(deserializer); var var_currentBestBlock = sse_decode_best_block(deserializer); - var var_latestWalletSyncTimestamp = + var var_latestLightningWalletSyncTimestamp = sse_decode_opt_box_autoadd_u_64(deserializer); var var_latestOnchainWalletSyncTimestamp = sse_decode_opt_box_autoadd_u_64(deserializer); @@ -5374,17 +6119,22 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_decode_opt_box_autoadd_u_64(deserializer); var var_latestNodeAnnouncementBroadcastTimestamp = sse_decode_opt_box_autoadd_u_64(deserializer); + var var_latestChannelMonitorArchivalHeight = + sse_decode_opt_box_autoadd_u_32(deserializer); return NodeStatus( isRunning: var_isRunning, isListening: var_isListening, currentBestBlock: var_currentBestBlock, - latestWalletSyncTimestamp: var_latestWalletSyncTimestamp, + latestLightningWalletSyncTimestamp: + var_latestLightningWalletSyncTimestamp, latestOnchainWalletSyncTimestamp: var_latestOnchainWalletSyncTimestamp, latestFeeRateCacheUpdateTimestamp: var_latestFeeRateCacheUpdateTimestamp, latestRgsSnapshotTimestamp: var_latestRgsSnapshotTimestamp, latestNodeAnnouncementBroadcastTimestamp: - var_latestNodeAnnouncementBroadcastTimestamp); + var_latestNodeAnnouncementBroadcastTimestamp, + latestChannelMonitorArchivalHeight: + var_latestChannelMonitorArchivalHeight); } @protected @@ -5424,6 +6174,17 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + bool? sse_decode_opt_box_autoadd_bool(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + if (sse_decode_bool(deserializer)) { + return (sse_decode_box_autoadd_bool(deserializer)); + } else { + return null; + } + } + @protected ChainDataSourceConfig? sse_decode_opt_box_autoadd_chain_data_source_config( SseDeserializer deserializer) { @@ -5508,6 +6269,18 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + EsploraSyncConfig? sse_decode_opt_box_autoadd_esplora_sync_config( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + if (sse_decode_bool(deserializer)) { + return (sse_decode_box_autoadd_esplora_sync_config(deserializer)); + } else { + return null; + } + } + @protected Event? sse_decode_opt_box_autoadd_event(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5544,12 +6317,25 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - MaxDustHTLCExposure? sse_decode_opt_box_autoadd_max_dust_htlc_exposure( + MaxTotalRoutingFeeLimit? + sse_decode_opt_box_autoadd_max_total_routing_fee_limit( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + if (sse_decode_bool(deserializer)) { + return (sse_decode_box_autoadd_max_total_routing_fee_limit(deserializer)); + } else { + return null; + } + } + + @protected + NodeAlias? sse_decode_opt_box_autoadd_node_alias( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_max_dust_htlc_exposure(deserializer)); + return (sse_decode_box_autoadd_node_alias(deserializer)); } else { return null; } @@ -5673,6 +6459,18 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + SendingParameters? sse_decode_opt_box_autoadd_sending_parameters( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + if (sse_decode_bool(deserializer)) { + return (sse_decode_box_autoadd_sending_parameters(deserializer)); + } else { + return null; + } + } + @protected int? sse_decode_opt_box_autoadd_u_16(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5706,6 +6504,17 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + int? sse_decode_opt_box_autoadd_u_8(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + if (sse_decode_bool(deserializer)) { + return (sse_decode_box_autoadd_u_8(deserializer)); + } else { + return null; + } + } + @protected List? sse_decode_opt_list_socket_address( SseDeserializer deserializer) { @@ -5814,19 +6623,29 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var var_secret = sse_decode_opt_box_autoadd_payment_secret(deserializer); var var_offerId = sse_decode_box_autoadd_offer_id(deserializer); + var var_payerNote = sse_decode_opt_String(deserializer); + var var_quantity = sse_decode_opt_box_autoadd_u_64(deserializer); return PaymentKind_Bolt12Offer( hash: var_hash, preimage: var_preimage, secret: var_secret, - offerId: var_offerId); + offerId: var_offerId, + payerNote: var_payerNote, + quantity: var_quantity); case 5: var var_hash = sse_decode_opt_box_autoadd_payment_hash(deserializer); var var_preimage = sse_decode_opt_box_autoadd_payment_preimage(deserializer); var var_secret = sse_decode_opt_box_autoadd_payment_secret(deserializer); + var var_payerNote = sse_decode_opt_String(deserializer); + var var_quantity = sse_decode_opt_box_autoadd_u_64(deserializer); return PaymentKind_Bolt12Refund( - hash: var_hash, preimage: var_preimage, secret: var_secret); + hash: var_hash, + preimage: var_preimage, + secret: var_secret, + payerNote: var_payerNote, + quantity: var_quantity); default: throw UnimplementedError(''); } @@ -5909,6 +6728,26 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return PublicKey(hex: var_hex); } + @protected + QrPaymentResult sse_decode_qr_payment_result(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + var tag_ = sse_decode_i_32(deserializer); + switch (tag_) { + case 0: + var var_txid = sse_decode_box_autoadd_txid(deserializer); + return QrPaymentResult_Onchain(txid: var_txid); + case 1: + var var_paymentId = sse_decode_box_autoadd_payment_id(deserializer); + return QrPaymentResult_Bolt11(paymentId: var_paymentId); + case 2: + var var_paymentId = sse_decode_box_autoadd_payment_id(deserializer); + return QrPaymentResult_Bolt12(paymentId: var_paymentId); + default: + throw UnimplementedError(''); + } + } + @protected (SocketAddress, PublicKey, String?) sse_decode_record_socket_address_public_key_opt_string( @@ -5920,6 +6759,15 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { return (var_field0, var_field1, var_field2); } + @protected + (String, String) sse_decode_record_string_string( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = sse_decode_String(deserializer); + var var_field1 = sse_decode_String(deserializer); + return (var_field0, var_field1); + } + @protected Refund sse_decode_refund(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -5937,6 +6785,24 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { proportionalMillionths: var_proportionalMillionths); } + @protected + SendingParameters sse_decode_sending_parameters( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_maxTotalRoutingFeeMsat = + sse_decode_opt_box_autoadd_max_total_routing_fee_limit(deserializer); + var var_maxTotalCltvExpiryDelta = + sse_decode_opt_box_autoadd_u_32(deserializer); + var var_maxPathCount = sse_decode_opt_box_autoadd_u_8(deserializer); + var var_maxChannelSaturationPowerOfHalf = + sse_decode_opt_box_autoadd_u_8(deserializer); + return SendingParameters( + maxTotalRoutingFeeMsat: var_maxTotalRoutingFeeMsat, + maxTotalCltvExpiryDelta: var_maxTotalCltvExpiryDelta, + maxPathCount: var_maxPathCount, + maxChannelSaturationPowerOfHalf: var_maxChannelSaturationPowerOfHalf); + } + @protected SocketAddress sse_decode_socket_address(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -6058,71 +6924,70 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder raw) { + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return (raw as NodeBuilderImpl).frbInternalCstEncode(move: true); + return (raw as FfiBuilderImpl).frbInternalCstEncode(move: true); } @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder raw) { + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return (raw as NodeBuilderImpl).frbInternalCstEncode(move: false); + return (raw as FfiBuilderImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder raw) { + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return (raw as NodeBuilderImpl).frbInternalCstEncode(move: false); + return (raw as FfiBuilderImpl).frbInternalCstEncode(move: false); } @protected - int cst_encode_RustOpaque_Arcldk_nodepaymentBolt12Payment( - ArcBolt12Payment raw) { + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return (raw as ArcBolt12PaymentImpl).frbInternalCstEncode(); + return (raw as FfiBuilderImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Node(Node raw) { + int cst_encode_RustOpaque_ldk_nodeBuilder(Builder raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return (raw as NodeImpl).frbInternalCstEncode(); + return (raw as BuilderImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder raw) { + int cst_encode_RustOpaque_ldk_nodeNode(Node raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return (raw as NodeBuilderImpl).frbInternalCstEncode(); + return (raw as NodeImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_ldk_nodeBuilder(Builder raw) { + int cst_encode_RustOpaque_ldk_nodegraphNetworkGraph(NetworkGraph raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return (raw as BuilderImpl).frbInternalCstEncode(); + return (raw as NetworkGraphImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_ldk_nodegraphNetworkGraph(NetworkGraph raw) { + int cst_encode_RustOpaque_ldk_nodepaymentBolt11Payment(Bolt11Payment raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return (raw as NetworkGraphImpl).frbInternalCstEncode(); + return (raw as Bolt11PaymentImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_ldk_nodepaymentBolt11Payment(Bolt11Payment raw) { + int cst_encode_RustOpaque_ldk_nodepaymentBolt12Payment(Bolt12Payment raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return (raw as Bolt11PaymentImpl).frbInternalCstEncode(); + return (raw as Bolt12PaymentImpl).frbInternalCstEncode(); } @protected @@ -6141,23 +7006,37 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - bool cst_encode_bool(bool raw) { + int cst_encode_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + UnifiedQrPayment raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return raw; +// ignore: invalid_use_of_internal_member + return (raw as UnifiedQrPaymentImpl).frbInternalCstEncode(); } @protected - int cst_encode_i_32(int raw) { + int cst_encode_balance_source(BalanceSource raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_i_32(raw.index); + } + + @protected + bool cst_encode_bool(bool raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw; } @protected - int cst_encode_ldk_builder_error(LdkBuilderError raw) { + int cst_encode_ffi_builder_error(FfiBuilderError raw) { // Codec=Cst (C-struct based), see doc to use other codecs return cst_encode_i_32(raw.index); } + @protected + int cst_encode_i_32(int raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw; + } + @protected int cst_encode_log_level(LogLevel raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -6214,64 +7093,61 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder self, SseSerializer serializer) { + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as NodeBuilderImpl).frbInternalSseEncode(move: true), serializer); + (self as FfiBuilderImpl).frbInternalSseEncode(move: true), serializer); } @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder self, SseSerializer serializer) { + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as NodeBuilderImpl).frbInternalSseEncode(move: false), - serializer); + (self as FfiBuilderImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder self, SseSerializer serializer) { + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as NodeBuilderImpl).frbInternalSseEncode(move: false), - serializer); + (self as FfiBuilderImpl).frbInternalSseEncode(move: false), serializer); } @protected - void sse_encode_RustOpaque_Arcldk_nodepaymentBolt12Payment( - ArcBolt12Payment self, SseSerializer serializer) { + void sse_encode_Map_String_String( + Map self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as ArcBolt12PaymentImpl).frbInternalSseEncode(move: null), - serializer); + sse_encode_list_record_string_string( + self.entries.map((e) => (e.key, e.value)).toList(), serializer); } @protected - void sse_encode_RustOpaque_Node(Node self, SseSerializer serializer) { + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as NodeImpl).frbInternalSseEncode(move: null), serializer); + (self as FfiBuilderImpl).frbInternalSseEncode(move: null), serializer); } @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder self, SseSerializer serializer) { + void sse_encode_RustOpaque_ldk_nodeBuilder( + Builder self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as NodeBuilderImpl).frbInternalSseEncode(move: null), serializer); + (self as BuilderImpl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_ldk_nodeBuilder( - Builder self, SseSerializer serializer) { + void sse_encode_RustOpaque_ldk_nodeNode(Node self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as BuilderImpl).frbInternalSseEncode(move: null), serializer); + (self as NodeImpl).frbInternalSseEncode(move: null), serializer); } @protected @@ -6292,6 +7168,15 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { serializer); } + @protected + void sse_encode_RustOpaque_ldk_nodepaymentBolt12Payment( + Bolt12Payment self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as Bolt12PaymentImpl).frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_ldk_nodepaymentOnchainPayment( OnchainPayment self, SseSerializer serializer) { @@ -6310,6 +7195,15 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { serializer); } + @protected + void sse_encode_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + UnifiedQrPayment self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as UnifiedQrPaymentImpl).frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_String(String self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -6342,6 +7236,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { self.pendingBalancesFromChannelClosures, serializer); } + @protected + void sse_encode_balance_source(BalanceSource self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_i_32(self.index, serializer); + } + @protected void sse_encode_best_block(BestBlock self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -6422,6 +7322,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_bolt_12_parse_error(self, serializer); } + @protected + void sse_encode_box_autoadd_bool(bool self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_bool(self, serializer); + } + @protected void sse_encode_box_autoadd_chain_data_source_config( ChainDataSourceConfig self, SseSerializer serializer) { @@ -6484,6 +7390,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_entropy_source_config(self, serializer); } + @protected + void sse_encode_box_autoadd_esplora_sync_config( + EsploraSyncConfig self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_esplora_sync_config(self, serializer); + } + @protected void sse_encode_box_autoadd_event(Event self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -6491,58 +7404,65 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - void sse_encode_box_autoadd_gossip_source_config( - GossipSourceConfig self, SseSerializer serializer) { + void sse_encode_box_autoadd_ffi_bolt_11_payment( + FfiBolt11Payment self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_gossip_source_config(self, serializer); + sse_encode_ffi_bolt_11_payment(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_bolt_12_payment( + FfiBolt12Payment self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_bolt_12_payment(self, serializer); } @protected - void sse_encode_box_autoadd_ldk_bolt_11_payment( - LdkBolt11Payment self, SseSerializer serializer) { + void sse_encode_box_autoadd_ffi_mnemonic( + FfiMnemonic self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_ldk_bolt_11_payment(self, serializer); + sse_encode_ffi_mnemonic(self, serializer); } @protected - void sse_encode_box_autoadd_ldk_bolt_12_payment( - LdkBolt12Payment self, SseSerializer serializer) { + void sse_encode_box_autoadd_ffi_network_graph( + FfiNetworkGraph self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_ldk_bolt_12_payment(self, serializer); + sse_encode_ffi_network_graph(self, serializer); } @protected - void sse_encode_box_autoadd_ldk_mnemonic( - LdkMnemonic self, SseSerializer serializer) { + void sse_encode_box_autoadd_ffi_node(FfiNode self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_ldk_mnemonic(self, serializer); + sse_encode_ffi_node(self, serializer); } @protected - void sse_encode_box_autoadd_ldk_network_graph( - LdkNetworkGraph self, SseSerializer serializer) { + void sse_encode_box_autoadd_ffi_on_chain_payment( + FfiOnChainPayment self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_ldk_network_graph(self, serializer); + sse_encode_ffi_on_chain_payment(self, serializer); } @protected - void sse_encode_box_autoadd_ldk_node(LdkNode self, SseSerializer serializer) { + void sse_encode_box_autoadd_ffi_spontaneous_payment( + FfiSpontaneousPayment self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_ldk_node(self, serializer); + sse_encode_ffi_spontaneous_payment(self, serializer); } @protected - void sse_encode_box_autoadd_ldk_on_chain_payment( - LdkOnChainPayment self, SseSerializer serializer) { + void sse_encode_box_autoadd_ffi_unified_qr_payment( + FfiUnifiedQrPayment self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_ldk_on_chain_payment(self, serializer); + sse_encode_ffi_unified_qr_payment(self, serializer); } @protected - void sse_encode_box_autoadd_ldk_spontaneous_payment( - LdkSpontaneousPayment self, SseSerializer serializer) { + void sse_encode_box_autoadd_gossip_source_config( + GossipSourceConfig self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_ldk_spontaneous_payment(self, serializer); + sse_encode_gossip_source_config(self, serializer); } @protected @@ -6560,10 +7480,17 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - void sse_encode_box_autoadd_max_dust_htlc_exposure( - MaxDustHTLCExposure self, SseSerializer serializer) { + void sse_encode_box_autoadd_max_total_routing_fee_limit( + MaxTotalRoutingFeeLimit self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_max_total_routing_fee_limit(self, serializer); + } + + @protected + void sse_encode_box_autoadd_node_alias( + NodeAlias self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_max_dust_htlc_exposure(self, serializer); + sse_encode_node_alias(self, serializer); } @protected @@ -6660,6 +7587,13 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_refund(self, serializer); } + @protected + void sse_encode_box_autoadd_sending_parameters( + SendingParameters self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_sending_parameters(self, serializer); + } + @protected void sse_encode_box_autoadd_socket_address( SocketAddress self, SseSerializer serializer) { @@ -6691,6 +7625,12 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_u_64(self, serializer); } + @protected + void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_u_8(self, serializer); + } + @protected void sse_encode_box_autoadd_user_channel_id( UserChannelId self, SseSerializer serializer) { @@ -6703,9 +7643,24 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ChainDataSourceConfig self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs switch (self) { - case ChainDataSourceConfig_Esplora(field0: final field0): + case ChainDataSourceConfig_Esplora( + serverUrl: final serverUrl, + syncConfig: final syncConfig + ): sse_encode_i_32(0, serializer); - sse_encode_String(field0, serializer); + sse_encode_String(serverUrl, serializer); + sse_encode_opt_box_autoadd_esplora_sync_config(syncConfig, serializer); + case ChainDataSourceConfig_BitcoindRpc( + rpcHost: final rpcHost, + rpcPort: final rpcPort, + rpcUser: final rpcUser, + rpcPassword: final rpcPassword + ): + sse_encode_i_32(1, serializer); + sse_encode_String(rpcHost, serializer); + sse_encode_u_16(rpcPort, serializer); + sse_encode_String(rpcUser, serializer); + sse_encode_String(rpcPassword, serializer); default: throw UnimplementedError(''); } @@ -6717,8 +7672,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_u_32(self.forwardingFeeProportionalMillionths, serializer); sse_encode_u_32(self.forwardingFeeBaseMsat, serializer); sse_encode_u_16(self.cltvExpiryDelta, serializer); - sse_encode_opt_box_autoadd_max_dust_htlc_exposure( - self.maxDustHtlcExposure, serializer); + sse_encode_max_dust_htlc_exposure(self.maxDustHtlcExposure, serializer); sse_encode_u_64(self.forceCloseAvoidanceMaxFeeSatoshis, serializer); sse_encode_bool(self.acceptUnderpayingHtlcs, serializer); } @@ -6742,7 +7696,6 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_bool(self.isOutbound, serializer); sse_encode_bool(self.isChannelReady, serializer); sse_encode_bool(self.isUsable, serializer); - sse_encode_bool(self.isPublic, serializer); sse_encode_opt_box_autoadd_u_16(self.cltvExpiryDelta, serializer); sse_encode_u_64(self.counterpartyUnspendablePunishmentReserve, serializer); sse_encode_opt_box_autoadd_u_64( @@ -6795,34 +7748,44 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { void sse_encode_closure_reason(ClosureReason self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs switch (self) { - case ClosureReason_CounterpartyForceClosed(peerMsg: final peerMsg): + case ClosureReason_PeerFeerateTooLow( + peerFeerateSatPerKw: final peerFeerateSatPerKw, + requiredFeerateSatPerKw: final requiredFeerateSatPerKw + ): sse_encode_i_32(0, serializer); - sse_encode_String(peerMsg, serializer); - case ClosureReason_HolderForceClosed(): + sse_encode_u_32(peerFeerateSatPerKw, serializer); + sse_encode_u_32(requiredFeerateSatPerKw, serializer); + case ClosureReason_CounterpartyForceClosed(peerMsg: final peerMsg): sse_encode_i_32(1, serializer); - case ClosureReason_LegacyCooperativeClosure(): + sse_encode_String(peerMsg, serializer); + case ClosureReason_HolderForceClosed( + broadcastedLatestTxn: final broadcastedLatestTxn + ): sse_encode_i_32(2, serializer); - case ClosureReason_CounterpartyInitiatedCooperativeClosure(): + sse_encode_opt_box_autoadd_bool(broadcastedLatestTxn, serializer); + case ClosureReason_LegacyCooperativeClosure(): sse_encode_i_32(3, serializer); - case ClosureReason_LocallyInitiatedCooperativeClosure(): + case ClosureReason_CounterpartyInitiatedCooperativeClosure(): sse_encode_i_32(4, serializer); - case ClosureReason_CommitmentTxConfirmed(): + case ClosureReason_LocallyInitiatedCooperativeClosure(): sse_encode_i_32(5, serializer); - case ClosureReason_FundingTimedOut(): + case ClosureReason_CommitmentTxConfirmed(): sse_encode_i_32(6, serializer); - case ClosureReason_ProcessingError(err: final err): + case ClosureReason_FundingTimedOut(): sse_encode_i_32(7, serializer); + case ClosureReason_ProcessingError(err: final err): + sse_encode_i_32(8, serializer); sse_encode_String(err, serializer); case ClosureReason_DisconnectedPeer(): - sse_encode_i_32(8, serializer); - case ClosureReason_OutdatedChannelManager(): sse_encode_i_32(9, serializer); - case ClosureReason_CounterpartyCoopClosedUnfundedChannel(): + case ClosureReason_OutdatedChannelManager(): sse_encode_i_32(10, serializer); - case ClosureReason_FundingBatchClosure(): + case ClosureReason_CounterpartyCoopClosedUnfundedChannel(): sse_encode_i_32(11, serializer); - case ClosureReason_HTLCsTimedOut(): + case ClosureReason_FundingBatchClosure(): sse_encode_i_32(12, serializer); + case ClosureReason_HTLCsTimedOut(): + sse_encode_i_32(13, serializer); default: throw UnimplementedError(''); } @@ -6835,15 +7798,14 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_opt_String(self.logDirPath, serializer); sse_encode_network(self.network, serializer); sse_encode_opt_list_socket_address(self.listeningAddresses, serializer); - sse_encode_u_32(self.defaultCltvExpiryDelta, serializer); - sse_encode_u_64(self.onchainWalletSyncIntervalSecs, serializer); - sse_encode_u_64(self.walletSyncIntervalSecs, serializer); - sse_encode_u_64(self.feeRateCacheUpdateIntervalSecs, serializer); + sse_encode_opt_box_autoadd_node_alias(self.nodeAlias, serializer); sse_encode_list_public_key(self.trustedPeers0Conf, serializer); sse_encode_u_64(self.probingLiquidityLimitMultiplier, serializer); sse_encode_log_level(self.logLevel, serializer); sse_encode_opt_box_autoadd_anchor_channels_config( self.anchorChannelsConfig, serializer); + sse_encode_opt_box_autoadd_sending_parameters( + self.sendingParameters, serializer); } @protected @@ -6888,13 +7850,22 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { passphrase: final passphrase ): sse_encode_i_32(2, serializer); - sse_encode_box_autoadd_ldk_mnemonic(mnemonic, serializer); + sse_encode_box_autoadd_ffi_mnemonic(mnemonic, serializer); sse_encode_opt_String(passphrase, serializer); default: throw UnimplementedError(''); } } + @protected + void sse_encode_esplora_sync_config( + EsploraSyncConfig self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_u_64(self.onchainWalletSyncIntervalSecs, serializer); + sse_encode_u_64(self.lightningWalletSyncIntervalSecs, serializer); + sse_encode_u_64(self.feeRateCacheUpdateIntervalSecs, serializer); + } + @protected void sse_encode_event(Event self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -6926,7 +7897,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ): sse_encode_i_32(2, serializer); sse_encode_opt_box_autoadd_payment_id(paymentId, serializer); - sse_encode_box_autoadd_payment_hash(paymentHash, serializer); + sse_encode_opt_box_autoadd_payment_hash(paymentHash, serializer); sse_encode_opt_box_autoadd_payment_failure_reason(reason, serializer); case Event_PaymentReceived( paymentId: final paymentId, @@ -6976,188 +7947,205 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - void sse_encode_gossip_source_config( - GossipSourceConfig self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - switch (self) { - case GossipSourceConfig_P2PNetwork(): - sse_encode_i_32(0, serializer); - case GossipSourceConfig_RapidGossipSync(field0: final field0): - sse_encode_i_32(1, serializer); - sse_encode_String(field0, serializer); - default: - throw UnimplementedError(''); - } - } - - @protected - void sse_encode_i_32(int self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putInt32(self); - } - - @protected - void sse_encode_ldk_bolt_11_payment( - LdkBolt11Payment self, SseSerializer serializer) { + void sse_encode_ffi_bolt_11_payment( + FfiBolt11Payment self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_ldk_nodepaymentBolt11Payment(self.ptr, serializer); + sse_encode_RustOpaque_ldk_nodepaymentBolt11Payment(self.opaque, serializer); } @protected - void sse_encode_ldk_bolt_12_payment( - LdkBolt12Payment self, SseSerializer serializer) { + void sse_encode_ffi_bolt_12_payment( + FfiBolt12Payment self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcldk_nodepaymentBolt12Payment(self.ptr, serializer); + sse_encode_RustOpaque_ldk_nodepaymentBolt12Payment(self.opaque, serializer); } @protected - void sse_encode_ldk_builder_error( - LdkBuilderError self, SseSerializer serializer) { + void sse_encode_ffi_builder_error( + FfiBuilderError self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_i_32(self.index, serializer); } @protected - void sse_encode_ldk_mnemonic(LdkMnemonic self, SseSerializer serializer) { + void sse_encode_ffi_mnemonic(FfiMnemonic self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_String(self.seedPhrase, serializer); } @protected - void sse_encode_ldk_network_graph( - LdkNetworkGraph self, SseSerializer serializer) { + void sse_encode_ffi_network_graph( + FfiNetworkGraph self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_ldk_nodegraphNetworkGraph(self.ptr, serializer); + sse_encode_RustOpaque_ldk_nodegraphNetworkGraph(self.opaque, serializer); } @protected - void sse_encode_ldk_node(LdkNode self, SseSerializer serializer) { + void sse_encode_ffi_node(FfiNode self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Node(self.ptr, serializer); + sse_encode_RustOpaque_ldk_nodeNode(self.opaque, serializer); } @protected - void sse_encode_ldk_node_error(LdkNodeError self, SseSerializer serializer) { + void sse_encode_ffi_node_error(FfiNodeError self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs switch (self) { - case LdkNodeError_InvalidTxid(): + case FfiNodeError_InvalidTxid(): sse_encode_i_32(0, serializer); - case LdkNodeError_AlreadyRunning(): + case FfiNodeError_AlreadyRunning(): sse_encode_i_32(1, serializer); - case LdkNodeError_NotRunning(): + case FfiNodeError_NotRunning(): sse_encode_i_32(2, serializer); - case LdkNodeError_OnchainTxCreationFailed(): + case FfiNodeError_OnchainTxCreationFailed(): sse_encode_i_32(3, serializer); - case LdkNodeError_ConnectionFailed(): + case FfiNodeError_ConnectionFailed(): sse_encode_i_32(4, serializer); - case LdkNodeError_InvoiceCreationFailed(): + case FfiNodeError_InvoiceCreationFailed(): sse_encode_i_32(5, serializer); - case LdkNodeError_PaymentSendingFailed(): + case FfiNodeError_PaymentSendingFailed(): sse_encode_i_32(6, serializer); - case LdkNodeError_ProbeSendingFailed(): + case FfiNodeError_ProbeSendingFailed(): sse_encode_i_32(7, serializer); - case LdkNodeError_ChannelCreationFailed(): + case FfiNodeError_ChannelCreationFailed(): sse_encode_i_32(8, serializer); - case LdkNodeError_ChannelClosingFailed(): + case FfiNodeError_ChannelClosingFailed(): sse_encode_i_32(9, serializer); - case LdkNodeError_ChannelConfigUpdateFailed(): + case FfiNodeError_ChannelConfigUpdateFailed(): sse_encode_i_32(10, serializer); - case LdkNodeError_PersistenceFailed(): + case FfiNodeError_PersistenceFailed(): sse_encode_i_32(11, serializer); - case LdkNodeError_WalletOperationFailed(): + case FfiNodeError_WalletOperationFailed(): sse_encode_i_32(12, serializer); - case LdkNodeError_OnchainTxSigningFailed(): + case FfiNodeError_OnchainTxSigningFailed(): sse_encode_i_32(13, serializer); - case LdkNodeError_MessageSigningFailed(): + case FfiNodeError_MessageSigningFailed(): sse_encode_i_32(14, serializer); - case LdkNodeError_TxSyncFailed(): + case FfiNodeError_TxSyncFailed(): sse_encode_i_32(15, serializer); - case LdkNodeError_GossipUpdateFailed(): + case FfiNodeError_GossipUpdateFailed(): sse_encode_i_32(16, serializer); - case LdkNodeError_InvalidAddress(): + case FfiNodeError_InvalidAddress(): sse_encode_i_32(17, serializer); - case LdkNodeError_InvalidSocketAddress(): + case FfiNodeError_InvalidSocketAddress(): sse_encode_i_32(18, serializer); - case LdkNodeError_InvalidPublicKey(): + case FfiNodeError_InvalidPublicKey(): sse_encode_i_32(19, serializer); - case LdkNodeError_InvalidSecretKey(): + case FfiNodeError_InvalidSecretKey(): sse_encode_i_32(20, serializer); - case LdkNodeError_InvalidPaymentHash(): + case FfiNodeError_InvalidPaymentHash(): sse_encode_i_32(21, serializer); - case LdkNodeError_InvalidPaymentPreimage(): + case FfiNodeError_InvalidPaymentPreimage(): sse_encode_i_32(22, serializer); - case LdkNodeError_InvalidPaymentSecret(): + case FfiNodeError_InvalidPaymentSecret(): sse_encode_i_32(23, serializer); - case LdkNodeError_InvalidAmount(): + case FfiNodeError_InvalidAmount(): sse_encode_i_32(24, serializer); - case LdkNodeError_InvalidInvoice(): + case FfiNodeError_InvalidInvoice(): sse_encode_i_32(25, serializer); - case LdkNodeError_InvalidChannelId(): + case FfiNodeError_InvalidChannelId(): sse_encode_i_32(26, serializer); - case LdkNodeError_InvalidNetwork(): + case FfiNodeError_InvalidNetwork(): sse_encode_i_32(27, serializer); - case LdkNodeError_DuplicatePayment(): + case FfiNodeError_DuplicatePayment(): sse_encode_i_32(28, serializer); - case LdkNodeError_InsufficientFunds(): + case FfiNodeError_InsufficientFunds(): sse_encode_i_32(29, serializer); - case LdkNodeError_FeerateEstimationUpdateFailed(): + case FfiNodeError_FeerateEstimationUpdateFailed(): sse_encode_i_32(30, serializer); - case LdkNodeError_LiquidityRequestFailed(): + case FfiNodeError_LiquidityRequestFailed(): sse_encode_i_32(31, serializer); - case LdkNodeError_LiquiditySourceUnavailable(): + case FfiNodeError_LiquiditySourceUnavailable(): sse_encode_i_32(32, serializer); - case LdkNodeError_LiquidityFeeTooHigh(): + case FfiNodeError_LiquidityFeeTooHigh(): sse_encode_i_32(33, serializer); - case LdkNodeError_InvalidPaymentId(): + case FfiNodeError_InvalidPaymentId(): sse_encode_i_32(34, serializer); - case LdkNodeError_Decode(field0: final field0): + case FfiNodeError_Decode(field0: final field0): sse_encode_i_32(35, serializer); sse_encode_box_autoadd_decode_error(field0, serializer); - case LdkNodeError_Bolt12Parse(field0: final field0): + case FfiNodeError_Bolt12Parse(field0: final field0): sse_encode_i_32(36, serializer); sse_encode_box_autoadd_bolt_12_parse_error(field0, serializer); - case LdkNodeError_InvoiceRequestCreationFailed(): + case FfiNodeError_InvoiceRequestCreationFailed(): sse_encode_i_32(37, serializer); - case LdkNodeError_OfferCreationFailed(): + case FfiNodeError_OfferCreationFailed(): sse_encode_i_32(38, serializer); - case LdkNodeError_RefundCreationFailed(): + case FfiNodeError_RefundCreationFailed(): sse_encode_i_32(39, serializer); - case LdkNodeError_FeerateEstimationUpdateTimeout(): + case FfiNodeError_FeerateEstimationUpdateTimeout(): sse_encode_i_32(40, serializer); - case LdkNodeError_WalletOperationTimeout(): + case FfiNodeError_WalletOperationTimeout(): sse_encode_i_32(41, serializer); - case LdkNodeError_TxSyncTimeout(): + case FfiNodeError_TxSyncTimeout(): sse_encode_i_32(42, serializer); - case LdkNodeError_GossipUpdateTimeout(): + case FfiNodeError_GossipUpdateTimeout(): sse_encode_i_32(43, serializer); - case LdkNodeError_InvalidOfferId(): + case FfiNodeError_InvalidOfferId(): sse_encode_i_32(44, serializer); - case LdkNodeError_InvalidNodeId(): + case FfiNodeError_InvalidNodeId(): sse_encode_i_32(45, serializer); - case LdkNodeError_InvalidOffer(): + case FfiNodeError_InvalidOffer(): sse_encode_i_32(46, serializer); - case LdkNodeError_InvalidRefund(): + case FfiNodeError_InvalidRefund(): sse_encode_i_32(47, serializer); - case LdkNodeError_UnsupportedCurrency(): + case FfiNodeError_UnsupportedCurrency(): sse_encode_i_32(48, serializer); + case FfiNodeError_UriParameterParsingFailed(): + sse_encode_i_32(49, serializer); + case FfiNodeError_InvalidUri(): + sse_encode_i_32(50, serializer); + case FfiNodeError_InvalidQuantity(): + sse_encode_i_32(51, serializer); + case FfiNodeError_InvalidNodeAlias(): + sse_encode_i_32(52, serializer); default: throw UnimplementedError(''); } } @protected - void sse_encode_ldk_on_chain_payment( - LdkOnChainPayment self, SseSerializer serializer) { + void sse_encode_ffi_on_chain_payment( + FfiOnChainPayment self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_ldk_nodepaymentOnchainPayment(self.ptr, serializer); + sse_encode_RustOpaque_ldk_nodepaymentOnchainPayment( + self.opaque, serializer); } @protected - void sse_encode_ldk_spontaneous_payment( - LdkSpontaneousPayment self, SseSerializer serializer) { + void sse_encode_ffi_spontaneous_payment( + FfiSpontaneousPayment self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_RustOpaque_ldk_nodepaymentSpontaneousPayment( - self.ptr, serializer); + self.opaque, serializer); + } + + @protected + void sse_encode_ffi_unified_qr_payment( + FfiUnifiedQrPayment self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + self.opaque, serializer); + } + + @protected + void sse_encode_gossip_source_config( + GossipSourceConfig self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + switch (self) { + case GossipSourceConfig_P2PNetwork(): + sse_encode_i_32(0, serializer); + case GossipSourceConfig_RapidGossipSync(field0: final field0): + sse_encode_i_32(1, serializer); + sse_encode_String(field0, serializer); + default: + throw UnimplementedError(''); + } + } + + @protected + void sse_encode_i_32(int self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + serializer.buffer.putInt32(self); } @protected @@ -7168,23 +8156,36 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { case LightningBalance_ClaimableOnChannelClose( channelId: final channelId, counterpartyNodeId: final counterpartyNodeId, - amountSatoshis: final amountSatoshis + amountSatoshis: final amountSatoshis, + transactionFeeSatoshis: final transactionFeeSatoshis, + outboundPaymentHtlcRoundedMsat: final outboundPaymentHtlcRoundedMsat, + outboundForwardedHtlcRoundedMsat: + final outboundForwardedHtlcRoundedMsat, + inboundClaimingHtlcRoundedMsat: final inboundClaimingHtlcRoundedMsat, + inboundHtlcRoundedMsat: final inboundHtlcRoundedMsat ): sse_encode_i_32(0, serializer); sse_encode_box_autoadd_channel_id(channelId, serializer); sse_encode_box_autoadd_public_key(counterpartyNodeId, serializer); sse_encode_u_64(amountSatoshis, serializer); + sse_encode_u_64(transactionFeeSatoshis, serializer); + sse_encode_u_64(outboundPaymentHtlcRoundedMsat, serializer); + sse_encode_u_64(outboundForwardedHtlcRoundedMsat, serializer); + sse_encode_u_64(inboundClaimingHtlcRoundedMsat, serializer); + sse_encode_u_64(inboundHtlcRoundedMsat, serializer); case LightningBalance_ClaimableAwaitingConfirmations( channelId: final channelId, counterpartyNodeId: final counterpartyNodeId, amountSatoshis: final amountSatoshis, - confirmationHeight: final confirmationHeight + confirmationHeight: final confirmationHeight, + source: final source ): sse_encode_i_32(1, serializer); sse_encode_box_autoadd_channel_id(channelId, serializer); sse_encode_box_autoadd_public_key(counterpartyNodeId, serializer); sse_encode_u_64(amountSatoshis, serializer); sse_encode_u_32(confirmationHeight, serializer); + sse_encode_balance_source(source, serializer); case LightningBalance_ContentiousClaimable( channelId: final channelId, counterpartyNodeId: final counterpartyNodeId, @@ -7205,7 +8206,8 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { counterpartyNodeId: final counterpartyNodeId, amountSatoshis: final amountSatoshis, claimableHeight: final claimableHeight, - paymentHash: final paymentHash + paymentHash: final paymentHash, + outboundPayment: final outboundPayment ): sse_encode_i_32(3, serializer); sse_encode_box_autoadd_channel_id(channelId, serializer); @@ -7213,6 +8215,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_u_64(amountSatoshis, serializer); sse_encode_u_32(claimableHeight, serializer); sse_encode_box_autoadd_payment_hash(paymentHash, serializer); + sse_encode_bool(outboundPayment, serializer); case LightningBalance_MaybePreimageClaimableHTLC( channelId: final channelId, counterpartyNodeId: final counterpartyNodeId, @@ -7342,6 +8345,16 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + void sse_encode_list_record_string_string( + List<(String, String)> self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_i_32(self.length, serializer); + for (final item in self) { + sse_encode_record_string_string(item, serializer); + } + } + @protected void sse_encode_list_socket_address( List self, SseSerializer serializer) { @@ -7382,12 +8395,33 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + void sse_encode_max_total_routing_fee_limit( + MaxTotalRoutingFeeLimit self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + switch (self) { + case MaxTotalRoutingFeeLimit_NoFeeCap(): + sse_encode_i_32(0, serializer); + case MaxTotalRoutingFeeLimit_FeeCap(amountMsat: final amountMsat): + sse_encode_i_32(1, serializer); + sse_encode_u_64(amountMsat, serializer); + default: + throw UnimplementedError(''); + } + } + @protected void sse_encode_network(Network self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_i_32(self.index, serializer); } + @protected + void sse_encode_node_alias(NodeAlias self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_u_8_array_32(self.field0, serializer); + } + @protected void sse_encode_node_announcement_info( NodeAnnouncementInfo self, SseSerializer serializer) { @@ -7417,7 +8451,8 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_bool(self.isRunning, serializer); sse_encode_bool(self.isListening, serializer); sse_encode_best_block(self.currentBestBlock, serializer); - sse_encode_opt_box_autoadd_u_64(self.latestWalletSyncTimestamp, serializer); + sse_encode_opt_box_autoadd_u_64( + self.latestLightningWalletSyncTimestamp, serializer); sse_encode_opt_box_autoadd_u_64( self.latestOnchainWalletSyncTimestamp, serializer); sse_encode_opt_box_autoadd_u_64( @@ -7426,6 +8461,8 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { self.latestRgsSnapshotTimestamp, serializer); sse_encode_opt_box_autoadd_u_64( self.latestNodeAnnouncementBroadcastTimestamp, serializer); + sse_encode_opt_box_autoadd_u_32( + self.latestChannelMonitorArchivalHeight, serializer); } @protected @@ -7461,6 +8498,16 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + void sse_encode_opt_box_autoadd_bool(bool? self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + sse_encode_bool(self != null, serializer); + if (self != null) { + sse_encode_box_autoadd_bool(self, serializer); + } + } + @protected void sse_encode_opt_box_autoadd_chain_data_source_config( ChainDataSourceConfig? self, SseSerializer serializer) { @@ -7538,6 +8585,17 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + void sse_encode_opt_box_autoadd_esplora_sync_config( + EsploraSyncConfig? self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + sse_encode_bool(self != null, serializer); + if (self != null) { + sse_encode_box_autoadd_esplora_sync_config(self, serializer); + } + } + @protected void sse_encode_opt_box_autoadd_event(Event? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -7571,13 +8629,24 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @protected - void sse_encode_opt_box_autoadd_max_dust_htlc_exposure( - MaxDustHTLCExposure? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_max_total_routing_fee_limit( + MaxTotalRoutingFeeLimit? self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + sse_encode_bool(self != null, serializer); + if (self != null) { + sse_encode_box_autoadd_max_total_routing_fee_limit(self, serializer); + } + } + + @protected + void sse_encode_opt_box_autoadd_node_alias( + NodeAlias? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); if (self != null) { - sse_encode_box_autoadd_max_dust_htlc_exposure(self, serializer); + sse_encode_box_autoadd_node_alias(self, serializer); } } @@ -7691,6 +8760,17 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + void sse_encode_opt_box_autoadd_sending_parameters( + SendingParameters? self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + sse_encode_bool(self != null, serializer); + if (self != null) { + sse_encode_box_autoadd_sending_parameters(self, serializer); + } + } + @protected void sse_encode_opt_box_autoadd_u_16(int? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -7721,6 +8801,16 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } } + @protected + void sse_encode_opt_box_autoadd_u_8(int? self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + sse_encode_bool(self != null, serializer); + if (self != null) { + sse_encode_box_autoadd_u_8(self, serializer); + } + } + @protected void sse_encode_opt_list_socket_address( List? self, SseSerializer serializer) { @@ -7811,22 +8901,30 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { hash: final hash, preimage: final preimage, secret: final secret, - offerId: final offerId + offerId: final offerId, + payerNote: final payerNote, + quantity: final quantity ): sse_encode_i_32(4, serializer); sse_encode_opt_box_autoadd_payment_hash(hash, serializer); sse_encode_opt_box_autoadd_payment_preimage(preimage, serializer); sse_encode_opt_box_autoadd_payment_secret(secret, serializer); sse_encode_box_autoadd_offer_id(offerId, serializer); + sse_encode_opt_String(payerNote, serializer); + sse_encode_opt_box_autoadd_u_64(quantity, serializer); case PaymentKind_Bolt12Refund( hash: final hash, preimage: final preimage, - secret: final secret + secret: final secret, + payerNote: final payerNote, + quantity: final quantity ): sse_encode_i_32(5, serializer); sse_encode_opt_box_autoadd_payment_hash(hash, serializer); sse_encode_opt_box_autoadd_payment_preimage(preimage, serializer); sse_encode_opt_box_autoadd_payment_secret(secret, serializer); + sse_encode_opt_String(payerNote, serializer); + sse_encode_opt_box_autoadd_u_64(quantity, serializer); default: throw UnimplementedError(''); } @@ -7906,6 +9004,25 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_String(self.hex, serializer); } + @protected + void sse_encode_qr_payment_result( + QrPaymentResult self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + switch (self) { + case QrPaymentResult_Onchain(txid: final txid): + sse_encode_i_32(0, serializer); + sse_encode_box_autoadd_txid(txid, serializer); + case QrPaymentResult_Bolt11(paymentId: final paymentId): + sse_encode_i_32(1, serializer); + sse_encode_box_autoadd_payment_id(paymentId, serializer); + case QrPaymentResult_Bolt12(paymentId: final paymentId): + sse_encode_i_32(2, serializer); + sse_encode_box_autoadd_payment_id(paymentId, serializer); + default: + throw UnimplementedError(''); + } + } + @protected void sse_encode_record_socket_address_public_key_opt_string( (SocketAddress, PublicKey, String?) self, SseSerializer serializer) { @@ -7915,6 +9032,14 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_opt_String(self.$3, serializer); } + @protected + void sse_encode_record_string_string( + (String, String) self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_String(self.$1, serializer); + sse_encode_String(self.$2, serializer); + } + @protected void sse_encode_refund(Refund self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -7928,6 +9053,18 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { sse_encode_u_32(self.proportionalMillionths, serializer); } + @protected + void sse_encode_sending_parameters( + SendingParameters self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_opt_box_autoadd_max_total_routing_fee_limit( + self.maxTotalRoutingFeeMsat, serializer); + sse_encode_opt_box_autoadd_u_32(self.maxTotalCltvExpiryDelta, serializer); + sse_encode_opt_box_autoadd_u_8(self.maxPathCount, serializer); + sse_encode_opt_box_autoadd_u_8( + self.maxChannelSaturationPowerOfHalf, serializer); + } + @protected void sse_encode_socket_address(SocketAddress self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -8043,43 +9180,42 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { } @sealed -class ArcBolt12PaymentImpl extends RustOpaque implements ArcBolt12Payment { +class Bolt11PaymentImpl extends RustOpaque implements Bolt11Payment { // Not to be used by end users - ArcBolt12PaymentImpl.frbInternalDcoDecode(List wire) + Bolt11PaymentImpl.frbInternalDcoDecode(List wire) : super.frbInternalDcoDecode(wire, _kStaticData); // Not to be used by end users - ArcBolt12PaymentImpl.frbInternalSseDecode( - BigInt ptr, int externalSizeOnNative) + Bolt11PaymentImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( rustArcIncrementStrongCount: - core.instance.api.rust_arc_increment_strong_count_ArcBolt12Payment, + core.instance.api.rust_arc_increment_strong_count_Bolt11Payment, rustArcDecrementStrongCount: - core.instance.api.rust_arc_decrement_strong_count_ArcBolt12Payment, + core.instance.api.rust_arc_decrement_strong_count_Bolt11Payment, rustArcDecrementStrongCountPtr: - core.instance.api.rust_arc_decrement_strong_count_ArcBolt12PaymentPtr, + core.instance.api.rust_arc_decrement_strong_count_Bolt11PaymentPtr, ); } @sealed -class Bolt11PaymentImpl extends RustOpaque implements Bolt11Payment { +class Bolt12PaymentImpl extends RustOpaque implements Bolt12Payment { // Not to be used by end users - Bolt11PaymentImpl.frbInternalDcoDecode(List wire) + Bolt12PaymentImpl.frbInternalDcoDecode(List wire) : super.frbInternalDcoDecode(wire, _kStaticData); // Not to be used by end users - Bolt11PaymentImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + Bolt12PaymentImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( rustArcIncrementStrongCount: - core.instance.api.rust_arc_increment_strong_count_Bolt11Payment, + core.instance.api.rust_arc_increment_strong_count_Bolt12Payment, rustArcDecrementStrongCount: - core.instance.api.rust_arc_decrement_strong_count_Bolt11Payment, + core.instance.api.rust_arc_decrement_strong_count_Bolt12Payment, rustArcDecrementStrongCountPtr: - core.instance.api.rust_arc_decrement_strong_count_Bolt11PaymentPtr, + core.instance.api.rust_arc_decrement_strong_count_Bolt12PaymentPtr, ); } @@ -8104,61 +9240,84 @@ class BuilderImpl extends RustOpaque implements Builder { } @sealed -class NetworkGraphImpl extends RustOpaque implements NetworkGraph { +class FfiBuilderImpl extends RustOpaque implements FfiBuilder { // Not to be used by end users - NetworkGraphImpl.frbInternalDcoDecode(List wire) + FfiBuilderImpl.frbInternalDcoDecode(List wire) : super.frbInternalDcoDecode(wire, _kStaticData); // Not to be used by end users - NetworkGraphImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + FfiBuilderImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( rustArcIncrementStrongCount: - core.instance.api.rust_arc_increment_strong_count_NetworkGraph, + core.instance.api.rust_arc_increment_strong_count_FfiBuilder, rustArcDecrementStrongCount: - core.instance.api.rust_arc_decrement_strong_count_NetworkGraph, + core.instance.api.rust_arc_decrement_strong_count_FfiBuilder, rustArcDecrementStrongCountPtr: - core.instance.api.rust_arc_decrement_strong_count_NetworkGraphPtr, + core.instance.api.rust_arc_decrement_strong_count_FfiBuilderPtr, ); + + Builder get opaque => + core.instance.api.crateApiBuilderFfiBuilderAutoAccessorGetOpaque( + that: this, + ); + + set opaque(Builder opaque) => + core.instance.api.crateApiBuilderFfiBuilderAutoAccessorSetOpaque( + that: this, opaque: opaque); + + Future build() => core.instance.api.crateApiBuilderFfiBuilderBuild( + that: this, + ); + + Future buildWithFsStore() => + core.instance.api.crateApiBuilderFfiBuilderBuildWithFsStore( + that: this, + ); + + Future buildWithVssStore( + {required String vssUrl, + required String storeId, + required String lnurlAuthServerUrl, + required Map fixedHeaders}) => + core.instance.api.crateApiBuilderFfiBuilderBuildWithVssStore( + that: this, + vssUrl: vssUrl, + storeId: storeId, + lnurlAuthServerUrl: lnurlAuthServerUrl, + fixedHeaders: fixedHeaders); + + Future buildWithVssStoreAndFixedHeaders( + {required String vssUrl, + required String storeId, + required Map fixedHeaders}) => + core.instance.api + .crateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeaders( + that: this, + vssUrl: vssUrl, + storeId: storeId, + fixedHeaders: fixedHeaders); } @sealed -class NodeBuilderImpl extends RustOpaque implements NodeBuilder { +class NetworkGraphImpl extends RustOpaque implements NetworkGraph { // Not to be used by end users - NodeBuilderImpl.frbInternalDcoDecode(List wire) + NetworkGraphImpl.frbInternalDcoDecode(List wire) : super.frbInternalDcoDecode(wire, _kStaticData); // Not to be used by end users - NodeBuilderImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + NetworkGraphImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( rustArcIncrementStrongCount: - core.instance.api.rust_arc_increment_strong_count_NodeBuilder, + core.instance.api.rust_arc_increment_strong_count_NetworkGraph, rustArcDecrementStrongCount: - core.instance.api.rust_arc_decrement_strong_count_NodeBuilder, + core.instance.api.rust_arc_decrement_strong_count_NetworkGraph, rustArcDecrementStrongCountPtr: - core.instance.api.rust_arc_decrement_strong_count_NodeBuilderPtr, + core.instance.api.rust_arc_decrement_strong_count_NetworkGraphPtr, ); - - Builder get builder => - core.instance.api.crateApiBuilderNodeBuilderAutoAccessorGetBuilder( - that: this, - ); - - void set builder(Builder builder) => - core.instance.api.crateApiBuilderNodeBuilderAutoAccessorSetBuilder( - that: this, builder: builder); - - Future build() => core.instance.api.crateApiBuilderNodeBuilderBuild( - that: this, - ); - - Future buildWithFsStore() => - core.instance.api.crateApiBuilderNodeBuilderBuildWithFsStore( - that: this, - ); } @sealed @@ -8221,3 +9380,24 @@ class SpontaneousPaymentImpl extends RustOpaque implements SpontaneousPayment { core.instance.api.rust_arc_decrement_strong_count_SpontaneousPaymentPtr, ); } + +@sealed +class UnifiedQrPaymentImpl extends RustOpaque implements UnifiedQrPayment { + // Not to be used by end users + UnifiedQrPaymentImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + UnifiedQrPaymentImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_UnifiedQrPayment, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_UnifiedQrPayment, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_UnifiedQrPaymentPtr, + ); +} diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index 348ba70..3fabdec 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.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 @@ -11,6 +11,7 @@ import 'api/node.dart'; import 'api/on_chain.dart'; import 'api/spontaneous.dart'; import 'api/types.dart'; +import 'api/unified_qr.dart'; import 'dart:async'; import 'dart:convert'; import 'dart:ffi' as ffi; @@ -27,20 +28,15 @@ abstract class coreApiImplPlatform extends BaseApiImpl { required super.portManager, }); - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcBolt12PaymentPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12PaymentPtr; - - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_NodePtr => - wire._rust_arc_decrement_strong_count_RustOpaque_NodePtr; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_NodeBuilderPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilderPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_FfiBuilderPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilderPtr; CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_BuilderPtr => wire._rust_arc_decrement_strong_count_RustOpaque_ldk_nodeBuilderPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_NodePtr => + wire._rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNodePtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_NetworkGraphPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_ldk_nodegraphNetworkGraphPtr; @@ -49,6 +45,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_Bolt11PaymentPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt11PaymentPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_Bolt12PaymentPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12PaymentPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_OnchainPaymentPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentOnchainPaymentPtr; @@ -57,42 +57,48 @@ abstract class coreApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_SpontaneousPaymentPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPaymentPtr; - @protected - NodeBuilder - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - dynamic raw); + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_UnifiedQrPaymentPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPaymentPtr; @protected - NodeBuilder - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( dynamic raw); @protected - NodeBuilder - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( dynamic raw); @protected - ArcBolt12Payment dco_decode_RustOpaque_Arcldk_nodepaymentBolt12Payment( - dynamic raw); + FfiBuilder + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + dynamic raw); @protected - Node dco_decode_RustOpaque_Node(dynamic raw); + Map dco_decode_Map_String_String(dynamic raw); @protected - NodeBuilder - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( dynamic raw); @protected Builder dco_decode_RustOpaque_ldk_nodeBuilder(dynamic raw); + @protected + Node dco_decode_RustOpaque_ldk_nodeNode(dynamic raw); + @protected NetworkGraph dco_decode_RustOpaque_ldk_nodegraphNetworkGraph(dynamic raw); @protected Bolt11Payment dco_decode_RustOpaque_ldk_nodepaymentBolt11Payment(dynamic raw); + @protected + Bolt12Payment dco_decode_RustOpaque_ldk_nodepaymentBolt12Payment(dynamic raw); + @protected OnchainPayment dco_decode_RustOpaque_ldk_nodepaymentOnchainPayment( dynamic raw); @@ -101,6 +107,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { SpontaneousPayment dco_decode_RustOpaque_ldk_nodepaymentSpontaneousPayment( dynamic raw); + @protected + UnifiedQrPayment dco_decode_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + dynamic raw); + @protected String dco_decode_String(dynamic raw); @@ -113,6 +123,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected BalanceDetails dco_decode_balance_details(dynamic raw); + @protected + BalanceSource dco_decode_balance_source(dynamic raw); + @protected BestBlock dco_decode_best_block(dynamic raw); @@ -141,6 +154,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected Bolt12ParseError dco_decode_box_autoadd_bolt_12_parse_error(dynamic raw); + @protected + bool dco_decode_box_autoadd_bool(dynamic raw); + @protected ChainDataSourceConfig dco_decode_box_autoadd_chain_data_source_config( dynamic raw); @@ -169,34 +185,41 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected EntropySourceConfig dco_decode_box_autoadd_entropy_source_config(dynamic raw); + @protected + EsploraSyncConfig dco_decode_box_autoadd_esplora_sync_config(dynamic raw); + @protected Event dco_decode_box_autoadd_event(dynamic raw); @protected - GossipSourceConfig dco_decode_box_autoadd_gossip_source_config(dynamic raw); + FfiBolt11Payment dco_decode_box_autoadd_ffi_bolt_11_payment(dynamic raw); @protected - LdkBolt11Payment dco_decode_box_autoadd_ldk_bolt_11_payment(dynamic raw); + FfiBolt12Payment dco_decode_box_autoadd_ffi_bolt_12_payment(dynamic raw); @protected - LdkBolt12Payment dco_decode_box_autoadd_ldk_bolt_12_payment(dynamic raw); + FfiMnemonic dco_decode_box_autoadd_ffi_mnemonic(dynamic raw); @protected - LdkMnemonic dco_decode_box_autoadd_ldk_mnemonic(dynamic raw); + FfiNetworkGraph dco_decode_box_autoadd_ffi_network_graph(dynamic raw); @protected - LdkNetworkGraph dco_decode_box_autoadd_ldk_network_graph(dynamic raw); + FfiNode dco_decode_box_autoadd_ffi_node(dynamic raw); @protected - LdkNode dco_decode_box_autoadd_ldk_node(dynamic raw); + FfiOnChainPayment dco_decode_box_autoadd_ffi_on_chain_payment(dynamic raw); @protected - LdkOnChainPayment dco_decode_box_autoadd_ldk_on_chain_payment(dynamic raw); + FfiSpontaneousPayment dco_decode_box_autoadd_ffi_spontaneous_payment( + dynamic raw); @protected - LdkSpontaneousPayment dco_decode_box_autoadd_ldk_spontaneous_payment( + FfiUnifiedQrPayment dco_decode_box_autoadd_ffi_unified_qr_payment( dynamic raw); + @protected + GossipSourceConfig dco_decode_box_autoadd_gossip_source_config(dynamic raw); + @protected LiquiditySourceConfig dco_decode_box_autoadd_liquidity_source_config( dynamic raw); @@ -205,9 +228,12 @@ abstract class coreApiImplPlatform extends BaseApiImpl { LSPFeeLimits dco_decode_box_autoadd_lsp_fee_limits(dynamic raw); @protected - MaxDustHTLCExposure dco_decode_box_autoadd_max_dust_htlc_exposure( + MaxTotalRoutingFeeLimit dco_decode_box_autoadd_max_total_routing_fee_limit( dynamic raw); + @protected + NodeAlias dco_decode_box_autoadd_node_alias(dynamic raw); + @protected NodeAnnouncementInfo dco_decode_box_autoadd_node_announcement_info( dynamic raw); @@ -252,6 +278,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected Refund dco_decode_box_autoadd_refund(dynamic raw); + @protected + SendingParameters dco_decode_box_autoadd_sending_parameters(dynamic raw); + @protected SocketAddress dco_decode_box_autoadd_socket_address(dynamic raw); @@ -267,6 +296,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected BigInt dco_decode_box_autoadd_u_64(dynamic raw); + @protected + int dco_decode_box_autoadd_u_8(dynamic raw); + @protected UserChannelId dco_decode_box_autoadd_user_channel_id(dynamic raw); @@ -300,41 +332,47 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected EntropySourceConfig dco_decode_entropy_source_config(dynamic raw); + @protected + EsploraSyncConfig dco_decode_esplora_sync_config(dynamic raw); + @protected Event dco_decode_event(dynamic raw); @protected - GossipSourceConfig dco_decode_gossip_source_config(dynamic raw); + FfiBolt11Payment dco_decode_ffi_bolt_11_payment(dynamic raw); @protected - int dco_decode_i_32(dynamic raw); + FfiBolt12Payment dco_decode_ffi_bolt_12_payment(dynamic raw); + + @protected + FfiBuilderError dco_decode_ffi_builder_error(dynamic raw); @protected - LdkBolt11Payment dco_decode_ldk_bolt_11_payment(dynamic raw); + FfiMnemonic dco_decode_ffi_mnemonic(dynamic raw); @protected - LdkBolt12Payment dco_decode_ldk_bolt_12_payment(dynamic raw); + FfiNetworkGraph dco_decode_ffi_network_graph(dynamic raw); @protected - LdkBuilderError dco_decode_ldk_builder_error(dynamic raw); + FfiNode dco_decode_ffi_node(dynamic raw); @protected - LdkMnemonic dco_decode_ldk_mnemonic(dynamic raw); + FfiNodeError dco_decode_ffi_node_error(dynamic raw); @protected - LdkNetworkGraph dco_decode_ldk_network_graph(dynamic raw); + FfiOnChainPayment dco_decode_ffi_on_chain_payment(dynamic raw); @protected - LdkNode dco_decode_ldk_node(dynamic raw); + FfiSpontaneousPayment dco_decode_ffi_spontaneous_payment(dynamic raw); @protected - LdkNodeError dco_decode_ldk_node_error(dynamic raw); + FfiUnifiedQrPayment dco_decode_ffi_unified_qr_payment(dynamic raw); @protected - LdkOnChainPayment dco_decode_ldk_on_chain_payment(dynamic raw); + GossipSourceConfig dco_decode_gossip_source_config(dynamic raw); @protected - LdkSpontaneousPayment dco_decode_ldk_spontaneous_payment(dynamic raw); + int dco_decode_i_32(dynamic raw); @protected LightningBalance dco_decode_lightning_balance(dynamic raw); @@ -372,6 +410,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected List dco_decode_list_public_key(dynamic raw); + @protected + List<(String, String)> dco_decode_list_record_string_string(dynamic raw); + @protected List dco_decode_list_socket_address(dynamic raw); @@ -384,9 +425,15 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected MaxDustHTLCExposure dco_decode_max_dust_htlc_exposure(dynamic raw); + @protected + MaxTotalRoutingFeeLimit dco_decode_max_total_routing_fee_limit(dynamic raw); + @protected Network dco_decode_network(dynamic raw); + @protected + NodeAlias dco_decode_node_alias(dynamic raw); + @protected NodeAnnouncementInfo dco_decode_node_announcement_info(dynamic raw); @@ -412,6 +459,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { AnchorChannelsConfig? dco_decode_opt_box_autoadd_anchor_channels_config( dynamic raw); + @protected + bool? dco_decode_opt_box_autoadd_bool(dynamic raw); + @protected ChainDataSourceConfig? dco_decode_opt_box_autoadd_chain_data_source_config( dynamic raw); @@ -436,6 +486,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { EntropySourceConfig? dco_decode_opt_box_autoadd_entropy_source_config( dynamic raw); + @protected + EsploraSyncConfig? dco_decode_opt_box_autoadd_esplora_sync_config( + dynamic raw); + @protected Event? dco_decode_opt_box_autoadd_event(dynamic raw); @@ -448,8 +502,11 @@ abstract class coreApiImplPlatform extends BaseApiImpl { dynamic raw); @protected - MaxDustHTLCExposure? dco_decode_opt_box_autoadd_max_dust_htlc_exposure( - dynamic raw); + MaxTotalRoutingFeeLimit? + dco_decode_opt_box_autoadd_max_total_routing_fee_limit(dynamic raw); + + @protected + NodeAlias? dco_decode_opt_box_autoadd_node_alias(dynamic raw); @protected NodeAnnouncementInfo? dco_decode_opt_box_autoadd_node_announcement_info( @@ -483,6 +540,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected PublicKey? dco_decode_opt_box_autoadd_public_key(dynamic raw); + @protected + SendingParameters? dco_decode_opt_box_autoadd_sending_parameters(dynamic raw); + @protected int? dco_decode_opt_box_autoadd_u_16(dynamic raw); @@ -492,6 +552,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw); + @protected + int? dco_decode_opt_box_autoadd_u_8(dynamic raw); + @protected List? dco_decode_opt_list_socket_address(dynamic raw); @@ -534,16 +597,25 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected PublicKey dco_decode_public_key(dynamic raw); + @protected + QrPaymentResult dco_decode_qr_payment_result(dynamic raw); + @protected (SocketAddress, PublicKey, String?) dco_decode_record_socket_address_public_key_opt_string(dynamic raw); + @protected + (String, String) dco_decode_record_string_string(dynamic raw); + @protected Refund dco_decode_refund(dynamic raw); @protected RoutingFees dco_decode_routing_fees(dynamic raw); + @protected + SendingParameters dco_decode_sending_parameters(dynamic raw); + @protected SocketAddress dco_decode_socket_address(dynamic raw); @@ -587,35 +659,35 @@ abstract class coreApiImplPlatform extends BaseApiImpl { BigInt dco_decode_usize(dynamic raw); @protected - NodeBuilder - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( SseDeserializer deserializer); @protected - NodeBuilder - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( SseDeserializer deserializer); @protected - NodeBuilder - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( SseDeserializer deserializer); @protected - ArcBolt12Payment sse_decode_RustOpaque_Arcldk_nodepaymentBolt12Payment( + Map sse_decode_Map_String_String( SseDeserializer deserializer); @protected - Node sse_decode_RustOpaque_Node(SseDeserializer deserializer); - - @protected - NodeBuilder - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + FfiBuilder + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( SseDeserializer deserializer); @protected Builder sse_decode_RustOpaque_ldk_nodeBuilder(SseDeserializer deserializer); + @protected + Node sse_decode_RustOpaque_ldk_nodeNode(SseDeserializer deserializer); + @protected NetworkGraph sse_decode_RustOpaque_ldk_nodegraphNetworkGraph( SseDeserializer deserializer); @@ -624,6 +696,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { Bolt11Payment sse_decode_RustOpaque_ldk_nodepaymentBolt11Payment( SseDeserializer deserializer); + @protected + Bolt12Payment sse_decode_RustOpaque_ldk_nodepaymentBolt12Payment( + SseDeserializer deserializer); + @protected OnchainPayment sse_decode_RustOpaque_ldk_nodepaymentOnchainPayment( SseDeserializer deserializer); @@ -632,6 +708,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { SpontaneousPayment sse_decode_RustOpaque_ldk_nodepaymentSpontaneousPayment( SseDeserializer deserializer); + @protected + UnifiedQrPayment sse_decode_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + SseDeserializer deserializer); + @protected String sse_decode_String(SseDeserializer deserializer); @@ -645,6 +725,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected BalanceDetails sse_decode_balance_details(SseDeserializer deserializer); + @protected + BalanceSource sse_decode_balance_source(SseDeserializer deserializer); + @protected BestBlock sse_decode_best_block(SseDeserializer deserializer); @@ -675,6 +758,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { Bolt12ParseError sse_decode_box_autoadd_bolt_12_parse_error( SseDeserializer deserializer); + @protected + bool sse_decode_box_autoadd_bool(SseDeserializer deserializer); + @protected ChainDataSourceConfig sse_decode_box_autoadd_chain_data_source_config( SseDeserializer deserializer); @@ -707,37 +793,45 @@ abstract class coreApiImplPlatform extends BaseApiImpl { EntropySourceConfig sse_decode_box_autoadd_entropy_source_config( SseDeserializer deserializer); + @protected + EsploraSyncConfig sse_decode_box_autoadd_esplora_sync_config( + SseDeserializer deserializer); + @protected Event sse_decode_box_autoadd_event(SseDeserializer deserializer); @protected - GossipSourceConfig sse_decode_box_autoadd_gossip_source_config( + FfiBolt11Payment sse_decode_box_autoadd_ffi_bolt_11_payment( SseDeserializer deserializer); @protected - LdkBolt11Payment sse_decode_box_autoadd_ldk_bolt_11_payment( + FfiBolt12Payment sse_decode_box_autoadd_ffi_bolt_12_payment( SseDeserializer deserializer); @protected - LdkBolt12Payment sse_decode_box_autoadd_ldk_bolt_12_payment( + FfiMnemonic sse_decode_box_autoadd_ffi_mnemonic(SseDeserializer deserializer); + + @protected + FfiNetworkGraph sse_decode_box_autoadd_ffi_network_graph( SseDeserializer deserializer); @protected - LdkMnemonic sse_decode_box_autoadd_ldk_mnemonic(SseDeserializer deserializer); + FfiNode sse_decode_box_autoadd_ffi_node(SseDeserializer deserializer); @protected - LdkNetworkGraph sse_decode_box_autoadd_ldk_network_graph( + FfiOnChainPayment sse_decode_box_autoadd_ffi_on_chain_payment( SseDeserializer deserializer); @protected - LdkNode sse_decode_box_autoadd_ldk_node(SseDeserializer deserializer); + FfiSpontaneousPayment sse_decode_box_autoadd_ffi_spontaneous_payment( + SseDeserializer deserializer); @protected - LdkOnChainPayment sse_decode_box_autoadd_ldk_on_chain_payment( + FfiUnifiedQrPayment sse_decode_box_autoadd_ffi_unified_qr_payment( SseDeserializer deserializer); @protected - LdkSpontaneousPayment sse_decode_box_autoadd_ldk_spontaneous_payment( + GossipSourceConfig sse_decode_box_autoadd_gossip_source_config( SseDeserializer deserializer); @protected @@ -749,9 +843,12 @@ abstract class coreApiImplPlatform extends BaseApiImpl { SseDeserializer deserializer); @protected - MaxDustHTLCExposure sse_decode_box_autoadd_max_dust_htlc_exposure( + MaxTotalRoutingFeeLimit sse_decode_box_autoadd_max_total_routing_fee_limit( SseDeserializer deserializer); + @protected + NodeAlias sse_decode_box_autoadd_node_alias(SseDeserializer deserializer); + @protected NodeAnnouncementInfo sse_decode_box_autoadd_node_announcement_info( SseDeserializer deserializer); @@ -799,6 +896,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected Refund sse_decode_box_autoadd_refund(SseDeserializer deserializer); + @protected + SendingParameters sse_decode_box_autoadd_sending_parameters( + SseDeserializer deserializer); + @protected SocketAddress sse_decode_box_autoadd_socket_address( SseDeserializer deserializer); @@ -815,6 +916,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer); + @protected + int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); + @protected UserChannelId sse_decode_box_autoadd_user_channel_id( SseDeserializer deserializer); @@ -852,45 +956,53 @@ abstract class coreApiImplPlatform extends BaseApiImpl { EntropySourceConfig sse_decode_entropy_source_config( SseDeserializer deserializer); + @protected + EsploraSyncConfig sse_decode_esplora_sync_config( + SseDeserializer deserializer); + @protected Event sse_decode_event(SseDeserializer deserializer); @protected - GossipSourceConfig sse_decode_gossip_source_config( - SseDeserializer deserializer); + FfiBolt11Payment sse_decode_ffi_bolt_11_payment(SseDeserializer deserializer); @protected - int sse_decode_i_32(SseDeserializer deserializer); + FfiBolt12Payment sse_decode_ffi_bolt_12_payment(SseDeserializer deserializer); @protected - LdkBolt11Payment sse_decode_ldk_bolt_11_payment(SseDeserializer deserializer); + FfiBuilderError sse_decode_ffi_builder_error(SseDeserializer deserializer); @protected - LdkBolt12Payment sse_decode_ldk_bolt_12_payment(SseDeserializer deserializer); + FfiMnemonic sse_decode_ffi_mnemonic(SseDeserializer deserializer); @protected - LdkBuilderError sse_decode_ldk_builder_error(SseDeserializer deserializer); + FfiNetworkGraph sse_decode_ffi_network_graph(SseDeserializer deserializer); @protected - LdkMnemonic sse_decode_ldk_mnemonic(SseDeserializer deserializer); + FfiNode sse_decode_ffi_node(SseDeserializer deserializer); @protected - LdkNetworkGraph sse_decode_ldk_network_graph(SseDeserializer deserializer); + FfiNodeError sse_decode_ffi_node_error(SseDeserializer deserializer); @protected - LdkNode sse_decode_ldk_node(SseDeserializer deserializer); + FfiOnChainPayment sse_decode_ffi_on_chain_payment( + SseDeserializer deserializer); @protected - LdkNodeError sse_decode_ldk_node_error(SseDeserializer deserializer); + FfiSpontaneousPayment sse_decode_ffi_spontaneous_payment( + SseDeserializer deserializer); @protected - LdkOnChainPayment sse_decode_ldk_on_chain_payment( + FfiUnifiedQrPayment sse_decode_ffi_unified_qr_payment( SseDeserializer deserializer); @protected - LdkSpontaneousPayment sse_decode_ldk_spontaneous_payment( + GossipSourceConfig sse_decode_gossip_source_config( SseDeserializer deserializer); + @protected + int sse_decode_i_32(SseDeserializer deserializer); + @protected LightningBalance sse_decode_lightning_balance(SseDeserializer deserializer); @@ -932,6 +1044,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected List sse_decode_list_public_key(SseDeserializer deserializer); + @protected + List<(String, String)> sse_decode_list_record_string_string( + SseDeserializer deserializer); + @protected List sse_decode_list_socket_address( SseDeserializer deserializer); @@ -946,9 +1062,16 @@ abstract class coreApiImplPlatform extends BaseApiImpl { MaxDustHTLCExposure sse_decode_max_dust_htlc_exposure( SseDeserializer deserializer); + @protected + MaxTotalRoutingFeeLimit sse_decode_max_total_routing_fee_limit( + SseDeserializer deserializer); + @protected Network sse_decode_network(SseDeserializer deserializer); + @protected + NodeAlias sse_decode_node_alias(SseDeserializer deserializer); + @protected NodeAnnouncementInfo sse_decode_node_announcement_info( SseDeserializer deserializer); @@ -975,6 +1098,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { AnchorChannelsConfig? sse_decode_opt_box_autoadd_anchor_channels_config( SseDeserializer deserializer); + @protected + bool? sse_decode_opt_box_autoadd_bool(SseDeserializer deserializer); + @protected ChainDataSourceConfig? sse_decode_opt_box_autoadd_chain_data_source_config( SseDeserializer deserializer); @@ -1003,6 +1129,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { EntropySourceConfig? sse_decode_opt_box_autoadd_entropy_source_config( SseDeserializer deserializer); + @protected + EsploraSyncConfig? sse_decode_opt_box_autoadd_esplora_sync_config( + SseDeserializer deserializer); + @protected Event? sse_decode_opt_box_autoadd_event(SseDeserializer deserializer); @@ -1015,7 +1145,12 @@ abstract class coreApiImplPlatform extends BaseApiImpl { SseDeserializer deserializer); @protected - MaxDustHTLCExposure? sse_decode_opt_box_autoadd_max_dust_htlc_exposure( + MaxTotalRoutingFeeLimit? + sse_decode_opt_box_autoadd_max_total_routing_fee_limit( + SseDeserializer deserializer); + + @protected + NodeAlias? sse_decode_opt_box_autoadd_node_alias( SseDeserializer deserializer); @protected @@ -1056,6 +1191,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { PublicKey? sse_decode_opt_box_autoadd_public_key( SseDeserializer deserializer); + @protected + SendingParameters? sse_decode_opt_box_autoadd_sending_parameters( + SseDeserializer deserializer); + @protected int? sse_decode_opt_box_autoadd_u_16(SseDeserializer deserializer); @@ -1065,6 +1204,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer); + @protected + int? sse_decode_opt_box_autoadd_u_8(SseDeserializer deserializer); + @protected List? sse_decode_opt_list_socket_address( SseDeserializer deserializer); @@ -1110,17 +1252,27 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected PublicKey sse_decode_public_key(SseDeserializer deserializer); + @protected + QrPaymentResult sse_decode_qr_payment_result(SseDeserializer deserializer); + @protected (SocketAddress, PublicKey, String?) sse_decode_record_socket_address_public_key_opt_string( SseDeserializer deserializer); + @protected + (String, String) sse_decode_record_string_string( + SseDeserializer deserializer); + @protected Refund sse_decode_refund(SseDeserializer deserializer); @protected RoutingFees sse_decode_routing_fees(SseDeserializer deserializer); + @protected + SendingParameters sse_decode_sending_parameters(SseDeserializer deserializer); + @protected SocketAddress sse_decode_socket_address(SseDeserializer deserializer); @@ -1163,6 +1315,14 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected BigInt sse_decode_usize(SseDeserializer deserializer); + @protected + ffi.Pointer cst_encode_Map_String_String( + Map raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_list_record_string_string( + raw.entries.map((e) => (e.key, e.value)).toList()); + } + @protected ffi.Pointer cst_encode_String(String raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1204,6 +1364,12 @@ abstract class coreApiImplPlatform extends BaseApiImpl { return ptr; } + @protected + ffi.Pointer cst_encode_box_autoadd_bool(bool raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return wire.cst_new_box_autoadd_bool(cst_encode_bool(raw)); + } + @protected ffi.Pointer cst_encode_box_autoadd_chain_data_source_config( @@ -1285,6 +1451,15 @@ abstract class coreApiImplPlatform extends BaseApiImpl { return ptr; } + @protected + ffi.Pointer + cst_encode_box_autoadd_esplora_sync_config(EsploraSyncConfig raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_esplora_sync_config(); + cst_api_fill_to_wire_esplora_sync_config(raw, ptr.ref); + return ptr; + } + @protected ffi.Pointer cst_encode_box_autoadd_event(Event raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1294,74 +1469,83 @@ abstract class coreApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer - cst_encode_box_autoadd_gossip_source_config(GossipSourceConfig raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_bolt_11_payment(FfiBolt11Payment raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_gossip_source_config(); - cst_api_fill_to_wire_gossip_source_config(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_bolt_11_payment(); + cst_api_fill_to_wire_ffi_bolt_11_payment(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_ffi_bolt_12_payment(FfiBolt12Payment raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_ffi_bolt_12_payment(); + cst_api_fill_to_wire_ffi_bolt_12_payment(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_ldk_bolt_11_payment(LdkBolt11Payment raw) { + ffi.Pointer cst_encode_box_autoadd_ffi_mnemonic( + FfiMnemonic raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_ldk_bolt_11_payment(); - cst_api_fill_to_wire_ldk_bolt_11_payment(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_mnemonic(); + cst_api_fill_to_wire_ffi_mnemonic(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_ldk_bolt_12_payment(LdkBolt12Payment raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_network_graph(FfiNetworkGraph raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_ldk_bolt_12_payment(); - cst_api_fill_to_wire_ldk_bolt_12_payment(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_network_graph(); + cst_api_fill_to_wire_ffi_network_graph(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_ldk_mnemonic( - LdkMnemonic raw) { + ffi.Pointer cst_encode_box_autoadd_ffi_node(FfiNode raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_ldk_mnemonic(); - cst_api_fill_to_wire_ldk_mnemonic(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_node(); + cst_api_fill_to_wire_ffi_node(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_ldk_network_graph(LdkNetworkGraph raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_on_chain_payment(FfiOnChainPayment raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_ldk_network_graph(); - cst_api_fill_to_wire_ldk_network_graph(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_on_chain_payment(); + cst_api_fill_to_wire_ffi_on_chain_payment(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_ldk_node(LdkNode raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_spontaneous_payment( + FfiSpontaneousPayment raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_ldk_node(); - cst_api_fill_to_wire_ldk_node(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_spontaneous_payment(); + cst_api_fill_to_wire_ffi_spontaneous_payment(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_ldk_on_chain_payment(LdkOnChainPayment raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_unified_qr_payment(FfiUnifiedQrPayment raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_ldk_on_chain_payment(); - cst_api_fill_to_wire_ldk_on_chain_payment(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_unified_qr_payment(); + cst_api_fill_to_wire_ffi_unified_qr_payment(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_ldk_spontaneous_payment( - LdkSpontaneousPayment raw) { + ffi.Pointer + cst_encode_box_autoadd_gossip_source_config(GossipSourceConfig raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_ldk_spontaneous_payment(); - cst_api_fill_to_wire_ldk_spontaneous_payment(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_gossip_source_config(); + cst_api_fill_to_wire_gossip_source_config(raw, ptr.ref); return ptr; } @@ -1385,11 +1569,21 @@ abstract class coreApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer - cst_encode_box_autoadd_max_dust_htlc_exposure(MaxDustHTLCExposure raw) { + ffi.Pointer + cst_encode_box_autoadd_max_total_routing_fee_limit( + MaxTotalRoutingFeeLimit raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_max_total_routing_fee_limit(); + cst_api_fill_to_wire_max_total_routing_fee_limit(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer cst_encode_box_autoadd_node_alias( + NodeAlias raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_max_dust_htlc_exposure(); - cst_api_fill_to_wire_max_dust_htlc_exposure(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_node_alias(); + cst_api_fill_to_wire_node_alias(raw, ptr.ref); return ptr; } @@ -1514,6 +1708,15 @@ abstract class coreApiImplPlatform extends BaseApiImpl { return ptr; } + @protected + ffi.Pointer + cst_encode_box_autoadd_sending_parameters(SendingParameters raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_sending_parameters(); + cst_api_fill_to_wire_sending_parameters(raw, ptr.ref); + return ptr; + } + @protected ffi.Pointer cst_encode_box_autoadd_socket_address( SocketAddress raw) { @@ -1549,6 +1752,12 @@ abstract class coreApiImplPlatform extends BaseApiImpl { return wire.cst_new_box_autoadd_u_64(cst_encode_u_64(raw)); } + @protected + ffi.Pointer cst_encode_box_autoadd_u_8(int raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return wire.cst_new_box_autoadd_u_8(cst_encode_u_8(raw)); + } + @protected ffi.Pointer cst_encode_box_autoadd_user_channel_id( UserChannelId raw) { @@ -1661,6 +1870,17 @@ abstract class coreApiImplPlatform extends BaseApiImpl { return ans; } + @protected + ffi.Pointer + cst_encode_list_record_string_string(List<(String, String)> raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ans = wire.cst_new_list_record_string_string(raw.length); + for (var i = 0; i < raw.length; ++i) { + cst_api_fill_to_wire_record_string_string(raw[i], ans.ref.ptr[i]); + } + return ans; + } + @protected ffi.Pointer cst_encode_list_socket_address( List raw) { @@ -1689,6 +1909,12 @@ abstract class coreApiImplPlatform extends BaseApiImpl { : cst_encode_box_autoadd_anchor_channels_config(raw); } + @protected + ffi.Pointer cst_encode_opt_box_autoadd_bool(bool? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null ? ffi.nullptr : cst_encode_box_autoadd_bool(raw); + } + @protected ffi.Pointer cst_encode_opt_box_autoadd_chain_data_source_config( @@ -1750,6 +1976,15 @@ abstract class coreApiImplPlatform extends BaseApiImpl { : cst_encode_box_autoadd_entropy_source_config(raw); } + @protected + ffi.Pointer + cst_encode_opt_box_autoadd_esplora_sync_config(EsploraSyncConfig? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null + ? ffi.nullptr + : cst_encode_box_autoadd_esplora_sync_config(raw); + } + @protected ffi.Pointer cst_encode_opt_box_autoadd_event(Event? raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1776,13 +2011,20 @@ abstract class coreApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer - cst_encode_opt_box_autoadd_max_dust_htlc_exposure( - MaxDustHTLCExposure? raw) { + ffi.Pointer + cst_encode_opt_box_autoadd_max_total_routing_fee_limit( + MaxTotalRoutingFeeLimit? raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw == null ? ffi.nullptr - : cst_encode_box_autoadd_max_dust_htlc_exposure(raw); + : cst_encode_box_autoadd_max_total_routing_fee_limit(raw); + } + + @protected + ffi.Pointer cst_encode_opt_box_autoadd_node_alias( + NodeAlias? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null ? ffi.nullptr : cst_encode_box_autoadd_node_alias(raw); } @protected @@ -1866,6 +2108,15 @@ abstract class coreApiImplPlatform extends BaseApiImpl { return raw == null ? ffi.nullptr : cst_encode_box_autoadd_public_key(raw); } + @protected + ffi.Pointer + cst_encode_opt_box_autoadd_sending_parameters(SendingParameters? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null + ? ffi.nullptr + : cst_encode_box_autoadd_sending_parameters(raw); + } + @protected ffi.Pointer cst_encode_opt_box_autoadd_u_16(int? raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1884,6 +2135,12 @@ abstract class coreApiImplPlatform extends BaseApiImpl { return raw == null ? ffi.nullptr : cst_encode_box_autoadd_u_64(raw); } + @protected + ffi.Pointer cst_encode_opt_box_autoadd_u_8(int? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null ? ffi.nullptr : cst_encode_box_autoadd_u_8(raw); + } + @protected ffi.Pointer cst_encode_opt_list_socket_address( List? raw) { @@ -2117,6 +2374,13 @@ abstract class coreApiImplPlatform extends BaseApiImpl { cst_api_fill_to_wire_entropy_source_config(apiObj, wireObj.ref); } + @protected + void cst_api_fill_to_wire_box_autoadd_esplora_sync_config( + EsploraSyncConfig apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_esplora_sync_config(apiObj, wireObj.ref); + } + @protected void cst_api_fill_to_wire_box_autoadd_event( Event apiObj, ffi.Pointer wireObj) { @@ -2124,56 +2388,63 @@ abstract class coreApiImplPlatform extends BaseApiImpl { } @protected - void cst_api_fill_to_wire_box_autoadd_gossip_source_config( - GossipSourceConfig apiObj, - ffi.Pointer wireObj) { - cst_api_fill_to_wire_gossip_source_config(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_bolt_11_payment( + FfiBolt11Payment apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_bolt_11_payment(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_bolt_12_payment( + FfiBolt12Payment apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_bolt_12_payment(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_ldk_bolt_11_payment( - LdkBolt11Payment apiObj, - ffi.Pointer wireObj) { - cst_api_fill_to_wire_ldk_bolt_11_payment(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_mnemonic( + FfiMnemonic apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_mnemonic(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_ldk_bolt_12_payment( - LdkBolt12Payment apiObj, - ffi.Pointer wireObj) { - cst_api_fill_to_wire_ldk_bolt_12_payment(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_network_graph( + FfiNetworkGraph apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_network_graph(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_ldk_mnemonic( - LdkMnemonic apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_ldk_mnemonic(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_node( + FfiNode apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_node(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_ldk_network_graph( - LdkNetworkGraph apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_ldk_network_graph(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_on_chain_payment( + FfiOnChainPayment apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_on_chain_payment(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_ldk_node( - LdkNode apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_ldk_node(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_spontaneous_payment( + FfiSpontaneousPayment apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_spontaneous_payment(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_ldk_on_chain_payment( - LdkOnChainPayment apiObj, - ffi.Pointer wireObj) { - cst_api_fill_to_wire_ldk_on_chain_payment(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_unified_qr_payment( + FfiUnifiedQrPayment apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_unified_qr_payment(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_ldk_spontaneous_payment( - LdkSpontaneousPayment apiObj, - ffi.Pointer wireObj) { - cst_api_fill_to_wire_ldk_spontaneous_payment(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_gossip_source_config( + GossipSourceConfig apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_gossip_source_config(apiObj, wireObj.ref); } @protected @@ -2190,10 +2461,16 @@ abstract class coreApiImplPlatform extends BaseApiImpl { } @protected - void cst_api_fill_to_wire_box_autoadd_max_dust_htlc_exposure( - MaxDustHTLCExposure apiObj, - ffi.Pointer wireObj) { - cst_api_fill_to_wire_max_dust_htlc_exposure(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_max_total_routing_fee_limit( + MaxTotalRoutingFeeLimit apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_max_total_routing_fee_limit(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_node_alias( + NodeAlias apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_node_alias(apiObj, wireObj.ref); } @protected @@ -2275,6 +2552,13 @@ abstract class coreApiImplPlatform extends BaseApiImpl { cst_api_fill_to_wire_refund(apiObj, wireObj.ref); } + @protected + void cst_api_fill_to_wire_box_autoadd_sending_parameters( + SendingParameters apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_sending_parameters(apiObj, wireObj.ref); + } + @protected void cst_api_fill_to_wire_box_autoadd_socket_address( SocketAddress apiObj, ffi.Pointer wireObj) { @@ -2297,9 +2581,24 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void cst_api_fill_to_wire_chain_data_source_config( ChainDataSourceConfig apiObj, wire_cst_chain_data_source_config wireObj) { if (apiObj is ChainDataSourceConfig_Esplora) { - var pre_field0 = cst_encode_String(apiObj.field0); + var pre_server_url = cst_encode_String(apiObj.serverUrl); + var pre_sync_config = + cst_encode_opt_box_autoadd_esplora_sync_config(apiObj.syncConfig); wireObj.tag = 0; - wireObj.kind.Esplora.field0 = pre_field0; + wireObj.kind.Esplora.server_url = pre_server_url; + wireObj.kind.Esplora.sync_config = pre_sync_config; + return; + } + if (apiObj is ChainDataSourceConfig_BitcoindRpc) { + var pre_rpc_host = cst_encode_String(apiObj.rpcHost); + var pre_rpc_port = cst_encode_u_16(apiObj.rpcPort); + var pre_rpc_user = cst_encode_String(apiObj.rpcUser); + var pre_rpc_password = cst_encode_String(apiObj.rpcPassword); + wireObj.tag = 1; + wireObj.kind.BitcoindRpc.rpc_host = pre_rpc_host; + wireObj.kind.BitcoindRpc.rpc_port = pre_rpc_port; + wireObj.kind.BitcoindRpc.rpc_user = pre_rpc_user; + wireObj.kind.BitcoindRpc.rpc_password = pre_rpc_password; return; } } @@ -2312,9 +2611,8 @@ abstract class coreApiImplPlatform extends BaseApiImpl { wireObj.forwarding_fee_base_msat = cst_encode_u_32(apiObj.forwardingFeeBaseMsat); wireObj.cltv_expiry_delta = cst_encode_u_16(apiObj.cltvExpiryDelta); - wireObj.max_dust_htlc_exposure = - cst_encode_opt_box_autoadd_max_dust_htlc_exposure( - apiObj.maxDustHtlcExposure); + cst_api_fill_to_wire_max_dust_htlc_exposure( + apiObj.maxDustHtlcExposure, wireObj.max_dust_htlc_exposure); wireObj.force_close_avoidance_max_fee_satoshis = cst_encode_u_64(apiObj.forceCloseAvoidanceMaxFeeSatoshis); wireObj.accept_underpaying_htlcs = @@ -2346,7 +2644,6 @@ abstract class coreApiImplPlatform extends BaseApiImpl { wireObj.is_outbound = cst_encode_bool(apiObj.isOutbound); wireObj.is_channel_ready = cst_encode_bool(apiObj.isChannelReady); wireObj.is_usable = cst_encode_bool(apiObj.isUsable); - wireObj.is_public = cst_encode_bool(apiObj.isPublic); wireObj.cltv_expiry_delta = cst_encode_opt_box_autoadd_u_16(apiObj.cltvExpiryDelta); wireObj.counterparty_unspendable_punishment_reserve = @@ -2412,60 +2709,76 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_closure_reason( ClosureReason apiObj, wire_cst_closure_reason wireObj) { + if (apiObj is ClosureReason_PeerFeerateTooLow) { + var pre_peer_feerate_sat_per_kw = + cst_encode_u_32(apiObj.peerFeerateSatPerKw); + var pre_required_feerate_sat_per_kw = + cst_encode_u_32(apiObj.requiredFeerateSatPerKw); + wireObj.tag = 0; + wireObj.kind.PeerFeerateTooLow.peer_feerate_sat_per_kw = + pre_peer_feerate_sat_per_kw; + wireObj.kind.PeerFeerateTooLow.required_feerate_sat_per_kw = + pre_required_feerate_sat_per_kw; + return; + } if (apiObj is ClosureReason_CounterpartyForceClosed) { var pre_peer_msg = cst_encode_String(apiObj.peerMsg); - wireObj.tag = 0; + wireObj.tag = 1; wireObj.kind.CounterpartyForceClosed.peer_msg = pre_peer_msg; return; } if (apiObj is ClosureReason_HolderForceClosed) { - wireObj.tag = 1; + var pre_broadcasted_latest_txn = + cst_encode_opt_box_autoadd_bool(apiObj.broadcastedLatestTxn); + wireObj.tag = 2; + wireObj.kind.HolderForceClosed.broadcasted_latest_txn = + pre_broadcasted_latest_txn; return; } if (apiObj is ClosureReason_LegacyCooperativeClosure) { - wireObj.tag = 2; + wireObj.tag = 3; return; } if (apiObj is ClosureReason_CounterpartyInitiatedCooperativeClosure) { - wireObj.tag = 3; + wireObj.tag = 4; return; } if (apiObj is ClosureReason_LocallyInitiatedCooperativeClosure) { - wireObj.tag = 4; + wireObj.tag = 5; return; } if (apiObj is ClosureReason_CommitmentTxConfirmed) { - wireObj.tag = 5; + wireObj.tag = 6; return; } if (apiObj is ClosureReason_FundingTimedOut) { - wireObj.tag = 6; + wireObj.tag = 7; return; } if (apiObj is ClosureReason_ProcessingError) { var pre_err = cst_encode_String(apiObj.err); - wireObj.tag = 7; + wireObj.tag = 8; wireObj.kind.ProcessingError.err = pre_err; return; } if (apiObj is ClosureReason_DisconnectedPeer) { - wireObj.tag = 8; + wireObj.tag = 9; return; } if (apiObj is ClosureReason_OutdatedChannelManager) { - wireObj.tag = 9; + wireObj.tag = 10; return; } if (apiObj is ClosureReason_CounterpartyCoopClosedUnfundedChannel) { - wireObj.tag = 10; + wireObj.tag = 11; return; } if (apiObj is ClosureReason_FundingBatchClosure) { - wireObj.tag = 11; + wireObj.tag = 12; return; } if (apiObj is ClosureReason_HTLCsTimedOut) { - wireObj.tag = 12; + wireObj.tag = 13; return; } } @@ -2477,14 +2790,8 @@ abstract class coreApiImplPlatform extends BaseApiImpl { wireObj.network = cst_encode_network(apiObj.network); wireObj.listening_addresses = cst_encode_opt_list_socket_address(apiObj.listeningAddresses); - wireObj.default_cltv_expiry_delta = - cst_encode_u_32(apiObj.defaultCltvExpiryDelta); - wireObj.onchain_wallet_sync_interval_secs = - cst_encode_u_64(apiObj.onchainWalletSyncIntervalSecs); - wireObj.wallet_sync_interval_secs = - cst_encode_u_64(apiObj.walletSyncIntervalSecs); - wireObj.fee_rate_cache_update_interval_secs = - cst_encode_u_64(apiObj.feeRateCacheUpdateIntervalSecs); + wireObj.node_alias = + cst_encode_opt_box_autoadd_node_alias(apiObj.nodeAlias); wireObj.trusted_peers_0conf = cst_encode_list_public_key(apiObj.trustedPeers0Conf); wireObj.probing_liquidity_limit_multiplier = @@ -2493,6 +2800,8 @@ abstract class coreApiImplPlatform extends BaseApiImpl { wireObj.anchor_channels_config = cst_encode_opt_box_autoadd_anchor_channels_config( apiObj.anchorChannelsConfig); + wireObj.sending_parameters = + cst_encode_opt_box_autoadd_sending_parameters(apiObj.sendingParameters); } @protected @@ -2550,7 +2859,7 @@ abstract class coreApiImplPlatform extends BaseApiImpl { return; } if (apiObj is EntropySourceConfig_Bip39Mnemonic) { - var pre_mnemonic = cst_encode_box_autoadd_ldk_mnemonic(apiObj.mnemonic); + var pre_mnemonic = cst_encode_box_autoadd_ffi_mnemonic(apiObj.mnemonic); var pre_passphrase = cst_encode_opt_String(apiObj.passphrase); wireObj.tag = 2; wireObj.kind.Bip39Mnemonic.mnemonic = pre_mnemonic; @@ -2559,6 +2868,17 @@ abstract class coreApiImplPlatform extends BaseApiImpl { } } + @protected + void cst_api_fill_to_wire_esplora_sync_config( + EsploraSyncConfig apiObj, wire_cst_esplora_sync_config wireObj) { + wireObj.onchain_wallet_sync_interval_secs = + cst_encode_u_64(apiObj.onchainWalletSyncIntervalSecs); + wireObj.lightning_wallet_sync_interval_secs = + cst_encode_u_64(apiObj.lightningWalletSyncIntervalSecs); + wireObj.fee_rate_cache_update_interval_secs = + cst_encode_u_64(apiObj.feeRateCacheUpdateIntervalSecs); + } + @protected void cst_api_fill_to_wire_event(Event apiObj, wire_cst_event wireObj) { if (apiObj is Event_PaymentClaimable) { @@ -2594,7 +2914,7 @@ abstract class coreApiImplPlatform extends BaseApiImpl { var pre_payment_id = cst_encode_opt_box_autoadd_payment_id(apiObj.paymentId); var pre_payment_hash = - cst_encode_box_autoadd_payment_hash(apiObj.paymentHash); + cst_encode_opt_box_autoadd_payment_hash(apiObj.paymentHash); var pre_reason = cst_encode_opt_box_autoadd_payment_failure_reason(apiObj.reason); wireObj.tag = 2; @@ -2664,270 +2984,294 @@ abstract class coreApiImplPlatform extends BaseApiImpl { } @protected - void cst_api_fill_to_wire_gossip_source_config( - GossipSourceConfig apiObj, wire_cst_gossip_source_config wireObj) { - if (apiObj is GossipSourceConfig_P2PNetwork) { - wireObj.tag = 0; - return; - } - if (apiObj is GossipSourceConfig_RapidGossipSync) { - var pre_field0 = cst_encode_String(apiObj.field0); - wireObj.tag = 1; - wireObj.kind.RapidGossipSync.field0 = pre_field0; - return; - } - } - - @protected - void cst_api_fill_to_wire_ldk_bolt_11_payment( - LdkBolt11Payment apiObj, wire_cst_ldk_bolt_11_payment wireObj) { - wireObj.ptr = - cst_encode_RustOpaque_ldk_nodepaymentBolt11Payment(apiObj.ptr); + void cst_api_fill_to_wire_ffi_bolt_11_payment( + FfiBolt11Payment apiObj, wire_cst_ffi_bolt_11_payment wireObj) { + wireObj.opaque = + cst_encode_RustOpaque_ldk_nodepaymentBolt11Payment(apiObj.opaque); } @protected - void cst_api_fill_to_wire_ldk_bolt_12_payment( - LdkBolt12Payment apiObj, wire_cst_ldk_bolt_12_payment wireObj) { - wireObj.ptr = - cst_encode_RustOpaque_Arcldk_nodepaymentBolt12Payment(apiObj.ptr); + void cst_api_fill_to_wire_ffi_bolt_12_payment( + FfiBolt12Payment apiObj, wire_cst_ffi_bolt_12_payment wireObj) { + wireObj.opaque = + cst_encode_RustOpaque_ldk_nodepaymentBolt12Payment(apiObj.opaque); } @protected - void cst_api_fill_to_wire_ldk_mnemonic( - LdkMnemonic apiObj, wire_cst_ldk_mnemonic wireObj) { + void cst_api_fill_to_wire_ffi_mnemonic( + FfiMnemonic apiObj, wire_cst_ffi_mnemonic wireObj) { wireObj.seed_phrase = cst_encode_String(apiObj.seedPhrase); } @protected - void cst_api_fill_to_wire_ldk_network_graph( - LdkNetworkGraph apiObj, wire_cst_ldk_network_graph wireObj) { - wireObj.ptr = cst_encode_RustOpaque_ldk_nodegraphNetworkGraph(apiObj.ptr); + void cst_api_fill_to_wire_ffi_network_graph( + FfiNetworkGraph apiObj, wire_cst_ffi_network_graph wireObj) { + wireObj.opaque = + cst_encode_RustOpaque_ldk_nodegraphNetworkGraph(apiObj.opaque); } @protected - void cst_api_fill_to_wire_ldk_node( - LdkNode apiObj, wire_cst_ldk_node wireObj) { - wireObj.ptr = cst_encode_RustOpaque_Node(apiObj.ptr); + void cst_api_fill_to_wire_ffi_node( + FfiNode apiObj, wire_cst_ffi_node wireObj) { + wireObj.opaque = cst_encode_RustOpaque_ldk_nodeNode(apiObj.opaque); } @protected - void cst_api_fill_to_wire_ldk_node_error( - LdkNodeError apiObj, wire_cst_ldk_node_error wireObj) { - if (apiObj is LdkNodeError_InvalidTxid) { + void cst_api_fill_to_wire_ffi_node_error( + FfiNodeError apiObj, wire_cst_ffi_node_error wireObj) { + if (apiObj is FfiNodeError_InvalidTxid) { wireObj.tag = 0; return; } - if (apiObj is LdkNodeError_AlreadyRunning) { + if (apiObj is FfiNodeError_AlreadyRunning) { wireObj.tag = 1; return; } - if (apiObj is LdkNodeError_NotRunning) { + if (apiObj is FfiNodeError_NotRunning) { wireObj.tag = 2; return; } - if (apiObj is LdkNodeError_OnchainTxCreationFailed) { + if (apiObj is FfiNodeError_OnchainTxCreationFailed) { wireObj.tag = 3; return; } - if (apiObj is LdkNodeError_ConnectionFailed) { + if (apiObj is FfiNodeError_ConnectionFailed) { wireObj.tag = 4; return; } - if (apiObj is LdkNodeError_InvoiceCreationFailed) { + if (apiObj is FfiNodeError_InvoiceCreationFailed) { wireObj.tag = 5; return; } - if (apiObj is LdkNodeError_PaymentSendingFailed) { + if (apiObj is FfiNodeError_PaymentSendingFailed) { wireObj.tag = 6; return; } - if (apiObj is LdkNodeError_ProbeSendingFailed) { + if (apiObj is FfiNodeError_ProbeSendingFailed) { wireObj.tag = 7; return; } - if (apiObj is LdkNodeError_ChannelCreationFailed) { + if (apiObj is FfiNodeError_ChannelCreationFailed) { wireObj.tag = 8; return; } - if (apiObj is LdkNodeError_ChannelClosingFailed) { + if (apiObj is FfiNodeError_ChannelClosingFailed) { wireObj.tag = 9; return; } - if (apiObj is LdkNodeError_ChannelConfigUpdateFailed) { + if (apiObj is FfiNodeError_ChannelConfigUpdateFailed) { wireObj.tag = 10; return; } - if (apiObj is LdkNodeError_PersistenceFailed) { + if (apiObj is FfiNodeError_PersistenceFailed) { wireObj.tag = 11; return; } - if (apiObj is LdkNodeError_WalletOperationFailed) { + if (apiObj is FfiNodeError_WalletOperationFailed) { wireObj.tag = 12; return; } - if (apiObj is LdkNodeError_OnchainTxSigningFailed) { + if (apiObj is FfiNodeError_OnchainTxSigningFailed) { wireObj.tag = 13; return; } - if (apiObj is LdkNodeError_MessageSigningFailed) { + if (apiObj is FfiNodeError_MessageSigningFailed) { wireObj.tag = 14; return; } - if (apiObj is LdkNodeError_TxSyncFailed) { + if (apiObj is FfiNodeError_TxSyncFailed) { wireObj.tag = 15; return; } - if (apiObj is LdkNodeError_GossipUpdateFailed) { + if (apiObj is FfiNodeError_GossipUpdateFailed) { wireObj.tag = 16; return; } - if (apiObj is LdkNodeError_InvalidAddress) { + if (apiObj is FfiNodeError_InvalidAddress) { wireObj.tag = 17; return; } - if (apiObj is LdkNodeError_InvalidSocketAddress) { + if (apiObj is FfiNodeError_InvalidSocketAddress) { wireObj.tag = 18; return; } - if (apiObj is LdkNodeError_InvalidPublicKey) { + if (apiObj is FfiNodeError_InvalidPublicKey) { wireObj.tag = 19; return; } - if (apiObj is LdkNodeError_InvalidSecretKey) { + if (apiObj is FfiNodeError_InvalidSecretKey) { wireObj.tag = 20; return; } - if (apiObj is LdkNodeError_InvalidPaymentHash) { + if (apiObj is FfiNodeError_InvalidPaymentHash) { wireObj.tag = 21; return; } - if (apiObj is LdkNodeError_InvalidPaymentPreimage) { + if (apiObj is FfiNodeError_InvalidPaymentPreimage) { wireObj.tag = 22; return; } - if (apiObj is LdkNodeError_InvalidPaymentSecret) { + if (apiObj is FfiNodeError_InvalidPaymentSecret) { wireObj.tag = 23; return; } - if (apiObj is LdkNodeError_InvalidAmount) { + if (apiObj is FfiNodeError_InvalidAmount) { wireObj.tag = 24; return; } - if (apiObj is LdkNodeError_InvalidInvoice) { + if (apiObj is FfiNodeError_InvalidInvoice) { wireObj.tag = 25; return; } - if (apiObj is LdkNodeError_InvalidChannelId) { + if (apiObj is FfiNodeError_InvalidChannelId) { wireObj.tag = 26; return; } - if (apiObj is LdkNodeError_InvalidNetwork) { + if (apiObj is FfiNodeError_InvalidNetwork) { wireObj.tag = 27; return; } - if (apiObj is LdkNodeError_DuplicatePayment) { + if (apiObj is FfiNodeError_DuplicatePayment) { wireObj.tag = 28; return; } - if (apiObj is LdkNodeError_InsufficientFunds) { + if (apiObj is FfiNodeError_InsufficientFunds) { wireObj.tag = 29; return; } - if (apiObj is LdkNodeError_FeerateEstimationUpdateFailed) { + if (apiObj is FfiNodeError_FeerateEstimationUpdateFailed) { wireObj.tag = 30; return; } - if (apiObj is LdkNodeError_LiquidityRequestFailed) { + if (apiObj is FfiNodeError_LiquidityRequestFailed) { wireObj.tag = 31; return; } - if (apiObj is LdkNodeError_LiquiditySourceUnavailable) { + if (apiObj is FfiNodeError_LiquiditySourceUnavailable) { wireObj.tag = 32; return; } - if (apiObj is LdkNodeError_LiquidityFeeTooHigh) { + if (apiObj is FfiNodeError_LiquidityFeeTooHigh) { wireObj.tag = 33; return; } - if (apiObj is LdkNodeError_InvalidPaymentId) { + if (apiObj is FfiNodeError_InvalidPaymentId) { wireObj.tag = 34; return; } - if (apiObj is LdkNodeError_Decode) { + if (apiObj is FfiNodeError_Decode) { var pre_field0 = cst_encode_box_autoadd_decode_error(apiObj.field0); wireObj.tag = 35; wireObj.kind.Decode.field0 = pre_field0; return; } - if (apiObj is LdkNodeError_Bolt12Parse) { + if (apiObj is FfiNodeError_Bolt12Parse) { var pre_field0 = cst_encode_box_autoadd_bolt_12_parse_error(apiObj.field0); wireObj.tag = 36; wireObj.kind.Bolt12Parse.field0 = pre_field0; return; } - if (apiObj is LdkNodeError_InvoiceRequestCreationFailed) { + if (apiObj is FfiNodeError_InvoiceRequestCreationFailed) { wireObj.tag = 37; return; } - if (apiObj is LdkNodeError_OfferCreationFailed) { + if (apiObj is FfiNodeError_OfferCreationFailed) { wireObj.tag = 38; return; } - if (apiObj is LdkNodeError_RefundCreationFailed) { + if (apiObj is FfiNodeError_RefundCreationFailed) { wireObj.tag = 39; return; } - if (apiObj is LdkNodeError_FeerateEstimationUpdateTimeout) { + if (apiObj is FfiNodeError_FeerateEstimationUpdateTimeout) { wireObj.tag = 40; return; } - if (apiObj is LdkNodeError_WalletOperationTimeout) { + if (apiObj is FfiNodeError_WalletOperationTimeout) { wireObj.tag = 41; return; } - if (apiObj is LdkNodeError_TxSyncTimeout) { + if (apiObj is FfiNodeError_TxSyncTimeout) { wireObj.tag = 42; return; } - if (apiObj is LdkNodeError_GossipUpdateTimeout) { + if (apiObj is FfiNodeError_GossipUpdateTimeout) { wireObj.tag = 43; return; } - if (apiObj is LdkNodeError_InvalidOfferId) { + if (apiObj is FfiNodeError_InvalidOfferId) { wireObj.tag = 44; return; } - if (apiObj is LdkNodeError_InvalidNodeId) { + if (apiObj is FfiNodeError_InvalidNodeId) { wireObj.tag = 45; return; } - if (apiObj is LdkNodeError_InvalidOffer) { + if (apiObj is FfiNodeError_InvalidOffer) { wireObj.tag = 46; return; } - if (apiObj is LdkNodeError_InvalidRefund) { + if (apiObj is FfiNodeError_InvalidRefund) { wireObj.tag = 47; return; } - if (apiObj is LdkNodeError_UnsupportedCurrency) { + if (apiObj is FfiNodeError_UnsupportedCurrency) { wireObj.tag = 48; return; } + if (apiObj is FfiNodeError_UriParameterParsingFailed) { + wireObj.tag = 49; + return; + } + if (apiObj is FfiNodeError_InvalidUri) { + wireObj.tag = 50; + return; + } + if (apiObj is FfiNodeError_InvalidQuantity) { + wireObj.tag = 51; + return; + } + if (apiObj is FfiNodeError_InvalidNodeAlias) { + wireObj.tag = 52; + return; + } + } + + @protected + void cst_api_fill_to_wire_ffi_on_chain_payment( + FfiOnChainPayment apiObj, wire_cst_ffi_on_chain_payment wireObj) { + wireObj.opaque = + cst_encode_RustOpaque_ldk_nodepaymentOnchainPayment(apiObj.opaque); + } + + @protected + void cst_api_fill_to_wire_ffi_spontaneous_payment( + FfiSpontaneousPayment apiObj, wire_cst_ffi_spontaneous_payment wireObj) { + wireObj.opaque = + cst_encode_RustOpaque_ldk_nodepaymentSpontaneousPayment(apiObj.opaque); } @protected - void cst_api_fill_to_wire_ldk_on_chain_payment( - LdkOnChainPayment apiObj, wire_cst_ldk_on_chain_payment wireObj) { - wireObj.ptr = - cst_encode_RustOpaque_ldk_nodepaymentOnchainPayment(apiObj.ptr); + void cst_api_fill_to_wire_ffi_unified_qr_payment( + FfiUnifiedQrPayment apiObj, wire_cst_ffi_unified_qr_payment wireObj) { + wireObj.opaque = + cst_encode_RustOpaque_ldk_nodepaymentUnifiedQrPayment(apiObj.opaque); } @protected - void cst_api_fill_to_wire_ldk_spontaneous_payment( - LdkSpontaneousPayment apiObj, wire_cst_ldk_spontaneous_payment wireObj) { - wireObj.ptr = - cst_encode_RustOpaque_ldk_nodepaymentSpontaneousPayment(apiObj.ptr); + void cst_api_fill_to_wire_gossip_source_config( + GossipSourceConfig apiObj, wire_cst_gossip_source_config wireObj) { + if (apiObj is GossipSourceConfig_P2PNetwork) { + wireObj.tag = 0; + return; + } + if (apiObj is GossipSourceConfig_RapidGossipSync) { + var pre_field0 = cst_encode_String(apiObj.field0); + wireObj.tag = 1; + wireObj.kind.RapidGossipSync.field0 = pre_field0; + return; + } } @protected @@ -2938,12 +3282,33 @@ abstract class coreApiImplPlatform extends BaseApiImpl { var pre_counterparty_node_id = cst_encode_box_autoadd_public_key(apiObj.counterpartyNodeId); var pre_amount_satoshis = cst_encode_u_64(apiObj.amountSatoshis); + var pre_transaction_fee_satoshis = + cst_encode_u_64(apiObj.transactionFeeSatoshis); + var pre_outbound_payment_htlc_rounded_msat = + cst_encode_u_64(apiObj.outboundPaymentHtlcRoundedMsat); + var pre_outbound_forwarded_htlc_rounded_msat = + cst_encode_u_64(apiObj.outboundForwardedHtlcRoundedMsat); + var pre_inbound_claiming_htlc_rounded_msat = + cst_encode_u_64(apiObj.inboundClaimingHtlcRoundedMsat); + var pre_inbound_htlc_rounded_msat = + cst_encode_u_64(apiObj.inboundHtlcRoundedMsat); wireObj.tag = 0; wireObj.kind.ClaimableOnChannelClose.channel_id = pre_channel_id; wireObj.kind.ClaimableOnChannelClose.counterparty_node_id = pre_counterparty_node_id; wireObj.kind.ClaimableOnChannelClose.amount_satoshis = pre_amount_satoshis; + wireObj.kind.ClaimableOnChannelClose.transaction_fee_satoshis = + pre_transaction_fee_satoshis; + wireObj.kind.ClaimableOnChannelClose.outbound_payment_htlc_rounded_msat = + pre_outbound_payment_htlc_rounded_msat; + wireObj.kind.ClaimableOnChannelClose + .outbound_forwarded_htlc_rounded_msat = + pre_outbound_forwarded_htlc_rounded_msat; + wireObj.kind.ClaimableOnChannelClose.inbound_claiming_htlc_rounded_msat = + pre_inbound_claiming_htlc_rounded_msat; + wireObj.kind.ClaimableOnChannelClose.inbound_htlc_rounded_msat = + pre_inbound_htlc_rounded_msat; return; } if (apiObj is LightningBalance_ClaimableAwaitingConfirmations) { @@ -2952,6 +3317,7 @@ abstract class coreApiImplPlatform extends BaseApiImpl { cst_encode_box_autoadd_public_key(apiObj.counterpartyNodeId); var pre_amount_satoshis = cst_encode_u_64(apiObj.amountSatoshis); var pre_confirmation_height = cst_encode_u_32(apiObj.confirmationHeight); + var pre_source = cst_encode_balance_source(apiObj.source); wireObj.tag = 1; wireObj.kind.ClaimableAwaitingConfirmations.channel_id = pre_channel_id; wireObj.kind.ClaimableAwaitingConfirmations.counterparty_node_id = @@ -2960,6 +3326,7 @@ abstract class coreApiImplPlatform extends BaseApiImpl { pre_amount_satoshis; wireObj.kind.ClaimableAwaitingConfirmations.confirmation_height = pre_confirmation_height; + wireObj.kind.ClaimableAwaitingConfirmations.source = pre_source; return; } if (apiObj is LightningBalance_ContentiousClaimable) { @@ -2990,6 +3357,7 @@ abstract class coreApiImplPlatform extends BaseApiImpl { var pre_claimable_height = cst_encode_u_32(apiObj.claimableHeight); var pre_payment_hash = cst_encode_box_autoadd_payment_hash(apiObj.paymentHash); + var pre_outbound_payment = cst_encode_bool(apiObj.outboundPayment); wireObj.tag = 3; wireObj.kind.MaybeTimeoutClaimableHTLC.channel_id = pre_channel_id; wireObj.kind.MaybeTimeoutClaimableHTLC.counterparty_node_id = @@ -2999,6 +3367,8 @@ abstract class coreApiImplPlatform extends BaseApiImpl { wireObj.kind.MaybeTimeoutClaimableHTLC.claimable_height = pre_claimable_height; wireObj.kind.MaybeTimeoutClaimableHTLC.payment_hash = pre_payment_hash; + wireObj.kind.MaybeTimeoutClaimableHTLC.outbound_payment = + pre_outbound_payment; return; } if (apiObj is LightningBalance_MaybePreimageClaimableHTLC) { @@ -3069,6 +3439,28 @@ abstract class coreApiImplPlatform extends BaseApiImpl { } } + @protected + void cst_api_fill_to_wire_max_total_routing_fee_limit( + MaxTotalRoutingFeeLimit apiObj, + wire_cst_max_total_routing_fee_limit wireObj) { + if (apiObj is MaxTotalRoutingFeeLimit_NoFeeCap) { + wireObj.tag = 0; + return; + } + if (apiObj is MaxTotalRoutingFeeLimit_FeeCap) { + var pre_amount_msat = cst_encode_u_64(apiObj.amountMsat); + wireObj.tag = 1; + wireObj.kind.FeeCap.amount_msat = pre_amount_msat; + return; + } + } + + @protected + void cst_api_fill_to_wire_node_alias( + NodeAlias apiObj, wire_cst_node_alias wireObj) { + wireObj.field0 = cst_encode_u_8_array_32(apiObj.field0); + } + @protected void cst_api_fill_to_wire_node_announcement_info( NodeAnnouncementInfo apiObj, wire_cst_node_announcement_info wireObj) { @@ -3098,8 +3490,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { wireObj.is_listening = cst_encode_bool(apiObj.isListening); cst_api_fill_to_wire_best_block( apiObj.currentBestBlock, wireObj.current_best_block); - wireObj.latest_wallet_sync_timestamp = - cst_encode_opt_box_autoadd_u_64(apiObj.latestWalletSyncTimestamp); + wireObj.latest_lightning_wallet_sync_timestamp = + cst_encode_opt_box_autoadd_u_64( + apiObj.latestLightningWalletSyncTimestamp); wireObj.latest_onchain_wallet_sync_timestamp = cst_encode_opt_box_autoadd_u_64( apiObj.latestOnchainWalletSyncTimestamp); @@ -3111,6 +3504,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { wireObj.latest_node_announcement_broadcast_timestamp = cst_encode_opt_box_autoadd_u_64( apiObj.latestNodeAnnouncementBroadcastTimestamp); + wireObj.latest_channel_monitor_archival_height = + cst_encode_opt_box_autoadd_u_32( + apiObj.latestChannelMonitorArchivalHeight); } @protected @@ -3202,11 +3598,15 @@ abstract class coreApiImplPlatform extends BaseApiImpl { cst_encode_opt_box_autoadd_payment_preimage(apiObj.preimage); var pre_secret = cst_encode_opt_box_autoadd_payment_secret(apiObj.secret); var pre_offer_id = cst_encode_box_autoadd_offer_id(apiObj.offerId); + var pre_payer_note = cst_encode_opt_String(apiObj.payerNote); + var pre_quantity = cst_encode_opt_box_autoadd_u_64(apiObj.quantity); wireObj.tag = 4; wireObj.kind.Bolt12Offer.hash = pre_hash; wireObj.kind.Bolt12Offer.preimage = pre_preimage; wireObj.kind.Bolt12Offer.secret = pre_secret; wireObj.kind.Bolt12Offer.offer_id = pre_offer_id; + wireObj.kind.Bolt12Offer.payer_note = pre_payer_note; + wireObj.kind.Bolt12Offer.quantity = pre_quantity; return; } if (apiObj is PaymentKind_Bolt12Refund) { @@ -3214,10 +3614,14 @@ abstract class coreApiImplPlatform extends BaseApiImpl { var pre_preimage = cst_encode_opt_box_autoadd_payment_preimage(apiObj.preimage); var pre_secret = cst_encode_opt_box_autoadd_payment_secret(apiObj.secret); + var pre_payer_note = cst_encode_opt_String(apiObj.payerNote); + var pre_quantity = cst_encode_opt_box_autoadd_u_64(apiObj.quantity); wireObj.tag = 5; wireObj.kind.Bolt12Refund.hash = pre_hash; wireObj.kind.Bolt12Refund.preimage = pre_preimage; wireObj.kind.Bolt12Refund.secret = pre_secret; + wireObj.kind.Bolt12Refund.payer_note = pre_payer_note; + wireObj.kind.Bolt12Refund.quantity = pre_quantity; return; } } @@ -3300,6 +3704,29 @@ abstract class coreApiImplPlatform extends BaseApiImpl { wireObj.hex = cst_encode_String(apiObj.hex); } + @protected + void cst_api_fill_to_wire_qr_payment_result( + QrPaymentResult apiObj, wire_cst_qr_payment_result wireObj) { + if (apiObj is QrPaymentResult_Onchain) { + var pre_txid = cst_encode_box_autoadd_txid(apiObj.txid); + wireObj.tag = 0; + wireObj.kind.Onchain.txid = pre_txid; + return; + } + if (apiObj is QrPaymentResult_Bolt11) { + var pre_payment_id = cst_encode_box_autoadd_payment_id(apiObj.paymentId); + wireObj.tag = 1; + wireObj.kind.Bolt11.payment_id = pre_payment_id; + return; + } + if (apiObj is QrPaymentResult_Bolt12) { + var pre_payment_id = cst_encode_box_autoadd_payment_id(apiObj.paymentId); + wireObj.tag = 2; + wireObj.kind.Bolt12.payment_id = pre_payment_id; + return; + } + } + @protected void cst_api_fill_to_wire_record_socket_address_public_key_opt_string( (SocketAddress, PublicKey, String?) apiObj, @@ -3309,6 +3736,13 @@ abstract class coreApiImplPlatform extends BaseApiImpl { wireObj.field2 = cst_encode_opt_String(apiObj.$3); } + @protected + void cst_api_fill_to_wire_record_string_string( + (String, String) apiObj, wire_cst_record_string_string wireObj) { + wireObj.field0 = cst_encode_String(apiObj.$1); + wireObj.field1 = cst_encode_String(apiObj.$2); + } + @protected void cst_api_fill_to_wire_refund(Refund apiObj, wire_cst_refund wireObj) { wireObj.s = cst_encode_String(apiObj.s); @@ -3322,6 +3756,20 @@ abstract class coreApiImplPlatform extends BaseApiImpl { cst_encode_u_32(apiObj.proportionalMillionths); } + @protected + void cst_api_fill_to_wire_sending_parameters( + SendingParameters apiObj, wire_cst_sending_parameters wireObj) { + wireObj.max_total_routing_fee_msat = + cst_encode_opt_box_autoadd_max_total_routing_fee_limit( + apiObj.maxTotalRoutingFeeMsat); + wireObj.max_total_cltv_expiry_delta = + cst_encode_opt_box_autoadd_u_32(apiObj.maxTotalCltvExpiryDelta); + wireObj.max_path_count = + cst_encode_opt_box_autoadd_u_8(apiObj.maxPathCount); + wireObj.max_channel_saturation_power_of_half = + cst_encode_opt_box_autoadd_u_8(apiObj.maxChannelSaturationPowerOfHalf); + } + @protected void cst_api_fill_to_wire_socket_address( SocketAddress apiObj, wire_cst_socket_address wireObj) { @@ -3381,30 +3829,26 @@ abstract class coreApiImplPlatform extends BaseApiImpl { } @protected - int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder raw); + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder raw); @protected - int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder raw); + int cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder raw); @protected - int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder raw); + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder raw); @protected - int cst_encode_RustOpaque_Arcldk_nodepaymentBolt12Payment( - ArcBolt12Payment raw); + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder raw); @protected - int cst_encode_RustOpaque_Node(Node raw); - - @protected - int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder raw); + int cst_encode_RustOpaque_ldk_nodeBuilder(Builder raw); @protected - int cst_encode_RustOpaque_ldk_nodeBuilder(Builder raw); + int cst_encode_RustOpaque_ldk_nodeNode(Node raw); @protected int cst_encode_RustOpaque_ldk_nodegraphNetworkGraph(NetworkGraph raw); @@ -3412,6 +3856,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected int cst_encode_RustOpaque_ldk_nodepaymentBolt11Payment(Bolt11Payment raw); + @protected + int cst_encode_RustOpaque_ldk_nodepaymentBolt12Payment(Bolt12Payment raw); + @protected int cst_encode_RustOpaque_ldk_nodepaymentOnchainPayment(OnchainPayment raw); @@ -3419,14 +3866,21 @@ abstract class coreApiImplPlatform extends BaseApiImpl { int cst_encode_RustOpaque_ldk_nodepaymentSpontaneousPayment( SpontaneousPayment raw); + @protected + int cst_encode_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + UnifiedQrPayment raw); + + @protected + int cst_encode_balance_source(BalanceSource raw); + @protected bool cst_encode_bool(bool raw); @protected - int cst_encode_i_32(int raw); + int cst_encode_ffi_builder_error(FfiBuilderError raw); @protected - int cst_encode_ldk_builder_error(LdkBuilderError raw); + int cst_encode_i_32(int raw); @protected int cst_encode_log_level(LogLevel raw); @@ -3457,35 +3911,35 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder self, SseSerializer serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder self, SseSerializer serializer); @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder self, SseSerializer serializer); + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder self, SseSerializer serializer); @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder self, SseSerializer serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcldk_nodepaymentBolt12Payment( - ArcBolt12Payment self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_Node(Node self, SseSerializer serializer); + void sse_encode_Map_String_String( + Map self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( - NodeBuilder self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + FfiBuilder self, SseSerializer serializer); @protected void sse_encode_RustOpaque_ldk_nodeBuilder( Builder self, SseSerializer serializer); + @protected + void sse_encode_RustOpaque_ldk_nodeNode(Node self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_ldk_nodegraphNetworkGraph( NetworkGraph self, SseSerializer serializer); @@ -3494,6 +3948,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_RustOpaque_ldk_nodepaymentBolt11Payment( Bolt11Payment self, SseSerializer serializer); + @protected + void sse_encode_RustOpaque_ldk_nodepaymentBolt12Payment( + Bolt12Payment self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_ldk_nodepaymentOnchainPayment( OnchainPayment self, SseSerializer serializer); @@ -3502,6 +3960,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_RustOpaque_ldk_nodepaymentSpontaneousPayment( SpontaneousPayment self, SseSerializer serializer); + @protected + void sse_encode_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + UnifiedQrPayment self, SseSerializer serializer); + @protected void sse_encode_String(String self, SseSerializer serializer); @@ -3516,6 +3978,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_balance_details( BalanceDetails self, SseSerializer serializer); + @protected + void sse_encode_balance_source(BalanceSource self, SseSerializer serializer); + @protected void sse_encode_best_block(BestBlock self, SseSerializer serializer); @@ -3547,6 +4012,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_box_autoadd_bolt_12_parse_error( Bolt12ParseError self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_bool(bool self, SseSerializer serializer); + @protected void sse_encode_box_autoadd_chain_data_source_config( ChainDataSourceConfig self, SseSerializer serializer); @@ -3582,39 +4050,47 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_box_autoadd_entropy_source_config( EntropySourceConfig self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_esplora_sync_config( + EsploraSyncConfig self, SseSerializer serializer); + @protected void sse_encode_box_autoadd_event(Event self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_gossip_source_config( - GossipSourceConfig self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_bolt_11_payment( + FfiBolt11Payment self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_ldk_bolt_11_payment( - LdkBolt11Payment self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_bolt_12_payment( + FfiBolt12Payment self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_ldk_bolt_12_payment( - LdkBolt12Payment self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_mnemonic( + FfiMnemonic self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_ldk_mnemonic( - LdkMnemonic self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_network_graph( + FfiNetworkGraph self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_ldk_network_graph( - LdkNetworkGraph self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_node(FfiNode self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_ldk_node(LdkNode self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_on_chain_payment( + FfiOnChainPayment self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_ldk_on_chain_payment( - LdkOnChainPayment self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_spontaneous_payment( + FfiSpontaneousPayment self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_ldk_spontaneous_payment( - LdkSpontaneousPayment self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_unified_qr_payment( + FfiUnifiedQrPayment self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_gossip_source_config( + GossipSourceConfig self, SseSerializer serializer); @protected void sse_encode_box_autoadd_liquidity_source_config( @@ -3625,8 +4101,12 @@ abstract class coreApiImplPlatform extends BaseApiImpl { LSPFeeLimits self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_max_dust_htlc_exposure( - MaxDustHTLCExposure self, SseSerializer serializer); + void sse_encode_box_autoadd_max_total_routing_fee_limit( + MaxTotalRoutingFeeLimit self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_node_alias( + NodeAlias self, SseSerializer serializer); @protected void sse_encode_box_autoadd_node_announcement_info( @@ -3680,6 +4160,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_box_autoadd_refund(Refund self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_sending_parameters( + SendingParameters self, SseSerializer serializer); + @protected void sse_encode_box_autoadd_socket_address( SocketAddress self, SseSerializer serializer); @@ -3696,6 +4180,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer); + @protected void sse_encode_box_autoadd_user_channel_id( UserChannelId self, SseSerializer serializer); @@ -3734,48 +4221,56 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_entropy_source_config( EntropySourceConfig self, SseSerializer serializer); + @protected + void sse_encode_esplora_sync_config( + EsploraSyncConfig self, SseSerializer serializer); + @protected void sse_encode_event(Event self, SseSerializer serializer); @protected - void sse_encode_gossip_source_config( - GossipSourceConfig self, SseSerializer serializer); + void sse_encode_ffi_bolt_11_payment( + FfiBolt11Payment self, SseSerializer serializer); @protected - void sse_encode_i_32(int self, SseSerializer serializer); + void sse_encode_ffi_bolt_12_payment( + FfiBolt12Payment self, SseSerializer serializer); @protected - void sse_encode_ldk_bolt_11_payment( - LdkBolt11Payment self, SseSerializer serializer); + void sse_encode_ffi_builder_error( + FfiBuilderError self, SseSerializer serializer); @protected - void sse_encode_ldk_bolt_12_payment( - LdkBolt12Payment self, SseSerializer serializer); + void sse_encode_ffi_mnemonic(FfiMnemonic self, SseSerializer serializer); @protected - void sse_encode_ldk_builder_error( - LdkBuilderError self, SseSerializer serializer); + void sse_encode_ffi_network_graph( + FfiNetworkGraph self, SseSerializer serializer); @protected - void sse_encode_ldk_mnemonic(LdkMnemonic self, SseSerializer serializer); + void sse_encode_ffi_node(FfiNode self, SseSerializer serializer); @protected - void sse_encode_ldk_network_graph( - LdkNetworkGraph self, SseSerializer serializer); + void sse_encode_ffi_node_error(FfiNodeError self, SseSerializer serializer); @protected - void sse_encode_ldk_node(LdkNode self, SseSerializer serializer); + void sse_encode_ffi_on_chain_payment( + FfiOnChainPayment self, SseSerializer serializer); @protected - void sse_encode_ldk_node_error(LdkNodeError self, SseSerializer serializer); + void sse_encode_ffi_spontaneous_payment( + FfiSpontaneousPayment self, SseSerializer serializer); @protected - void sse_encode_ldk_on_chain_payment( - LdkOnChainPayment self, SseSerializer serializer); + void sse_encode_ffi_unified_qr_payment( + FfiUnifiedQrPayment self, SseSerializer serializer); + + @protected + void sse_encode_gossip_source_config( + GossipSourceConfig self, SseSerializer serializer); @protected - void sse_encode_ldk_spontaneous_payment( - LdkSpontaneousPayment self, SseSerializer serializer); + void sse_encode_i_32(int self, SseSerializer serializer); @protected void sse_encode_lightning_balance( @@ -3823,6 +4318,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_list_public_key( List self, SseSerializer serializer); + @protected + void sse_encode_list_record_string_string( + List<(String, String)> self, SseSerializer serializer); + @protected void sse_encode_list_socket_address( List self, SseSerializer serializer); @@ -3837,9 +4336,16 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_max_dust_htlc_exposure( MaxDustHTLCExposure self, SseSerializer serializer); + @protected + void sse_encode_max_total_routing_fee_limit( + MaxTotalRoutingFeeLimit self, SseSerializer serializer); + @protected void sse_encode_network(Network self, SseSerializer serializer); + @protected + void sse_encode_node_alias(NodeAlias self, SseSerializer serializer); + @protected void sse_encode_node_announcement_info( NodeAnnouncementInfo self, SseSerializer serializer); @@ -3866,6 +4372,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_opt_box_autoadd_anchor_channels_config( AnchorChannelsConfig? self, SseSerializer serializer); + @protected + void sse_encode_opt_box_autoadd_bool(bool? self, SseSerializer serializer); + @protected void sse_encode_opt_box_autoadd_chain_data_source_config( ChainDataSourceConfig? self, SseSerializer serializer); @@ -3894,6 +4403,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_opt_box_autoadd_entropy_source_config( EntropySourceConfig? self, SseSerializer serializer); + @protected + void sse_encode_opt_box_autoadd_esplora_sync_config( + EsploraSyncConfig? self, SseSerializer serializer); + @protected void sse_encode_opt_box_autoadd_event(Event? self, SseSerializer serializer); @@ -3906,8 +4419,12 @@ abstract class coreApiImplPlatform extends BaseApiImpl { LiquiditySourceConfig? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_max_dust_htlc_exposure( - MaxDustHTLCExposure? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_max_total_routing_fee_limit( + MaxTotalRoutingFeeLimit? self, SseSerializer serializer); + + @protected + void sse_encode_opt_box_autoadd_node_alias( + NodeAlias? self, SseSerializer serializer); @protected void sse_encode_opt_box_autoadd_node_announcement_info( @@ -3949,6 +4466,10 @@ abstract class coreApiImplPlatform extends BaseApiImpl { void sse_encode_opt_box_autoadd_public_key( PublicKey? self, SseSerializer serializer); + @protected + void sse_encode_opt_box_autoadd_sending_parameters( + SendingParameters? self, SseSerializer serializer); + @protected void sse_encode_opt_box_autoadd_u_16(int? self, SseSerializer serializer); @@ -3958,6 +4479,9 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer); + @protected + void sse_encode_opt_box_autoadd_u_8(int? self, SseSerializer serializer); + @protected void sse_encode_opt_list_socket_address( List? self, SseSerializer serializer); @@ -4006,16 +4530,28 @@ abstract class coreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_public_key(PublicKey self, SseSerializer serializer); + @protected + void sse_encode_qr_payment_result( + QrPaymentResult self, SseSerializer serializer); + @protected void sse_encode_record_socket_address_public_key_opt_string( (SocketAddress, PublicKey, String?) self, SseSerializer serializer); + @protected + void sse_encode_record_string_string( + (String, String) self, SseSerializer serializer); + @protected void sse_encode_refund(Refund self, SseSerializer serializer); @protected void sse_encode_routing_fees(RoutingFees self, SseSerializer serializer); + @protected + void sse_encode_sending_parameters( + SendingParameters self, SseSerializer serializer); + @protected void sse_encode_socket_address(SocketAddress self, SseSerializer serializer); @@ -4099,14 +4635,14 @@ class coreWire implements BaseWire { late final _store_dart_post_cobject = _store_dart_post_cobjectPtr .asFunction(); - void wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hash( + void wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer payment_hash, int claimable_amount_msat, ffi.Pointer preimage, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hash( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash( port_, that, payment_hash, @@ -4115,60 +4651,60 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hashPtr = + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hashPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Uint64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hash'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hash = - _wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hashPtr + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash = + _wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hashPtr .asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); - void wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hash( + void wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer payment_hash, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hash( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash( port_, that, payment_hash, ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hashPtr = + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hashPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hash'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hash = - _wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hashPtr + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash = + _wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hashPtr .asFunction< - void Function(int, ffi.Pointer, + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__bolt11__ldk_bolt_11_payment_receive( + void wire__crate__api__bolt11__ffi_bolt_11_payment_receive( int port_, - ffi.Pointer that, + ffi.Pointer that, int amount_msat, ffi.Pointer description, int expiry_secs, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_receive( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_receive( port_, that, amount_msat, @@ -4177,29 +4713,29 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receivePtr = _lookup< + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receivePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Uint64, ffi.Pointer, ffi.Uint32)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive = - _wire__crate__api__bolt11__ldk_bolt_11_payment_receivePtr.asFunction< - void Function(int, ffi.Pointer, int, + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive = + _wire__crate__api__bolt11__ffi_bolt_11_payment_receivePtr.asFunction< + void Function(int, ffi.Pointer, int, ffi.Pointer, int)>(); - void wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash( + void wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer payment_hash, int amount_msat, ffi.Pointer description, int expiry_secs, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash( port_, that, payment_hash, @@ -4209,35 +4745,35 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hashPtr = + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hashPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Uint64, ffi.Pointer, ffi.Uint32)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash = - _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hashPtr + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash = + _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hashPtr .asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); - void wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount( + void wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer description, int expiry_secs, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount( port_, that, description, @@ -4245,30 +4781,30 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amountPtr = + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amountPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Uint32)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount = - _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amountPtr + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount = + _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amountPtr .asFunction< - void Function(int, ffi.Pointer, + void Function(int, ffi.Pointer, ffi.Pointer, int)>(); void - wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_hash( + wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer description, int expiry_secs, ffi.Pointer payment_hash, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_hash( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash( port_, that, description, @@ -4277,35 +4813,35 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_hashPtr = + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hashPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Uint32, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_hash'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_hash = - _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_hashPtr + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash = + _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hashPtr .asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); void - wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_via_jit_channel( + wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer description, int expiry_secs, ffi.Pointer max_proportional_lsp_fee_limit_ppm_msat, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_via_jit_channel( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel( port_, that, description, @@ -4314,35 +4850,35 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_via_jit_channelPtr = + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channelPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Uint32, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_via_jit_channel'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_via_jit_channel = - _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_via_jit_channelPtr + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel = + _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channelPtr .asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); - void wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel( + void wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel( int port_, - ffi.Pointer that, + ffi.Pointer that, int amount_msat, ffi.Pointer description, int expiry_secs, ffi.Pointer max_total_lsp_fee_limit_msat, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel( port_, that, amount_msat, @@ -4352,84 +4888,90 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channelPtr = + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channelPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Uint64, ffi.Pointer, ffi.Uint32, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel = - _wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channelPtr + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel = + _wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channelPtr .asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, int, ffi.Pointer, int, ffi.Pointer)>(); - void wire__crate__api__bolt11__ldk_bolt_11_payment_send( + void wire__crate__api__bolt11__ffi_bolt_11_payment_send( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer invoice, + ffi.Pointer sending_parameters, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_send( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_send( port_, that, invoice, + sending_parameters, ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_sendPtr = _lookup< + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_sendPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_send = - _wire__crate__api__bolt11__ldk_bolt_11_payment_sendPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_send = + _wire__crate__api__bolt11__ffi_bolt_11_payment_sendPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes( + void wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer invoice, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes( port_, that, invoice, ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_send_probesPtr = + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_send_probesPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes = - _wire__crate__api__bolt11__ldk_bolt_11_payment_send_probesPtr.asFunction< - void Function(int, ffi.Pointer, + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes = + _wire__crate__api__bolt11__ffi_bolt_11_payment_send_probesPtr.asFunction< + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amount( + void wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer invoice, int amount_msat, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amount( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount( port_, that, invoice, @@ -4437,473 +4979,592 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amountPtr = + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amountPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Uint64)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amount'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amount = - _wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amountPtr + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount = + _wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amountPtr .asFunction< - void Function(int, ffi.Pointer, + void Function(int, ffi.Pointer, ffi.Pointer, int)>(); - void wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amount( + void wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer invoice, int amount_msat, + ffi.Pointer sending_parameters, ) { - return _wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amount( + return _wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount( port_, that, invoice, amount_msat, + sending_parameters, ); } - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amountPtr = + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amountPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, - ffi.Uint64)>>( - 'frbgen_ldk_node_wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amount'); - late final _wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amount = - _wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amountPtr + ffi.Uint64, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount'); + late final _wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount = + _wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amountPtr .asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, int)>(); + void Function( + int, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); - void wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refund( + void wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund( int port_, - ffi.Pointer that, + ffi.Pointer that, int amount_msat, int expiry_secs, + ffi.Pointer quantity, + ffi.Pointer payer_note, ) { - return _wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refund( + return _wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund( port_, that, amount_msat, expiry_secs, + quantity, + payer_note, ); } - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refundPtr = + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refundPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Uint64, - ffi.Uint32)>>( - 'frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refund'); - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refund = - _wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refundPtr + ffi.Uint32, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund'); + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund = + _wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refundPtr .asFunction< void Function( - int, ffi.Pointer, int, int)>(); + int, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer)>(); - void wire__crate__api__bolt12__ldk_bolt_12_payment_receive( + void wire__crate__api__bolt12__ffi_bolt_12_payment_receive( int port_, - ffi.Pointer that, + ffi.Pointer that, int amount_msat, ffi.Pointer description, + ffi.Pointer expiry_secs, + ffi.Pointer quantity, ) { - return _wire__crate__api__bolt12__ldk_bolt_12_payment_receive( + return _wire__crate__api__bolt12__ffi_bolt_12_payment_receive( port_, that, amount_msat, description, + expiry_secs, + quantity, ); } - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_receivePtr = _lookup< + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_receivePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Uint64, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_receive'); - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_receive = - _wire__crate__api__bolt12__ldk_bolt_12_payment_receivePtr.asFunction< - void Function(int, ffi.Pointer, int, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive'); + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_receive = + _wire__crate__api__bolt12__ffi_bolt_12_payment_receivePtr.asFunction< + void Function( + int, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amount( + void wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer description, + ffi.Pointer expiry_secs, ) { - return _wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amount( + return _wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount( port_, that, description, + expiry_secs, ); } - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amountPtr = + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amountPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amount'); - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amount = - _wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amountPtr + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount'); + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount = + _wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amountPtr .asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_payment( + void wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer refund, ) { - return _wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_payment( + return _wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment( port_, that, refund, ); } - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_paymentPtr = + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_paymentPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_payment'); - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_payment = - _wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_paymentPtr + 'frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment'); + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment = + _wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_paymentPtr .asFunction< - void Function(int, ffi.Pointer, + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__bolt12__ldk_bolt_12_payment_send( + void wire__crate__api__bolt12__ffi_bolt_12_payment_send( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer offer, + ffi.Pointer quantity, ffi.Pointer payer_note, ) { - return _wire__crate__api__bolt12__ldk_bolt_12_payment_send( + return _wire__crate__api__bolt12__ffi_bolt_12_payment_send( port_, that, offer, + quantity, payer_note, ); } - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_sendPtr = _lookup< + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_sendPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_send'); - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_send = - _wire__crate__api__bolt12__ldk_bolt_12_payment_sendPtr.asFunction< + 'frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send'); + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_send = + _wire__crate__api__bolt12__ffi_bolt_12_payment_sendPtr.asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amount( + void wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer offer, - ffi.Pointer payer_note, int amount_msat, + ffi.Pointer quantity, + ffi.Pointer payer_note, ) { - return _wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amount( + return _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount( port_, that, offer, - payer_note, amount_msat, + quantity, + payer_note, ); } - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amountPtr = + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amountPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Uint64)>>( - 'frbgen_ldk_node_wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amount'); - late final _wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amount = - _wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amountPtr + ffi.Uint64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount'); + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount = + _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amountPtr .asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int)>(); + int, + ffi.Pointer, + ffi.Pointer)>(); WireSyncRust2DartDco - wire__crate__api__builder__NodeBuilder_auto_accessor_get_builder( + wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( int that, ) { - return _wire__crate__api__builder__NodeBuilder_auto_accessor_get_builder( + return _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( that, ); } - late final _wire__crate__api__builder__NodeBuilder_auto_accessor_get_builderPtr = + late final _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaquePtr = _lookup>( - 'frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_auto_accessor_get_builder'); - late final _wire__crate__api__builder__NodeBuilder_auto_accessor_get_builder = - _wire__crate__api__builder__NodeBuilder_auto_accessor_get_builderPtr + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque'); + late final _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque = + _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaquePtr .asFunction(); WireSyncRust2DartDco - wire__crate__api__builder__NodeBuilder_auto_accessor_set_builder( + wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( int that, - int builder, + int opaque, ) { - return _wire__crate__api__builder__NodeBuilder_auto_accessor_set_builder( + return _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( that, - builder, + opaque, ); } - late final _wire__crate__api__builder__NodeBuilder_auto_accessor_set_builderPtr = + late final _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaquePtr = _lookup< ffi.NativeFunction< WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( - 'frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_auto_accessor_set_builder'); - late final _wire__crate__api__builder__NodeBuilder_auto_accessor_set_builder = - _wire__crate__api__builder__NodeBuilder_auto_accessor_set_builderPtr + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque'); + late final _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque = + _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaquePtr .asFunction(); - void wire__crate__api__builder__NodeBuilder_build( + void wire__crate__api__builder__FfiBuilder_build( int port_, int that, ) { - return _wire__crate__api__builder__NodeBuilder_build( + return _wire__crate__api__builder__FfiBuilder_build( port_, that, ); } - late final _wire__crate__api__builder__NodeBuilder_buildPtr = + late final _wire__crate__api__builder__FfiBuilder_buildPtr = _lookup>( - 'frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_build'); - late final _wire__crate__api__builder__NodeBuilder_build = - _wire__crate__api__builder__NodeBuilder_buildPtr + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build'); + late final _wire__crate__api__builder__FfiBuilder_build = + _wire__crate__api__builder__FfiBuilder_buildPtr .asFunction(); - void wire__crate__api__builder__NodeBuilder_build_with_fs_store( + void wire__crate__api__builder__FfiBuilder_build_with_fs_store( int port_, int that, ) { - return _wire__crate__api__builder__NodeBuilder_build_with_fs_store( + return _wire__crate__api__builder__FfiBuilder_build_with_fs_store( port_, that, ); } - late final _wire__crate__api__builder__NodeBuilder_build_with_fs_storePtr = + late final _wire__crate__api__builder__FfiBuilder_build_with_fs_storePtr = _lookup>( - 'frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_build_with_fs_store'); - late final _wire__crate__api__builder__NodeBuilder_build_with_fs_store = - _wire__crate__api__builder__NodeBuilder_build_with_fs_storePtr + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store'); + late final _wire__crate__api__builder__FfiBuilder_build_with_fs_store = + _wire__crate__api__builder__FfiBuilder_build_with_fs_storePtr .asFunction(); - void wire__crate__api__builder__NodeBuilder_create_builder( + void wire__crate__api__builder__FfiBuilder_build_with_vss_store( int port_, - ffi.Pointer config, - ffi.Pointer chain_data_source_config, - ffi.Pointer entropy_source_config, - ffi.Pointer gossip_source_config, - ffi.Pointer liquidity_source_config, + int that, + ffi.Pointer vss_url, + ffi.Pointer store_id, + ffi.Pointer lnurl_auth_server_url, + ffi.Pointer fixed_headers, ) { - return _wire__crate__api__builder__NodeBuilder_create_builder( + return _wire__crate__api__builder__FfiBuilder_build_with_vss_store( port_, - config, - chain_data_source_config, - entropy_source_config, - gossip_source_config, - liquidity_source_config, + that, + vss_url, + store_id, + lnurl_auth_server_url, + fixed_headers, ); } - late final _wire__crate__api__builder__NodeBuilder_create_builderPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__builder__NodeBuilder_create_builder'); - late final _wire__crate__api__builder__NodeBuilder_create_builder = - _wire__crate__api__builder__NodeBuilder_create_builderPtr.asFunction< + late final _wire__crate__api__builder__FfiBuilder_build_with_vss_storePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.UintPtr, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store'); + late final _wire__crate__api__builder__FfiBuilder_build_with_vss_store = + _wire__crate__api__builder__FfiBuilder_build_with_vss_storePtr.asFunction< void Function( int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire__crate__api__builder__ldk_mnemonic_generate( + void + wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( int port_, + int that, + ffi.Pointer vss_url, + ffi.Pointer store_id, + ffi.Pointer fixed_headers, ) { - return _wire__crate__api__builder__ldk_mnemonic_generate( + return _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( port_, + that, + vss_url, + store_id, + fixed_headers, ); } - late final _wire__crate__api__builder__ldk_mnemonic_generatePtr = - _lookup>( - 'frbgen_ldk_node_wire__crate__api__builder__ldk_mnemonic_generate'); - late final _wire__crate__api__builder__ldk_mnemonic_generate = - _wire__crate__api__builder__ldk_mnemonic_generatePtr + late final _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headersPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.UintPtr, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers'); + late final _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers = + _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headersPtr + .asFunction< + void Function( + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__builder__FfiBuilder_create_builder( + int port_, + ffi.Pointer config, + ffi.Pointer chain_data_source_config, + ffi.Pointer entropy_source_config, + ffi.Pointer gossip_source_config, + ffi.Pointer liquidity_source_config, + ) { + return _wire__crate__api__builder__FfiBuilder_create_builder( + port_, + config, + chain_data_source_config, + entropy_source_config, + gossip_source_config, + liquidity_source_config, + ); + } + + late final _wire__crate__api__builder__FfiBuilder_create_builderPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder'); + late final _wire__crate__api__builder__FfiBuilder_create_builder = + _wire__crate__api__builder__FfiBuilder_create_builderPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__builder__ffi_mnemonic_generate( + int port_, + ) { + return _wire__crate__api__builder__ffi_mnemonic_generate( + port_, + ); + } + + late final _wire__crate__api__builder__ffi_mnemonic_generatePtr = + _lookup>( + 'frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate'); + late final _wire__crate__api__builder__ffi_mnemonic_generate = + _wire__crate__api__builder__ffi_mnemonic_generatePtr .asFunction(); - void wire__crate__api__graph__ldk_network_graph_channel( + void wire__crate__api__graph__ffi_network_graph_channel( int port_, - ffi.Pointer that, + ffi.Pointer that, int short_channel_id, ) { - return _wire__crate__api__graph__ldk_network_graph_channel( + return _wire__crate__api__graph__ffi_network_graph_channel( port_, that, short_channel_id, ); } - late final _wire__crate__api__graph__ldk_network_graph_channelPtr = _lookup< + late final _wire__crate__api__graph__ffi_network_graph_channelPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, - ffi.Pointer, ffi.Uint64)>>( - 'frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_channel'); - late final _wire__crate__api__graph__ldk_network_graph_channel = - _wire__crate__api__graph__ldk_network_graph_channelPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + ffi.Pointer, ffi.Uint64)>>( + 'frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_channel'); + late final _wire__crate__api__graph__ffi_network_graph_channel = + _wire__crate__api__graph__ffi_network_graph_channelPtr.asFunction< + void Function(int, ffi.Pointer, int)>(); - void wire__crate__api__graph__ldk_network_graph_list_channels( + void wire__crate__api__graph__ffi_network_graph_list_channels( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__graph__ldk_network_graph_list_channels( + return _wire__crate__api__graph__ffi_network_graph_list_channels( port_, that, ); } - late final _wire__crate__api__graph__ldk_network_graph_list_channelsPtr = _lookup< + late final _wire__crate__api__graph__ffi_network_graph_list_channelsPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_list_channels'); - late final _wire__crate__api__graph__ldk_network_graph_list_channels = - _wire__crate__api__graph__ldk_network_graph_list_channelsPtr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_channels'); + late final _wire__crate__api__graph__ffi_network_graph_list_channels = + _wire__crate__api__graph__ffi_network_graph_list_channelsPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire__crate__api__graph__ldk_network_graph_list_nodes( + void wire__crate__api__graph__ffi_network_graph_list_nodes( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__graph__ldk_network_graph_list_nodes( + return _wire__crate__api__graph__ffi_network_graph_list_nodes( port_, that, ); } - late final _wire__crate__api__graph__ldk_network_graph_list_nodesPtr = _lookup< + late final _wire__crate__api__graph__ffi_network_graph_list_nodesPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_list_nodes'); - late final _wire__crate__api__graph__ldk_network_graph_list_nodes = - _wire__crate__api__graph__ldk_network_graph_list_nodesPtr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_nodes'); + late final _wire__crate__api__graph__ffi_network_graph_list_nodes = + _wire__crate__api__graph__ffi_network_graph_list_nodesPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire__crate__api__graph__ldk_network_graph_node( + void wire__crate__api__graph__ffi_network_graph_node( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer node_id, ) { - return _wire__crate__api__graph__ldk_network_graph_node( + return _wire__crate__api__graph__ffi_network_graph_node( port_, that, node_id, ); } - late final _wire__crate__api__graph__ldk_network_graph_nodePtr = _lookup< + late final _wire__crate__api__graph__ffi_network_graph_nodePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__graph__ldk_network_graph_node'); - late final _wire__crate__api__graph__ldk_network_graph_node = - _wire__crate__api__graph__ldk_network_graph_nodePtr.asFunction< - void Function(int, ffi.Pointer, + 'frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_node'); + late final _wire__crate__api__graph__ffi_network_graph_node = + _wire__crate__api__graph__ffi_network_graph_nodePtr.asFunction< + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__node__ldk_node_bolt11_payment( + void wire__crate__api__node__ffi_node_bolt11_payment( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire__crate__api__node__ldk_node_bolt11_payment( + return _wire__crate__api__node__ffi_node_bolt11_payment( port_, ptr, ); } - late final _wire__crate__api__node__ldk_node_bolt11_paymentPtr = _lookup< + late final _wire__crate__api__node__ffi_node_bolt11_paymentPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_bolt11_payment'); - late final _wire__crate__api__node__ldk_node_bolt11_payment = - _wire__crate__api__node__ldk_node_bolt11_paymentPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt11_payment'); + late final _wire__crate__api__node__ffi_node_bolt11_payment = + _wire__crate__api__node__ffi_node_bolt11_paymentPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_bolt12_payment( + void wire__crate__api__node__ffi_node_bolt12_payment( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire__crate__api__node__ldk_node_bolt12_payment( + return _wire__crate__api__node__ffi_node_bolt12_payment( port_, ptr, ); } - late final _wire__crate__api__node__ldk_node_bolt12_paymentPtr = _lookup< + late final _wire__crate__api__node__ffi_node_bolt12_paymentPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_bolt12_payment'); - late final _wire__crate__api__node__ldk_node_bolt12_payment = - _wire__crate__api__node__ldk_node_bolt12_paymentPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt12_payment'); + late final _wire__crate__api__node__ffi_node_bolt12_payment = + _wire__crate__api__node__ffi_node_bolt12_paymentPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_close_channel( + void wire__crate__api__node__ffi_node_close_channel( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer user_channel_id, ffi.Pointer counterparty_node_id, ) { - return _wire__crate__api__node__ldk_node_close_channel( + return _wire__crate__api__node__ffi_node_close_channel( port_, that, user_channel_id, @@ -4911,48 +5572,48 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__node__ldk_node_close_channelPtr = _lookup< + late final _wire__crate__api__node__ffi_node_close_channelPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_close_channel'); - late final _wire__crate__api__node__ldk_node_close_channel = - _wire__crate__api__node__ldk_node_close_channelPtr.asFunction< + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_close_channel'); + late final _wire__crate__api__node__ffi_node_close_channel = + _wire__crate__api__node__ffi_node_close_channelPtr.asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__node__ldk_node_config( + void wire__crate__api__node__ffi_node_config( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_config( + return _wire__crate__api__node__ffi_node_config( port_, that, ); } - late final _wire__crate__api__node__ldk_node_configPtr = _lookup< + late final _wire__crate__api__node__ffi_node_configPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_config'); - late final _wire__crate__api__node__ldk_node_config = - _wire__crate__api__node__ldk_node_configPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_config'); + late final _wire__crate__api__node__ffi_node_config = + _wire__crate__api__node__ffi_node_configPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_connect( + void wire__crate__api__node__ffi_node_connect( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer node_id, ffi.Pointer address, bool persist, ) { - return _wire__crate__api__node__ldk_node_connect( + return _wire__crate__api__node__ffi_node_connect( port_, that, node_id, @@ -4961,117 +5622,71 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__node__ldk_node_connectPtr = _lookup< + late final _wire__crate__api__node__ffi_node_connectPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_connect'); - late final _wire__crate__api__node__ldk_node_connect = - _wire__crate__api__node__ldk_node_connectPtr.asFunction< + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_connect'); + late final _wire__crate__api__node__ffi_node_connect = + _wire__crate__api__node__ffi_node_connectPtr.asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); - void wire__crate__api__node__ldk_node_connect_open_channel( - int port_, - ffi.Pointer that, - ffi.Pointer socket_address, - ffi.Pointer node_id, - int channel_amount_sats, - ffi.Pointer push_to_counterparty_msat, - bool announce_channel, - ffi.Pointer channel_config, - ) { - return _wire__crate__api__node__ldk_node_connect_open_channel( - port_, - that, - socket_address, - node_id, - channel_amount_sats, - push_to_counterparty_msat, - announce_channel, - channel_config, - ); - } - - late final _wire__crate__api__node__ldk_node_connect_open_channelPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_connect_open_channel'); - late final _wire__crate__api__node__ldk_node_connect_open_channel = - _wire__crate__api__node__ldk_node_connect_open_channelPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - bool, - ffi.Pointer)>(); - - void wire__crate__api__node__ldk_node_disconnect( + void wire__crate__api__node__ffi_node_disconnect( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer counterparty_node_id, ) { - return _wire__crate__api__node__ldk_node_disconnect( + return _wire__crate__api__node__ffi_node_disconnect( port_, that, counterparty_node_id, ); } - late final _wire__crate__api__node__ldk_node_disconnectPtr = _lookup< + late final _wire__crate__api__node__ffi_node_disconnectPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_disconnect'); - late final _wire__crate__api__node__ldk_node_disconnect = - _wire__crate__api__node__ldk_node_disconnectPtr.asFunction< - void Function(int, ffi.Pointer, + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_disconnect'); + late final _wire__crate__api__node__ffi_node_disconnect = + _wire__crate__api__node__ffi_node_disconnectPtr.asFunction< + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__node__ldk_node_event_handled( + void wire__crate__api__node__ffi_node_event_handled( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_event_handled( + return _wire__crate__api__node__ffi_node_event_handled( port_, that, ); } - late final _wire__crate__api__node__ldk_node_event_handledPtr = _lookup< + late final _wire__crate__api__node__ffi_node_event_handledPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_event_handled'); - late final _wire__crate__api__node__ldk_node_event_handled = - _wire__crate__api__node__ldk_node_event_handledPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_event_handled'); + late final _wire__crate__api__node__ffi_node_event_handled = + _wire__crate__api__node__ffi_node_event_handledPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_force_close_channel( + void wire__crate__api__node__ffi_node_force_close_channel( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer user_channel_id, ffi.Pointer counterparty_node_id, ) { - return _wire__crate__api__node__ldk_node_force_close_channel( + return _wire__crate__api__node__ffi_node_force_close_channel( port_, that, user_channel_id, @@ -5079,388 +5694,490 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__node__ldk_node_force_close_channelPtr = _lookup< + late final _wire__crate__api__node__ffi_node_force_close_channelPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_force_close_channel'); - late final _wire__crate__api__node__ldk_node_force_close_channel = - _wire__crate__api__node__ldk_node_force_close_channelPtr.asFunction< + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_force_close_channel'); + late final _wire__crate__api__node__ffi_node_force_close_channel = + _wire__crate__api__node__ffi_node_force_close_channelPtr.asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__node__ldk_node_list_balances( + void wire__crate__api__node__ffi_node_list_balances( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_list_balances( + return _wire__crate__api__node__ffi_node_list_balances( port_, that, ); } - late final _wire__crate__api__node__ldk_node_list_balancesPtr = _lookup< + late final _wire__crate__api__node__ffi_node_list_balancesPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_list_balances'); - late final _wire__crate__api__node__ldk_node_list_balances = - _wire__crate__api__node__ldk_node_list_balancesPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_list_balances'); + late final _wire__crate__api__node__ffi_node_list_balances = + _wire__crate__api__node__ffi_node_list_balancesPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_list_channels( + void wire__crate__api__node__ffi_node_list_channels( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_list_channels( + return _wire__crate__api__node__ffi_node_list_channels( port_, that, ); } - late final _wire__crate__api__node__ldk_node_list_channelsPtr = _lookup< + late final _wire__crate__api__node__ffi_node_list_channelsPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_list_channels'); - late final _wire__crate__api__node__ldk_node_list_channels = - _wire__crate__api__node__ldk_node_list_channelsPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_list_channels'); + late final _wire__crate__api__node__ffi_node_list_channels = + _wire__crate__api__node__ffi_node_list_channelsPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_list_payments( + void wire__crate__api__node__ffi_node_list_payments( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_list_payments( + return _wire__crate__api__node__ffi_node_list_payments( port_, that, ); } - late final _wire__crate__api__node__ldk_node_list_paymentsPtr = _lookup< + late final _wire__crate__api__node__ffi_node_list_paymentsPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_list_payments'); - late final _wire__crate__api__node__ldk_node_list_payments = - _wire__crate__api__node__ldk_node_list_paymentsPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments'); + late final _wire__crate__api__node__ffi_node_list_payments = + _wire__crate__api__node__ffi_node_list_paymentsPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_list_payments_with_filter( + void wire__crate__api__node__ffi_node_list_payments_with_filter( int port_, - ffi.Pointer that, + ffi.Pointer that, int payment_direction, ) { - return _wire__crate__api__node__ldk_node_list_payments_with_filter( + return _wire__crate__api__node__ffi_node_list_payments_with_filter( port_, that, payment_direction, ); } - late final _wire__crate__api__node__ldk_node_list_payments_with_filterPtr = + late final _wire__crate__api__node__ffi_node_list_payments_with_filterPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer, ffi.Int32)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_list_payments_with_filter'); - late final _wire__crate__api__node__ldk_node_list_payments_with_filter = - _wire__crate__api__node__ldk_node_list_payments_with_filterPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + ffi.Int64, ffi.Pointer, ffi.Int32)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments_with_filter'); + late final _wire__crate__api__node__ffi_node_list_payments_with_filter = + _wire__crate__api__node__ffi_node_list_payments_with_filterPtr.asFunction< + void Function(int, ffi.Pointer, int)>(); - void wire__crate__api__node__ldk_node_list_peers( + void wire__crate__api__node__ffi_node_list_peers( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_list_peers( + return _wire__crate__api__node__ffi_node_list_peers( port_, that, ); } - late final _wire__crate__api__node__ldk_node_list_peersPtr = _lookup< + late final _wire__crate__api__node__ffi_node_list_peersPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_list_peers'); - late final _wire__crate__api__node__ldk_node_list_peers = - _wire__crate__api__node__ldk_node_list_peersPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_list_peers'); + late final _wire__crate__api__node__ffi_node_list_peers = + _wire__crate__api__node__ffi_node_list_peersPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_listening_addresses( + void wire__crate__api__node__ffi_node_listening_addresses( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_listening_addresses( + return _wire__crate__api__node__ffi_node_listening_addresses( port_, that, ); } - late final _wire__crate__api__node__ldk_node_listening_addressesPtr = _lookup< + late final _wire__crate__api__node__ffi_node_listening_addressesPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_listening_addresses'); - late final _wire__crate__api__node__ldk_node_listening_addresses = - _wire__crate__api__node__ldk_node_listening_addressesPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_listening_addresses'); + late final _wire__crate__api__node__ffi_node_listening_addresses = + _wire__crate__api__node__ffi_node_listening_addressesPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_network_graph( + void wire__crate__api__node__ffi_node_network_graph( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire__crate__api__node__ldk_node_network_graph( + return _wire__crate__api__node__ffi_node_network_graph( port_, ptr, ); } - late final _wire__crate__api__node__ldk_node_network_graphPtr = _lookup< + late final _wire__crate__api__node__ffi_node_network_graphPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_network_graph'); - late final _wire__crate__api__node__ldk_node_network_graph = - _wire__crate__api__node__ldk_node_network_graphPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_network_graph'); + late final _wire__crate__api__node__ffi_node_network_graph = + _wire__crate__api__node__ffi_node_network_graphPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_next_event( + void wire__crate__api__node__ffi_node_next_event( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_next_event( + return _wire__crate__api__node__ffi_node_next_event( port_, that, ); } - late final _wire__crate__api__node__ldk_node_next_eventPtr = _lookup< + late final _wire__crate__api__node__ffi_node_next_eventPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_next_event'); - late final _wire__crate__api__node__ldk_node_next_event = - _wire__crate__api__node__ldk_node_next_eventPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event'); + late final _wire__crate__api__node__ffi_node_next_event = + _wire__crate__api__node__ffi_node_next_eventPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_next_event_async( + void wire__crate__api__node__ffi_node_next_event_async( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_next_event_async( + return _wire__crate__api__node__ffi_node_next_event_async( port_, that, ); } - late final _wire__crate__api__node__ldk_node_next_event_asyncPtr = _lookup< + late final _wire__crate__api__node__ffi_node_next_event_asyncPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_next_event_async'); - late final _wire__crate__api__node__ldk_node_next_event_async = - _wire__crate__api__node__ldk_node_next_event_asyncPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event_async'); + late final _wire__crate__api__node__ffi_node_next_event_async = + _wire__crate__api__node__ffi_node_next_event_asyncPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_node_id( + void wire__crate__api__node__ffi_node_node_id( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_node_id( + return _wire__crate__api__node__ffi_node_node_id( port_, that, ); } - late final _wire__crate__api__node__ldk_node_node_idPtr = _lookup< + late final _wire__crate__api__node__ffi_node_node_idPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_node_id'); - late final _wire__crate__api__node__ldk_node_node_id = - _wire__crate__api__node__ldk_node_node_idPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_node_id'); + late final _wire__crate__api__node__ffi_node_node_id = + _wire__crate__api__node__ffi_node_node_idPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_on_chain_payment( + void wire__crate__api__node__ffi_node_on_chain_payment( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire__crate__api__node__ldk_node_on_chain_payment( + return _wire__crate__api__node__ffi_node_on_chain_payment( port_, ptr, ); } - late final _wire__crate__api__node__ldk_node_on_chain_paymentPtr = _lookup< + late final _wire__crate__api__node__ffi_node_on_chain_paymentPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_on_chain_payment'); + late final _wire__crate__api__node__ffi_node_on_chain_payment = + _wire__crate__api__node__ffi_node_on_chain_paymentPtr + .asFunction)>(); + + void wire__crate__api__node__ffi_node_open_announced_channel( + int port_, + ffi.Pointer that, + ffi.Pointer socket_address, + ffi.Pointer node_id, + int channel_amount_sats, + ffi.Pointer push_to_counterparty_msat, + ffi.Pointer channel_config, + ) { + return _wire__crate__api__node__ffi_node_open_announced_channel( + port_, + that, + socket_address, + node_id, + channel_amount_sats, + push_to_counterparty_msat, + channel_config, + ); + } + + late final _wire__crate__api__node__ffi_node_open_announced_channelPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_open_announced_channel'); + late final _wire__crate__api__node__ffi_node_open_announced_channel = + _wire__crate__api__node__ffi_node_open_announced_channelPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__node__ffi_node_open_channel( + int port_, + ffi.Pointer that, + ffi.Pointer socket_address, + ffi.Pointer node_id, + int channel_amount_sats, + ffi.Pointer push_to_counterparty_msat, + ffi.Pointer channel_config, + ) { + return _wire__crate__api__node__ffi_node_open_channel( + port_, + that, + socket_address, + node_id, + channel_amount_sats, + push_to_counterparty_msat, + channel_config, + ); + } + + late final _wire__crate__api__node__ffi_node_open_channelPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_on_chain_payment'); - late final _wire__crate__api__node__ldk_node_on_chain_payment = - _wire__crate__api__node__ldk_node_on_chain_paymentPtr - .asFunction)>(); + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_open_channel'); + late final _wire__crate__api__node__ffi_node_open_channel = + _wire__crate__api__node__ffi_node_open_channelPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); - void wire__crate__api__node__ldk_node_payment( + void wire__crate__api__node__ffi_node_payment( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer payment_id, ) { - return _wire__crate__api__node__ldk_node_payment( + return _wire__crate__api__node__ffi_node_payment( port_, that, payment_id, ); } - late final _wire__crate__api__node__ldk_node_paymentPtr = _lookup< + late final _wire__crate__api__node__ffi_node_paymentPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_payment'); - late final _wire__crate__api__node__ldk_node_payment = - _wire__crate__api__node__ldk_node_paymentPtr.asFunction< - void Function(int, ffi.Pointer, + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_payment'); + late final _wire__crate__api__node__ffi_node_payment = + _wire__crate__api__node__ffi_node_paymentPtr.asFunction< + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__node__ldk_node_remove_payment( + void wire__crate__api__node__ffi_node_remove_payment( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer payment_id, ) { - return _wire__crate__api__node__ldk_node_remove_payment( + return _wire__crate__api__node__ffi_node_remove_payment( port_, that, payment_id, ); } - late final _wire__crate__api__node__ldk_node_remove_paymentPtr = _lookup< + late final _wire__crate__api__node__ffi_node_remove_paymentPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_remove_payment'); - late final _wire__crate__api__node__ldk_node_remove_payment = - _wire__crate__api__node__ldk_node_remove_paymentPtr.asFunction< - void Function(int, ffi.Pointer, + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_remove_payment'); + late final _wire__crate__api__node__ffi_node_remove_payment = + _wire__crate__api__node__ffi_node_remove_paymentPtr.asFunction< + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__node__ldk_node_sign_message( + void wire__crate__api__node__ffi_node_sign_message( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer msg, ) { - return _wire__crate__api__node__ldk_node_sign_message( + return _wire__crate__api__node__ffi_node_sign_message( port_, that, msg, ); } - late final _wire__crate__api__node__ldk_node_sign_messagePtr = _lookup< + late final _wire__crate__api__node__ffi_node_sign_messagePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_sign_message'); - late final _wire__crate__api__node__ldk_node_sign_message = - _wire__crate__api__node__ldk_node_sign_messagePtr.asFunction< - void Function(int, ffi.Pointer, + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_sign_message'); + late final _wire__crate__api__node__ffi_node_sign_message = + _wire__crate__api__node__ffi_node_sign_messagePtr.asFunction< + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__node__ldk_node_spontaneous_payment( + void wire__crate__api__node__ffi_node_spontaneous_payment( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire__crate__api__node__ldk_node_spontaneous_payment( + return _wire__crate__api__node__ffi_node_spontaneous_payment( port_, ptr, ); } - late final _wire__crate__api__node__ldk_node_spontaneous_paymentPtr = _lookup< + late final _wire__crate__api__node__ffi_node_spontaneous_paymentPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_spontaneous_payment'); - late final _wire__crate__api__node__ldk_node_spontaneous_payment = - _wire__crate__api__node__ldk_node_spontaneous_paymentPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_spontaneous_payment'); + late final _wire__crate__api__node__ffi_node_spontaneous_payment = + _wire__crate__api__node__ffi_node_spontaneous_paymentPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_start( + void wire__crate__api__node__ffi_node_start( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_start( + return _wire__crate__api__node__ffi_node_start( port_, that, ); } - late final _wire__crate__api__node__ldk_node_startPtr = _lookup< + late final _wire__crate__api__node__ffi_node_startPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_start'); - late final _wire__crate__api__node__ldk_node_start = - _wire__crate__api__node__ldk_node_startPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_start'); + late final _wire__crate__api__node__ffi_node_start = + _wire__crate__api__node__ffi_node_startPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_status( + void wire__crate__api__node__ffi_node_status( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_status( + return _wire__crate__api__node__ffi_node_status( port_, that, ); } - late final _wire__crate__api__node__ldk_node_statusPtr = _lookup< + late final _wire__crate__api__node__ffi_node_statusPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_status'); - late final _wire__crate__api__node__ldk_node_status = - _wire__crate__api__node__ldk_node_statusPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_status'); + late final _wire__crate__api__node__ffi_node_status = + _wire__crate__api__node__ffi_node_statusPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_stop( + void wire__crate__api__node__ffi_node_stop( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_stop( + return _wire__crate__api__node__ffi_node_stop( port_, that, ); } - late final _wire__crate__api__node__ldk_node_stopPtr = _lookup< + late final _wire__crate__api__node__ffi_node_stopPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_stop'); - late final _wire__crate__api__node__ldk_node_stop = - _wire__crate__api__node__ldk_node_stopPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_stop'); + late final _wire__crate__api__node__ffi_node_stop = + _wire__crate__api__node__ffi_node_stopPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_sync_wallets( + void wire__crate__api__node__ffi_node_sync_wallets( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_sync_wallets( + return _wire__crate__api__node__ffi_node_sync_wallets( port_, that, ); } - late final _wire__crate__api__node__ldk_node_sync_walletsPtr = _lookup< + late final _wire__crate__api__node__ffi_node_sync_walletsPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_sync_wallets'); - late final _wire__crate__api__node__ldk_node_sync_wallets = - _wire__crate__api__node__ldk_node_sync_walletsPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_sync_wallets'); + late final _wire__crate__api__node__ffi_node_sync_wallets = + _wire__crate__api__node__ffi_node_sync_walletsPtr + .asFunction)>(); - void wire__crate__api__node__ldk_node_update_channel_config( + void wire__crate__api__node__ffi_node_unified_qr_payment( int port_, - ffi.Pointer that, + ffi.Pointer ptr, + ) { + return _wire__crate__api__node__ffi_node_unified_qr_payment( + port_, + ptr, + ); + } + + late final _wire__crate__api__node__ffi_node_unified_qr_paymentPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_unified_qr_payment'); + late final _wire__crate__api__node__ffi_node_unified_qr_payment = + _wire__crate__api__node__ffi_node_unified_qr_paymentPtr + .asFunction)>(); + + void wire__crate__api__node__ffi_node_update_channel_config( + int port_, + ffi.Pointer that, ffi.Pointer user_channel_id, ffi.Pointer counterparty_node_id, ffi.Pointer channel_config, ) { - return _wire__crate__api__node__ldk_node_update_channel_config( + return _wire__crate__api__node__ffi_node_update_channel_config( port_, that, user_channel_id, @@ -5469,32 +6186,32 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__node__ldk_node_update_channel_configPtr = _lookup< + late final _wire__crate__api__node__ffi_node_update_channel_configPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_update_channel_config'); - late final _wire__crate__api__node__ldk_node_update_channel_config = - _wire__crate__api__node__ldk_node_update_channel_configPtr.asFunction< + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_update_channel_config'); + late final _wire__crate__api__node__ffi_node_update_channel_config = + _wire__crate__api__node__ffi_node_update_channel_configPtr.asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__node__ldk_node_verify_signature( + void wire__crate__api__node__ffi_node_verify_signature( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer msg, ffi.Pointer sig, ffi.Pointer public_key, ) { - return _wire__crate__api__node__ldk_node_verify_signature( + return _wire__crate__api__node__ffi_node_verify_signature( port_, that, msg, @@ -5503,96 +6220,96 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__node__ldk_node_verify_signaturePtr = _lookup< + late final _wire__crate__api__node__ffi_node_verify_signaturePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_verify_signature'); - late final _wire__crate__api__node__ldk_node_verify_signature = - _wire__crate__api__node__ldk_node_verify_signaturePtr.asFunction< + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_verify_signature'); + late final _wire__crate__api__node__ffi_node_verify_signature = + _wire__crate__api__node__ffi_node_verify_signaturePtr.asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__node__ldk_node_wait_next_event( + void wire__crate__api__node__ffi_node_wait_next_event( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__node__ldk_node_wait_next_event( + return _wire__crate__api__node__ffi_node_wait_next_event( port_, that, ); } - late final _wire__crate__api__node__ldk_node_wait_next_eventPtr = _lookup< + late final _wire__crate__api__node__ffi_node_wait_next_eventPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__node__ldk_node_wait_next_event'); - late final _wire__crate__api__node__ldk_node_wait_next_event = - _wire__crate__api__node__ldk_node_wait_next_eventPtr - .asFunction)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__node__ffi_node_wait_next_event'); + late final _wire__crate__api__node__ffi_node_wait_next_event = + _wire__crate__api__node__ffi_node_wait_next_eventPtr + .asFunction)>(); - void wire__crate__api__on_chain__ldk_on_chain_payment_new_address( + void wire__crate__api__on_chain__ffi_on_chain_payment_new_address( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire__crate__api__on_chain__ldk_on_chain_payment_new_address( + return _wire__crate__api__on_chain__ffi_on_chain_payment_new_address( port_, that, ); } - late final _wire__crate__api__on_chain__ldk_on_chain_payment_new_addressPtr = + late final _wire__crate__api__on_chain__ffi_on_chain_payment_new_addressPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__on_chain__ldk_on_chain_payment_new_address'); - late final _wire__crate__api__on_chain__ldk_on_chain_payment_new_address = - _wire__crate__api__on_chain__ldk_on_chain_payment_new_addressPtr + ffi.Int64, ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_new_address'); + late final _wire__crate__api__on_chain__ffi_on_chain_payment_new_address = + _wire__crate__api__on_chain__ffi_on_chain_payment_new_addressPtr .asFunction< - void Function(int, ffi.Pointer)>(); + void Function(int, ffi.Pointer)>(); - void wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_address( + void wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer address, ) { - return _wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_address( + return _wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address( port_, that, address, ); } - late final _wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_addressPtr = + late final _wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_addressPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_address'); - late final _wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_address = - _wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_addressPtr + 'frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address'); + late final _wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address = + _wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_addressPtr .asFunction< - void Function(int, ffi.Pointer, + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address( + void wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer address, int amount_sats, ) { - return _wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address( + return _wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address( port_, that, address, @@ -5600,57 +6317,64 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__on_chain__ldk_on_chain_payment_send_to_addressPtr = + late final _wire__crate__api__on_chain__ffi_on_chain_payment_send_to_addressPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Uint64)>>( - 'frbgen_ldk_node_wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address'); - late final _wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address = - _wire__crate__api__on_chain__ldk_on_chain_payment_send_to_addressPtr + 'frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address'); + late final _wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address = + _wire__crate__api__on_chain__ffi_on_chain_payment_send_to_addressPtr .asFunction< - void Function(int, ffi.Pointer, + void Function(int, ffi.Pointer, ffi.Pointer, int)>(); - void wire__crate__api__spontaneous__ldk_spontaneous_payment_send( + void wire__crate__api__spontaneous__ffi_spontaneous_payment_send( int port_, - ffi.Pointer that, + ffi.Pointer that, int amount_msat, ffi.Pointer node_id, + ffi.Pointer sending_parameters, ) { - return _wire__crate__api__spontaneous__ldk_spontaneous_payment_send( + return _wire__crate__api__spontaneous__ffi_spontaneous_payment_send( port_, that, amount_msat, node_id, + sending_parameters, ); } - late final _wire__crate__api__spontaneous__ldk_spontaneous_payment_sendPtr = + late final _wire__crate__api__spontaneous__ffi_spontaneous_payment_sendPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Uint64, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__spontaneous__ldk_spontaneous_payment_send'); - late final _wire__crate__api__spontaneous__ldk_spontaneous_payment_send = - _wire__crate__api__spontaneous__ldk_spontaneous_payment_sendPtr + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send'); + late final _wire__crate__api__spontaneous__ffi_spontaneous_payment_send = + _wire__crate__api__spontaneous__ffi_spontaneous_payment_sendPtr .asFunction< - void Function(int, ffi.Pointer, - int, ffi.Pointer)>(); + void Function( + int, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); - void wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes( + void wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes( int port_, - ffi.Pointer that, + ffi.Pointer that, int amount_msat, ffi.Pointer node_id, ) { - return _wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes( + return _wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes( port_, that, amount_msat, @@ -5658,113 +6382,138 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probesPtr = + late final _wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probesPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Uint64, ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes'); - late final _wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes = - _wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probesPtr + 'frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes'); + late final _wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes = + _wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probesPtr .asFunction< - void Function(int, ffi.Pointer, + void Function(int, ffi.Pointer, int, ffi.Pointer)>(); - void - rust_arc_increment_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment( - ffi.Pointer ptr, + void wire__crate__api__types__anchor_channels_config_default( + int port_, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment( - ptr, + return _wire__crate__api__types__anchor_channels_config_default( + port_, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcldk_nodepaymentBolt12PaymentPtr = - _lookup)>>( - 'frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment'); - late final _rust_arc_increment_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment = - _rust_arc_increment_strong_count_RustOpaque_Arcldk_nodepaymentBolt12PaymentPtr - .asFunction)>(); + late final _wire__crate__api__types__anchor_channels_config_defaultPtr = _lookup< + ffi.NativeFunction>( + 'frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default'); + late final _wire__crate__api__types__anchor_channels_config_default = + _wire__crate__api__types__anchor_channels_config_defaultPtr + .asFunction(); - void - rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment( - ffi.Pointer ptr, + void wire__crate__api__types__config_default( + int port_, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment( - ptr, + return _wire__crate__api__types__config_default( + port_, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12PaymentPtr = - _lookup)>>( - 'frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment'); - late final _rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12Payment = - _rust_arc_decrement_strong_count_RustOpaque_Arcldk_nodepaymentBolt12PaymentPtr - .asFunction)>(); + late final _wire__crate__api__types__config_defaultPtr = + _lookup>( + 'frbgen_ldk_node_wire__crate__api__types__config_default'); + late final _wire__crate__api__types__config_default = + _wire__crate__api__types__config_defaultPtr + .asFunction(); - void rust_arc_increment_strong_count_RustOpaque_Node( - ffi.Pointer ptr, + void wire__crate__api__unified_qr__ffi_unified_qr_payment_receive( + int port_, + ffi.Pointer that, + int amount_sats, + ffi.Pointer message, + int expiry_sec, ) { - return _rust_arc_increment_strong_count_RustOpaque_Node( - ptr, + return _wire__crate__api__unified_qr__ffi_unified_qr_payment_receive( + port_, + that, + amount_sats, + message, + expiry_sec, ); } - late final _rust_arc_increment_strong_count_RustOpaque_NodePtr = - _lookup)>>( - 'frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_Node'); - late final _rust_arc_increment_strong_count_RustOpaque_Node = - _rust_arc_increment_strong_count_RustOpaque_NodePtr - .asFunction)>(); + late final _wire__crate__api__unified_qr__ffi_unified_qr_payment_receivePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ffi.Uint32)>>( + 'frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_receive'); + late final _wire__crate__api__unified_qr__ffi_unified_qr_payment_receive = + _wire__crate__api__unified_qr__ffi_unified_qr_payment_receivePtr + .asFunction< + void Function(int, ffi.Pointer, + int, ffi.Pointer, int)>(); - void rust_arc_decrement_strong_count_RustOpaque_Node( - ffi.Pointer ptr, + void wire__crate__api__unified_qr__ffi_unified_qr_payment_send( + int port_, + ffi.Pointer that, + ffi.Pointer uri_str, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Node( - ptr, + return _wire__crate__api__unified_qr__ffi_unified_qr_payment_send( + port_, + that, + uri_str, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_NodePtr = - _lookup)>>( - 'frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_Node'); - late final _rust_arc_decrement_strong_count_RustOpaque_Node = - _rust_arc_decrement_strong_count_RustOpaque_NodePtr - .asFunction)>(); + late final _wire__crate__api__unified_qr__ffi_unified_qr_payment_sendPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_send'); + late final _wire__crate__api__unified_qr__ffi_unified_qr_payment_send = + _wire__crate__api__unified_qr__ffi_unified_qr_payment_sendPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilderPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilderPtr = _lookup)>>( - 'frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilderPtr + 'frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilderPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilderPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilderPtr = _lookup)>>( - 'frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilder = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNodeBuilderPtr + 'frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilderPtr .asFunction)>(); void rust_arc_increment_strong_count_RustOpaque_ldk_nodeBuilder( @@ -5797,6 +6546,36 @@ class coreWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_ldk_nodeBuilderPtr .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_ldk_nodeNode( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_ldk_nodeNode( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_ldk_nodeNodePtr = _lookup< + ffi.NativeFunction)>>( + 'frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeNode'); + late final _rust_arc_increment_strong_count_RustOpaque_ldk_nodeNode = + _rust_arc_increment_strong_count_RustOpaque_ldk_nodeNodePtr + .asFunction)>(); + + void rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNode( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNode( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNodePtr = _lookup< + ffi.NativeFunction)>>( + 'frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNode'); + late final _rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNode = + _rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNodePtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_ldk_nodegraphNetworkGraph( ffi.Pointer ptr, ) { @@ -5857,6 +6636,36 @@ class coreWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt11PaymentPtr .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12PaymentPtr = + _lookup)>>( + 'frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment'); + late final _rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment = + _rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12PaymentPtr + .asFunction)>(); + + void rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12PaymentPtr = + _lookup)>>( + 'frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment'); + late final _rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment = + _rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12PaymentPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment( ffi.Pointer ptr, ) { @@ -5919,6 +6728,38 @@ class coreWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPaymentPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPaymentPtr = + _lookup)>>( + 'frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment'); + late final _rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment = + _rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPaymentPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPaymentPtr = + _lookup)>>( + 'frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment'); + late final _rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment = + _rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPaymentPtr + .asFunction)>(); + ffi.Pointer cst_new_box_autoadd_address() { return _cst_new_box_autoadd_address(); } @@ -5966,6 +6807,20 @@ class coreWire implements BaseWire { _cst_new_box_autoadd_bolt_12_parse_errorPtr .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_bool( + bool value, + ) { + return _cst_new_box_autoadd_bool( + value, + ); + } + + late final _cst_new_box_autoadd_boolPtr = + _lookup Function(ffi.Bool)>>( + 'frbgen_ldk_node_cst_new_box_autoadd_bool'); + late final _cst_new_box_autoadd_bool = _cst_new_box_autoadd_boolPtr + .asFunction Function(bool)>(); + ffi.Pointer cst_new_box_autoadd_chain_data_source_config() { return _cst_new_box_autoadd_chain_data_source_config(); @@ -6070,6 +6925,19 @@ class coreWire implements BaseWire { _cst_new_box_autoadd_entropy_source_configPtr .asFunction Function()>(); + ffi.Pointer + cst_new_box_autoadd_esplora_sync_config() { + return _cst_new_box_autoadd_esplora_sync_config(); + } + + late final _cst_new_box_autoadd_esplora_sync_configPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_esplora_sync_config'); + late final _cst_new_box_autoadd_esplora_sync_config = + _cst_new_box_autoadd_esplora_sync_configPtr + .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_event() { return _cst_new_box_autoadd_event(); } @@ -6080,104 +6948,117 @@ class coreWire implements BaseWire { late final _cst_new_box_autoadd_event = _cst_new_box_autoadd_eventPtr .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_gossip_source_config() { - return _cst_new_box_autoadd_gossip_source_config(); + ffi.Pointer + cst_new_box_autoadd_ffi_bolt_11_payment() { + return _cst_new_box_autoadd_ffi_bolt_11_payment(); } - late final _cst_new_box_autoadd_gossip_source_configPtr = _lookup< + late final _cst_new_box_autoadd_ffi_bolt_11_paymentPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function()>>( - 'frbgen_ldk_node_cst_new_box_autoadd_gossip_source_config'); - late final _cst_new_box_autoadd_gossip_source_config = - _cst_new_box_autoadd_gossip_source_configPtr - .asFunction Function()>(); + ffi.Pointer Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_11_payment'); + late final _cst_new_box_autoadd_ffi_bolt_11_payment = + _cst_new_box_autoadd_ffi_bolt_11_paymentPtr + .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_ldk_bolt_11_payment() { - return _cst_new_box_autoadd_ldk_bolt_11_payment(); + ffi.Pointer + cst_new_box_autoadd_ffi_bolt_12_payment() { + return _cst_new_box_autoadd_ffi_bolt_12_payment(); } - late final _cst_new_box_autoadd_ldk_bolt_11_paymentPtr = _lookup< + late final _cst_new_box_autoadd_ffi_bolt_12_paymentPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function()>>( - 'frbgen_ldk_node_cst_new_box_autoadd_ldk_bolt_11_payment'); - late final _cst_new_box_autoadd_ldk_bolt_11_payment = - _cst_new_box_autoadd_ldk_bolt_11_paymentPtr - .asFunction Function()>(); + ffi.Pointer Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_12_payment'); + late final _cst_new_box_autoadd_ffi_bolt_12_payment = + _cst_new_box_autoadd_ffi_bolt_12_paymentPtr + .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_ldk_bolt_12_payment() { - return _cst_new_box_autoadd_ldk_bolt_12_payment(); + ffi.Pointer cst_new_box_autoadd_ffi_mnemonic() { + return _cst_new_box_autoadd_ffi_mnemonic(); } - late final _cst_new_box_autoadd_ldk_bolt_12_paymentPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function()>>( - 'frbgen_ldk_node_cst_new_box_autoadd_ldk_bolt_12_payment'); - late final _cst_new_box_autoadd_ldk_bolt_12_payment = - _cst_new_box_autoadd_ldk_bolt_12_paymentPtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_mnemonicPtr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_ffi_mnemonic'); + late final _cst_new_box_autoadd_ffi_mnemonic = + _cst_new_box_autoadd_ffi_mnemonicPtr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_ldk_mnemonic() { - return _cst_new_box_autoadd_ldk_mnemonic(); + ffi.Pointer + cst_new_box_autoadd_ffi_network_graph() { + return _cst_new_box_autoadd_ffi_network_graph(); } - late final _cst_new_box_autoadd_ldk_mnemonicPtr = _lookup< - ffi.NativeFunction Function()>>( - 'frbgen_ldk_node_cst_new_box_autoadd_ldk_mnemonic'); - late final _cst_new_box_autoadd_ldk_mnemonic = - _cst_new_box_autoadd_ldk_mnemonicPtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_network_graphPtr = _lookup< + ffi + .NativeFunction Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_ffi_network_graph'); + late final _cst_new_box_autoadd_ffi_network_graph = + _cst_new_box_autoadd_ffi_network_graphPtr + .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_ldk_network_graph() { - return _cst_new_box_autoadd_ldk_network_graph(); + ffi.Pointer cst_new_box_autoadd_ffi_node() { + return _cst_new_box_autoadd_ffi_node(); } - late final _cst_new_box_autoadd_ldk_network_graphPtr = _lookup< - ffi - .NativeFunction Function()>>( - 'frbgen_ldk_node_cst_new_box_autoadd_ldk_network_graph'); - late final _cst_new_box_autoadd_ldk_network_graph = - _cst_new_box_autoadd_ldk_network_graphPtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_nodePtr = + _lookup Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_ffi_node'); + late final _cst_new_box_autoadd_ffi_node = _cst_new_box_autoadd_ffi_nodePtr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_ldk_node() { - return _cst_new_box_autoadd_ldk_node(); + ffi.Pointer + cst_new_box_autoadd_ffi_on_chain_payment() { + return _cst_new_box_autoadd_ffi_on_chain_payment(); } - late final _cst_new_box_autoadd_ldk_nodePtr = - _lookup Function()>>( - 'frbgen_ldk_node_cst_new_box_autoadd_ldk_node'); - late final _cst_new_box_autoadd_ldk_node = _cst_new_box_autoadd_ldk_nodePtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_on_chain_paymentPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_ffi_on_chain_payment'); + late final _cst_new_box_autoadd_ffi_on_chain_payment = + _cst_new_box_autoadd_ffi_on_chain_paymentPtr + .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_ldk_on_chain_payment() { - return _cst_new_box_autoadd_ldk_on_chain_payment(); + ffi.Pointer + cst_new_box_autoadd_ffi_spontaneous_payment() { + return _cst_new_box_autoadd_ffi_spontaneous_payment(); } - late final _cst_new_box_autoadd_ldk_on_chain_paymentPtr = _lookup< + late final _cst_new_box_autoadd_ffi_spontaneous_paymentPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function()>>( - 'frbgen_ldk_node_cst_new_box_autoadd_ldk_on_chain_payment'); - late final _cst_new_box_autoadd_ldk_on_chain_payment = - _cst_new_box_autoadd_ldk_on_chain_paymentPtr - .asFunction Function()>(); + ffi.Pointer Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_ffi_spontaneous_payment'); + late final _cst_new_box_autoadd_ffi_spontaneous_payment = + _cst_new_box_autoadd_ffi_spontaneous_paymentPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer - cst_new_box_autoadd_ldk_spontaneous_payment() { - return _cst_new_box_autoadd_ldk_spontaneous_payment(); + ffi.Pointer + cst_new_box_autoadd_ffi_unified_qr_payment() { + return _cst_new_box_autoadd_ffi_unified_qr_payment(); + } + + late final _cst_new_box_autoadd_ffi_unified_qr_paymentPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_ffi_unified_qr_payment'); + late final _cst_new_box_autoadd_ffi_unified_qr_payment = + _cst_new_box_autoadd_ffi_unified_qr_paymentPtr.asFunction< + ffi.Pointer Function()>(); + + ffi.Pointer + cst_new_box_autoadd_gossip_source_config() { + return _cst_new_box_autoadd_gossip_source_config(); } - late final _cst_new_box_autoadd_ldk_spontaneous_paymentPtr = _lookup< + late final _cst_new_box_autoadd_gossip_source_configPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function()>>( - 'frbgen_ldk_node_cst_new_box_autoadd_ldk_spontaneous_payment'); - late final _cst_new_box_autoadd_ldk_spontaneous_payment = - _cst_new_box_autoadd_ldk_spontaneous_paymentPtr.asFunction< - ffi.Pointer Function()>(); + ffi.Pointer Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_gossip_source_config'); + late final _cst_new_box_autoadd_gossip_source_config = + _cst_new_box_autoadd_gossip_source_configPtr + .asFunction Function()>(); ffi.Pointer cst_new_box_autoadd_liquidity_source_config() { @@ -6203,18 +7084,29 @@ class coreWire implements BaseWire { _cst_new_box_autoadd_lsp_fee_limitsPtr .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_max_dust_htlc_exposure() { - return _cst_new_box_autoadd_max_dust_htlc_exposure(); + ffi.Pointer + cst_new_box_autoadd_max_total_routing_fee_limit() { + return _cst_new_box_autoadd_max_total_routing_fee_limit(); } - late final _cst_new_box_autoadd_max_dust_htlc_exposurePtr = _lookup< + late final _cst_new_box_autoadd_max_total_routing_fee_limitPtr = _lookup< ffi.NativeFunction< - ffi.Pointer Function()>>( - 'frbgen_ldk_node_cst_new_box_autoadd_max_dust_htlc_exposure'); - late final _cst_new_box_autoadd_max_dust_htlc_exposure = - _cst_new_box_autoadd_max_dust_htlc_exposurePtr.asFunction< - ffi.Pointer Function()>(); + ffi.Pointer Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_max_total_routing_fee_limit'); + late final _cst_new_box_autoadd_max_total_routing_fee_limit = + _cst_new_box_autoadd_max_total_routing_fee_limitPtr.asFunction< + ffi.Pointer Function()>(); + + ffi.Pointer cst_new_box_autoadd_node_alias() { + return _cst_new_box_autoadd_node_alias(); + } + + late final _cst_new_box_autoadd_node_aliasPtr = + _lookup Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_node_alias'); + late final _cst_new_box_autoadd_node_alias = + _cst_new_box_autoadd_node_aliasPtr + .asFunction Function()>(); ffi.Pointer cst_new_box_autoadd_node_announcement_info() { @@ -6372,6 +7264,19 @@ class coreWire implements BaseWire { late final _cst_new_box_autoadd_refund = _cst_new_box_autoadd_refundPtr .asFunction Function()>(); + ffi.Pointer + cst_new_box_autoadd_sending_parameters() { + return _cst_new_box_autoadd_sending_parameters(); + } + + late final _cst_new_box_autoadd_sending_parametersPtr = _lookup< + ffi + .NativeFunction Function()>>( + 'frbgen_ldk_node_cst_new_box_autoadd_sending_parameters'); + late final _cst_new_box_autoadd_sending_parameters = + _cst_new_box_autoadd_sending_parametersPtr + .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_socket_address() { return _cst_new_box_autoadd_socket_address(); } @@ -6435,6 +7340,20 @@ class coreWire implements BaseWire { late final _cst_new_box_autoadd_u_64 = _cst_new_box_autoadd_u_64Ptr .asFunction Function(int)>(); + ffi.Pointer cst_new_box_autoadd_u_8( + int value, + ) { + return _cst_new_box_autoadd_u_8( + value, + ); + } + + late final _cst_new_box_autoadd_u_8Ptr = + _lookup Function(ffi.Uint8)>>( + 'frbgen_ldk_node_cst_new_box_autoadd_u_8'); + late final _cst_new_box_autoadd_u_8 = _cst_new_box_autoadd_u_8Ptr + .asFunction Function(int)>(); + ffi.Pointer cst_new_box_autoadd_user_channel_id() { return _cst_new_box_autoadd_user_channel_id(); } @@ -6600,6 +7519,23 @@ class coreWire implements BaseWire { late final _cst_new_list_public_key = _cst_new_list_public_keyPtr .asFunction Function(int)>(); + ffi.Pointer + cst_new_list_record_string_string( + int len, + ) { + return _cst_new_list_record_string_string( + len, + ); + } + + late final _cst_new_list_record_string_stringPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int32)>>('frbgen_ldk_node_cst_new_list_record_string_string'); + late final _cst_new_list_record_string_string = + _cst_new_list_record_string_stringPtr.asFunction< + ffi.Pointer Function(int)>(); + ffi.Pointer cst_new_list_socket_address( int len, ) { @@ -6635,9 +7571,9 @@ typedef DartDartPostCObjectFnTypeFunction = bool Function( typedef DartPort = ffi.Int64; typedef DartDartPort = int; -final class wire_cst_ldk_bolt_11_payment extends ffi.Struct { +final class wire_cst_ffi_bolt_11_payment extends ffi.Struct { @ffi.UintPtr() - external int ptr; + external int opaque; } final class wire_cst_list_prim_u_8_strict extends ffi.Struct { @@ -6659,9 +7595,36 @@ final class wire_cst_bolt_11_invoice extends ffi.Struct { external ffi.Pointer signed_raw_invoice; } -final class wire_cst_ldk_bolt_12_payment extends ffi.Struct { +final class wire_cst_MaxTotalRoutingFeeLimit_FeeCap extends ffi.Struct { + @ffi.Uint64() + external int amount_msat; +} + +final class MaxTotalRoutingFeeLimitKind extends ffi.Union { + external wire_cst_MaxTotalRoutingFeeLimit_FeeCap FeeCap; +} + +final class wire_cst_max_total_routing_fee_limit extends ffi.Struct { + @ffi.Int32() + external int tag; + + external MaxTotalRoutingFeeLimitKind kind; +} + +final class wire_cst_sending_parameters extends ffi.Struct { + external ffi.Pointer + max_total_routing_fee_msat; + + external ffi.Pointer max_total_cltv_expiry_delta; + + external ffi.Pointer max_path_count; + + external ffi.Pointer max_channel_saturation_power_of_half; +} + +final class wire_cst_ffi_bolt_12_payment extends ffi.Struct { @ffi.UintPtr() - external int ptr; + external int opaque; } final class wire_cst_refund extends ffi.Struct { @@ -6672,6 +7635,19 @@ final class wire_cst_offer extends ffi.Struct { external ffi.Pointer s; } +final class wire_cst_record_string_string extends ffi.Struct { + external ffi.Pointer field0; + + external ffi.Pointer field1; +} + +final class wire_cst_list_record_string_string extends ffi.Struct { + external ffi.Pointer ptr; + + @ffi.Int32() + external int len; +} + final class wire_cst_SocketAddress_TcpIpV4 extends ffi.Struct { external ffi.Pointer addr; @@ -6736,6 +7712,10 @@ final class wire_cst_list_socket_address extends ffi.Struct { external int len; } +final class wire_cst_node_alias extends ffi.Struct { + external ffi.Pointer field0; +} + final class wire_cst_public_key extends ffi.Struct { external ffi.Pointer hex; } @@ -6764,17 +7744,7 @@ final class wire_cst_config extends ffi.Struct { external ffi.Pointer listening_addresses; - @ffi.Uint32() - external int default_cltv_expiry_delta; - - @ffi.Uint64() - external int onchain_wallet_sync_interval_secs; - - @ffi.Uint64() - external int wallet_sync_interval_secs; - - @ffi.Uint64() - external int fee_rate_cache_update_interval_secs; + external ffi.Pointer node_alias; external ffi.Pointer trusted_peers_0conf; @@ -6785,14 +7755,42 @@ final class wire_cst_config extends ffi.Struct { external int log_level; external ffi.Pointer anchor_channels_config; + + external ffi.Pointer sending_parameters; +} + +final class wire_cst_esplora_sync_config extends ffi.Struct { + @ffi.Uint64() + external int onchain_wallet_sync_interval_secs; + + @ffi.Uint64() + external int lightning_wallet_sync_interval_secs; + + @ffi.Uint64() + external int fee_rate_cache_update_interval_secs; } final class wire_cst_ChainDataSourceConfig_Esplora extends ffi.Struct { - external ffi.Pointer field0; + external ffi.Pointer server_url; + + external ffi.Pointer sync_config; +} + +final class wire_cst_ChainDataSourceConfig_BitcoindRpc extends ffi.Struct { + external ffi.Pointer rpc_host; + + @ffi.Uint16() + external int rpc_port; + + external ffi.Pointer rpc_user; + + external ffi.Pointer rpc_password; } final class ChainDataSourceConfigKind extends ffi.Union { external wire_cst_ChainDataSourceConfig_Esplora Esplora; + + external wire_cst_ChainDataSourceConfig_BitcoindRpc BitcoindRpc; } final class wire_cst_chain_data_source_config extends ffi.Struct { @@ -6810,12 +7808,12 @@ final class wire_cst_EntropySourceConfig_SeedBytes extends ffi.Struct { external ffi.Pointer field0; } -final class wire_cst_ldk_mnemonic extends ffi.Struct { +final class wire_cst_ffi_mnemonic extends ffi.Struct { external ffi.Pointer seed_phrase; } final class wire_cst_EntropySourceConfig_Bip39Mnemonic extends ffi.Struct { - external ffi.Pointer mnemonic; + external ffi.Pointer mnemonic; external ffi.Pointer passphrase; } @@ -6863,18 +7861,18 @@ final class wire_cst_liquidity_source_config extends ffi.Struct { external wire_cst_record_socket_address_public_key_opt_string lsps2_service; } -final class wire_cst_ldk_network_graph extends ffi.Struct { +final class wire_cst_ffi_network_graph extends ffi.Struct { @ffi.UintPtr() - external int ptr; + external int opaque; } final class wire_cst_node_id extends ffi.Struct { external ffi.Pointer compressed; } -final class wire_cst_ldk_node extends ffi.Struct { +final class wire_cst_ffi_node extends ffi.Struct { @ffi.UintPtr() - external int ptr; + external int opaque; } final class wire_cst_user_channel_id extends ffi.Struct { @@ -6914,7 +7912,7 @@ final class wire_cst_channel_config extends ffi.Struct { @ffi.Uint16() external int cltv_expiry_delta; - external ffi.Pointer max_dust_htlc_exposure; + external wire_cst_max_dust_htlc_exposure max_dust_htlc_exposure; @ffi.Uint64() external int force_close_avoidance_max_fee_satoshis; @@ -6934,18 +7932,23 @@ final class wire_cst_list_prim_u_8_loose extends ffi.Struct { external int len; } -final class wire_cst_ldk_on_chain_payment extends ffi.Struct { +final class wire_cst_ffi_on_chain_payment extends ffi.Struct { @ffi.UintPtr() - external int ptr; + external int opaque; } final class wire_cst_address extends ffi.Struct { external ffi.Pointer s; } -final class wire_cst_ldk_spontaneous_payment extends ffi.Struct { +final class wire_cst_ffi_spontaneous_payment extends ffi.Struct { @ffi.UintPtr() - external int ptr; + external int opaque; +} + +final class wire_cst_ffi_unified_qr_payment extends ffi.Struct { + @ffi.UintPtr() + external int opaque; } final class wire_cst_Bolt12ParseError_Bech32 extends ffi.Struct { @@ -7039,18 +8042,34 @@ final class wire_cst_channel_info extends ffi.Struct { external ffi.Pointer capacity_sats; } +final class wire_cst_ClosureReason_PeerFeerateTooLow extends ffi.Struct { + @ffi.Uint32() + external int peer_feerate_sat_per_kw; + + @ffi.Uint32() + external int required_feerate_sat_per_kw; +} + final class wire_cst_ClosureReason_CounterpartyForceClosed extends ffi.Struct { external ffi.Pointer peer_msg; } +final class wire_cst_ClosureReason_HolderForceClosed extends ffi.Struct { + external ffi.Pointer broadcasted_latest_txn; +} + final class wire_cst_ClosureReason_ProcessingError extends ffi.Struct { external ffi.Pointer err; } final class ClosureReasonKind extends ffi.Union { + external wire_cst_ClosureReason_PeerFeerateTooLow PeerFeerateTooLow; + external wire_cst_ClosureReason_CounterpartyForceClosed CounterpartyForceClosed; + external wire_cst_ClosureReason_HolderForceClosed HolderForceClosed; + external wire_cst_ClosureReason_ProcessingError ProcessingError; } @@ -7229,6 +8248,10 @@ final class wire_cst_PaymentKind_Bolt12Offer extends ffi.Struct { external ffi.Pointer secret; external ffi.Pointer offer_id; + + external ffi.Pointer payer_note; + + external ffi.Pointer quantity; } final class wire_cst_PaymentKind_Bolt12Refund extends ffi.Struct { @@ -7237,6 +8260,10 @@ final class wire_cst_PaymentKind_Bolt12Refund extends ffi.Struct { external ffi.Pointer preimage; external ffi.Pointer secret; + + external ffi.Pointer payer_note; + + external ffi.Pointer quantity; } final class PaymentKindKind extends ffi.Union { @@ -7311,9 +8338,6 @@ final class wire_cst_channel_details extends ffi.Struct { @ffi.Bool() external bool is_usable; - @ffi.Bool() - external bool is_public; - external ffi.Pointer cltv_expiry_delta; @ffi.Uint64() @@ -7362,6 +8386,21 @@ final class wire_cst_LightningBalance_ClaimableOnChannelClose @ffi.Uint64() external int amount_satoshis; + + @ffi.Uint64() + external int transaction_fee_satoshis; + + @ffi.Uint64() + external int outbound_payment_htlc_rounded_msat; + + @ffi.Uint64() + external int outbound_forwarded_htlc_rounded_msat; + + @ffi.Uint64() + external int inbound_claiming_htlc_rounded_msat; + + @ffi.Uint64() + external int inbound_htlc_rounded_msat; } final class wire_cst_LightningBalance_ClaimableAwaitingConfirmations @@ -7375,6 +8414,9 @@ final class wire_cst_LightningBalance_ClaimableAwaitingConfirmations @ffi.Uint32() external int confirmation_height; + + @ffi.Int32() + external int source; } final class wire_cst_LightningBalance_ContentiousClaimable extends ffi.Struct { @@ -7406,6 +8448,9 @@ final class wire_cst_LightningBalance_MaybeTimeoutClaimableHTLC external int claimable_height; external ffi.Pointer payment_hash; + + @ffi.Bool() + external bool outbound_payment; } final class wire_cst_LightningBalance_MaybePreimageClaimableHTLC @@ -7582,25 +8627,25 @@ final class wire_cst_bolt_12_invoice extends ffi.Struct { external ffi.Pointer data; } -final class wire_cst_LdkNodeError_Decode extends ffi.Struct { +final class wire_cst_FfiNodeError_Decode extends ffi.Struct { external ffi.Pointer field0; } -final class wire_cst_LdkNodeError_Bolt12Parse extends ffi.Struct { +final class wire_cst_FfiNodeError_Bolt12Parse extends ffi.Struct { external ffi.Pointer field0; } -final class LdkNodeErrorKind extends ffi.Union { - external wire_cst_LdkNodeError_Decode Decode; +final class FfiNodeErrorKind extends ffi.Union { + external wire_cst_FfiNodeError_Decode Decode; - external wire_cst_LdkNodeError_Bolt12Parse Bolt12Parse; + external wire_cst_FfiNodeError_Bolt12Parse Bolt12Parse; } -final class wire_cst_ldk_node_error extends ffi.Struct { +final class wire_cst_ffi_node_error extends ffi.Struct { @ffi.Int32() external int tag; - external LdkNodeErrorKind kind; + external FfiNodeErrorKind kind; } final class wire_cst_node_status extends ffi.Struct { @@ -7612,7 +8657,7 @@ final class wire_cst_node_status extends ffi.Struct { external wire_cst_best_block current_best_block; - external ffi.Pointer latest_wallet_sync_timestamp; + external ffi.Pointer latest_lightning_wallet_sync_timestamp; external ffi.Pointer latest_onchain_wallet_sync_timestamp; @@ -7621,4 +8666,33 @@ final class wire_cst_node_status extends ffi.Struct { external ffi.Pointer latest_rgs_snapshot_timestamp; external ffi.Pointer latest_node_announcement_broadcast_timestamp; + + external ffi.Pointer latest_channel_monitor_archival_height; +} + +final class wire_cst_QrPaymentResult_Onchain extends ffi.Struct { + external ffi.Pointer txid; +} + +final class wire_cst_QrPaymentResult_Bolt11 extends ffi.Struct { + external ffi.Pointer payment_id; +} + +final class wire_cst_QrPaymentResult_Bolt12 extends ffi.Struct { + external ffi.Pointer payment_id; +} + +final class QrPaymentResultKind extends ffi.Union { + external wire_cst_QrPaymentResult_Onchain Onchain; + + external wire_cst_QrPaymentResult_Bolt11 Bolt11; + + external wire_cst_QrPaymentResult_Bolt12 Bolt12; +} + +final class wire_cst_qr_payment_result extends ffi.Struct { + @ffi.Int32() + external int tag; + + external QrPaymentResultKind kind; } diff --git a/lib/src/generated/lib.dart b/lib/src/generated/lib.dart index 1672b4b..e72dddb 100644 --- a/lib/src/generated/lib.dart +++ b/lib/src/generated/lib.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -13,12 +13,18 @@ abstract class NetworkGraph implements RustOpaqueInterface {} // Rust type: RustOpaqueNom abstract class Bolt11Payment implements RustOpaqueInterface {} +// Rust type: RustOpaqueNom +abstract class Bolt12Payment implements RustOpaqueInterface {} + // Rust type: RustOpaqueNom abstract class OnchainPayment implements RustOpaqueInterface {} // Rust type: RustOpaqueNom abstract class SpontaneousPayment implements RustOpaqueInterface {} +// Rust type: RustOpaqueNom +abstract class UnifiedQrPayment implements RustOpaqueInterface {} + class U8Array12 extends NonGrowableListView { static const arraySize = 12; diff --git a/lib/src/generated/utils/error.dart b/lib/src/generated/utils/error.dart index 4579b40..5027a4b 100644 --- a/lib/src/generated/utils/error.dart +++ b/lib/src/generated/utils/error.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -49,7 +49,8 @@ sealed class DecodeError with _$DecodeError { const factory DecodeError.dangerousValue() = DecodeError_DangerousValue; } -enum LdkBuilderError { +enum FfiBuilderError { + invalidNodeAlias, socketAddressParseError, /// The given seed bytes are invalid, e.g., have invalid length. @@ -89,184 +90,189 @@ enum LdkBuilderError { } @freezed -sealed class LdkNodeError with _$LdkNodeError implements FrbException { - const LdkNodeError._(); +sealed class FfiNodeError with _$FfiNodeError implements FrbException { + const FfiNodeError._(); - const factory LdkNodeError.invalidTxid() = LdkNodeError_InvalidTxid; + const factory FfiNodeError.invalidTxid() = FfiNodeError_InvalidTxid; /// Returned when trying to start [Node] while it is already running. - const factory LdkNodeError.alreadyRunning() = LdkNodeError_AlreadyRunning; + const factory FfiNodeError.alreadyRunning() = FfiNodeError_AlreadyRunning; /// Returned when trying to stop [Node] while it is not running. - const factory LdkNodeError.notRunning() = LdkNodeError_NotRunning; + const factory FfiNodeError.notRunning() = FfiNodeError_NotRunning; /// An on-chain transaction could not be created. - const factory LdkNodeError.onchainTxCreationFailed() = - LdkNodeError_OnchainTxCreationFailed; + const factory FfiNodeError.onchainTxCreationFailed() = + FfiNodeError_OnchainTxCreationFailed; /// A network connection has been closed. - const factory LdkNodeError.connectionFailed() = LdkNodeError_ConnectionFailed; + const factory FfiNodeError.connectionFailed() = FfiNodeError_ConnectionFailed; /// Invoice creation failed. - const factory LdkNodeError.invoiceCreationFailed() = - LdkNodeError_InvoiceCreationFailed; + const factory FfiNodeError.invoiceCreationFailed() = + FfiNodeError_InvoiceCreationFailed; /// Sending a payment has failed. - const factory LdkNodeError.paymentSendingFailed() = - LdkNodeError_PaymentSendingFailed; + const factory FfiNodeError.paymentSendingFailed() = + FfiNodeError_PaymentSendingFailed; /// Sending a payment probe has failed. - const factory LdkNodeError.probeSendingFailed() = - LdkNodeError_ProbeSendingFailed; + const factory FfiNodeError.probeSendingFailed() = + FfiNodeError_ProbeSendingFailed; /// A channel could not be opened. - const factory LdkNodeError.channelCreationFailed() = - LdkNodeError_ChannelCreationFailed; + const factory FfiNodeError.channelCreationFailed() = + FfiNodeError_ChannelCreationFailed; /// A channel could not be closed. - const factory LdkNodeError.channelClosingFailed() = - LdkNodeError_ChannelClosingFailed; + const factory FfiNodeError.channelClosingFailed() = + FfiNodeError_ChannelClosingFailed; /// A channel config could not be updated. - const factory LdkNodeError.channelConfigUpdateFailed() = - LdkNodeError_ChannelConfigUpdateFailed; + const factory FfiNodeError.channelConfigUpdateFailed() = + FfiNodeError_ChannelConfigUpdateFailed; /// Persistence failed. - const factory LdkNodeError.persistenceFailed() = - LdkNodeError_PersistenceFailed; + const factory FfiNodeError.persistenceFailed() = + FfiNodeError_PersistenceFailed; /// A wallet operation failed. - const factory LdkNodeError.walletOperationFailed() = - LdkNodeError_WalletOperationFailed; + const factory FfiNodeError.walletOperationFailed() = + FfiNodeError_WalletOperationFailed; /// A signing operation for transaction failed. - const factory LdkNodeError.onchainTxSigningFailed() = - LdkNodeError_OnchainTxSigningFailed; + const factory FfiNodeError.onchainTxSigningFailed() = + FfiNodeError_OnchainTxSigningFailed; /// A signing operation for message failed. - const factory LdkNodeError.messageSigningFailed() = - LdkNodeError_MessageSigningFailed; + const factory FfiNodeError.messageSigningFailed() = + FfiNodeError_MessageSigningFailed; /// A transaction sync operation failed. - const factory LdkNodeError.txSyncFailed() = LdkNodeError_TxSyncFailed; + const factory FfiNodeError.txSyncFailed() = FfiNodeError_TxSyncFailed; /// A gossip updating operation failed. - const factory LdkNodeError.gossipUpdateFailed() = - LdkNodeError_GossipUpdateFailed; + const factory FfiNodeError.gossipUpdateFailed() = + FfiNodeError_GossipUpdateFailed; /// The given address is invalid. - const factory LdkNodeError.invalidAddress() = LdkNodeError_InvalidAddress; + const factory FfiNodeError.invalidAddress() = FfiNodeError_InvalidAddress; /// The given network address is invalid. - const factory LdkNodeError.invalidSocketAddress() = - LdkNodeError_InvalidSocketAddress; + const factory FfiNodeError.invalidSocketAddress() = + FfiNodeError_InvalidSocketAddress; /// The given public key is invalid. - const factory LdkNodeError.invalidPublicKey() = LdkNodeError_InvalidPublicKey; + const factory FfiNodeError.invalidPublicKey() = FfiNodeError_InvalidPublicKey; /// The given secret key is invalid. - const factory LdkNodeError.invalidSecretKey() = LdkNodeError_InvalidSecretKey; + const factory FfiNodeError.invalidSecretKey() = FfiNodeError_InvalidSecretKey; /// The given payment hash is invalid. - const factory LdkNodeError.invalidPaymentHash() = - LdkNodeError_InvalidPaymentHash; + const factory FfiNodeError.invalidPaymentHash() = + FfiNodeError_InvalidPaymentHash; /// The given payment preimage is invalid. - const factory LdkNodeError.invalidPaymentPreimage() = - LdkNodeError_InvalidPaymentPreimage; + const factory FfiNodeError.invalidPaymentPreimage() = + FfiNodeError_InvalidPaymentPreimage; /// The given payment secret is invalid. - const factory LdkNodeError.invalidPaymentSecret() = - LdkNodeError_InvalidPaymentSecret; + const factory FfiNodeError.invalidPaymentSecret() = + FfiNodeError_InvalidPaymentSecret; /// The given amount is invalid. - const factory LdkNodeError.invalidAmount() = LdkNodeError_InvalidAmount; + const factory FfiNodeError.invalidAmount() = FfiNodeError_InvalidAmount; /// The given invoice is invalid. - const factory LdkNodeError.invalidInvoice() = LdkNodeError_InvalidInvoice; + const factory FfiNodeError.invalidInvoice() = FfiNodeError_InvalidInvoice; /// The given channel ID is invalid. - const factory LdkNodeError.invalidChannelId() = LdkNodeError_InvalidChannelId; + const factory FfiNodeError.invalidChannelId() = FfiNodeError_InvalidChannelId; /// The given network is invalid. - const factory LdkNodeError.invalidNetwork() = LdkNodeError_InvalidNetwork; + const factory FfiNodeError.invalidNetwork() = FfiNodeError_InvalidNetwork; /// A payment with the given hash has already been initiated. - const factory LdkNodeError.duplicatePayment() = LdkNodeError_DuplicatePayment; + const factory FfiNodeError.duplicatePayment() = FfiNodeError_DuplicatePayment; /// There are insufficient funds to complete the given operation. - const factory LdkNodeError.insufficientFunds() = - LdkNodeError_InsufficientFunds; + const factory FfiNodeError.insufficientFunds() = + FfiNodeError_InsufficientFunds; ///A fee rate estimation update failed. - const factory LdkNodeError.feerateEstimationUpdateFailed() = - LdkNodeError_FeerateEstimationUpdateFailed; + const factory FfiNodeError.feerateEstimationUpdateFailed() = + FfiNodeError_FeerateEstimationUpdateFailed; ///A liquidity request operation failed. - const factory LdkNodeError.liquidityRequestFailed() = - LdkNodeError_LiquidityRequestFailed; + const factory FfiNodeError.liquidityRequestFailed() = + FfiNodeError_LiquidityRequestFailed; ///The given operation failed due to the required liquidity source being unavailable. - const factory LdkNodeError.liquiditySourceUnavailable() = - LdkNodeError_LiquiditySourceUnavailable; + const factory FfiNodeError.liquiditySourceUnavailable() = + FfiNodeError_LiquiditySourceUnavailable; ///The given operation failed due to the LSP's required opening fee being too high. - const factory LdkNodeError.liquidityFeeTooHigh() = - LdkNodeError_LiquidityFeeTooHigh; + const factory FfiNodeError.liquidityFeeTooHigh() = + FfiNodeError_LiquidityFeeTooHigh; ///The given payment id is invalid. - const factory LdkNodeError.invalidPaymentId() = LdkNodeError_InvalidPaymentId; + const factory FfiNodeError.invalidPaymentId() = FfiNodeError_InvalidPaymentId; ///An error in decoding a message or struct. - const factory LdkNodeError.decode( + const factory FfiNodeError.decode( DecodeError field0, - ) = LdkNodeError_Decode; + ) = FfiNodeError_Decode; ///An error in decoding the Bolt12 offer. - const factory LdkNodeError.bolt12Parse( + const factory FfiNodeError.bolt12Parse( Bolt12ParseError field0, - ) = LdkNodeError_Bolt12Parse; + ) = FfiNodeError_Bolt12Parse; ///Invoice request creation failed. - const factory LdkNodeError.invoiceRequestCreationFailed() = - LdkNodeError_InvoiceRequestCreationFailed; + const factory FfiNodeError.invoiceRequestCreationFailed() = + FfiNodeError_InvoiceRequestCreationFailed; ///Offer creation failed. - const factory LdkNodeError.offerCreationFailed() = - LdkNodeError_OfferCreationFailed; + const factory FfiNodeError.offerCreationFailed() = + FfiNodeError_OfferCreationFailed; ///Refund creation failed. - const factory LdkNodeError.refundCreationFailed() = - LdkNodeError_RefundCreationFailed; + const factory FfiNodeError.refundCreationFailed() = + FfiNodeError_RefundCreationFailed; ///A fee rate estimation update timed out. - const factory LdkNodeError.feerateEstimationUpdateTimeout() = - LdkNodeError_FeerateEstimationUpdateTimeout; + const factory FfiNodeError.feerateEstimationUpdateTimeout() = + FfiNodeError_FeerateEstimationUpdateTimeout; ///A wallet operation timed out. - const factory LdkNodeError.walletOperationTimeout() = - LdkNodeError_WalletOperationTimeout; + const factory FfiNodeError.walletOperationTimeout() = + FfiNodeError_WalletOperationTimeout; ///A transaction sync operation timed out. - const factory LdkNodeError.txSyncTimeout() = LdkNodeError_TxSyncTimeout; + const factory FfiNodeError.txSyncTimeout() = FfiNodeError_TxSyncTimeout; ///A gossip updating operation timed out. - const factory LdkNodeError.gossipUpdateTimeout() = - LdkNodeError_GossipUpdateTimeout; + const factory FfiNodeError.gossipUpdateTimeout() = + FfiNodeError_GossipUpdateTimeout; ///The given offer id is invalid. - const factory LdkNodeError.invalidOfferId() = LdkNodeError_InvalidOfferId; + const factory FfiNodeError.invalidOfferId() = FfiNodeError_InvalidOfferId; ///The given node id is invalid. - const factory LdkNodeError.invalidNodeId() = LdkNodeError_InvalidNodeId; + const factory FfiNodeError.invalidNodeId() = FfiNodeError_InvalidNodeId; ///The given offer is invalid. - const factory LdkNodeError.invalidOffer() = LdkNodeError_InvalidOffer; + const factory FfiNodeError.invalidOffer() = FfiNodeError_InvalidOffer; ///The given refund is invalid. - const factory LdkNodeError.invalidRefund() = LdkNodeError_InvalidRefund; + const factory FfiNodeError.invalidRefund() = FfiNodeError_InvalidRefund; ///The provided offer was denominated in an unsupported currency. - const factory LdkNodeError.unsupportedCurrency() = - LdkNodeError_UnsupportedCurrency; + const factory FfiNodeError.unsupportedCurrency() = + FfiNodeError_UnsupportedCurrency; + const factory FfiNodeError.uriParameterParsingFailed() = + FfiNodeError_UriParameterParsingFailed; + const factory FfiNodeError.invalidUri() = FfiNodeError_InvalidUri; + const factory FfiNodeError.invalidQuantity() = FfiNodeError_InvalidQuantity; + const factory FfiNodeError.invalidNodeAlias() = FfiNodeError_InvalidNodeAlias; } diff --git a/lib/src/generated/utils/error.freezed.dart b/lib/src/generated/utils/error.freezed.dart index 2f4dd6b..efc320b 100644 --- a/lib/src/generated/utils/error.freezed.dart +++ b/lib/src/generated/utils/error.freezed.dart @@ -2444,7 +2444,7 @@ abstract class DecodeError_DangerousValue extends DecodeError { } /// @nodoc -mixin _$LdkNodeError { +mixin _$FfiNodeError { @optionalTypeArgs TResult when({ required TResult Function() invalidTxid, @@ -2496,6 +2496,10 @@ mixin _$LdkNodeError { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -2549,6 +2553,10 @@ mixin _$LdkNodeError { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -2602,265 +2610,286 @@ mixin _$LdkNodeError { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) => throw _privateConstructorUsedError; } /// @nodoc -abstract class $LdkNodeErrorCopyWith<$Res> { - factory $LdkNodeErrorCopyWith( - LdkNodeError value, $Res Function(LdkNodeError) then) = - _$LdkNodeErrorCopyWithImpl<$Res, LdkNodeError>; +abstract class $FfiNodeErrorCopyWith<$Res> { + factory $FfiNodeErrorCopyWith( + FfiNodeError value, $Res Function(FfiNodeError) then) = + _$FfiNodeErrorCopyWithImpl<$Res, FfiNodeError>; } /// @nodoc -class _$LdkNodeErrorCopyWithImpl<$Res, $Val extends LdkNodeError> - implements $LdkNodeErrorCopyWith<$Res> { - _$LdkNodeErrorCopyWithImpl(this._value, this._then); +class _$FfiNodeErrorCopyWithImpl<$Res, $Val extends FfiNodeError> + implements $FfiNodeErrorCopyWith<$Res> { + _$FfiNodeErrorCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -2869,38 +2898,38 @@ class _$LdkNodeErrorCopyWithImpl<$Res, $Val extends LdkNodeError> } /// @nodoc -abstract class _$$LdkNodeError_InvalidTxidImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidTxidImplCopyWith( - _$LdkNodeError_InvalidTxidImpl value, - $Res Function(_$LdkNodeError_InvalidTxidImpl) then) = - __$$LdkNodeError_InvalidTxidImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidTxidImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidTxidImplCopyWith( + _$FfiNodeError_InvalidTxidImpl value, + $Res Function(_$FfiNodeError_InvalidTxidImpl) then) = + __$$FfiNodeError_InvalidTxidImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidTxidImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_InvalidTxidImpl> - implements _$$LdkNodeError_InvalidTxidImplCopyWith<$Res> { - __$$LdkNodeError_InvalidTxidImplCopyWithImpl( - _$LdkNodeError_InvalidTxidImpl _value, - $Res Function(_$LdkNodeError_InvalidTxidImpl) _then) +class __$$FfiNodeError_InvalidTxidImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidTxidImpl> + implements _$$FfiNodeError_InvalidTxidImplCopyWith<$Res> { + __$$FfiNodeError_InvalidTxidImplCopyWithImpl( + _$FfiNodeError_InvalidTxidImpl _value, + $Res Function(_$FfiNodeError_InvalidTxidImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidTxidImpl extends LdkNodeError_InvalidTxid { - const _$LdkNodeError_InvalidTxidImpl() : super._(); +class _$FfiNodeError_InvalidTxidImpl extends FfiNodeError_InvalidTxid { + const _$FfiNodeError_InvalidTxidImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidTxid()'; + return 'FfiNodeError.invalidTxid()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidTxidImpl); + other is _$FfiNodeError_InvalidTxidImpl); } @override @@ -2958,6 +2987,10 @@ class _$LdkNodeError_InvalidTxidImpl extends LdkNodeError_InvalidTxid { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidTxid(); } @@ -3014,6 +3047,10 @@ class _$LdkNodeError_InvalidTxidImpl extends LdkNodeError_InvalidTxid { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidTxid?.call(); } @@ -3070,6 +3107,10 @@ class _$LdkNodeError_InvalidTxidImpl extends LdkNodeError_InvalidTxid { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidTxid != null) { @@ -3081,89 +3122,96 @@ class _$LdkNodeError_InvalidTxidImpl extends LdkNodeError_InvalidTxid { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidTxid(this); } @@ -3171,81 +3219,86 @@ class _$LdkNodeError_InvalidTxidImpl extends LdkNodeError_InvalidTxid { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidTxid?.call(this); } @@ -3253,78 +3306,83 @@ class _$LdkNodeError_InvalidTxidImpl extends LdkNodeError_InvalidTxid { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidTxid != null) { @@ -3334,44 +3392,44 @@ class _$LdkNodeError_InvalidTxidImpl extends LdkNodeError_InvalidTxid { } } -abstract class LdkNodeError_InvalidTxid extends LdkNodeError { - const factory LdkNodeError_InvalidTxid() = _$LdkNodeError_InvalidTxidImpl; - const LdkNodeError_InvalidTxid._() : super._(); +abstract class FfiNodeError_InvalidTxid extends FfiNodeError { + const factory FfiNodeError_InvalidTxid() = _$FfiNodeError_InvalidTxidImpl; + const FfiNodeError_InvalidTxid._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_AlreadyRunningImplCopyWith<$Res> { - factory _$$LdkNodeError_AlreadyRunningImplCopyWith( - _$LdkNodeError_AlreadyRunningImpl value, - $Res Function(_$LdkNodeError_AlreadyRunningImpl) then) = - __$$LdkNodeError_AlreadyRunningImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_AlreadyRunningImplCopyWith<$Res> { + factory _$$FfiNodeError_AlreadyRunningImplCopyWith( + _$FfiNodeError_AlreadyRunningImpl value, + $Res Function(_$FfiNodeError_AlreadyRunningImpl) then) = + __$$FfiNodeError_AlreadyRunningImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_AlreadyRunningImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_AlreadyRunningImpl> - implements _$$LdkNodeError_AlreadyRunningImplCopyWith<$Res> { - __$$LdkNodeError_AlreadyRunningImplCopyWithImpl( - _$LdkNodeError_AlreadyRunningImpl _value, - $Res Function(_$LdkNodeError_AlreadyRunningImpl) _then) +class __$$FfiNodeError_AlreadyRunningImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_AlreadyRunningImpl> + implements _$$FfiNodeError_AlreadyRunningImplCopyWith<$Res> { + __$$FfiNodeError_AlreadyRunningImplCopyWithImpl( + _$FfiNodeError_AlreadyRunningImpl _value, + $Res Function(_$FfiNodeError_AlreadyRunningImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_AlreadyRunningImpl extends LdkNodeError_AlreadyRunning { - const _$LdkNodeError_AlreadyRunningImpl() : super._(); +class _$FfiNodeError_AlreadyRunningImpl extends FfiNodeError_AlreadyRunning { + const _$FfiNodeError_AlreadyRunningImpl() : super._(); @override String toString() { - return 'LdkNodeError.alreadyRunning()'; + return 'FfiNodeError.alreadyRunning()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_AlreadyRunningImpl); + other is _$FfiNodeError_AlreadyRunningImpl); } @override @@ -3429,6 +3487,10 @@ class _$LdkNodeError_AlreadyRunningImpl extends LdkNodeError_AlreadyRunning { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return alreadyRunning(); } @@ -3485,6 +3547,10 @@ class _$LdkNodeError_AlreadyRunningImpl extends LdkNodeError_AlreadyRunning { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return alreadyRunning?.call(); } @@ -3541,6 +3607,10 @@ class _$LdkNodeError_AlreadyRunningImpl extends LdkNodeError_AlreadyRunning { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (alreadyRunning != null) { @@ -3552,89 +3622,96 @@ class _$LdkNodeError_AlreadyRunningImpl extends LdkNodeError_AlreadyRunning { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return alreadyRunning(this); } @@ -3642,81 +3719,86 @@ class _$LdkNodeError_AlreadyRunningImpl extends LdkNodeError_AlreadyRunning { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return alreadyRunning?.call(this); } @@ -3724,78 +3806,83 @@ class _$LdkNodeError_AlreadyRunningImpl extends LdkNodeError_AlreadyRunning { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (alreadyRunning != null) { @@ -3805,45 +3892,45 @@ class _$LdkNodeError_AlreadyRunningImpl extends LdkNodeError_AlreadyRunning { } } -abstract class LdkNodeError_AlreadyRunning extends LdkNodeError { - const factory LdkNodeError_AlreadyRunning() = - _$LdkNodeError_AlreadyRunningImpl; - const LdkNodeError_AlreadyRunning._() : super._(); +abstract class FfiNodeError_AlreadyRunning extends FfiNodeError { + const factory FfiNodeError_AlreadyRunning() = + _$FfiNodeError_AlreadyRunningImpl; + const FfiNodeError_AlreadyRunning._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_NotRunningImplCopyWith<$Res> { - factory _$$LdkNodeError_NotRunningImplCopyWith( - _$LdkNodeError_NotRunningImpl value, - $Res Function(_$LdkNodeError_NotRunningImpl) then) = - __$$LdkNodeError_NotRunningImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_NotRunningImplCopyWith<$Res> { + factory _$$FfiNodeError_NotRunningImplCopyWith( + _$FfiNodeError_NotRunningImpl value, + $Res Function(_$FfiNodeError_NotRunningImpl) then) = + __$$FfiNodeError_NotRunningImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_NotRunningImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_NotRunningImpl> - implements _$$LdkNodeError_NotRunningImplCopyWith<$Res> { - __$$LdkNodeError_NotRunningImplCopyWithImpl( - _$LdkNodeError_NotRunningImpl _value, - $Res Function(_$LdkNodeError_NotRunningImpl) _then) +class __$$FfiNodeError_NotRunningImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_NotRunningImpl> + implements _$$FfiNodeError_NotRunningImplCopyWith<$Res> { + __$$FfiNodeError_NotRunningImplCopyWithImpl( + _$FfiNodeError_NotRunningImpl _value, + $Res Function(_$FfiNodeError_NotRunningImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_NotRunningImpl extends LdkNodeError_NotRunning { - const _$LdkNodeError_NotRunningImpl() : super._(); +class _$FfiNodeError_NotRunningImpl extends FfiNodeError_NotRunning { + const _$FfiNodeError_NotRunningImpl() : super._(); @override String toString() { - return 'LdkNodeError.notRunning()'; + return 'FfiNodeError.notRunning()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_NotRunningImpl); + other is _$FfiNodeError_NotRunningImpl); } @override @@ -3901,6 +3988,10 @@ class _$LdkNodeError_NotRunningImpl extends LdkNodeError_NotRunning { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return notRunning(); } @@ -3957,6 +4048,10 @@ class _$LdkNodeError_NotRunningImpl extends LdkNodeError_NotRunning { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return notRunning?.call(); } @@ -4013,6 +4108,10 @@ class _$LdkNodeError_NotRunningImpl extends LdkNodeError_NotRunning { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (notRunning != null) { @@ -4024,89 +4123,96 @@ class _$LdkNodeError_NotRunningImpl extends LdkNodeError_NotRunning { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return notRunning(this); } @@ -4114,81 +4220,86 @@ class _$LdkNodeError_NotRunningImpl extends LdkNodeError_NotRunning { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return notRunning?.call(this); } @@ -4196,78 +4307,83 @@ class _$LdkNodeError_NotRunningImpl extends LdkNodeError_NotRunning { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (notRunning != null) { @@ -4277,46 +4393,46 @@ class _$LdkNodeError_NotRunningImpl extends LdkNodeError_NotRunning { } } -abstract class LdkNodeError_NotRunning extends LdkNodeError { - const factory LdkNodeError_NotRunning() = _$LdkNodeError_NotRunningImpl; - const LdkNodeError_NotRunning._() : super._(); +abstract class FfiNodeError_NotRunning extends FfiNodeError { + const factory FfiNodeError_NotRunning() = _$FfiNodeError_NotRunningImpl; + const FfiNodeError_NotRunning._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_OnchainTxCreationFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_OnchainTxCreationFailedImplCopyWith( - _$LdkNodeError_OnchainTxCreationFailedImpl value, - $Res Function(_$LdkNodeError_OnchainTxCreationFailedImpl) then) = - __$$LdkNodeError_OnchainTxCreationFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_OnchainTxCreationFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_OnchainTxCreationFailedImplCopyWith( + _$FfiNodeError_OnchainTxCreationFailedImpl value, + $Res Function(_$FfiNodeError_OnchainTxCreationFailedImpl) then) = + __$$FfiNodeError_OnchainTxCreationFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_OnchainTxCreationFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_OnchainTxCreationFailedImpl> - implements _$$LdkNodeError_OnchainTxCreationFailedImplCopyWith<$Res> { - __$$LdkNodeError_OnchainTxCreationFailedImplCopyWithImpl( - _$LdkNodeError_OnchainTxCreationFailedImpl _value, - $Res Function(_$LdkNodeError_OnchainTxCreationFailedImpl) _then) +class __$$FfiNodeError_OnchainTxCreationFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_OnchainTxCreationFailedImpl> + implements _$$FfiNodeError_OnchainTxCreationFailedImplCopyWith<$Res> { + __$$FfiNodeError_OnchainTxCreationFailedImplCopyWithImpl( + _$FfiNodeError_OnchainTxCreationFailedImpl _value, + $Res Function(_$FfiNodeError_OnchainTxCreationFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_OnchainTxCreationFailedImpl - extends LdkNodeError_OnchainTxCreationFailed { - const _$LdkNodeError_OnchainTxCreationFailedImpl() : super._(); +class _$FfiNodeError_OnchainTxCreationFailedImpl + extends FfiNodeError_OnchainTxCreationFailed { + const _$FfiNodeError_OnchainTxCreationFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.onchainTxCreationFailed()'; + return 'FfiNodeError.onchainTxCreationFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_OnchainTxCreationFailedImpl); + other is _$FfiNodeError_OnchainTxCreationFailedImpl); } @override @@ -4374,6 +4490,10 @@ class _$LdkNodeError_OnchainTxCreationFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return onchainTxCreationFailed(); } @@ -4430,6 +4550,10 @@ class _$LdkNodeError_OnchainTxCreationFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return onchainTxCreationFailed?.call(); } @@ -4486,6 +4610,10 @@ class _$LdkNodeError_OnchainTxCreationFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (onchainTxCreationFailed != null) { @@ -4497,89 +4625,96 @@ class _$LdkNodeError_OnchainTxCreationFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return onchainTxCreationFailed(this); } @@ -4587,81 +4722,86 @@ class _$LdkNodeError_OnchainTxCreationFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return onchainTxCreationFailed?.call(this); } @@ -4669,78 +4809,83 @@ class _$LdkNodeError_OnchainTxCreationFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (onchainTxCreationFailed != null) { @@ -4750,47 +4895,47 @@ class _$LdkNodeError_OnchainTxCreationFailedImpl } } -abstract class LdkNodeError_OnchainTxCreationFailed extends LdkNodeError { - const factory LdkNodeError_OnchainTxCreationFailed() = - _$LdkNodeError_OnchainTxCreationFailedImpl; - const LdkNodeError_OnchainTxCreationFailed._() : super._(); +abstract class FfiNodeError_OnchainTxCreationFailed extends FfiNodeError { + const factory FfiNodeError_OnchainTxCreationFailed() = + _$FfiNodeError_OnchainTxCreationFailedImpl; + const FfiNodeError_OnchainTxCreationFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_ConnectionFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_ConnectionFailedImplCopyWith( - _$LdkNodeError_ConnectionFailedImpl value, - $Res Function(_$LdkNodeError_ConnectionFailedImpl) then) = - __$$LdkNodeError_ConnectionFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_ConnectionFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_ConnectionFailedImplCopyWith( + _$FfiNodeError_ConnectionFailedImpl value, + $Res Function(_$FfiNodeError_ConnectionFailedImpl) then) = + __$$FfiNodeError_ConnectionFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_ConnectionFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_ConnectionFailedImpl> - implements _$$LdkNodeError_ConnectionFailedImplCopyWith<$Res> { - __$$LdkNodeError_ConnectionFailedImplCopyWithImpl( - _$LdkNodeError_ConnectionFailedImpl _value, - $Res Function(_$LdkNodeError_ConnectionFailedImpl) _then) +class __$$FfiNodeError_ConnectionFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_ConnectionFailedImpl> + implements _$$FfiNodeError_ConnectionFailedImplCopyWith<$Res> { + __$$FfiNodeError_ConnectionFailedImplCopyWithImpl( + _$FfiNodeError_ConnectionFailedImpl _value, + $Res Function(_$FfiNodeError_ConnectionFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_ConnectionFailedImpl - extends LdkNodeError_ConnectionFailed { - const _$LdkNodeError_ConnectionFailedImpl() : super._(); +class _$FfiNodeError_ConnectionFailedImpl + extends FfiNodeError_ConnectionFailed { + const _$FfiNodeError_ConnectionFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.connectionFailed()'; + return 'FfiNodeError.connectionFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_ConnectionFailedImpl); + other is _$FfiNodeError_ConnectionFailedImpl); } @override @@ -4848,6 +4993,10 @@ class _$LdkNodeError_ConnectionFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return connectionFailed(); } @@ -4904,6 +5053,10 @@ class _$LdkNodeError_ConnectionFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return connectionFailed?.call(); } @@ -4960,6 +5113,10 @@ class _$LdkNodeError_ConnectionFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (connectionFailed != null) { @@ -4971,89 +5128,96 @@ class _$LdkNodeError_ConnectionFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return connectionFailed(this); } @@ -5061,81 +5225,86 @@ class _$LdkNodeError_ConnectionFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return connectionFailed?.call(this); } @@ -5143,78 +5312,83 @@ class _$LdkNodeError_ConnectionFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (connectionFailed != null) { @@ -5224,47 +5398,47 @@ class _$LdkNodeError_ConnectionFailedImpl } } -abstract class LdkNodeError_ConnectionFailed extends LdkNodeError { - const factory LdkNodeError_ConnectionFailed() = - _$LdkNodeError_ConnectionFailedImpl; - const LdkNodeError_ConnectionFailed._() : super._(); +abstract class FfiNodeError_ConnectionFailed extends FfiNodeError { + const factory FfiNodeError_ConnectionFailed() = + _$FfiNodeError_ConnectionFailedImpl; + const FfiNodeError_ConnectionFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvoiceCreationFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_InvoiceCreationFailedImplCopyWith( - _$LdkNodeError_InvoiceCreationFailedImpl value, - $Res Function(_$LdkNodeError_InvoiceCreationFailedImpl) then) = - __$$LdkNodeError_InvoiceCreationFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvoiceCreationFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_InvoiceCreationFailedImplCopyWith( + _$FfiNodeError_InvoiceCreationFailedImpl value, + $Res Function(_$FfiNodeError_InvoiceCreationFailedImpl) then) = + __$$FfiNodeError_InvoiceCreationFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvoiceCreationFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InvoiceCreationFailedImpl> - implements _$$LdkNodeError_InvoiceCreationFailedImplCopyWith<$Res> { - __$$LdkNodeError_InvoiceCreationFailedImplCopyWithImpl( - _$LdkNodeError_InvoiceCreationFailedImpl _value, - $Res Function(_$LdkNodeError_InvoiceCreationFailedImpl) _then) +class __$$FfiNodeError_InvoiceCreationFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvoiceCreationFailedImpl> + implements _$$FfiNodeError_InvoiceCreationFailedImplCopyWith<$Res> { + __$$FfiNodeError_InvoiceCreationFailedImplCopyWithImpl( + _$FfiNodeError_InvoiceCreationFailedImpl _value, + $Res Function(_$FfiNodeError_InvoiceCreationFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvoiceCreationFailedImpl - extends LdkNodeError_InvoiceCreationFailed { - const _$LdkNodeError_InvoiceCreationFailedImpl() : super._(); +class _$FfiNodeError_InvoiceCreationFailedImpl + extends FfiNodeError_InvoiceCreationFailed { + const _$FfiNodeError_InvoiceCreationFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.invoiceCreationFailed()'; + return 'FfiNodeError.invoiceCreationFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvoiceCreationFailedImpl); + other is _$FfiNodeError_InvoiceCreationFailedImpl); } @override @@ -5322,6 +5496,10 @@ class _$LdkNodeError_InvoiceCreationFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invoiceCreationFailed(); } @@ -5378,6 +5556,10 @@ class _$LdkNodeError_InvoiceCreationFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invoiceCreationFailed?.call(); } @@ -5434,6 +5616,10 @@ class _$LdkNodeError_InvoiceCreationFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invoiceCreationFailed != null) { @@ -5445,89 +5631,96 @@ class _$LdkNodeError_InvoiceCreationFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invoiceCreationFailed(this); } @@ -5535,81 +5728,86 @@ class _$LdkNodeError_InvoiceCreationFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invoiceCreationFailed?.call(this); } @@ -5617,78 +5815,83 @@ class _$LdkNodeError_InvoiceCreationFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invoiceCreationFailed != null) { @@ -5698,47 +5901,47 @@ class _$LdkNodeError_InvoiceCreationFailedImpl } } -abstract class LdkNodeError_InvoiceCreationFailed extends LdkNodeError { - const factory LdkNodeError_InvoiceCreationFailed() = - _$LdkNodeError_InvoiceCreationFailedImpl; - const LdkNodeError_InvoiceCreationFailed._() : super._(); +abstract class FfiNodeError_InvoiceCreationFailed extends FfiNodeError { + const factory FfiNodeError_InvoiceCreationFailed() = + _$FfiNodeError_InvoiceCreationFailedImpl; + const FfiNodeError_InvoiceCreationFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_PaymentSendingFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_PaymentSendingFailedImplCopyWith( - _$LdkNodeError_PaymentSendingFailedImpl value, - $Res Function(_$LdkNodeError_PaymentSendingFailedImpl) then) = - __$$LdkNodeError_PaymentSendingFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_PaymentSendingFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_PaymentSendingFailedImplCopyWith( + _$FfiNodeError_PaymentSendingFailedImpl value, + $Res Function(_$FfiNodeError_PaymentSendingFailedImpl) then) = + __$$FfiNodeError_PaymentSendingFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_PaymentSendingFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_PaymentSendingFailedImpl> - implements _$$LdkNodeError_PaymentSendingFailedImplCopyWith<$Res> { - __$$LdkNodeError_PaymentSendingFailedImplCopyWithImpl( - _$LdkNodeError_PaymentSendingFailedImpl _value, - $Res Function(_$LdkNodeError_PaymentSendingFailedImpl) _then) +class __$$FfiNodeError_PaymentSendingFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_PaymentSendingFailedImpl> + implements _$$FfiNodeError_PaymentSendingFailedImplCopyWith<$Res> { + __$$FfiNodeError_PaymentSendingFailedImplCopyWithImpl( + _$FfiNodeError_PaymentSendingFailedImpl _value, + $Res Function(_$FfiNodeError_PaymentSendingFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_PaymentSendingFailedImpl - extends LdkNodeError_PaymentSendingFailed { - const _$LdkNodeError_PaymentSendingFailedImpl() : super._(); +class _$FfiNodeError_PaymentSendingFailedImpl + extends FfiNodeError_PaymentSendingFailed { + const _$FfiNodeError_PaymentSendingFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.paymentSendingFailed()'; + return 'FfiNodeError.paymentSendingFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_PaymentSendingFailedImpl); + other is _$FfiNodeError_PaymentSendingFailedImpl); } @override @@ -5796,6 +5999,10 @@ class _$LdkNodeError_PaymentSendingFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return paymentSendingFailed(); } @@ -5852,6 +6059,10 @@ class _$LdkNodeError_PaymentSendingFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return paymentSendingFailed?.call(); } @@ -5908,6 +6119,10 @@ class _$LdkNodeError_PaymentSendingFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (paymentSendingFailed != null) { @@ -5919,89 +6134,96 @@ class _$LdkNodeError_PaymentSendingFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return paymentSendingFailed(this); } @@ -6009,81 +6231,86 @@ class _$LdkNodeError_PaymentSendingFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return paymentSendingFailed?.call(this); } @@ -6091,78 +6318,83 @@ class _$LdkNodeError_PaymentSendingFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (paymentSendingFailed != null) { @@ -6172,47 +6404,47 @@ class _$LdkNodeError_PaymentSendingFailedImpl } } -abstract class LdkNodeError_PaymentSendingFailed extends LdkNodeError { - const factory LdkNodeError_PaymentSendingFailed() = - _$LdkNodeError_PaymentSendingFailedImpl; - const LdkNodeError_PaymentSendingFailed._() : super._(); +abstract class FfiNodeError_PaymentSendingFailed extends FfiNodeError { + const factory FfiNodeError_PaymentSendingFailed() = + _$FfiNodeError_PaymentSendingFailedImpl; + const FfiNodeError_PaymentSendingFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_ProbeSendingFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_ProbeSendingFailedImplCopyWith( - _$LdkNodeError_ProbeSendingFailedImpl value, - $Res Function(_$LdkNodeError_ProbeSendingFailedImpl) then) = - __$$LdkNodeError_ProbeSendingFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_ProbeSendingFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_ProbeSendingFailedImplCopyWith( + _$FfiNodeError_ProbeSendingFailedImpl value, + $Res Function(_$FfiNodeError_ProbeSendingFailedImpl) then) = + __$$FfiNodeError_ProbeSendingFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_ProbeSendingFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_ProbeSendingFailedImpl> - implements _$$LdkNodeError_ProbeSendingFailedImplCopyWith<$Res> { - __$$LdkNodeError_ProbeSendingFailedImplCopyWithImpl( - _$LdkNodeError_ProbeSendingFailedImpl _value, - $Res Function(_$LdkNodeError_ProbeSendingFailedImpl) _then) +class __$$FfiNodeError_ProbeSendingFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_ProbeSendingFailedImpl> + implements _$$FfiNodeError_ProbeSendingFailedImplCopyWith<$Res> { + __$$FfiNodeError_ProbeSendingFailedImplCopyWithImpl( + _$FfiNodeError_ProbeSendingFailedImpl _value, + $Res Function(_$FfiNodeError_ProbeSendingFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_ProbeSendingFailedImpl - extends LdkNodeError_ProbeSendingFailed { - const _$LdkNodeError_ProbeSendingFailedImpl() : super._(); +class _$FfiNodeError_ProbeSendingFailedImpl + extends FfiNodeError_ProbeSendingFailed { + const _$FfiNodeError_ProbeSendingFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.probeSendingFailed()'; + return 'FfiNodeError.probeSendingFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_ProbeSendingFailedImpl); + other is _$FfiNodeError_ProbeSendingFailedImpl); } @override @@ -6270,6 +6502,10 @@ class _$LdkNodeError_ProbeSendingFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return probeSendingFailed(); } @@ -6326,6 +6562,10 @@ class _$LdkNodeError_ProbeSendingFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return probeSendingFailed?.call(); } @@ -6382,6 +6622,10 @@ class _$LdkNodeError_ProbeSendingFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (probeSendingFailed != null) { @@ -6393,89 +6637,96 @@ class _$LdkNodeError_ProbeSendingFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return probeSendingFailed(this); } @@ -6483,81 +6734,86 @@ class _$LdkNodeError_ProbeSendingFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return probeSendingFailed?.call(this); } @@ -6565,78 +6821,83 @@ class _$LdkNodeError_ProbeSendingFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (probeSendingFailed != null) { @@ -6646,47 +6907,47 @@ class _$LdkNodeError_ProbeSendingFailedImpl } } -abstract class LdkNodeError_ProbeSendingFailed extends LdkNodeError { - const factory LdkNodeError_ProbeSendingFailed() = - _$LdkNodeError_ProbeSendingFailedImpl; - const LdkNodeError_ProbeSendingFailed._() : super._(); +abstract class FfiNodeError_ProbeSendingFailed extends FfiNodeError { + const factory FfiNodeError_ProbeSendingFailed() = + _$FfiNodeError_ProbeSendingFailedImpl; + const FfiNodeError_ProbeSendingFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_ChannelCreationFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_ChannelCreationFailedImplCopyWith( - _$LdkNodeError_ChannelCreationFailedImpl value, - $Res Function(_$LdkNodeError_ChannelCreationFailedImpl) then) = - __$$LdkNodeError_ChannelCreationFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_ChannelCreationFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_ChannelCreationFailedImplCopyWith( + _$FfiNodeError_ChannelCreationFailedImpl value, + $Res Function(_$FfiNodeError_ChannelCreationFailedImpl) then) = + __$$FfiNodeError_ChannelCreationFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_ChannelCreationFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_ChannelCreationFailedImpl> - implements _$$LdkNodeError_ChannelCreationFailedImplCopyWith<$Res> { - __$$LdkNodeError_ChannelCreationFailedImplCopyWithImpl( - _$LdkNodeError_ChannelCreationFailedImpl _value, - $Res Function(_$LdkNodeError_ChannelCreationFailedImpl) _then) +class __$$FfiNodeError_ChannelCreationFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_ChannelCreationFailedImpl> + implements _$$FfiNodeError_ChannelCreationFailedImplCopyWith<$Res> { + __$$FfiNodeError_ChannelCreationFailedImplCopyWithImpl( + _$FfiNodeError_ChannelCreationFailedImpl _value, + $Res Function(_$FfiNodeError_ChannelCreationFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_ChannelCreationFailedImpl - extends LdkNodeError_ChannelCreationFailed { - const _$LdkNodeError_ChannelCreationFailedImpl() : super._(); +class _$FfiNodeError_ChannelCreationFailedImpl + extends FfiNodeError_ChannelCreationFailed { + const _$FfiNodeError_ChannelCreationFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.channelCreationFailed()'; + return 'FfiNodeError.channelCreationFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_ChannelCreationFailedImpl); + other is _$FfiNodeError_ChannelCreationFailedImpl); } @override @@ -6744,6 +7005,10 @@ class _$LdkNodeError_ChannelCreationFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return channelCreationFailed(); } @@ -6800,6 +7065,10 @@ class _$LdkNodeError_ChannelCreationFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return channelCreationFailed?.call(); } @@ -6856,6 +7125,10 @@ class _$LdkNodeError_ChannelCreationFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (channelCreationFailed != null) { @@ -6867,89 +7140,96 @@ class _$LdkNodeError_ChannelCreationFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return channelCreationFailed(this); } @@ -6957,81 +7237,86 @@ class _$LdkNodeError_ChannelCreationFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return channelCreationFailed?.call(this); } @@ -7039,78 +7324,83 @@ class _$LdkNodeError_ChannelCreationFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (channelCreationFailed != null) { @@ -7120,47 +7410,47 @@ class _$LdkNodeError_ChannelCreationFailedImpl } } -abstract class LdkNodeError_ChannelCreationFailed extends LdkNodeError { - const factory LdkNodeError_ChannelCreationFailed() = - _$LdkNodeError_ChannelCreationFailedImpl; - const LdkNodeError_ChannelCreationFailed._() : super._(); +abstract class FfiNodeError_ChannelCreationFailed extends FfiNodeError { + const factory FfiNodeError_ChannelCreationFailed() = + _$FfiNodeError_ChannelCreationFailedImpl; + const FfiNodeError_ChannelCreationFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_ChannelClosingFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_ChannelClosingFailedImplCopyWith( - _$LdkNodeError_ChannelClosingFailedImpl value, - $Res Function(_$LdkNodeError_ChannelClosingFailedImpl) then) = - __$$LdkNodeError_ChannelClosingFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_ChannelClosingFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_ChannelClosingFailedImplCopyWith( + _$FfiNodeError_ChannelClosingFailedImpl value, + $Res Function(_$FfiNodeError_ChannelClosingFailedImpl) then) = + __$$FfiNodeError_ChannelClosingFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_ChannelClosingFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_ChannelClosingFailedImpl> - implements _$$LdkNodeError_ChannelClosingFailedImplCopyWith<$Res> { - __$$LdkNodeError_ChannelClosingFailedImplCopyWithImpl( - _$LdkNodeError_ChannelClosingFailedImpl _value, - $Res Function(_$LdkNodeError_ChannelClosingFailedImpl) _then) +class __$$FfiNodeError_ChannelClosingFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_ChannelClosingFailedImpl> + implements _$$FfiNodeError_ChannelClosingFailedImplCopyWith<$Res> { + __$$FfiNodeError_ChannelClosingFailedImplCopyWithImpl( + _$FfiNodeError_ChannelClosingFailedImpl _value, + $Res Function(_$FfiNodeError_ChannelClosingFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_ChannelClosingFailedImpl - extends LdkNodeError_ChannelClosingFailed { - const _$LdkNodeError_ChannelClosingFailedImpl() : super._(); +class _$FfiNodeError_ChannelClosingFailedImpl + extends FfiNodeError_ChannelClosingFailed { + const _$FfiNodeError_ChannelClosingFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.channelClosingFailed()'; + return 'FfiNodeError.channelClosingFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_ChannelClosingFailedImpl); + other is _$FfiNodeError_ChannelClosingFailedImpl); } @override @@ -7218,6 +7508,10 @@ class _$LdkNodeError_ChannelClosingFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return channelClosingFailed(); } @@ -7274,6 +7568,10 @@ class _$LdkNodeError_ChannelClosingFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return channelClosingFailed?.call(); } @@ -7330,6 +7628,10 @@ class _$LdkNodeError_ChannelClosingFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (channelClosingFailed != null) { @@ -7341,89 +7643,96 @@ class _$LdkNodeError_ChannelClosingFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return channelClosingFailed(this); } @@ -7431,81 +7740,86 @@ class _$LdkNodeError_ChannelClosingFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return channelClosingFailed?.call(this); } @@ -7513,78 +7827,83 @@ class _$LdkNodeError_ChannelClosingFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (channelClosingFailed != null) { @@ -7594,47 +7913,47 @@ class _$LdkNodeError_ChannelClosingFailedImpl } } -abstract class LdkNodeError_ChannelClosingFailed extends LdkNodeError { - const factory LdkNodeError_ChannelClosingFailed() = - _$LdkNodeError_ChannelClosingFailedImpl; - const LdkNodeError_ChannelClosingFailed._() : super._(); +abstract class FfiNodeError_ChannelClosingFailed extends FfiNodeError { + const factory FfiNodeError_ChannelClosingFailed() = + _$FfiNodeError_ChannelClosingFailedImpl; + const FfiNodeError_ChannelClosingFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_ChannelConfigUpdateFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_ChannelConfigUpdateFailedImplCopyWith( - _$LdkNodeError_ChannelConfigUpdateFailedImpl value, - $Res Function(_$LdkNodeError_ChannelConfigUpdateFailedImpl) then) = - __$$LdkNodeError_ChannelConfigUpdateFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_ChannelConfigUpdateFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_ChannelConfigUpdateFailedImplCopyWith( + _$FfiNodeError_ChannelConfigUpdateFailedImpl value, + $Res Function(_$FfiNodeError_ChannelConfigUpdateFailedImpl) then) = + __$$FfiNodeError_ChannelConfigUpdateFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_ChannelConfigUpdateFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_ChannelConfigUpdateFailedImpl> - implements _$$LdkNodeError_ChannelConfigUpdateFailedImplCopyWith<$Res> { - __$$LdkNodeError_ChannelConfigUpdateFailedImplCopyWithImpl( - _$LdkNodeError_ChannelConfigUpdateFailedImpl _value, - $Res Function(_$LdkNodeError_ChannelConfigUpdateFailedImpl) _then) +class __$$FfiNodeError_ChannelConfigUpdateFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_ChannelConfigUpdateFailedImpl> + implements _$$FfiNodeError_ChannelConfigUpdateFailedImplCopyWith<$Res> { + __$$FfiNodeError_ChannelConfigUpdateFailedImplCopyWithImpl( + _$FfiNodeError_ChannelConfigUpdateFailedImpl _value, + $Res Function(_$FfiNodeError_ChannelConfigUpdateFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_ChannelConfigUpdateFailedImpl - extends LdkNodeError_ChannelConfigUpdateFailed { - const _$LdkNodeError_ChannelConfigUpdateFailedImpl() : super._(); +class _$FfiNodeError_ChannelConfigUpdateFailedImpl + extends FfiNodeError_ChannelConfigUpdateFailed { + const _$FfiNodeError_ChannelConfigUpdateFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.channelConfigUpdateFailed()'; + return 'FfiNodeError.channelConfigUpdateFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_ChannelConfigUpdateFailedImpl); + other is _$FfiNodeError_ChannelConfigUpdateFailedImpl); } @override @@ -7692,6 +8011,10 @@ class _$LdkNodeError_ChannelConfigUpdateFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return channelConfigUpdateFailed(); } @@ -7748,6 +8071,10 @@ class _$LdkNodeError_ChannelConfigUpdateFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return channelConfigUpdateFailed?.call(); } @@ -7804,6 +8131,10 @@ class _$LdkNodeError_ChannelConfigUpdateFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (channelConfigUpdateFailed != null) { @@ -7815,89 +8146,96 @@ class _$LdkNodeError_ChannelConfigUpdateFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return channelConfigUpdateFailed(this); } @@ -7905,81 +8243,86 @@ class _$LdkNodeError_ChannelConfigUpdateFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return channelConfigUpdateFailed?.call(this); } @@ -7987,78 +8330,83 @@ class _$LdkNodeError_ChannelConfigUpdateFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (channelConfigUpdateFailed != null) { @@ -8068,47 +8416,47 @@ class _$LdkNodeError_ChannelConfigUpdateFailedImpl } } -abstract class LdkNodeError_ChannelConfigUpdateFailed extends LdkNodeError { - const factory LdkNodeError_ChannelConfigUpdateFailed() = - _$LdkNodeError_ChannelConfigUpdateFailedImpl; - const LdkNodeError_ChannelConfigUpdateFailed._() : super._(); +abstract class FfiNodeError_ChannelConfigUpdateFailed extends FfiNodeError { + const factory FfiNodeError_ChannelConfigUpdateFailed() = + _$FfiNodeError_ChannelConfigUpdateFailedImpl; + const FfiNodeError_ChannelConfigUpdateFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_PersistenceFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_PersistenceFailedImplCopyWith( - _$LdkNodeError_PersistenceFailedImpl value, - $Res Function(_$LdkNodeError_PersistenceFailedImpl) then) = - __$$LdkNodeError_PersistenceFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_PersistenceFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_PersistenceFailedImplCopyWith( + _$FfiNodeError_PersistenceFailedImpl value, + $Res Function(_$FfiNodeError_PersistenceFailedImpl) then) = + __$$FfiNodeError_PersistenceFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_PersistenceFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_PersistenceFailedImpl> - implements _$$LdkNodeError_PersistenceFailedImplCopyWith<$Res> { - __$$LdkNodeError_PersistenceFailedImplCopyWithImpl( - _$LdkNodeError_PersistenceFailedImpl _value, - $Res Function(_$LdkNodeError_PersistenceFailedImpl) _then) +class __$$FfiNodeError_PersistenceFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_PersistenceFailedImpl> + implements _$$FfiNodeError_PersistenceFailedImplCopyWith<$Res> { + __$$FfiNodeError_PersistenceFailedImplCopyWithImpl( + _$FfiNodeError_PersistenceFailedImpl _value, + $Res Function(_$FfiNodeError_PersistenceFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_PersistenceFailedImpl - extends LdkNodeError_PersistenceFailed { - const _$LdkNodeError_PersistenceFailedImpl() : super._(); +class _$FfiNodeError_PersistenceFailedImpl + extends FfiNodeError_PersistenceFailed { + const _$FfiNodeError_PersistenceFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.persistenceFailed()'; + return 'FfiNodeError.persistenceFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_PersistenceFailedImpl); + other is _$FfiNodeError_PersistenceFailedImpl); } @override @@ -8166,6 +8514,10 @@ class _$LdkNodeError_PersistenceFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return persistenceFailed(); } @@ -8222,6 +8574,10 @@ class _$LdkNodeError_PersistenceFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return persistenceFailed?.call(); } @@ -8278,6 +8634,10 @@ class _$LdkNodeError_PersistenceFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (persistenceFailed != null) { @@ -8289,89 +8649,96 @@ class _$LdkNodeError_PersistenceFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return persistenceFailed(this); } @@ -8379,81 +8746,86 @@ class _$LdkNodeError_PersistenceFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return persistenceFailed?.call(this); } @@ -8461,78 +8833,83 @@ class _$LdkNodeError_PersistenceFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (persistenceFailed != null) { @@ -8542,47 +8919,47 @@ class _$LdkNodeError_PersistenceFailedImpl } } -abstract class LdkNodeError_PersistenceFailed extends LdkNodeError { - const factory LdkNodeError_PersistenceFailed() = - _$LdkNodeError_PersistenceFailedImpl; - const LdkNodeError_PersistenceFailed._() : super._(); +abstract class FfiNodeError_PersistenceFailed extends FfiNodeError { + const factory FfiNodeError_PersistenceFailed() = + _$FfiNodeError_PersistenceFailedImpl; + const FfiNodeError_PersistenceFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_WalletOperationFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_WalletOperationFailedImplCopyWith( - _$LdkNodeError_WalletOperationFailedImpl value, - $Res Function(_$LdkNodeError_WalletOperationFailedImpl) then) = - __$$LdkNodeError_WalletOperationFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_WalletOperationFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_WalletOperationFailedImplCopyWith( + _$FfiNodeError_WalletOperationFailedImpl value, + $Res Function(_$FfiNodeError_WalletOperationFailedImpl) then) = + __$$FfiNodeError_WalletOperationFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_WalletOperationFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_WalletOperationFailedImpl> - implements _$$LdkNodeError_WalletOperationFailedImplCopyWith<$Res> { - __$$LdkNodeError_WalletOperationFailedImplCopyWithImpl( - _$LdkNodeError_WalletOperationFailedImpl _value, - $Res Function(_$LdkNodeError_WalletOperationFailedImpl) _then) +class __$$FfiNodeError_WalletOperationFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_WalletOperationFailedImpl> + implements _$$FfiNodeError_WalletOperationFailedImplCopyWith<$Res> { + __$$FfiNodeError_WalletOperationFailedImplCopyWithImpl( + _$FfiNodeError_WalletOperationFailedImpl _value, + $Res Function(_$FfiNodeError_WalletOperationFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_WalletOperationFailedImpl - extends LdkNodeError_WalletOperationFailed { - const _$LdkNodeError_WalletOperationFailedImpl() : super._(); +class _$FfiNodeError_WalletOperationFailedImpl + extends FfiNodeError_WalletOperationFailed { + const _$FfiNodeError_WalletOperationFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.walletOperationFailed()'; + return 'FfiNodeError.walletOperationFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_WalletOperationFailedImpl); + other is _$FfiNodeError_WalletOperationFailedImpl); } @override @@ -8640,6 +9017,10 @@ class _$LdkNodeError_WalletOperationFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return walletOperationFailed(); } @@ -8696,6 +9077,10 @@ class _$LdkNodeError_WalletOperationFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return walletOperationFailed?.call(); } @@ -8752,6 +9137,10 @@ class _$LdkNodeError_WalletOperationFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (walletOperationFailed != null) { @@ -8763,89 +9152,96 @@ class _$LdkNodeError_WalletOperationFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return walletOperationFailed(this); } @@ -8853,81 +9249,86 @@ class _$LdkNodeError_WalletOperationFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return walletOperationFailed?.call(this); } @@ -8935,78 +9336,83 @@ class _$LdkNodeError_WalletOperationFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (walletOperationFailed != null) { @@ -9016,47 +9422,47 @@ class _$LdkNodeError_WalletOperationFailedImpl } } -abstract class LdkNodeError_WalletOperationFailed extends LdkNodeError { - const factory LdkNodeError_WalletOperationFailed() = - _$LdkNodeError_WalletOperationFailedImpl; - const LdkNodeError_WalletOperationFailed._() : super._(); +abstract class FfiNodeError_WalletOperationFailed extends FfiNodeError { + const factory FfiNodeError_WalletOperationFailed() = + _$FfiNodeError_WalletOperationFailedImpl; + const FfiNodeError_WalletOperationFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_OnchainTxSigningFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_OnchainTxSigningFailedImplCopyWith( - _$LdkNodeError_OnchainTxSigningFailedImpl value, - $Res Function(_$LdkNodeError_OnchainTxSigningFailedImpl) then) = - __$$LdkNodeError_OnchainTxSigningFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_OnchainTxSigningFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_OnchainTxSigningFailedImplCopyWith( + _$FfiNodeError_OnchainTxSigningFailedImpl value, + $Res Function(_$FfiNodeError_OnchainTxSigningFailedImpl) then) = + __$$FfiNodeError_OnchainTxSigningFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_OnchainTxSigningFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_OnchainTxSigningFailedImpl> - implements _$$LdkNodeError_OnchainTxSigningFailedImplCopyWith<$Res> { - __$$LdkNodeError_OnchainTxSigningFailedImplCopyWithImpl( - _$LdkNodeError_OnchainTxSigningFailedImpl _value, - $Res Function(_$LdkNodeError_OnchainTxSigningFailedImpl) _then) +class __$$FfiNodeError_OnchainTxSigningFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_OnchainTxSigningFailedImpl> + implements _$$FfiNodeError_OnchainTxSigningFailedImplCopyWith<$Res> { + __$$FfiNodeError_OnchainTxSigningFailedImplCopyWithImpl( + _$FfiNodeError_OnchainTxSigningFailedImpl _value, + $Res Function(_$FfiNodeError_OnchainTxSigningFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_OnchainTxSigningFailedImpl - extends LdkNodeError_OnchainTxSigningFailed { - const _$LdkNodeError_OnchainTxSigningFailedImpl() : super._(); +class _$FfiNodeError_OnchainTxSigningFailedImpl + extends FfiNodeError_OnchainTxSigningFailed { + const _$FfiNodeError_OnchainTxSigningFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.onchainTxSigningFailed()'; + return 'FfiNodeError.onchainTxSigningFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_OnchainTxSigningFailedImpl); + other is _$FfiNodeError_OnchainTxSigningFailedImpl); } @override @@ -9114,6 +9520,10 @@ class _$LdkNodeError_OnchainTxSigningFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return onchainTxSigningFailed(); } @@ -9170,6 +9580,10 @@ class _$LdkNodeError_OnchainTxSigningFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return onchainTxSigningFailed?.call(); } @@ -9226,6 +9640,10 @@ class _$LdkNodeError_OnchainTxSigningFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (onchainTxSigningFailed != null) { @@ -9237,89 +9655,96 @@ class _$LdkNodeError_OnchainTxSigningFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return onchainTxSigningFailed(this); } @@ -9327,81 +9752,86 @@ class _$LdkNodeError_OnchainTxSigningFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return onchainTxSigningFailed?.call(this); } @@ -9409,78 +9839,83 @@ class _$LdkNodeError_OnchainTxSigningFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (onchainTxSigningFailed != null) { @@ -9490,47 +9925,47 @@ class _$LdkNodeError_OnchainTxSigningFailedImpl } } -abstract class LdkNodeError_OnchainTxSigningFailed extends LdkNodeError { - const factory LdkNodeError_OnchainTxSigningFailed() = - _$LdkNodeError_OnchainTxSigningFailedImpl; - const LdkNodeError_OnchainTxSigningFailed._() : super._(); +abstract class FfiNodeError_OnchainTxSigningFailed extends FfiNodeError { + const factory FfiNodeError_OnchainTxSigningFailed() = + _$FfiNodeError_OnchainTxSigningFailedImpl; + const FfiNodeError_OnchainTxSigningFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_MessageSigningFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_MessageSigningFailedImplCopyWith( - _$LdkNodeError_MessageSigningFailedImpl value, - $Res Function(_$LdkNodeError_MessageSigningFailedImpl) then) = - __$$LdkNodeError_MessageSigningFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_MessageSigningFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_MessageSigningFailedImplCopyWith( + _$FfiNodeError_MessageSigningFailedImpl value, + $Res Function(_$FfiNodeError_MessageSigningFailedImpl) then) = + __$$FfiNodeError_MessageSigningFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_MessageSigningFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_MessageSigningFailedImpl> - implements _$$LdkNodeError_MessageSigningFailedImplCopyWith<$Res> { - __$$LdkNodeError_MessageSigningFailedImplCopyWithImpl( - _$LdkNodeError_MessageSigningFailedImpl _value, - $Res Function(_$LdkNodeError_MessageSigningFailedImpl) _then) +class __$$FfiNodeError_MessageSigningFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_MessageSigningFailedImpl> + implements _$$FfiNodeError_MessageSigningFailedImplCopyWith<$Res> { + __$$FfiNodeError_MessageSigningFailedImplCopyWithImpl( + _$FfiNodeError_MessageSigningFailedImpl _value, + $Res Function(_$FfiNodeError_MessageSigningFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_MessageSigningFailedImpl - extends LdkNodeError_MessageSigningFailed { - const _$LdkNodeError_MessageSigningFailedImpl() : super._(); +class _$FfiNodeError_MessageSigningFailedImpl + extends FfiNodeError_MessageSigningFailed { + const _$FfiNodeError_MessageSigningFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.messageSigningFailed()'; + return 'FfiNodeError.messageSigningFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_MessageSigningFailedImpl); + other is _$FfiNodeError_MessageSigningFailedImpl); } @override @@ -9588,6 +10023,10 @@ class _$LdkNodeError_MessageSigningFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return messageSigningFailed(); } @@ -9644,6 +10083,10 @@ class _$LdkNodeError_MessageSigningFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return messageSigningFailed?.call(); } @@ -9700,6 +10143,10 @@ class _$LdkNodeError_MessageSigningFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (messageSigningFailed != null) { @@ -9711,89 +10158,96 @@ class _$LdkNodeError_MessageSigningFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return messageSigningFailed(this); } @@ -9801,81 +10255,86 @@ class _$LdkNodeError_MessageSigningFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return messageSigningFailed?.call(this); } @@ -9883,78 +10342,83 @@ class _$LdkNodeError_MessageSigningFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (messageSigningFailed != null) { @@ -9964,45 +10428,45 @@ class _$LdkNodeError_MessageSigningFailedImpl } } -abstract class LdkNodeError_MessageSigningFailed extends LdkNodeError { - const factory LdkNodeError_MessageSigningFailed() = - _$LdkNodeError_MessageSigningFailedImpl; - const LdkNodeError_MessageSigningFailed._() : super._(); +abstract class FfiNodeError_MessageSigningFailed extends FfiNodeError { + const factory FfiNodeError_MessageSigningFailed() = + _$FfiNodeError_MessageSigningFailedImpl; + const FfiNodeError_MessageSigningFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_TxSyncFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_TxSyncFailedImplCopyWith( - _$LdkNodeError_TxSyncFailedImpl value, - $Res Function(_$LdkNodeError_TxSyncFailedImpl) then) = - __$$LdkNodeError_TxSyncFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_TxSyncFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_TxSyncFailedImplCopyWith( + _$FfiNodeError_TxSyncFailedImpl value, + $Res Function(_$FfiNodeError_TxSyncFailedImpl) then) = + __$$FfiNodeError_TxSyncFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_TxSyncFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_TxSyncFailedImpl> - implements _$$LdkNodeError_TxSyncFailedImplCopyWith<$Res> { - __$$LdkNodeError_TxSyncFailedImplCopyWithImpl( - _$LdkNodeError_TxSyncFailedImpl _value, - $Res Function(_$LdkNodeError_TxSyncFailedImpl) _then) +class __$$FfiNodeError_TxSyncFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_TxSyncFailedImpl> + implements _$$FfiNodeError_TxSyncFailedImplCopyWith<$Res> { + __$$FfiNodeError_TxSyncFailedImplCopyWithImpl( + _$FfiNodeError_TxSyncFailedImpl _value, + $Res Function(_$FfiNodeError_TxSyncFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_TxSyncFailedImpl extends LdkNodeError_TxSyncFailed { - const _$LdkNodeError_TxSyncFailedImpl() : super._(); +class _$FfiNodeError_TxSyncFailedImpl extends FfiNodeError_TxSyncFailed { + const _$FfiNodeError_TxSyncFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.txSyncFailed()'; + return 'FfiNodeError.txSyncFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_TxSyncFailedImpl); + other is _$FfiNodeError_TxSyncFailedImpl); } @override @@ -10060,6 +10524,10 @@ class _$LdkNodeError_TxSyncFailedImpl extends LdkNodeError_TxSyncFailed { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return txSyncFailed(); } @@ -10116,6 +10584,10 @@ class _$LdkNodeError_TxSyncFailedImpl extends LdkNodeError_TxSyncFailed { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return txSyncFailed?.call(); } @@ -10172,6 +10644,10 @@ class _$LdkNodeError_TxSyncFailedImpl extends LdkNodeError_TxSyncFailed { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (txSyncFailed != null) { @@ -10183,89 +10659,96 @@ class _$LdkNodeError_TxSyncFailedImpl extends LdkNodeError_TxSyncFailed { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return txSyncFailed(this); } @@ -10273,81 +10756,86 @@ class _$LdkNodeError_TxSyncFailedImpl extends LdkNodeError_TxSyncFailed { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return txSyncFailed?.call(this); } @@ -10355,78 +10843,83 @@ class _$LdkNodeError_TxSyncFailedImpl extends LdkNodeError_TxSyncFailed { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (txSyncFailed != null) { @@ -10436,46 +10929,46 @@ class _$LdkNodeError_TxSyncFailedImpl extends LdkNodeError_TxSyncFailed { } } -abstract class LdkNodeError_TxSyncFailed extends LdkNodeError { - const factory LdkNodeError_TxSyncFailed() = _$LdkNodeError_TxSyncFailedImpl; - const LdkNodeError_TxSyncFailed._() : super._(); +abstract class FfiNodeError_TxSyncFailed extends FfiNodeError { + const factory FfiNodeError_TxSyncFailed() = _$FfiNodeError_TxSyncFailedImpl; + const FfiNodeError_TxSyncFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_GossipUpdateFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_GossipUpdateFailedImplCopyWith( - _$LdkNodeError_GossipUpdateFailedImpl value, - $Res Function(_$LdkNodeError_GossipUpdateFailedImpl) then) = - __$$LdkNodeError_GossipUpdateFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_GossipUpdateFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_GossipUpdateFailedImplCopyWith( + _$FfiNodeError_GossipUpdateFailedImpl value, + $Res Function(_$FfiNodeError_GossipUpdateFailedImpl) then) = + __$$FfiNodeError_GossipUpdateFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_GossipUpdateFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_GossipUpdateFailedImpl> - implements _$$LdkNodeError_GossipUpdateFailedImplCopyWith<$Res> { - __$$LdkNodeError_GossipUpdateFailedImplCopyWithImpl( - _$LdkNodeError_GossipUpdateFailedImpl _value, - $Res Function(_$LdkNodeError_GossipUpdateFailedImpl) _then) +class __$$FfiNodeError_GossipUpdateFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_GossipUpdateFailedImpl> + implements _$$FfiNodeError_GossipUpdateFailedImplCopyWith<$Res> { + __$$FfiNodeError_GossipUpdateFailedImplCopyWithImpl( + _$FfiNodeError_GossipUpdateFailedImpl _value, + $Res Function(_$FfiNodeError_GossipUpdateFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_GossipUpdateFailedImpl - extends LdkNodeError_GossipUpdateFailed { - const _$LdkNodeError_GossipUpdateFailedImpl() : super._(); +class _$FfiNodeError_GossipUpdateFailedImpl + extends FfiNodeError_GossipUpdateFailed { + const _$FfiNodeError_GossipUpdateFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.gossipUpdateFailed()'; + return 'FfiNodeError.gossipUpdateFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_GossipUpdateFailedImpl); + other is _$FfiNodeError_GossipUpdateFailedImpl); } @override @@ -10533,6 +11026,10 @@ class _$LdkNodeError_GossipUpdateFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return gossipUpdateFailed(); } @@ -10589,6 +11086,10 @@ class _$LdkNodeError_GossipUpdateFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return gossipUpdateFailed?.call(); } @@ -10645,6 +11146,10 @@ class _$LdkNodeError_GossipUpdateFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (gossipUpdateFailed != null) { @@ -10656,89 +11161,96 @@ class _$LdkNodeError_GossipUpdateFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return gossipUpdateFailed(this); } @@ -10746,81 +11258,86 @@ class _$LdkNodeError_GossipUpdateFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return gossipUpdateFailed?.call(this); } @@ -10828,78 +11345,83 @@ class _$LdkNodeError_GossipUpdateFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (gossipUpdateFailed != null) { @@ -10909,45 +11431,45 @@ class _$LdkNodeError_GossipUpdateFailedImpl } } -abstract class LdkNodeError_GossipUpdateFailed extends LdkNodeError { - const factory LdkNodeError_GossipUpdateFailed() = - _$LdkNodeError_GossipUpdateFailedImpl; - const LdkNodeError_GossipUpdateFailed._() : super._(); +abstract class FfiNodeError_GossipUpdateFailed extends FfiNodeError { + const factory FfiNodeError_GossipUpdateFailed() = + _$FfiNodeError_GossipUpdateFailedImpl; + const FfiNodeError_GossipUpdateFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidAddressImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidAddressImplCopyWith( - _$LdkNodeError_InvalidAddressImpl value, - $Res Function(_$LdkNodeError_InvalidAddressImpl) then) = - __$$LdkNodeError_InvalidAddressImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidAddressImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidAddressImplCopyWith( + _$FfiNodeError_InvalidAddressImpl value, + $Res Function(_$FfiNodeError_InvalidAddressImpl) then) = + __$$FfiNodeError_InvalidAddressImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidAddressImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_InvalidAddressImpl> - implements _$$LdkNodeError_InvalidAddressImplCopyWith<$Res> { - __$$LdkNodeError_InvalidAddressImplCopyWithImpl( - _$LdkNodeError_InvalidAddressImpl _value, - $Res Function(_$LdkNodeError_InvalidAddressImpl) _then) +class __$$FfiNodeError_InvalidAddressImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidAddressImpl> + implements _$$FfiNodeError_InvalidAddressImplCopyWith<$Res> { + __$$FfiNodeError_InvalidAddressImplCopyWithImpl( + _$FfiNodeError_InvalidAddressImpl _value, + $Res Function(_$FfiNodeError_InvalidAddressImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidAddressImpl extends LdkNodeError_InvalidAddress { - const _$LdkNodeError_InvalidAddressImpl() : super._(); +class _$FfiNodeError_InvalidAddressImpl extends FfiNodeError_InvalidAddress { + const _$FfiNodeError_InvalidAddressImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidAddress()'; + return 'FfiNodeError.invalidAddress()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidAddressImpl); + other is _$FfiNodeError_InvalidAddressImpl); } @override @@ -11005,6 +11527,10 @@ class _$LdkNodeError_InvalidAddressImpl extends LdkNodeError_InvalidAddress { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidAddress(); } @@ -11061,6 +11587,10 @@ class _$LdkNodeError_InvalidAddressImpl extends LdkNodeError_InvalidAddress { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidAddress?.call(); } @@ -11117,6 +11647,10 @@ class _$LdkNodeError_InvalidAddressImpl extends LdkNodeError_InvalidAddress { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidAddress != null) { @@ -11128,89 +11662,96 @@ class _$LdkNodeError_InvalidAddressImpl extends LdkNodeError_InvalidAddress { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidAddress(this); } @@ -11218,81 +11759,86 @@ class _$LdkNodeError_InvalidAddressImpl extends LdkNodeError_InvalidAddress { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidAddress?.call(this); } @@ -11300,78 +11846,83 @@ class _$LdkNodeError_InvalidAddressImpl extends LdkNodeError_InvalidAddress { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidAddress != null) { @@ -11381,47 +11932,47 @@ class _$LdkNodeError_InvalidAddressImpl extends LdkNodeError_InvalidAddress { } } -abstract class LdkNodeError_InvalidAddress extends LdkNodeError { - const factory LdkNodeError_InvalidAddress() = - _$LdkNodeError_InvalidAddressImpl; - const LdkNodeError_InvalidAddress._() : super._(); +abstract class FfiNodeError_InvalidAddress extends FfiNodeError { + const factory FfiNodeError_InvalidAddress() = + _$FfiNodeError_InvalidAddressImpl; + const FfiNodeError_InvalidAddress._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidSocketAddressImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidSocketAddressImplCopyWith( - _$LdkNodeError_InvalidSocketAddressImpl value, - $Res Function(_$LdkNodeError_InvalidSocketAddressImpl) then) = - __$$LdkNodeError_InvalidSocketAddressImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidSocketAddressImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidSocketAddressImplCopyWith( + _$FfiNodeError_InvalidSocketAddressImpl value, + $Res Function(_$FfiNodeError_InvalidSocketAddressImpl) then) = + __$$FfiNodeError_InvalidSocketAddressImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidSocketAddressImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InvalidSocketAddressImpl> - implements _$$LdkNodeError_InvalidSocketAddressImplCopyWith<$Res> { - __$$LdkNodeError_InvalidSocketAddressImplCopyWithImpl( - _$LdkNodeError_InvalidSocketAddressImpl _value, - $Res Function(_$LdkNodeError_InvalidSocketAddressImpl) _then) +class __$$FfiNodeError_InvalidSocketAddressImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvalidSocketAddressImpl> + implements _$$FfiNodeError_InvalidSocketAddressImplCopyWith<$Res> { + __$$FfiNodeError_InvalidSocketAddressImplCopyWithImpl( + _$FfiNodeError_InvalidSocketAddressImpl _value, + $Res Function(_$FfiNodeError_InvalidSocketAddressImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidSocketAddressImpl - extends LdkNodeError_InvalidSocketAddress { - const _$LdkNodeError_InvalidSocketAddressImpl() : super._(); +class _$FfiNodeError_InvalidSocketAddressImpl + extends FfiNodeError_InvalidSocketAddress { + const _$FfiNodeError_InvalidSocketAddressImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidSocketAddress()'; + return 'FfiNodeError.invalidSocketAddress()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidSocketAddressImpl); + other is _$FfiNodeError_InvalidSocketAddressImpl); } @override @@ -11479,6 +12030,10 @@ class _$LdkNodeError_InvalidSocketAddressImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidSocketAddress(); } @@ -11535,6 +12090,10 @@ class _$LdkNodeError_InvalidSocketAddressImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidSocketAddress?.call(); } @@ -11591,6 +12150,10 @@ class _$LdkNodeError_InvalidSocketAddressImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidSocketAddress != null) { @@ -11602,89 +12165,96 @@ class _$LdkNodeError_InvalidSocketAddressImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidSocketAddress(this); } @@ -11692,81 +12262,86 @@ class _$LdkNodeError_InvalidSocketAddressImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidSocketAddress?.call(this); } @@ -11774,78 +12349,83 @@ class _$LdkNodeError_InvalidSocketAddressImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidSocketAddress != null) { @@ -11855,47 +12435,47 @@ class _$LdkNodeError_InvalidSocketAddressImpl } } -abstract class LdkNodeError_InvalidSocketAddress extends LdkNodeError { - const factory LdkNodeError_InvalidSocketAddress() = - _$LdkNodeError_InvalidSocketAddressImpl; - const LdkNodeError_InvalidSocketAddress._() : super._(); +abstract class FfiNodeError_InvalidSocketAddress extends FfiNodeError { + const factory FfiNodeError_InvalidSocketAddress() = + _$FfiNodeError_InvalidSocketAddressImpl; + const FfiNodeError_InvalidSocketAddress._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidPublicKeyImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidPublicKeyImplCopyWith( - _$LdkNodeError_InvalidPublicKeyImpl value, - $Res Function(_$LdkNodeError_InvalidPublicKeyImpl) then) = - __$$LdkNodeError_InvalidPublicKeyImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidPublicKeyImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidPublicKeyImplCopyWith( + _$FfiNodeError_InvalidPublicKeyImpl value, + $Res Function(_$FfiNodeError_InvalidPublicKeyImpl) then) = + __$$FfiNodeError_InvalidPublicKeyImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidPublicKeyImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InvalidPublicKeyImpl> - implements _$$LdkNodeError_InvalidPublicKeyImplCopyWith<$Res> { - __$$LdkNodeError_InvalidPublicKeyImplCopyWithImpl( - _$LdkNodeError_InvalidPublicKeyImpl _value, - $Res Function(_$LdkNodeError_InvalidPublicKeyImpl) _then) +class __$$FfiNodeError_InvalidPublicKeyImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvalidPublicKeyImpl> + implements _$$FfiNodeError_InvalidPublicKeyImplCopyWith<$Res> { + __$$FfiNodeError_InvalidPublicKeyImplCopyWithImpl( + _$FfiNodeError_InvalidPublicKeyImpl _value, + $Res Function(_$FfiNodeError_InvalidPublicKeyImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidPublicKeyImpl - extends LdkNodeError_InvalidPublicKey { - const _$LdkNodeError_InvalidPublicKeyImpl() : super._(); +class _$FfiNodeError_InvalidPublicKeyImpl + extends FfiNodeError_InvalidPublicKey { + const _$FfiNodeError_InvalidPublicKeyImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidPublicKey()'; + return 'FfiNodeError.invalidPublicKey()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidPublicKeyImpl); + other is _$FfiNodeError_InvalidPublicKeyImpl); } @override @@ -11953,6 +12533,10 @@ class _$LdkNodeError_InvalidPublicKeyImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidPublicKey(); } @@ -12009,6 +12593,10 @@ class _$LdkNodeError_InvalidPublicKeyImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidPublicKey?.call(); } @@ -12065,6 +12653,10 @@ class _$LdkNodeError_InvalidPublicKeyImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidPublicKey != null) { @@ -12076,89 +12668,96 @@ class _$LdkNodeError_InvalidPublicKeyImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidPublicKey(this); } @@ -12166,81 +12765,86 @@ class _$LdkNodeError_InvalidPublicKeyImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidPublicKey?.call(this); } @@ -12248,78 +12852,83 @@ class _$LdkNodeError_InvalidPublicKeyImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidPublicKey != null) { @@ -12329,47 +12938,47 @@ class _$LdkNodeError_InvalidPublicKeyImpl } } -abstract class LdkNodeError_InvalidPublicKey extends LdkNodeError { - const factory LdkNodeError_InvalidPublicKey() = - _$LdkNodeError_InvalidPublicKeyImpl; - const LdkNodeError_InvalidPublicKey._() : super._(); +abstract class FfiNodeError_InvalidPublicKey extends FfiNodeError { + const factory FfiNodeError_InvalidPublicKey() = + _$FfiNodeError_InvalidPublicKeyImpl; + const FfiNodeError_InvalidPublicKey._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidSecretKeyImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidSecretKeyImplCopyWith( - _$LdkNodeError_InvalidSecretKeyImpl value, - $Res Function(_$LdkNodeError_InvalidSecretKeyImpl) then) = - __$$LdkNodeError_InvalidSecretKeyImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidSecretKeyImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidSecretKeyImplCopyWith( + _$FfiNodeError_InvalidSecretKeyImpl value, + $Res Function(_$FfiNodeError_InvalidSecretKeyImpl) then) = + __$$FfiNodeError_InvalidSecretKeyImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidSecretKeyImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InvalidSecretKeyImpl> - implements _$$LdkNodeError_InvalidSecretKeyImplCopyWith<$Res> { - __$$LdkNodeError_InvalidSecretKeyImplCopyWithImpl( - _$LdkNodeError_InvalidSecretKeyImpl _value, - $Res Function(_$LdkNodeError_InvalidSecretKeyImpl) _then) +class __$$FfiNodeError_InvalidSecretKeyImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvalidSecretKeyImpl> + implements _$$FfiNodeError_InvalidSecretKeyImplCopyWith<$Res> { + __$$FfiNodeError_InvalidSecretKeyImplCopyWithImpl( + _$FfiNodeError_InvalidSecretKeyImpl _value, + $Res Function(_$FfiNodeError_InvalidSecretKeyImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidSecretKeyImpl - extends LdkNodeError_InvalidSecretKey { - const _$LdkNodeError_InvalidSecretKeyImpl() : super._(); +class _$FfiNodeError_InvalidSecretKeyImpl + extends FfiNodeError_InvalidSecretKey { + const _$FfiNodeError_InvalidSecretKeyImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidSecretKey()'; + return 'FfiNodeError.invalidSecretKey()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidSecretKeyImpl); + other is _$FfiNodeError_InvalidSecretKeyImpl); } @override @@ -12427,6 +13036,10 @@ class _$LdkNodeError_InvalidSecretKeyImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidSecretKey(); } @@ -12483,6 +13096,10 @@ class _$LdkNodeError_InvalidSecretKeyImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidSecretKey?.call(); } @@ -12539,6 +13156,10 @@ class _$LdkNodeError_InvalidSecretKeyImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidSecretKey != null) { @@ -12550,89 +13171,96 @@ class _$LdkNodeError_InvalidSecretKeyImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidSecretKey(this); } @@ -12640,81 +13268,86 @@ class _$LdkNodeError_InvalidSecretKeyImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidSecretKey?.call(this); } @@ -12722,78 +13355,83 @@ class _$LdkNodeError_InvalidSecretKeyImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidSecretKey != null) { @@ -12803,47 +13441,47 @@ class _$LdkNodeError_InvalidSecretKeyImpl } } -abstract class LdkNodeError_InvalidSecretKey extends LdkNodeError { - const factory LdkNodeError_InvalidSecretKey() = - _$LdkNodeError_InvalidSecretKeyImpl; - const LdkNodeError_InvalidSecretKey._() : super._(); +abstract class FfiNodeError_InvalidSecretKey extends FfiNodeError { + const factory FfiNodeError_InvalidSecretKey() = + _$FfiNodeError_InvalidSecretKeyImpl; + const FfiNodeError_InvalidSecretKey._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidPaymentHashImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidPaymentHashImplCopyWith( - _$LdkNodeError_InvalidPaymentHashImpl value, - $Res Function(_$LdkNodeError_InvalidPaymentHashImpl) then) = - __$$LdkNodeError_InvalidPaymentHashImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidPaymentHashImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidPaymentHashImplCopyWith( + _$FfiNodeError_InvalidPaymentHashImpl value, + $Res Function(_$FfiNodeError_InvalidPaymentHashImpl) then) = + __$$FfiNodeError_InvalidPaymentHashImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidPaymentHashImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InvalidPaymentHashImpl> - implements _$$LdkNodeError_InvalidPaymentHashImplCopyWith<$Res> { - __$$LdkNodeError_InvalidPaymentHashImplCopyWithImpl( - _$LdkNodeError_InvalidPaymentHashImpl _value, - $Res Function(_$LdkNodeError_InvalidPaymentHashImpl) _then) +class __$$FfiNodeError_InvalidPaymentHashImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvalidPaymentHashImpl> + implements _$$FfiNodeError_InvalidPaymentHashImplCopyWith<$Res> { + __$$FfiNodeError_InvalidPaymentHashImplCopyWithImpl( + _$FfiNodeError_InvalidPaymentHashImpl _value, + $Res Function(_$FfiNodeError_InvalidPaymentHashImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidPaymentHashImpl - extends LdkNodeError_InvalidPaymentHash { - const _$LdkNodeError_InvalidPaymentHashImpl() : super._(); +class _$FfiNodeError_InvalidPaymentHashImpl + extends FfiNodeError_InvalidPaymentHash { + const _$FfiNodeError_InvalidPaymentHashImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidPaymentHash()'; + return 'FfiNodeError.invalidPaymentHash()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidPaymentHashImpl); + other is _$FfiNodeError_InvalidPaymentHashImpl); } @override @@ -12901,6 +13539,10 @@ class _$LdkNodeError_InvalidPaymentHashImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidPaymentHash(); } @@ -12957,6 +13599,10 @@ class _$LdkNodeError_InvalidPaymentHashImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidPaymentHash?.call(); } @@ -13013,6 +13659,10 @@ class _$LdkNodeError_InvalidPaymentHashImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidPaymentHash != null) { @@ -13024,89 +13674,96 @@ class _$LdkNodeError_InvalidPaymentHashImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidPaymentHash(this); } @@ -13114,81 +13771,86 @@ class _$LdkNodeError_InvalidPaymentHashImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidPaymentHash?.call(this); } @@ -13196,78 +13858,83 @@ class _$LdkNodeError_InvalidPaymentHashImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidPaymentHash != null) { @@ -13277,47 +13944,47 @@ class _$LdkNodeError_InvalidPaymentHashImpl } } -abstract class LdkNodeError_InvalidPaymentHash extends LdkNodeError { - const factory LdkNodeError_InvalidPaymentHash() = - _$LdkNodeError_InvalidPaymentHashImpl; - const LdkNodeError_InvalidPaymentHash._() : super._(); +abstract class FfiNodeError_InvalidPaymentHash extends FfiNodeError { + const factory FfiNodeError_InvalidPaymentHash() = + _$FfiNodeError_InvalidPaymentHashImpl; + const FfiNodeError_InvalidPaymentHash._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidPaymentPreimageImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidPaymentPreimageImplCopyWith( - _$LdkNodeError_InvalidPaymentPreimageImpl value, - $Res Function(_$LdkNodeError_InvalidPaymentPreimageImpl) then) = - __$$LdkNodeError_InvalidPaymentPreimageImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidPaymentPreimageImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidPaymentPreimageImplCopyWith( + _$FfiNodeError_InvalidPaymentPreimageImpl value, + $Res Function(_$FfiNodeError_InvalidPaymentPreimageImpl) then) = + __$$FfiNodeError_InvalidPaymentPreimageImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidPaymentPreimageImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InvalidPaymentPreimageImpl> - implements _$$LdkNodeError_InvalidPaymentPreimageImplCopyWith<$Res> { - __$$LdkNodeError_InvalidPaymentPreimageImplCopyWithImpl( - _$LdkNodeError_InvalidPaymentPreimageImpl _value, - $Res Function(_$LdkNodeError_InvalidPaymentPreimageImpl) _then) +class __$$FfiNodeError_InvalidPaymentPreimageImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvalidPaymentPreimageImpl> + implements _$$FfiNodeError_InvalidPaymentPreimageImplCopyWith<$Res> { + __$$FfiNodeError_InvalidPaymentPreimageImplCopyWithImpl( + _$FfiNodeError_InvalidPaymentPreimageImpl _value, + $Res Function(_$FfiNodeError_InvalidPaymentPreimageImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidPaymentPreimageImpl - extends LdkNodeError_InvalidPaymentPreimage { - const _$LdkNodeError_InvalidPaymentPreimageImpl() : super._(); +class _$FfiNodeError_InvalidPaymentPreimageImpl + extends FfiNodeError_InvalidPaymentPreimage { + const _$FfiNodeError_InvalidPaymentPreimageImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidPaymentPreimage()'; + return 'FfiNodeError.invalidPaymentPreimage()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidPaymentPreimageImpl); + other is _$FfiNodeError_InvalidPaymentPreimageImpl); } @override @@ -13375,6 +14042,10 @@ class _$LdkNodeError_InvalidPaymentPreimageImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidPaymentPreimage(); } @@ -13431,6 +14102,10 @@ class _$LdkNodeError_InvalidPaymentPreimageImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidPaymentPreimage?.call(); } @@ -13487,6 +14162,10 @@ class _$LdkNodeError_InvalidPaymentPreimageImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidPaymentPreimage != null) { @@ -13498,89 +14177,96 @@ class _$LdkNodeError_InvalidPaymentPreimageImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidPaymentPreimage(this); } @@ -13588,81 +14274,86 @@ class _$LdkNodeError_InvalidPaymentPreimageImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidPaymentPreimage?.call(this); } @@ -13670,78 +14361,83 @@ class _$LdkNodeError_InvalidPaymentPreimageImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidPaymentPreimage != null) { @@ -13751,47 +14447,47 @@ class _$LdkNodeError_InvalidPaymentPreimageImpl } } -abstract class LdkNodeError_InvalidPaymentPreimage extends LdkNodeError { - const factory LdkNodeError_InvalidPaymentPreimage() = - _$LdkNodeError_InvalidPaymentPreimageImpl; - const LdkNodeError_InvalidPaymentPreimage._() : super._(); +abstract class FfiNodeError_InvalidPaymentPreimage extends FfiNodeError { + const factory FfiNodeError_InvalidPaymentPreimage() = + _$FfiNodeError_InvalidPaymentPreimageImpl; + const FfiNodeError_InvalidPaymentPreimage._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidPaymentSecretImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidPaymentSecretImplCopyWith( - _$LdkNodeError_InvalidPaymentSecretImpl value, - $Res Function(_$LdkNodeError_InvalidPaymentSecretImpl) then) = - __$$LdkNodeError_InvalidPaymentSecretImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidPaymentSecretImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidPaymentSecretImplCopyWith( + _$FfiNodeError_InvalidPaymentSecretImpl value, + $Res Function(_$FfiNodeError_InvalidPaymentSecretImpl) then) = + __$$FfiNodeError_InvalidPaymentSecretImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidPaymentSecretImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InvalidPaymentSecretImpl> - implements _$$LdkNodeError_InvalidPaymentSecretImplCopyWith<$Res> { - __$$LdkNodeError_InvalidPaymentSecretImplCopyWithImpl( - _$LdkNodeError_InvalidPaymentSecretImpl _value, - $Res Function(_$LdkNodeError_InvalidPaymentSecretImpl) _then) +class __$$FfiNodeError_InvalidPaymentSecretImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvalidPaymentSecretImpl> + implements _$$FfiNodeError_InvalidPaymentSecretImplCopyWith<$Res> { + __$$FfiNodeError_InvalidPaymentSecretImplCopyWithImpl( + _$FfiNodeError_InvalidPaymentSecretImpl _value, + $Res Function(_$FfiNodeError_InvalidPaymentSecretImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidPaymentSecretImpl - extends LdkNodeError_InvalidPaymentSecret { - const _$LdkNodeError_InvalidPaymentSecretImpl() : super._(); +class _$FfiNodeError_InvalidPaymentSecretImpl + extends FfiNodeError_InvalidPaymentSecret { + const _$FfiNodeError_InvalidPaymentSecretImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidPaymentSecret()'; + return 'FfiNodeError.invalidPaymentSecret()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidPaymentSecretImpl); + other is _$FfiNodeError_InvalidPaymentSecretImpl); } @override @@ -13849,6 +14545,10 @@ class _$LdkNodeError_InvalidPaymentSecretImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidPaymentSecret(); } @@ -13905,6 +14605,10 @@ class _$LdkNodeError_InvalidPaymentSecretImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidPaymentSecret?.call(); } @@ -13961,6 +14665,10 @@ class _$LdkNodeError_InvalidPaymentSecretImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidPaymentSecret != null) { @@ -13972,89 +14680,96 @@ class _$LdkNodeError_InvalidPaymentSecretImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidPaymentSecret(this); } @@ -14062,81 +14777,86 @@ class _$LdkNodeError_InvalidPaymentSecretImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidPaymentSecret?.call(this); } @@ -14144,78 +14864,83 @@ class _$LdkNodeError_InvalidPaymentSecretImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidPaymentSecret != null) { @@ -14225,45 +14950,45 @@ class _$LdkNodeError_InvalidPaymentSecretImpl } } -abstract class LdkNodeError_InvalidPaymentSecret extends LdkNodeError { - const factory LdkNodeError_InvalidPaymentSecret() = - _$LdkNodeError_InvalidPaymentSecretImpl; - const LdkNodeError_InvalidPaymentSecret._() : super._(); +abstract class FfiNodeError_InvalidPaymentSecret extends FfiNodeError { + const factory FfiNodeError_InvalidPaymentSecret() = + _$FfiNodeError_InvalidPaymentSecretImpl; + const FfiNodeError_InvalidPaymentSecret._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidAmountImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidAmountImplCopyWith( - _$LdkNodeError_InvalidAmountImpl value, - $Res Function(_$LdkNodeError_InvalidAmountImpl) then) = - __$$LdkNodeError_InvalidAmountImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidAmountImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidAmountImplCopyWith( + _$FfiNodeError_InvalidAmountImpl value, + $Res Function(_$FfiNodeError_InvalidAmountImpl) then) = + __$$FfiNodeError_InvalidAmountImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidAmountImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_InvalidAmountImpl> - implements _$$LdkNodeError_InvalidAmountImplCopyWith<$Res> { - __$$LdkNodeError_InvalidAmountImplCopyWithImpl( - _$LdkNodeError_InvalidAmountImpl _value, - $Res Function(_$LdkNodeError_InvalidAmountImpl) _then) +class __$$FfiNodeError_InvalidAmountImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidAmountImpl> + implements _$$FfiNodeError_InvalidAmountImplCopyWith<$Res> { + __$$FfiNodeError_InvalidAmountImplCopyWithImpl( + _$FfiNodeError_InvalidAmountImpl _value, + $Res Function(_$FfiNodeError_InvalidAmountImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidAmountImpl extends LdkNodeError_InvalidAmount { - const _$LdkNodeError_InvalidAmountImpl() : super._(); +class _$FfiNodeError_InvalidAmountImpl extends FfiNodeError_InvalidAmount { + const _$FfiNodeError_InvalidAmountImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidAmount()'; + return 'FfiNodeError.invalidAmount()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidAmountImpl); + other is _$FfiNodeError_InvalidAmountImpl); } @override @@ -14321,6 +15046,10 @@ class _$LdkNodeError_InvalidAmountImpl extends LdkNodeError_InvalidAmount { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidAmount(); } @@ -14377,6 +15106,10 @@ class _$LdkNodeError_InvalidAmountImpl extends LdkNodeError_InvalidAmount { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidAmount?.call(); } @@ -14433,6 +15166,10 @@ class _$LdkNodeError_InvalidAmountImpl extends LdkNodeError_InvalidAmount { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidAmount != null) { @@ -14444,89 +15181,96 @@ class _$LdkNodeError_InvalidAmountImpl extends LdkNodeError_InvalidAmount { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidAmount(this); } @@ -14534,81 +15278,86 @@ class _$LdkNodeError_InvalidAmountImpl extends LdkNodeError_InvalidAmount { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidAmount?.call(this); } @@ -14616,78 +15365,83 @@ class _$LdkNodeError_InvalidAmountImpl extends LdkNodeError_InvalidAmount { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidAmount != null) { @@ -14697,44 +15451,44 @@ class _$LdkNodeError_InvalidAmountImpl extends LdkNodeError_InvalidAmount { } } -abstract class LdkNodeError_InvalidAmount extends LdkNodeError { - const factory LdkNodeError_InvalidAmount() = _$LdkNodeError_InvalidAmountImpl; - const LdkNodeError_InvalidAmount._() : super._(); +abstract class FfiNodeError_InvalidAmount extends FfiNodeError { + const factory FfiNodeError_InvalidAmount() = _$FfiNodeError_InvalidAmountImpl; + const FfiNodeError_InvalidAmount._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidInvoiceImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidInvoiceImplCopyWith( - _$LdkNodeError_InvalidInvoiceImpl value, - $Res Function(_$LdkNodeError_InvalidInvoiceImpl) then) = - __$$LdkNodeError_InvalidInvoiceImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidInvoiceImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidInvoiceImplCopyWith( + _$FfiNodeError_InvalidInvoiceImpl value, + $Res Function(_$FfiNodeError_InvalidInvoiceImpl) then) = + __$$FfiNodeError_InvalidInvoiceImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidInvoiceImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_InvalidInvoiceImpl> - implements _$$LdkNodeError_InvalidInvoiceImplCopyWith<$Res> { - __$$LdkNodeError_InvalidInvoiceImplCopyWithImpl( - _$LdkNodeError_InvalidInvoiceImpl _value, - $Res Function(_$LdkNodeError_InvalidInvoiceImpl) _then) +class __$$FfiNodeError_InvalidInvoiceImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidInvoiceImpl> + implements _$$FfiNodeError_InvalidInvoiceImplCopyWith<$Res> { + __$$FfiNodeError_InvalidInvoiceImplCopyWithImpl( + _$FfiNodeError_InvalidInvoiceImpl _value, + $Res Function(_$FfiNodeError_InvalidInvoiceImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidInvoiceImpl extends LdkNodeError_InvalidInvoice { - const _$LdkNodeError_InvalidInvoiceImpl() : super._(); +class _$FfiNodeError_InvalidInvoiceImpl extends FfiNodeError_InvalidInvoice { + const _$FfiNodeError_InvalidInvoiceImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidInvoice()'; + return 'FfiNodeError.invalidInvoice()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidInvoiceImpl); + other is _$FfiNodeError_InvalidInvoiceImpl); } @override @@ -14792,6 +15546,10 @@ class _$LdkNodeError_InvalidInvoiceImpl extends LdkNodeError_InvalidInvoice { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidInvoice(); } @@ -14848,6 +15606,10 @@ class _$LdkNodeError_InvalidInvoiceImpl extends LdkNodeError_InvalidInvoice { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidInvoice?.call(); } @@ -14904,6 +15666,10 @@ class _$LdkNodeError_InvalidInvoiceImpl extends LdkNodeError_InvalidInvoice { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidInvoice != null) { @@ -14915,89 +15681,96 @@ class _$LdkNodeError_InvalidInvoiceImpl extends LdkNodeError_InvalidInvoice { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidInvoice(this); } @@ -15005,81 +15778,86 @@ class _$LdkNodeError_InvalidInvoiceImpl extends LdkNodeError_InvalidInvoice { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidInvoice?.call(this); } @@ -15087,78 +15865,83 @@ class _$LdkNodeError_InvalidInvoiceImpl extends LdkNodeError_InvalidInvoice { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidInvoice != null) { @@ -15168,47 +15951,47 @@ class _$LdkNodeError_InvalidInvoiceImpl extends LdkNodeError_InvalidInvoice { } } -abstract class LdkNodeError_InvalidInvoice extends LdkNodeError { - const factory LdkNodeError_InvalidInvoice() = - _$LdkNodeError_InvalidInvoiceImpl; - const LdkNodeError_InvalidInvoice._() : super._(); +abstract class FfiNodeError_InvalidInvoice extends FfiNodeError { + const factory FfiNodeError_InvalidInvoice() = + _$FfiNodeError_InvalidInvoiceImpl; + const FfiNodeError_InvalidInvoice._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidChannelIdImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidChannelIdImplCopyWith( - _$LdkNodeError_InvalidChannelIdImpl value, - $Res Function(_$LdkNodeError_InvalidChannelIdImpl) then) = - __$$LdkNodeError_InvalidChannelIdImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidChannelIdImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidChannelIdImplCopyWith( + _$FfiNodeError_InvalidChannelIdImpl value, + $Res Function(_$FfiNodeError_InvalidChannelIdImpl) then) = + __$$FfiNodeError_InvalidChannelIdImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidChannelIdImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InvalidChannelIdImpl> - implements _$$LdkNodeError_InvalidChannelIdImplCopyWith<$Res> { - __$$LdkNodeError_InvalidChannelIdImplCopyWithImpl( - _$LdkNodeError_InvalidChannelIdImpl _value, - $Res Function(_$LdkNodeError_InvalidChannelIdImpl) _then) +class __$$FfiNodeError_InvalidChannelIdImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvalidChannelIdImpl> + implements _$$FfiNodeError_InvalidChannelIdImplCopyWith<$Res> { + __$$FfiNodeError_InvalidChannelIdImplCopyWithImpl( + _$FfiNodeError_InvalidChannelIdImpl _value, + $Res Function(_$FfiNodeError_InvalidChannelIdImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidChannelIdImpl - extends LdkNodeError_InvalidChannelId { - const _$LdkNodeError_InvalidChannelIdImpl() : super._(); +class _$FfiNodeError_InvalidChannelIdImpl + extends FfiNodeError_InvalidChannelId { + const _$FfiNodeError_InvalidChannelIdImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidChannelId()'; + return 'FfiNodeError.invalidChannelId()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidChannelIdImpl); + other is _$FfiNodeError_InvalidChannelIdImpl); } @override @@ -15266,6 +16049,10 @@ class _$LdkNodeError_InvalidChannelIdImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidChannelId(); } @@ -15322,6 +16109,10 @@ class _$LdkNodeError_InvalidChannelIdImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidChannelId?.call(); } @@ -15378,6 +16169,10 @@ class _$LdkNodeError_InvalidChannelIdImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidChannelId != null) { @@ -15389,89 +16184,96 @@ class _$LdkNodeError_InvalidChannelIdImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidChannelId(this); } @@ -15479,81 +16281,86 @@ class _$LdkNodeError_InvalidChannelIdImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidChannelId?.call(this); } @@ -15561,78 +16368,83 @@ class _$LdkNodeError_InvalidChannelIdImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidChannelId != null) { @@ -15642,45 +16454,45 @@ class _$LdkNodeError_InvalidChannelIdImpl } } -abstract class LdkNodeError_InvalidChannelId extends LdkNodeError { - const factory LdkNodeError_InvalidChannelId() = - _$LdkNodeError_InvalidChannelIdImpl; - const LdkNodeError_InvalidChannelId._() : super._(); +abstract class FfiNodeError_InvalidChannelId extends FfiNodeError { + const factory FfiNodeError_InvalidChannelId() = + _$FfiNodeError_InvalidChannelIdImpl; + const FfiNodeError_InvalidChannelId._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidNetworkImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidNetworkImplCopyWith( - _$LdkNodeError_InvalidNetworkImpl value, - $Res Function(_$LdkNodeError_InvalidNetworkImpl) then) = - __$$LdkNodeError_InvalidNetworkImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidNetworkImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidNetworkImplCopyWith( + _$FfiNodeError_InvalidNetworkImpl value, + $Res Function(_$FfiNodeError_InvalidNetworkImpl) then) = + __$$FfiNodeError_InvalidNetworkImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidNetworkImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_InvalidNetworkImpl> - implements _$$LdkNodeError_InvalidNetworkImplCopyWith<$Res> { - __$$LdkNodeError_InvalidNetworkImplCopyWithImpl( - _$LdkNodeError_InvalidNetworkImpl _value, - $Res Function(_$LdkNodeError_InvalidNetworkImpl) _then) +class __$$FfiNodeError_InvalidNetworkImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidNetworkImpl> + implements _$$FfiNodeError_InvalidNetworkImplCopyWith<$Res> { + __$$FfiNodeError_InvalidNetworkImplCopyWithImpl( + _$FfiNodeError_InvalidNetworkImpl _value, + $Res Function(_$FfiNodeError_InvalidNetworkImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidNetworkImpl extends LdkNodeError_InvalidNetwork { - const _$LdkNodeError_InvalidNetworkImpl() : super._(); +class _$FfiNodeError_InvalidNetworkImpl extends FfiNodeError_InvalidNetwork { + const _$FfiNodeError_InvalidNetworkImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidNetwork()'; + return 'FfiNodeError.invalidNetwork()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidNetworkImpl); + other is _$FfiNodeError_InvalidNetworkImpl); } @override @@ -15738,6 +16550,10 @@ class _$LdkNodeError_InvalidNetworkImpl extends LdkNodeError_InvalidNetwork { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidNetwork(); } @@ -15794,6 +16610,10 @@ class _$LdkNodeError_InvalidNetworkImpl extends LdkNodeError_InvalidNetwork { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidNetwork?.call(); } @@ -15850,6 +16670,10 @@ class _$LdkNodeError_InvalidNetworkImpl extends LdkNodeError_InvalidNetwork { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidNetwork != null) { @@ -15861,89 +16685,96 @@ class _$LdkNodeError_InvalidNetworkImpl extends LdkNodeError_InvalidNetwork { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidNetwork(this); } @@ -15951,81 +16782,86 @@ class _$LdkNodeError_InvalidNetworkImpl extends LdkNodeError_InvalidNetwork { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidNetwork?.call(this); } @@ -16033,78 +16869,83 @@ class _$LdkNodeError_InvalidNetworkImpl extends LdkNodeError_InvalidNetwork { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidNetwork != null) { @@ -16114,47 +16955,47 @@ class _$LdkNodeError_InvalidNetworkImpl extends LdkNodeError_InvalidNetwork { } } -abstract class LdkNodeError_InvalidNetwork extends LdkNodeError { - const factory LdkNodeError_InvalidNetwork() = - _$LdkNodeError_InvalidNetworkImpl; - const LdkNodeError_InvalidNetwork._() : super._(); +abstract class FfiNodeError_InvalidNetwork extends FfiNodeError { + const factory FfiNodeError_InvalidNetwork() = + _$FfiNodeError_InvalidNetworkImpl; + const FfiNodeError_InvalidNetwork._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_DuplicatePaymentImplCopyWith<$Res> { - factory _$$LdkNodeError_DuplicatePaymentImplCopyWith( - _$LdkNodeError_DuplicatePaymentImpl value, - $Res Function(_$LdkNodeError_DuplicatePaymentImpl) then) = - __$$LdkNodeError_DuplicatePaymentImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_DuplicatePaymentImplCopyWith<$Res> { + factory _$$FfiNodeError_DuplicatePaymentImplCopyWith( + _$FfiNodeError_DuplicatePaymentImpl value, + $Res Function(_$FfiNodeError_DuplicatePaymentImpl) then) = + __$$FfiNodeError_DuplicatePaymentImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_DuplicatePaymentImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_DuplicatePaymentImpl> - implements _$$LdkNodeError_DuplicatePaymentImplCopyWith<$Res> { - __$$LdkNodeError_DuplicatePaymentImplCopyWithImpl( - _$LdkNodeError_DuplicatePaymentImpl _value, - $Res Function(_$LdkNodeError_DuplicatePaymentImpl) _then) +class __$$FfiNodeError_DuplicatePaymentImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_DuplicatePaymentImpl> + implements _$$FfiNodeError_DuplicatePaymentImplCopyWith<$Res> { + __$$FfiNodeError_DuplicatePaymentImplCopyWithImpl( + _$FfiNodeError_DuplicatePaymentImpl _value, + $Res Function(_$FfiNodeError_DuplicatePaymentImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_DuplicatePaymentImpl - extends LdkNodeError_DuplicatePayment { - const _$LdkNodeError_DuplicatePaymentImpl() : super._(); +class _$FfiNodeError_DuplicatePaymentImpl + extends FfiNodeError_DuplicatePayment { + const _$FfiNodeError_DuplicatePaymentImpl() : super._(); @override String toString() { - return 'LdkNodeError.duplicatePayment()'; + return 'FfiNodeError.duplicatePayment()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_DuplicatePaymentImpl); + other is _$FfiNodeError_DuplicatePaymentImpl); } @override @@ -16212,6 +17053,10 @@ class _$LdkNodeError_DuplicatePaymentImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return duplicatePayment(); } @@ -16268,6 +17113,10 @@ class _$LdkNodeError_DuplicatePaymentImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return duplicatePayment?.call(); } @@ -16324,6 +17173,10 @@ class _$LdkNodeError_DuplicatePaymentImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (duplicatePayment != null) { @@ -16335,89 +17188,96 @@ class _$LdkNodeError_DuplicatePaymentImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return duplicatePayment(this); } @@ -16425,81 +17285,86 @@ class _$LdkNodeError_DuplicatePaymentImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return duplicatePayment?.call(this); } @@ -16507,78 +17372,83 @@ class _$LdkNodeError_DuplicatePaymentImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (duplicatePayment != null) { @@ -16588,47 +17458,47 @@ class _$LdkNodeError_DuplicatePaymentImpl } } -abstract class LdkNodeError_DuplicatePayment extends LdkNodeError { - const factory LdkNodeError_DuplicatePayment() = - _$LdkNodeError_DuplicatePaymentImpl; - const LdkNodeError_DuplicatePayment._() : super._(); +abstract class FfiNodeError_DuplicatePayment extends FfiNodeError { + const factory FfiNodeError_DuplicatePayment() = + _$FfiNodeError_DuplicatePaymentImpl; + const FfiNodeError_DuplicatePayment._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InsufficientFundsImplCopyWith<$Res> { - factory _$$LdkNodeError_InsufficientFundsImplCopyWith( - _$LdkNodeError_InsufficientFundsImpl value, - $Res Function(_$LdkNodeError_InsufficientFundsImpl) then) = - __$$LdkNodeError_InsufficientFundsImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InsufficientFundsImplCopyWith<$Res> { + factory _$$FfiNodeError_InsufficientFundsImplCopyWith( + _$FfiNodeError_InsufficientFundsImpl value, + $Res Function(_$FfiNodeError_InsufficientFundsImpl) then) = + __$$FfiNodeError_InsufficientFundsImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InsufficientFundsImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InsufficientFundsImpl> - implements _$$LdkNodeError_InsufficientFundsImplCopyWith<$Res> { - __$$LdkNodeError_InsufficientFundsImplCopyWithImpl( - _$LdkNodeError_InsufficientFundsImpl _value, - $Res Function(_$LdkNodeError_InsufficientFundsImpl) _then) +class __$$FfiNodeError_InsufficientFundsImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InsufficientFundsImpl> + implements _$$FfiNodeError_InsufficientFundsImplCopyWith<$Res> { + __$$FfiNodeError_InsufficientFundsImplCopyWithImpl( + _$FfiNodeError_InsufficientFundsImpl _value, + $Res Function(_$FfiNodeError_InsufficientFundsImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InsufficientFundsImpl - extends LdkNodeError_InsufficientFunds { - const _$LdkNodeError_InsufficientFundsImpl() : super._(); +class _$FfiNodeError_InsufficientFundsImpl + extends FfiNodeError_InsufficientFunds { + const _$FfiNodeError_InsufficientFundsImpl() : super._(); @override String toString() { - return 'LdkNodeError.insufficientFunds()'; + return 'FfiNodeError.insufficientFunds()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InsufficientFundsImpl); + other is _$FfiNodeError_InsufficientFundsImpl); } @override @@ -16686,6 +17556,10 @@ class _$LdkNodeError_InsufficientFundsImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return insufficientFunds(); } @@ -16742,6 +17616,10 @@ class _$LdkNodeError_InsufficientFundsImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return insufficientFunds?.call(); } @@ -16798,6 +17676,10 @@ class _$LdkNodeError_InsufficientFundsImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (insufficientFunds != null) { @@ -16809,89 +17691,96 @@ class _$LdkNodeError_InsufficientFundsImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return insufficientFunds(this); } @@ -16899,81 +17788,86 @@ class _$LdkNodeError_InsufficientFundsImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return insufficientFunds?.call(this); } @@ -16981,78 +17875,83 @@ class _$LdkNodeError_InsufficientFundsImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (insufficientFunds != null) { @@ -17062,48 +17961,48 @@ class _$LdkNodeError_InsufficientFundsImpl } } -abstract class LdkNodeError_InsufficientFunds extends LdkNodeError { - const factory LdkNodeError_InsufficientFunds() = - _$LdkNodeError_InsufficientFundsImpl; - const LdkNodeError_InsufficientFunds._() : super._(); +abstract class FfiNodeError_InsufficientFunds extends FfiNodeError { + const factory FfiNodeError_InsufficientFunds() = + _$FfiNodeError_InsufficientFundsImpl; + const FfiNodeError_InsufficientFunds._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_FeerateEstimationUpdateFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_FeerateEstimationUpdateFailedImplCopyWith( - _$LdkNodeError_FeerateEstimationUpdateFailedImpl value, - $Res Function(_$LdkNodeError_FeerateEstimationUpdateFailedImpl) +abstract class _$$FfiNodeError_FeerateEstimationUpdateFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_FeerateEstimationUpdateFailedImplCopyWith( + _$FfiNodeError_FeerateEstimationUpdateFailedImpl value, + $Res Function(_$FfiNodeError_FeerateEstimationUpdateFailedImpl) then) = - __$$LdkNodeError_FeerateEstimationUpdateFailedImplCopyWithImpl<$Res>; + __$$FfiNodeError_FeerateEstimationUpdateFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_FeerateEstimationUpdateFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_FeerateEstimationUpdateFailedImpl> - implements _$$LdkNodeError_FeerateEstimationUpdateFailedImplCopyWith<$Res> { - __$$LdkNodeError_FeerateEstimationUpdateFailedImplCopyWithImpl( - _$LdkNodeError_FeerateEstimationUpdateFailedImpl _value, - $Res Function(_$LdkNodeError_FeerateEstimationUpdateFailedImpl) _then) +class __$$FfiNodeError_FeerateEstimationUpdateFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_FeerateEstimationUpdateFailedImpl> + implements _$$FfiNodeError_FeerateEstimationUpdateFailedImplCopyWith<$Res> { + __$$FfiNodeError_FeerateEstimationUpdateFailedImplCopyWithImpl( + _$FfiNodeError_FeerateEstimationUpdateFailedImpl _value, + $Res Function(_$FfiNodeError_FeerateEstimationUpdateFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_FeerateEstimationUpdateFailedImpl - extends LdkNodeError_FeerateEstimationUpdateFailed { - const _$LdkNodeError_FeerateEstimationUpdateFailedImpl() : super._(); +class _$FfiNodeError_FeerateEstimationUpdateFailedImpl + extends FfiNodeError_FeerateEstimationUpdateFailed { + const _$FfiNodeError_FeerateEstimationUpdateFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.feerateEstimationUpdateFailed()'; + return 'FfiNodeError.feerateEstimationUpdateFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_FeerateEstimationUpdateFailedImpl); + other is _$FfiNodeError_FeerateEstimationUpdateFailedImpl); } @override @@ -17161,6 +18060,10 @@ class _$LdkNodeError_FeerateEstimationUpdateFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return feerateEstimationUpdateFailed(); } @@ -17217,6 +18120,10 @@ class _$LdkNodeError_FeerateEstimationUpdateFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return feerateEstimationUpdateFailed?.call(); } @@ -17273,6 +18180,10 @@ class _$LdkNodeError_FeerateEstimationUpdateFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (feerateEstimationUpdateFailed != null) { @@ -17284,89 +18195,96 @@ class _$LdkNodeError_FeerateEstimationUpdateFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return feerateEstimationUpdateFailed(this); } @@ -17374,81 +18292,86 @@ class _$LdkNodeError_FeerateEstimationUpdateFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return feerateEstimationUpdateFailed?.call(this); } @@ -17456,78 +18379,83 @@ class _$LdkNodeError_FeerateEstimationUpdateFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (feerateEstimationUpdateFailed != null) { @@ -17537,47 +18465,47 @@ class _$LdkNodeError_FeerateEstimationUpdateFailedImpl } } -abstract class LdkNodeError_FeerateEstimationUpdateFailed extends LdkNodeError { - const factory LdkNodeError_FeerateEstimationUpdateFailed() = - _$LdkNodeError_FeerateEstimationUpdateFailedImpl; - const LdkNodeError_FeerateEstimationUpdateFailed._() : super._(); +abstract class FfiNodeError_FeerateEstimationUpdateFailed extends FfiNodeError { + const factory FfiNodeError_FeerateEstimationUpdateFailed() = + _$FfiNodeError_FeerateEstimationUpdateFailedImpl; + const FfiNodeError_FeerateEstimationUpdateFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_LiquidityRequestFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_LiquidityRequestFailedImplCopyWith( - _$LdkNodeError_LiquidityRequestFailedImpl value, - $Res Function(_$LdkNodeError_LiquidityRequestFailedImpl) then) = - __$$LdkNodeError_LiquidityRequestFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_LiquidityRequestFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_LiquidityRequestFailedImplCopyWith( + _$FfiNodeError_LiquidityRequestFailedImpl value, + $Res Function(_$FfiNodeError_LiquidityRequestFailedImpl) then) = + __$$FfiNodeError_LiquidityRequestFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_LiquidityRequestFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_LiquidityRequestFailedImpl> - implements _$$LdkNodeError_LiquidityRequestFailedImplCopyWith<$Res> { - __$$LdkNodeError_LiquidityRequestFailedImplCopyWithImpl( - _$LdkNodeError_LiquidityRequestFailedImpl _value, - $Res Function(_$LdkNodeError_LiquidityRequestFailedImpl) _then) +class __$$FfiNodeError_LiquidityRequestFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_LiquidityRequestFailedImpl> + implements _$$FfiNodeError_LiquidityRequestFailedImplCopyWith<$Res> { + __$$FfiNodeError_LiquidityRequestFailedImplCopyWithImpl( + _$FfiNodeError_LiquidityRequestFailedImpl _value, + $Res Function(_$FfiNodeError_LiquidityRequestFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_LiquidityRequestFailedImpl - extends LdkNodeError_LiquidityRequestFailed { - const _$LdkNodeError_LiquidityRequestFailedImpl() : super._(); +class _$FfiNodeError_LiquidityRequestFailedImpl + extends FfiNodeError_LiquidityRequestFailed { + const _$FfiNodeError_LiquidityRequestFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.liquidityRequestFailed()'; + return 'FfiNodeError.liquidityRequestFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_LiquidityRequestFailedImpl); + other is _$FfiNodeError_LiquidityRequestFailedImpl); } @override @@ -17635,6 +18563,10 @@ class _$LdkNodeError_LiquidityRequestFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return liquidityRequestFailed(); } @@ -17691,6 +18623,10 @@ class _$LdkNodeError_LiquidityRequestFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return liquidityRequestFailed?.call(); } @@ -17747,6 +18683,10 @@ class _$LdkNodeError_LiquidityRequestFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (liquidityRequestFailed != null) { @@ -17758,89 +18698,96 @@ class _$LdkNodeError_LiquidityRequestFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return liquidityRequestFailed(this); } @@ -17848,81 +18795,86 @@ class _$LdkNodeError_LiquidityRequestFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return liquidityRequestFailed?.call(this); } @@ -17930,78 +18882,83 @@ class _$LdkNodeError_LiquidityRequestFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (liquidityRequestFailed != null) { @@ -18011,47 +18968,47 @@ class _$LdkNodeError_LiquidityRequestFailedImpl } } -abstract class LdkNodeError_LiquidityRequestFailed extends LdkNodeError { - const factory LdkNodeError_LiquidityRequestFailed() = - _$LdkNodeError_LiquidityRequestFailedImpl; - const LdkNodeError_LiquidityRequestFailed._() : super._(); +abstract class FfiNodeError_LiquidityRequestFailed extends FfiNodeError { + const factory FfiNodeError_LiquidityRequestFailed() = + _$FfiNodeError_LiquidityRequestFailedImpl; + const FfiNodeError_LiquidityRequestFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_LiquiditySourceUnavailableImplCopyWith<$Res> { - factory _$$LdkNodeError_LiquiditySourceUnavailableImplCopyWith( - _$LdkNodeError_LiquiditySourceUnavailableImpl value, - $Res Function(_$LdkNodeError_LiquiditySourceUnavailableImpl) then) = - __$$LdkNodeError_LiquiditySourceUnavailableImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_LiquiditySourceUnavailableImplCopyWith<$Res> { + factory _$$FfiNodeError_LiquiditySourceUnavailableImplCopyWith( + _$FfiNodeError_LiquiditySourceUnavailableImpl value, + $Res Function(_$FfiNodeError_LiquiditySourceUnavailableImpl) then) = + __$$FfiNodeError_LiquiditySourceUnavailableImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_LiquiditySourceUnavailableImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_LiquiditySourceUnavailableImpl> - implements _$$LdkNodeError_LiquiditySourceUnavailableImplCopyWith<$Res> { - __$$LdkNodeError_LiquiditySourceUnavailableImplCopyWithImpl( - _$LdkNodeError_LiquiditySourceUnavailableImpl _value, - $Res Function(_$LdkNodeError_LiquiditySourceUnavailableImpl) _then) +class __$$FfiNodeError_LiquiditySourceUnavailableImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_LiquiditySourceUnavailableImpl> + implements _$$FfiNodeError_LiquiditySourceUnavailableImplCopyWith<$Res> { + __$$FfiNodeError_LiquiditySourceUnavailableImplCopyWithImpl( + _$FfiNodeError_LiquiditySourceUnavailableImpl _value, + $Res Function(_$FfiNodeError_LiquiditySourceUnavailableImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_LiquiditySourceUnavailableImpl - extends LdkNodeError_LiquiditySourceUnavailable { - const _$LdkNodeError_LiquiditySourceUnavailableImpl() : super._(); +class _$FfiNodeError_LiquiditySourceUnavailableImpl + extends FfiNodeError_LiquiditySourceUnavailable { + const _$FfiNodeError_LiquiditySourceUnavailableImpl() : super._(); @override String toString() { - return 'LdkNodeError.liquiditySourceUnavailable()'; + return 'FfiNodeError.liquiditySourceUnavailable()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_LiquiditySourceUnavailableImpl); + other is _$FfiNodeError_LiquiditySourceUnavailableImpl); } @override @@ -18109,6 +19066,10 @@ class _$LdkNodeError_LiquiditySourceUnavailableImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return liquiditySourceUnavailable(); } @@ -18165,6 +19126,10 @@ class _$LdkNodeError_LiquiditySourceUnavailableImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return liquiditySourceUnavailable?.call(); } @@ -18221,6 +19186,10 @@ class _$LdkNodeError_LiquiditySourceUnavailableImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (liquiditySourceUnavailable != null) { @@ -18232,89 +19201,96 @@ class _$LdkNodeError_LiquiditySourceUnavailableImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return liquiditySourceUnavailable(this); } @@ -18322,81 +19298,86 @@ class _$LdkNodeError_LiquiditySourceUnavailableImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return liquiditySourceUnavailable?.call(this); } @@ -18404,78 +19385,83 @@ class _$LdkNodeError_LiquiditySourceUnavailableImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (liquiditySourceUnavailable != null) { @@ -18485,47 +19471,47 @@ class _$LdkNodeError_LiquiditySourceUnavailableImpl } } -abstract class LdkNodeError_LiquiditySourceUnavailable extends LdkNodeError { - const factory LdkNodeError_LiquiditySourceUnavailable() = - _$LdkNodeError_LiquiditySourceUnavailableImpl; - const LdkNodeError_LiquiditySourceUnavailable._() : super._(); +abstract class FfiNodeError_LiquiditySourceUnavailable extends FfiNodeError { + const factory FfiNodeError_LiquiditySourceUnavailable() = + _$FfiNodeError_LiquiditySourceUnavailableImpl; + const FfiNodeError_LiquiditySourceUnavailable._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_LiquidityFeeTooHighImplCopyWith<$Res> { - factory _$$LdkNodeError_LiquidityFeeTooHighImplCopyWith( - _$LdkNodeError_LiquidityFeeTooHighImpl value, - $Res Function(_$LdkNodeError_LiquidityFeeTooHighImpl) then) = - __$$LdkNodeError_LiquidityFeeTooHighImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_LiquidityFeeTooHighImplCopyWith<$Res> { + factory _$$FfiNodeError_LiquidityFeeTooHighImplCopyWith( + _$FfiNodeError_LiquidityFeeTooHighImpl value, + $Res Function(_$FfiNodeError_LiquidityFeeTooHighImpl) then) = + __$$FfiNodeError_LiquidityFeeTooHighImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_LiquidityFeeTooHighImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_LiquidityFeeTooHighImpl> - implements _$$LdkNodeError_LiquidityFeeTooHighImplCopyWith<$Res> { - __$$LdkNodeError_LiquidityFeeTooHighImplCopyWithImpl( - _$LdkNodeError_LiquidityFeeTooHighImpl _value, - $Res Function(_$LdkNodeError_LiquidityFeeTooHighImpl) _then) +class __$$FfiNodeError_LiquidityFeeTooHighImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_LiquidityFeeTooHighImpl> + implements _$$FfiNodeError_LiquidityFeeTooHighImplCopyWith<$Res> { + __$$FfiNodeError_LiquidityFeeTooHighImplCopyWithImpl( + _$FfiNodeError_LiquidityFeeTooHighImpl _value, + $Res Function(_$FfiNodeError_LiquidityFeeTooHighImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_LiquidityFeeTooHighImpl - extends LdkNodeError_LiquidityFeeTooHigh { - const _$LdkNodeError_LiquidityFeeTooHighImpl() : super._(); +class _$FfiNodeError_LiquidityFeeTooHighImpl + extends FfiNodeError_LiquidityFeeTooHigh { + const _$FfiNodeError_LiquidityFeeTooHighImpl() : super._(); @override String toString() { - return 'LdkNodeError.liquidityFeeTooHigh()'; + return 'FfiNodeError.liquidityFeeTooHigh()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_LiquidityFeeTooHighImpl); + other is _$FfiNodeError_LiquidityFeeTooHighImpl); } @override @@ -18583,6 +19569,10 @@ class _$LdkNodeError_LiquidityFeeTooHighImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return liquidityFeeTooHigh(); } @@ -18639,6 +19629,10 @@ class _$LdkNodeError_LiquidityFeeTooHighImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return liquidityFeeTooHigh?.call(); } @@ -18695,6 +19689,10 @@ class _$LdkNodeError_LiquidityFeeTooHighImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (liquidityFeeTooHigh != null) { @@ -18706,89 +19704,96 @@ class _$LdkNodeError_LiquidityFeeTooHighImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return liquidityFeeTooHigh(this); } @@ -18796,81 +19801,86 @@ class _$LdkNodeError_LiquidityFeeTooHighImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return liquidityFeeTooHigh?.call(this); } @@ -18878,78 +19888,83 @@ class _$LdkNodeError_LiquidityFeeTooHighImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (liquidityFeeTooHigh != null) { @@ -18959,47 +19974,47 @@ class _$LdkNodeError_LiquidityFeeTooHighImpl } } -abstract class LdkNodeError_LiquidityFeeTooHigh extends LdkNodeError { - const factory LdkNodeError_LiquidityFeeTooHigh() = - _$LdkNodeError_LiquidityFeeTooHighImpl; - const LdkNodeError_LiquidityFeeTooHigh._() : super._(); +abstract class FfiNodeError_LiquidityFeeTooHigh extends FfiNodeError { + const factory FfiNodeError_LiquidityFeeTooHigh() = + _$FfiNodeError_LiquidityFeeTooHighImpl; + const FfiNodeError_LiquidityFeeTooHigh._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidPaymentIdImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidPaymentIdImplCopyWith( - _$LdkNodeError_InvalidPaymentIdImpl value, - $Res Function(_$LdkNodeError_InvalidPaymentIdImpl) then) = - __$$LdkNodeError_InvalidPaymentIdImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidPaymentIdImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidPaymentIdImplCopyWith( + _$FfiNodeError_InvalidPaymentIdImpl value, + $Res Function(_$FfiNodeError_InvalidPaymentIdImpl) then) = + __$$FfiNodeError_InvalidPaymentIdImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidPaymentIdImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InvalidPaymentIdImpl> - implements _$$LdkNodeError_InvalidPaymentIdImplCopyWith<$Res> { - __$$LdkNodeError_InvalidPaymentIdImplCopyWithImpl( - _$LdkNodeError_InvalidPaymentIdImpl _value, - $Res Function(_$LdkNodeError_InvalidPaymentIdImpl) _then) +class __$$FfiNodeError_InvalidPaymentIdImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvalidPaymentIdImpl> + implements _$$FfiNodeError_InvalidPaymentIdImplCopyWith<$Res> { + __$$FfiNodeError_InvalidPaymentIdImplCopyWithImpl( + _$FfiNodeError_InvalidPaymentIdImpl _value, + $Res Function(_$FfiNodeError_InvalidPaymentIdImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidPaymentIdImpl - extends LdkNodeError_InvalidPaymentId { - const _$LdkNodeError_InvalidPaymentIdImpl() : super._(); +class _$FfiNodeError_InvalidPaymentIdImpl + extends FfiNodeError_InvalidPaymentId { + const _$FfiNodeError_InvalidPaymentIdImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidPaymentId()'; + return 'FfiNodeError.invalidPaymentId()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidPaymentIdImpl); + other is _$FfiNodeError_InvalidPaymentIdImpl); } @override @@ -19057,6 +20072,10 @@ class _$LdkNodeError_InvalidPaymentIdImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidPaymentId(); } @@ -19113,6 +20132,10 @@ class _$LdkNodeError_InvalidPaymentIdImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidPaymentId?.call(); } @@ -19169,6 +20192,10 @@ class _$LdkNodeError_InvalidPaymentIdImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidPaymentId != null) { @@ -19180,89 +20207,96 @@ class _$LdkNodeError_InvalidPaymentIdImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidPaymentId(this); } @@ -19270,81 +20304,86 @@ class _$LdkNodeError_InvalidPaymentIdImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidPaymentId?.call(this); } @@ -19352,78 +20391,83 @@ class _$LdkNodeError_InvalidPaymentIdImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidPaymentId != null) { @@ -19433,17 +20477,17 @@ class _$LdkNodeError_InvalidPaymentIdImpl } } -abstract class LdkNodeError_InvalidPaymentId extends LdkNodeError { - const factory LdkNodeError_InvalidPaymentId() = - _$LdkNodeError_InvalidPaymentIdImpl; - const LdkNodeError_InvalidPaymentId._() : super._(); +abstract class FfiNodeError_InvalidPaymentId extends FfiNodeError { + const factory FfiNodeError_InvalidPaymentId() = + _$FfiNodeError_InvalidPaymentIdImpl; + const FfiNodeError_InvalidPaymentId._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_DecodeImplCopyWith<$Res> { - factory _$$LdkNodeError_DecodeImplCopyWith(_$LdkNodeError_DecodeImpl value, - $Res Function(_$LdkNodeError_DecodeImpl) then) = - __$$LdkNodeError_DecodeImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_DecodeImplCopyWith<$Res> { + factory _$$FfiNodeError_DecodeImplCopyWith(_$FfiNodeError_DecodeImpl value, + $Res Function(_$FfiNodeError_DecodeImpl) then) = + __$$FfiNodeError_DecodeImplCopyWithImpl<$Res>; @useResult $Res call({DecodeError field0}); @@ -19451,11 +20495,11 @@ abstract class _$$LdkNodeError_DecodeImplCopyWith<$Res> { } /// @nodoc -class __$$LdkNodeError_DecodeImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_DecodeImpl> - implements _$$LdkNodeError_DecodeImplCopyWith<$Res> { - __$$LdkNodeError_DecodeImplCopyWithImpl(_$LdkNodeError_DecodeImpl _value, - $Res Function(_$LdkNodeError_DecodeImpl) _then) +class __$$FfiNodeError_DecodeImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_DecodeImpl> + implements _$$FfiNodeError_DecodeImplCopyWith<$Res> { + __$$FfiNodeError_DecodeImplCopyWithImpl(_$FfiNodeError_DecodeImpl _value, + $Res Function(_$FfiNodeError_DecodeImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -19463,7 +20507,7 @@ class __$$LdkNodeError_DecodeImplCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$LdkNodeError_DecodeImpl( + return _then(_$FfiNodeError_DecodeImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -19482,22 +20526,22 @@ class __$$LdkNodeError_DecodeImplCopyWithImpl<$Res> /// @nodoc -class _$LdkNodeError_DecodeImpl extends LdkNodeError_Decode { - const _$LdkNodeError_DecodeImpl(this.field0) : super._(); +class _$FfiNodeError_DecodeImpl extends FfiNodeError_Decode { + const _$FfiNodeError_DecodeImpl(this.field0) : super._(); @override final DecodeError field0; @override String toString() { - return 'LdkNodeError.decode(field0: $field0)'; + return 'FfiNodeError.decode(field0: $field0)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_DecodeImpl && + other is _$FfiNodeError_DecodeImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -19507,8 +20551,8 @@ class _$LdkNodeError_DecodeImpl extends LdkNodeError_Decode { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$LdkNodeError_DecodeImplCopyWith<_$LdkNodeError_DecodeImpl> get copyWith => - __$$LdkNodeError_DecodeImplCopyWithImpl<_$LdkNodeError_DecodeImpl>( + _$$FfiNodeError_DecodeImplCopyWith<_$FfiNodeError_DecodeImpl> get copyWith => + __$$FfiNodeError_DecodeImplCopyWithImpl<_$FfiNodeError_DecodeImpl>( this, _$identity); @override @@ -19563,6 +20607,10 @@ class _$LdkNodeError_DecodeImpl extends LdkNodeError_Decode { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return decode(field0); } @@ -19619,6 +20667,10 @@ class _$LdkNodeError_DecodeImpl extends LdkNodeError_Decode { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return decode?.call(field0); } @@ -19675,6 +20727,10 @@ class _$LdkNodeError_DecodeImpl extends LdkNodeError_Decode { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (decode != null) { @@ -19686,89 +20742,96 @@ class _$LdkNodeError_DecodeImpl extends LdkNodeError_Decode { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return decode(this); } @@ -19776,81 +20839,86 @@ class _$LdkNodeError_DecodeImpl extends LdkNodeError_Decode { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return decode?.call(this); } @@ -19858,78 +20926,83 @@ class _$LdkNodeError_DecodeImpl extends LdkNodeError_Decode { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (decode != null) { @@ -19939,23 +21012,23 @@ class _$LdkNodeError_DecodeImpl extends LdkNodeError_Decode { } } -abstract class LdkNodeError_Decode extends LdkNodeError { - const factory LdkNodeError_Decode(final DecodeError field0) = - _$LdkNodeError_DecodeImpl; - const LdkNodeError_Decode._() : super._(); +abstract class FfiNodeError_Decode extends FfiNodeError { + const factory FfiNodeError_Decode(final DecodeError field0) = + _$FfiNodeError_DecodeImpl; + const FfiNodeError_Decode._() : super._(); DecodeError get field0; @JsonKey(ignore: true) - _$$LdkNodeError_DecodeImplCopyWith<_$LdkNodeError_DecodeImpl> get copyWith => + _$$FfiNodeError_DecodeImplCopyWith<_$FfiNodeError_DecodeImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$LdkNodeError_Bolt12ParseImplCopyWith<$Res> { - factory _$$LdkNodeError_Bolt12ParseImplCopyWith( - _$LdkNodeError_Bolt12ParseImpl value, - $Res Function(_$LdkNodeError_Bolt12ParseImpl) then) = - __$$LdkNodeError_Bolt12ParseImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_Bolt12ParseImplCopyWith<$Res> { + factory _$$FfiNodeError_Bolt12ParseImplCopyWith( + _$FfiNodeError_Bolt12ParseImpl value, + $Res Function(_$FfiNodeError_Bolt12ParseImpl) then) = + __$$FfiNodeError_Bolt12ParseImplCopyWithImpl<$Res>; @useResult $Res call({Bolt12ParseError field0}); @@ -19963,12 +21036,12 @@ abstract class _$$LdkNodeError_Bolt12ParseImplCopyWith<$Res> { } /// @nodoc -class __$$LdkNodeError_Bolt12ParseImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_Bolt12ParseImpl> - implements _$$LdkNodeError_Bolt12ParseImplCopyWith<$Res> { - __$$LdkNodeError_Bolt12ParseImplCopyWithImpl( - _$LdkNodeError_Bolt12ParseImpl _value, - $Res Function(_$LdkNodeError_Bolt12ParseImpl) _then) +class __$$FfiNodeError_Bolt12ParseImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_Bolt12ParseImpl> + implements _$$FfiNodeError_Bolt12ParseImplCopyWith<$Res> { + __$$FfiNodeError_Bolt12ParseImplCopyWithImpl( + _$FfiNodeError_Bolt12ParseImpl _value, + $Res Function(_$FfiNodeError_Bolt12ParseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -19976,7 +21049,7 @@ class __$$LdkNodeError_Bolt12ParseImplCopyWithImpl<$Res> $Res call({ Object? field0 = null, }) { - return _then(_$LdkNodeError_Bolt12ParseImpl( + return _then(_$FfiNodeError_Bolt12ParseImpl( null == field0 ? _value.field0 : field0 // ignore: cast_nullable_to_non_nullable @@ -19995,22 +21068,22 @@ class __$$LdkNodeError_Bolt12ParseImplCopyWithImpl<$Res> /// @nodoc -class _$LdkNodeError_Bolt12ParseImpl extends LdkNodeError_Bolt12Parse { - const _$LdkNodeError_Bolt12ParseImpl(this.field0) : super._(); +class _$FfiNodeError_Bolt12ParseImpl extends FfiNodeError_Bolt12Parse { + const _$FfiNodeError_Bolt12ParseImpl(this.field0) : super._(); @override final Bolt12ParseError field0; @override String toString() { - return 'LdkNodeError.bolt12Parse(field0: $field0)'; + return 'FfiNodeError.bolt12Parse(field0: $field0)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_Bolt12ParseImpl && + other is _$FfiNodeError_Bolt12ParseImpl && (identical(other.field0, field0) || other.field0 == field0)); } @@ -20020,9 +21093,9 @@ class _$LdkNodeError_Bolt12ParseImpl extends LdkNodeError_Bolt12Parse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$LdkNodeError_Bolt12ParseImplCopyWith<_$LdkNodeError_Bolt12ParseImpl> - get copyWith => __$$LdkNodeError_Bolt12ParseImplCopyWithImpl< - _$LdkNodeError_Bolt12ParseImpl>(this, _$identity); + _$$FfiNodeError_Bolt12ParseImplCopyWith<_$FfiNodeError_Bolt12ParseImpl> + get copyWith => __$$FfiNodeError_Bolt12ParseImplCopyWithImpl< + _$FfiNodeError_Bolt12ParseImpl>(this, _$identity); @override @optionalTypeArgs @@ -20076,6 +21149,10 @@ class _$LdkNodeError_Bolt12ParseImpl extends LdkNodeError_Bolt12Parse { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return bolt12Parse(field0); } @@ -20132,6 +21209,10 @@ class _$LdkNodeError_Bolt12ParseImpl extends LdkNodeError_Bolt12Parse { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return bolt12Parse?.call(field0); } @@ -20188,6 +21269,10 @@ class _$LdkNodeError_Bolt12ParseImpl extends LdkNodeError_Bolt12Parse { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (bolt12Parse != null) { @@ -20199,89 +21284,96 @@ class _$LdkNodeError_Bolt12ParseImpl extends LdkNodeError_Bolt12Parse { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return bolt12Parse(this); } @@ -20289,81 +21381,86 @@ class _$LdkNodeError_Bolt12ParseImpl extends LdkNodeError_Bolt12Parse { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return bolt12Parse?.call(this); } @@ -20371,78 +21468,83 @@ class _$LdkNodeError_Bolt12ParseImpl extends LdkNodeError_Bolt12Parse { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (bolt12Parse != null) { @@ -20452,52 +21554,52 @@ class _$LdkNodeError_Bolt12ParseImpl extends LdkNodeError_Bolt12Parse { } } -abstract class LdkNodeError_Bolt12Parse extends LdkNodeError { - const factory LdkNodeError_Bolt12Parse(final Bolt12ParseError field0) = - _$LdkNodeError_Bolt12ParseImpl; - const LdkNodeError_Bolt12Parse._() : super._(); +abstract class FfiNodeError_Bolt12Parse extends FfiNodeError { + const factory FfiNodeError_Bolt12Parse(final Bolt12ParseError field0) = + _$FfiNodeError_Bolt12ParseImpl; + const FfiNodeError_Bolt12Parse._() : super._(); Bolt12ParseError get field0; @JsonKey(ignore: true) - _$$LdkNodeError_Bolt12ParseImplCopyWith<_$LdkNodeError_Bolt12ParseImpl> + _$$FfiNodeError_Bolt12ParseImplCopyWith<_$FfiNodeError_Bolt12ParseImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc -abstract class _$$LdkNodeError_InvoiceRequestCreationFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_InvoiceRequestCreationFailedImplCopyWith( - _$LdkNodeError_InvoiceRequestCreationFailedImpl value, - $Res Function(_$LdkNodeError_InvoiceRequestCreationFailedImpl) then) = - __$$LdkNodeError_InvoiceRequestCreationFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvoiceRequestCreationFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_InvoiceRequestCreationFailedImplCopyWith( + _$FfiNodeError_InvoiceRequestCreationFailedImpl value, + $Res Function(_$FfiNodeError_InvoiceRequestCreationFailedImpl) then) = + __$$FfiNodeError_InvoiceRequestCreationFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvoiceRequestCreationFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_InvoiceRequestCreationFailedImpl> - implements _$$LdkNodeError_InvoiceRequestCreationFailedImplCopyWith<$Res> { - __$$LdkNodeError_InvoiceRequestCreationFailedImplCopyWithImpl( - _$LdkNodeError_InvoiceRequestCreationFailedImpl _value, - $Res Function(_$LdkNodeError_InvoiceRequestCreationFailedImpl) _then) +class __$$FfiNodeError_InvoiceRequestCreationFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvoiceRequestCreationFailedImpl> + implements _$$FfiNodeError_InvoiceRequestCreationFailedImplCopyWith<$Res> { + __$$FfiNodeError_InvoiceRequestCreationFailedImplCopyWithImpl( + _$FfiNodeError_InvoiceRequestCreationFailedImpl _value, + $Res Function(_$FfiNodeError_InvoiceRequestCreationFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvoiceRequestCreationFailedImpl - extends LdkNodeError_InvoiceRequestCreationFailed { - const _$LdkNodeError_InvoiceRequestCreationFailedImpl() : super._(); +class _$FfiNodeError_InvoiceRequestCreationFailedImpl + extends FfiNodeError_InvoiceRequestCreationFailed { + const _$FfiNodeError_InvoiceRequestCreationFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.invoiceRequestCreationFailed()'; + return 'FfiNodeError.invoiceRequestCreationFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvoiceRequestCreationFailedImpl); + other is _$FfiNodeError_InvoiceRequestCreationFailedImpl); } @override @@ -20555,6 +21657,10 @@ class _$LdkNodeError_InvoiceRequestCreationFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invoiceRequestCreationFailed(); } @@ -20611,6 +21717,10 @@ class _$LdkNodeError_InvoiceRequestCreationFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invoiceRequestCreationFailed?.call(); } @@ -20667,6 +21777,10 @@ class _$LdkNodeError_InvoiceRequestCreationFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invoiceRequestCreationFailed != null) { @@ -20678,89 +21792,96 @@ class _$LdkNodeError_InvoiceRequestCreationFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invoiceRequestCreationFailed(this); } @@ -20768,81 +21889,86 @@ class _$LdkNodeError_InvoiceRequestCreationFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invoiceRequestCreationFailed?.call(this); } @@ -20850,78 +21976,83 @@ class _$LdkNodeError_InvoiceRequestCreationFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invoiceRequestCreationFailed != null) { @@ -20931,47 +22062,47 @@ class _$LdkNodeError_InvoiceRequestCreationFailedImpl } } -abstract class LdkNodeError_InvoiceRequestCreationFailed extends LdkNodeError { - const factory LdkNodeError_InvoiceRequestCreationFailed() = - _$LdkNodeError_InvoiceRequestCreationFailedImpl; - const LdkNodeError_InvoiceRequestCreationFailed._() : super._(); +abstract class FfiNodeError_InvoiceRequestCreationFailed extends FfiNodeError { + const factory FfiNodeError_InvoiceRequestCreationFailed() = + _$FfiNodeError_InvoiceRequestCreationFailedImpl; + const FfiNodeError_InvoiceRequestCreationFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_OfferCreationFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_OfferCreationFailedImplCopyWith( - _$LdkNodeError_OfferCreationFailedImpl value, - $Res Function(_$LdkNodeError_OfferCreationFailedImpl) then) = - __$$LdkNodeError_OfferCreationFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_OfferCreationFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_OfferCreationFailedImplCopyWith( + _$FfiNodeError_OfferCreationFailedImpl value, + $Res Function(_$FfiNodeError_OfferCreationFailedImpl) then) = + __$$FfiNodeError_OfferCreationFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_OfferCreationFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_OfferCreationFailedImpl> - implements _$$LdkNodeError_OfferCreationFailedImplCopyWith<$Res> { - __$$LdkNodeError_OfferCreationFailedImplCopyWithImpl( - _$LdkNodeError_OfferCreationFailedImpl _value, - $Res Function(_$LdkNodeError_OfferCreationFailedImpl) _then) +class __$$FfiNodeError_OfferCreationFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_OfferCreationFailedImpl> + implements _$$FfiNodeError_OfferCreationFailedImplCopyWith<$Res> { + __$$FfiNodeError_OfferCreationFailedImplCopyWithImpl( + _$FfiNodeError_OfferCreationFailedImpl _value, + $Res Function(_$FfiNodeError_OfferCreationFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_OfferCreationFailedImpl - extends LdkNodeError_OfferCreationFailed { - const _$LdkNodeError_OfferCreationFailedImpl() : super._(); +class _$FfiNodeError_OfferCreationFailedImpl + extends FfiNodeError_OfferCreationFailed { + const _$FfiNodeError_OfferCreationFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.offerCreationFailed()'; + return 'FfiNodeError.offerCreationFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_OfferCreationFailedImpl); + other is _$FfiNodeError_OfferCreationFailedImpl); } @override @@ -21029,6 +22160,10 @@ class _$LdkNodeError_OfferCreationFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return offerCreationFailed(); } @@ -21085,6 +22220,10 @@ class _$LdkNodeError_OfferCreationFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return offerCreationFailed?.call(); } @@ -21141,6 +22280,10 @@ class _$LdkNodeError_OfferCreationFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (offerCreationFailed != null) { @@ -21152,89 +22295,96 @@ class _$LdkNodeError_OfferCreationFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return offerCreationFailed(this); } @@ -21242,81 +22392,86 @@ class _$LdkNodeError_OfferCreationFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return offerCreationFailed?.call(this); } @@ -21324,78 +22479,83 @@ class _$LdkNodeError_OfferCreationFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (offerCreationFailed != null) { @@ -21405,47 +22565,47 @@ class _$LdkNodeError_OfferCreationFailedImpl } } -abstract class LdkNodeError_OfferCreationFailed extends LdkNodeError { - const factory LdkNodeError_OfferCreationFailed() = - _$LdkNodeError_OfferCreationFailedImpl; - const LdkNodeError_OfferCreationFailed._() : super._(); +abstract class FfiNodeError_OfferCreationFailed extends FfiNodeError { + const factory FfiNodeError_OfferCreationFailed() = + _$FfiNodeError_OfferCreationFailedImpl; + const FfiNodeError_OfferCreationFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_RefundCreationFailedImplCopyWith<$Res> { - factory _$$LdkNodeError_RefundCreationFailedImplCopyWith( - _$LdkNodeError_RefundCreationFailedImpl value, - $Res Function(_$LdkNodeError_RefundCreationFailedImpl) then) = - __$$LdkNodeError_RefundCreationFailedImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_RefundCreationFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_RefundCreationFailedImplCopyWith( + _$FfiNodeError_RefundCreationFailedImpl value, + $Res Function(_$FfiNodeError_RefundCreationFailedImpl) then) = + __$$FfiNodeError_RefundCreationFailedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_RefundCreationFailedImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_RefundCreationFailedImpl> - implements _$$LdkNodeError_RefundCreationFailedImplCopyWith<$Res> { - __$$LdkNodeError_RefundCreationFailedImplCopyWithImpl( - _$LdkNodeError_RefundCreationFailedImpl _value, - $Res Function(_$LdkNodeError_RefundCreationFailedImpl) _then) +class __$$FfiNodeError_RefundCreationFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_RefundCreationFailedImpl> + implements _$$FfiNodeError_RefundCreationFailedImplCopyWith<$Res> { + __$$FfiNodeError_RefundCreationFailedImplCopyWithImpl( + _$FfiNodeError_RefundCreationFailedImpl _value, + $Res Function(_$FfiNodeError_RefundCreationFailedImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_RefundCreationFailedImpl - extends LdkNodeError_RefundCreationFailed { - const _$LdkNodeError_RefundCreationFailedImpl() : super._(); +class _$FfiNodeError_RefundCreationFailedImpl + extends FfiNodeError_RefundCreationFailed { + const _$FfiNodeError_RefundCreationFailedImpl() : super._(); @override String toString() { - return 'LdkNodeError.refundCreationFailed()'; + return 'FfiNodeError.refundCreationFailed()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_RefundCreationFailedImpl); + other is _$FfiNodeError_RefundCreationFailedImpl); } @override @@ -21503,6 +22663,10 @@ class _$LdkNodeError_RefundCreationFailedImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return refundCreationFailed(); } @@ -21559,6 +22723,10 @@ class _$LdkNodeError_RefundCreationFailedImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return refundCreationFailed?.call(); } @@ -21615,6 +22783,10 @@ class _$LdkNodeError_RefundCreationFailedImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (refundCreationFailed != null) { @@ -21626,89 +22798,96 @@ class _$LdkNodeError_RefundCreationFailedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return refundCreationFailed(this); } @@ -21716,81 +22895,86 @@ class _$LdkNodeError_RefundCreationFailedImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return refundCreationFailed?.call(this); } @@ -21798,78 +22982,83 @@ class _$LdkNodeError_RefundCreationFailedImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (refundCreationFailed != null) { @@ -21879,50 +23068,50 @@ class _$LdkNodeError_RefundCreationFailedImpl } } -abstract class LdkNodeError_RefundCreationFailed extends LdkNodeError { - const factory LdkNodeError_RefundCreationFailed() = - _$LdkNodeError_RefundCreationFailedImpl; - const LdkNodeError_RefundCreationFailed._() : super._(); +abstract class FfiNodeError_RefundCreationFailed extends FfiNodeError { + const factory FfiNodeError_RefundCreationFailed() = + _$FfiNodeError_RefundCreationFailedImpl; + const FfiNodeError_RefundCreationFailed._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_FeerateEstimationUpdateTimeoutImplCopyWith< +abstract class _$$FfiNodeError_FeerateEstimationUpdateTimeoutImplCopyWith< $Res> { - factory _$$LdkNodeError_FeerateEstimationUpdateTimeoutImplCopyWith( - _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl value, - $Res Function(_$LdkNodeError_FeerateEstimationUpdateTimeoutImpl) + factory _$$FfiNodeError_FeerateEstimationUpdateTimeoutImplCopyWith( + _$FfiNodeError_FeerateEstimationUpdateTimeoutImpl value, + $Res Function(_$FfiNodeError_FeerateEstimationUpdateTimeoutImpl) then) = - __$$LdkNodeError_FeerateEstimationUpdateTimeoutImplCopyWithImpl<$Res>; + __$$FfiNodeError_FeerateEstimationUpdateTimeoutImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_FeerateEstimationUpdateTimeoutImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl> +class __$$FfiNodeError_FeerateEstimationUpdateTimeoutImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_FeerateEstimationUpdateTimeoutImpl> implements - _$$LdkNodeError_FeerateEstimationUpdateTimeoutImplCopyWith<$Res> { - __$$LdkNodeError_FeerateEstimationUpdateTimeoutImplCopyWithImpl( - _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl _value, - $Res Function(_$LdkNodeError_FeerateEstimationUpdateTimeoutImpl) _then) + _$$FfiNodeError_FeerateEstimationUpdateTimeoutImplCopyWith<$Res> { + __$$FfiNodeError_FeerateEstimationUpdateTimeoutImplCopyWithImpl( + _$FfiNodeError_FeerateEstimationUpdateTimeoutImpl _value, + $Res Function(_$FfiNodeError_FeerateEstimationUpdateTimeoutImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl - extends LdkNodeError_FeerateEstimationUpdateTimeout { - const _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl() : super._(); +class _$FfiNodeError_FeerateEstimationUpdateTimeoutImpl + extends FfiNodeError_FeerateEstimationUpdateTimeout { + const _$FfiNodeError_FeerateEstimationUpdateTimeoutImpl() : super._(); @override String toString() { - return 'LdkNodeError.feerateEstimationUpdateTimeout()'; + return 'FfiNodeError.feerateEstimationUpdateTimeout()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl); + other is _$FfiNodeError_FeerateEstimationUpdateTimeoutImpl); } @override @@ -21980,6 +23169,10 @@ class _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return feerateEstimationUpdateTimeout(); } @@ -22036,6 +23229,10 @@ class _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return feerateEstimationUpdateTimeout?.call(); } @@ -22092,6 +23289,10 @@ class _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (feerateEstimationUpdateTimeout != null) { @@ -22103,89 +23304,96 @@ class _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return feerateEstimationUpdateTimeout(this); } @@ -22193,81 +23401,86 @@ class _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return feerateEstimationUpdateTimeout?.call(this); } @@ -22275,78 +23488,83 @@ class _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (feerateEstimationUpdateTimeout != null) { @@ -22356,48 +23574,48 @@ class _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl } } -abstract class LdkNodeError_FeerateEstimationUpdateTimeout - extends LdkNodeError { - const factory LdkNodeError_FeerateEstimationUpdateTimeout() = - _$LdkNodeError_FeerateEstimationUpdateTimeoutImpl; - const LdkNodeError_FeerateEstimationUpdateTimeout._() : super._(); +abstract class FfiNodeError_FeerateEstimationUpdateTimeout + extends FfiNodeError { + const factory FfiNodeError_FeerateEstimationUpdateTimeout() = + _$FfiNodeError_FeerateEstimationUpdateTimeoutImpl; + const FfiNodeError_FeerateEstimationUpdateTimeout._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_WalletOperationTimeoutImplCopyWith<$Res> { - factory _$$LdkNodeError_WalletOperationTimeoutImplCopyWith( - _$LdkNodeError_WalletOperationTimeoutImpl value, - $Res Function(_$LdkNodeError_WalletOperationTimeoutImpl) then) = - __$$LdkNodeError_WalletOperationTimeoutImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_WalletOperationTimeoutImplCopyWith<$Res> { + factory _$$FfiNodeError_WalletOperationTimeoutImplCopyWith( + _$FfiNodeError_WalletOperationTimeoutImpl value, + $Res Function(_$FfiNodeError_WalletOperationTimeoutImpl) then) = + __$$FfiNodeError_WalletOperationTimeoutImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_WalletOperationTimeoutImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_WalletOperationTimeoutImpl> - implements _$$LdkNodeError_WalletOperationTimeoutImplCopyWith<$Res> { - __$$LdkNodeError_WalletOperationTimeoutImplCopyWithImpl( - _$LdkNodeError_WalletOperationTimeoutImpl _value, - $Res Function(_$LdkNodeError_WalletOperationTimeoutImpl) _then) +class __$$FfiNodeError_WalletOperationTimeoutImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_WalletOperationTimeoutImpl> + implements _$$FfiNodeError_WalletOperationTimeoutImplCopyWith<$Res> { + __$$FfiNodeError_WalletOperationTimeoutImplCopyWithImpl( + _$FfiNodeError_WalletOperationTimeoutImpl _value, + $Res Function(_$FfiNodeError_WalletOperationTimeoutImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_WalletOperationTimeoutImpl - extends LdkNodeError_WalletOperationTimeout { - const _$LdkNodeError_WalletOperationTimeoutImpl() : super._(); +class _$FfiNodeError_WalletOperationTimeoutImpl + extends FfiNodeError_WalletOperationTimeout { + const _$FfiNodeError_WalletOperationTimeoutImpl() : super._(); @override String toString() { - return 'LdkNodeError.walletOperationTimeout()'; + return 'FfiNodeError.walletOperationTimeout()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_WalletOperationTimeoutImpl); + other is _$FfiNodeError_WalletOperationTimeoutImpl); } @override @@ -22455,6 +23673,10 @@ class _$LdkNodeError_WalletOperationTimeoutImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return walletOperationTimeout(); } @@ -22511,6 +23733,10 @@ class _$LdkNodeError_WalletOperationTimeoutImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return walletOperationTimeout?.call(); } @@ -22567,6 +23793,10 @@ class _$LdkNodeError_WalletOperationTimeoutImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (walletOperationTimeout != null) { @@ -22578,89 +23808,96 @@ class _$LdkNodeError_WalletOperationTimeoutImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return walletOperationTimeout(this); } @@ -22668,81 +23905,86 @@ class _$LdkNodeError_WalletOperationTimeoutImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return walletOperationTimeout?.call(this); } @@ -22750,78 +23992,83 @@ class _$LdkNodeError_WalletOperationTimeoutImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (walletOperationTimeout != null) { @@ -22831,45 +24078,45 @@ class _$LdkNodeError_WalletOperationTimeoutImpl } } -abstract class LdkNodeError_WalletOperationTimeout extends LdkNodeError { - const factory LdkNodeError_WalletOperationTimeout() = - _$LdkNodeError_WalletOperationTimeoutImpl; - const LdkNodeError_WalletOperationTimeout._() : super._(); +abstract class FfiNodeError_WalletOperationTimeout extends FfiNodeError { + const factory FfiNodeError_WalletOperationTimeout() = + _$FfiNodeError_WalletOperationTimeoutImpl; + const FfiNodeError_WalletOperationTimeout._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_TxSyncTimeoutImplCopyWith<$Res> { - factory _$$LdkNodeError_TxSyncTimeoutImplCopyWith( - _$LdkNodeError_TxSyncTimeoutImpl value, - $Res Function(_$LdkNodeError_TxSyncTimeoutImpl) then) = - __$$LdkNodeError_TxSyncTimeoutImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_TxSyncTimeoutImplCopyWith<$Res> { + factory _$$FfiNodeError_TxSyncTimeoutImplCopyWith( + _$FfiNodeError_TxSyncTimeoutImpl value, + $Res Function(_$FfiNodeError_TxSyncTimeoutImpl) then) = + __$$FfiNodeError_TxSyncTimeoutImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_TxSyncTimeoutImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_TxSyncTimeoutImpl> - implements _$$LdkNodeError_TxSyncTimeoutImplCopyWith<$Res> { - __$$LdkNodeError_TxSyncTimeoutImplCopyWithImpl( - _$LdkNodeError_TxSyncTimeoutImpl _value, - $Res Function(_$LdkNodeError_TxSyncTimeoutImpl) _then) +class __$$FfiNodeError_TxSyncTimeoutImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_TxSyncTimeoutImpl> + implements _$$FfiNodeError_TxSyncTimeoutImplCopyWith<$Res> { + __$$FfiNodeError_TxSyncTimeoutImplCopyWithImpl( + _$FfiNodeError_TxSyncTimeoutImpl _value, + $Res Function(_$FfiNodeError_TxSyncTimeoutImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_TxSyncTimeoutImpl extends LdkNodeError_TxSyncTimeout { - const _$LdkNodeError_TxSyncTimeoutImpl() : super._(); +class _$FfiNodeError_TxSyncTimeoutImpl extends FfiNodeError_TxSyncTimeout { + const _$FfiNodeError_TxSyncTimeoutImpl() : super._(); @override String toString() { - return 'LdkNodeError.txSyncTimeout()'; + return 'FfiNodeError.txSyncTimeout()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_TxSyncTimeoutImpl); + other is _$FfiNodeError_TxSyncTimeoutImpl); } @override @@ -22927,6 +24174,10 @@ class _$LdkNodeError_TxSyncTimeoutImpl extends LdkNodeError_TxSyncTimeout { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return txSyncTimeout(); } @@ -22983,6 +24234,10 @@ class _$LdkNodeError_TxSyncTimeoutImpl extends LdkNodeError_TxSyncTimeout { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return txSyncTimeout?.call(); } @@ -23039,6 +24294,10 @@ class _$LdkNodeError_TxSyncTimeoutImpl extends LdkNodeError_TxSyncTimeout { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (txSyncTimeout != null) { @@ -23050,89 +24309,96 @@ class _$LdkNodeError_TxSyncTimeoutImpl extends LdkNodeError_TxSyncTimeout { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return txSyncTimeout(this); } @@ -23140,81 +24406,86 @@ class _$LdkNodeError_TxSyncTimeoutImpl extends LdkNodeError_TxSyncTimeout { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return txSyncTimeout?.call(this); } @@ -23222,78 +24493,83 @@ class _$LdkNodeError_TxSyncTimeoutImpl extends LdkNodeError_TxSyncTimeout { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (txSyncTimeout != null) { @@ -23303,46 +24579,46 @@ class _$LdkNodeError_TxSyncTimeoutImpl extends LdkNodeError_TxSyncTimeout { } } -abstract class LdkNodeError_TxSyncTimeout extends LdkNodeError { - const factory LdkNodeError_TxSyncTimeout() = _$LdkNodeError_TxSyncTimeoutImpl; - const LdkNodeError_TxSyncTimeout._() : super._(); +abstract class FfiNodeError_TxSyncTimeout extends FfiNodeError { + const factory FfiNodeError_TxSyncTimeout() = _$FfiNodeError_TxSyncTimeoutImpl; + const FfiNodeError_TxSyncTimeout._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_GossipUpdateTimeoutImplCopyWith<$Res> { - factory _$$LdkNodeError_GossipUpdateTimeoutImplCopyWith( - _$LdkNodeError_GossipUpdateTimeoutImpl value, - $Res Function(_$LdkNodeError_GossipUpdateTimeoutImpl) then) = - __$$LdkNodeError_GossipUpdateTimeoutImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_GossipUpdateTimeoutImplCopyWith<$Res> { + factory _$$FfiNodeError_GossipUpdateTimeoutImplCopyWith( + _$FfiNodeError_GossipUpdateTimeoutImpl value, + $Res Function(_$FfiNodeError_GossipUpdateTimeoutImpl) then) = + __$$FfiNodeError_GossipUpdateTimeoutImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_GossipUpdateTimeoutImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_GossipUpdateTimeoutImpl> - implements _$$LdkNodeError_GossipUpdateTimeoutImplCopyWith<$Res> { - __$$LdkNodeError_GossipUpdateTimeoutImplCopyWithImpl( - _$LdkNodeError_GossipUpdateTimeoutImpl _value, - $Res Function(_$LdkNodeError_GossipUpdateTimeoutImpl) _then) +class __$$FfiNodeError_GossipUpdateTimeoutImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_GossipUpdateTimeoutImpl> + implements _$$FfiNodeError_GossipUpdateTimeoutImplCopyWith<$Res> { + __$$FfiNodeError_GossipUpdateTimeoutImplCopyWithImpl( + _$FfiNodeError_GossipUpdateTimeoutImpl _value, + $Res Function(_$FfiNodeError_GossipUpdateTimeoutImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_GossipUpdateTimeoutImpl - extends LdkNodeError_GossipUpdateTimeout { - const _$LdkNodeError_GossipUpdateTimeoutImpl() : super._(); +class _$FfiNodeError_GossipUpdateTimeoutImpl + extends FfiNodeError_GossipUpdateTimeout { + const _$FfiNodeError_GossipUpdateTimeoutImpl() : super._(); @override String toString() { - return 'LdkNodeError.gossipUpdateTimeout()'; + return 'FfiNodeError.gossipUpdateTimeout()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_GossipUpdateTimeoutImpl); + other is _$FfiNodeError_GossipUpdateTimeoutImpl); } @override @@ -23400,6 +24676,10 @@ class _$LdkNodeError_GossipUpdateTimeoutImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return gossipUpdateTimeout(); } @@ -23456,6 +24736,10 @@ class _$LdkNodeError_GossipUpdateTimeoutImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return gossipUpdateTimeout?.call(); } @@ -23512,6 +24796,10 @@ class _$LdkNodeError_GossipUpdateTimeoutImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (gossipUpdateTimeout != null) { @@ -23523,89 +24811,96 @@ class _$LdkNodeError_GossipUpdateTimeoutImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return gossipUpdateTimeout(this); } @@ -23613,81 +24908,86 @@ class _$LdkNodeError_GossipUpdateTimeoutImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return gossipUpdateTimeout?.call(this); } @@ -23695,78 +24995,83 @@ class _$LdkNodeError_GossipUpdateTimeoutImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (gossipUpdateTimeout != null) { @@ -23776,45 +25081,45 @@ class _$LdkNodeError_GossipUpdateTimeoutImpl } } -abstract class LdkNodeError_GossipUpdateTimeout extends LdkNodeError { - const factory LdkNodeError_GossipUpdateTimeout() = - _$LdkNodeError_GossipUpdateTimeoutImpl; - const LdkNodeError_GossipUpdateTimeout._() : super._(); +abstract class FfiNodeError_GossipUpdateTimeout extends FfiNodeError { + const factory FfiNodeError_GossipUpdateTimeout() = + _$FfiNodeError_GossipUpdateTimeoutImpl; + const FfiNodeError_GossipUpdateTimeout._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidOfferIdImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidOfferIdImplCopyWith( - _$LdkNodeError_InvalidOfferIdImpl value, - $Res Function(_$LdkNodeError_InvalidOfferIdImpl) then) = - __$$LdkNodeError_InvalidOfferIdImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidOfferIdImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidOfferIdImplCopyWith( + _$FfiNodeError_InvalidOfferIdImpl value, + $Res Function(_$FfiNodeError_InvalidOfferIdImpl) then) = + __$$FfiNodeError_InvalidOfferIdImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidOfferIdImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_InvalidOfferIdImpl> - implements _$$LdkNodeError_InvalidOfferIdImplCopyWith<$Res> { - __$$LdkNodeError_InvalidOfferIdImplCopyWithImpl( - _$LdkNodeError_InvalidOfferIdImpl _value, - $Res Function(_$LdkNodeError_InvalidOfferIdImpl) _then) +class __$$FfiNodeError_InvalidOfferIdImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidOfferIdImpl> + implements _$$FfiNodeError_InvalidOfferIdImplCopyWith<$Res> { + __$$FfiNodeError_InvalidOfferIdImplCopyWithImpl( + _$FfiNodeError_InvalidOfferIdImpl _value, + $Res Function(_$FfiNodeError_InvalidOfferIdImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidOfferIdImpl extends LdkNodeError_InvalidOfferId { - const _$LdkNodeError_InvalidOfferIdImpl() : super._(); +class _$FfiNodeError_InvalidOfferIdImpl extends FfiNodeError_InvalidOfferId { + const _$FfiNodeError_InvalidOfferIdImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidOfferId()'; + return 'FfiNodeError.invalidOfferId()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidOfferIdImpl); + other is _$FfiNodeError_InvalidOfferIdImpl); } @override @@ -23872,6 +25177,10 @@ class _$LdkNodeError_InvalidOfferIdImpl extends LdkNodeError_InvalidOfferId { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidOfferId(); } @@ -23928,6 +25237,10 @@ class _$LdkNodeError_InvalidOfferIdImpl extends LdkNodeError_InvalidOfferId { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidOfferId?.call(); } @@ -23984,6 +25297,10 @@ class _$LdkNodeError_InvalidOfferIdImpl extends LdkNodeError_InvalidOfferId { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidOfferId != null) { @@ -23995,89 +25312,96 @@ class _$LdkNodeError_InvalidOfferIdImpl extends LdkNodeError_InvalidOfferId { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidOfferId(this); } @@ -24085,81 +25409,86 @@ class _$LdkNodeError_InvalidOfferIdImpl extends LdkNodeError_InvalidOfferId { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidOfferId?.call(this); } @@ -24167,78 +25496,83 @@ class _$LdkNodeError_InvalidOfferIdImpl extends LdkNodeError_InvalidOfferId { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidOfferId != null) { @@ -24248,45 +25582,45 @@ class _$LdkNodeError_InvalidOfferIdImpl extends LdkNodeError_InvalidOfferId { } } -abstract class LdkNodeError_InvalidOfferId extends LdkNodeError { - const factory LdkNodeError_InvalidOfferId() = - _$LdkNodeError_InvalidOfferIdImpl; - const LdkNodeError_InvalidOfferId._() : super._(); +abstract class FfiNodeError_InvalidOfferId extends FfiNodeError { + const factory FfiNodeError_InvalidOfferId() = + _$FfiNodeError_InvalidOfferIdImpl; + const FfiNodeError_InvalidOfferId._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidNodeIdImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidNodeIdImplCopyWith( - _$LdkNodeError_InvalidNodeIdImpl value, - $Res Function(_$LdkNodeError_InvalidNodeIdImpl) then) = - __$$LdkNodeError_InvalidNodeIdImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidNodeIdImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidNodeIdImplCopyWith( + _$FfiNodeError_InvalidNodeIdImpl value, + $Res Function(_$FfiNodeError_InvalidNodeIdImpl) then) = + __$$FfiNodeError_InvalidNodeIdImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidNodeIdImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_InvalidNodeIdImpl> - implements _$$LdkNodeError_InvalidNodeIdImplCopyWith<$Res> { - __$$LdkNodeError_InvalidNodeIdImplCopyWithImpl( - _$LdkNodeError_InvalidNodeIdImpl _value, - $Res Function(_$LdkNodeError_InvalidNodeIdImpl) _then) +class __$$FfiNodeError_InvalidNodeIdImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidNodeIdImpl> + implements _$$FfiNodeError_InvalidNodeIdImplCopyWith<$Res> { + __$$FfiNodeError_InvalidNodeIdImplCopyWithImpl( + _$FfiNodeError_InvalidNodeIdImpl _value, + $Res Function(_$FfiNodeError_InvalidNodeIdImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidNodeIdImpl extends LdkNodeError_InvalidNodeId { - const _$LdkNodeError_InvalidNodeIdImpl() : super._(); +class _$FfiNodeError_InvalidNodeIdImpl extends FfiNodeError_InvalidNodeId { + const _$FfiNodeError_InvalidNodeIdImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidNodeId()'; + return 'FfiNodeError.invalidNodeId()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidNodeIdImpl); + other is _$FfiNodeError_InvalidNodeIdImpl); } @override @@ -24344,6 +25678,10 @@ class _$LdkNodeError_InvalidNodeIdImpl extends LdkNodeError_InvalidNodeId { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidNodeId(); } @@ -24400,6 +25738,10 @@ class _$LdkNodeError_InvalidNodeIdImpl extends LdkNodeError_InvalidNodeId { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidNodeId?.call(); } @@ -24456,6 +25798,10 @@ class _$LdkNodeError_InvalidNodeIdImpl extends LdkNodeError_InvalidNodeId { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidNodeId != null) { @@ -24467,89 +25813,96 @@ class _$LdkNodeError_InvalidNodeIdImpl extends LdkNodeError_InvalidNodeId { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidNodeId(this); } @@ -24557,81 +25910,86 @@ class _$LdkNodeError_InvalidNodeIdImpl extends LdkNodeError_InvalidNodeId { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidNodeId?.call(this); } @@ -24639,78 +25997,83 @@ class _$LdkNodeError_InvalidNodeIdImpl extends LdkNodeError_InvalidNodeId { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidNodeId != null) { @@ -24720,44 +26083,44 @@ class _$LdkNodeError_InvalidNodeIdImpl extends LdkNodeError_InvalidNodeId { } } -abstract class LdkNodeError_InvalidNodeId extends LdkNodeError { - const factory LdkNodeError_InvalidNodeId() = _$LdkNodeError_InvalidNodeIdImpl; - const LdkNodeError_InvalidNodeId._() : super._(); +abstract class FfiNodeError_InvalidNodeId extends FfiNodeError { + const factory FfiNodeError_InvalidNodeId() = _$FfiNodeError_InvalidNodeIdImpl; + const FfiNodeError_InvalidNodeId._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidOfferImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidOfferImplCopyWith( - _$LdkNodeError_InvalidOfferImpl value, - $Res Function(_$LdkNodeError_InvalidOfferImpl) then) = - __$$LdkNodeError_InvalidOfferImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidOfferImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidOfferImplCopyWith( + _$FfiNodeError_InvalidOfferImpl value, + $Res Function(_$FfiNodeError_InvalidOfferImpl) then) = + __$$FfiNodeError_InvalidOfferImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidOfferImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_InvalidOfferImpl> - implements _$$LdkNodeError_InvalidOfferImplCopyWith<$Res> { - __$$LdkNodeError_InvalidOfferImplCopyWithImpl( - _$LdkNodeError_InvalidOfferImpl _value, - $Res Function(_$LdkNodeError_InvalidOfferImpl) _then) +class __$$FfiNodeError_InvalidOfferImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidOfferImpl> + implements _$$FfiNodeError_InvalidOfferImplCopyWith<$Res> { + __$$FfiNodeError_InvalidOfferImplCopyWithImpl( + _$FfiNodeError_InvalidOfferImpl _value, + $Res Function(_$FfiNodeError_InvalidOfferImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidOfferImpl extends LdkNodeError_InvalidOffer { - const _$LdkNodeError_InvalidOfferImpl() : super._(); +class _$FfiNodeError_InvalidOfferImpl extends FfiNodeError_InvalidOffer { + const _$FfiNodeError_InvalidOfferImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidOffer()'; + return 'FfiNodeError.invalidOffer()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidOfferImpl); + other is _$FfiNodeError_InvalidOfferImpl); } @override @@ -24815,6 +26178,10 @@ class _$LdkNodeError_InvalidOfferImpl extends LdkNodeError_InvalidOffer { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidOffer(); } @@ -24871,6 +26238,10 @@ class _$LdkNodeError_InvalidOfferImpl extends LdkNodeError_InvalidOffer { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidOffer?.call(); } @@ -24927,6 +26298,10 @@ class _$LdkNodeError_InvalidOfferImpl extends LdkNodeError_InvalidOffer { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidOffer != null) { @@ -24938,89 +26313,96 @@ class _$LdkNodeError_InvalidOfferImpl extends LdkNodeError_InvalidOffer { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidOffer(this); } @@ -25028,81 +26410,86 @@ class _$LdkNodeError_InvalidOfferImpl extends LdkNodeError_InvalidOffer { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidOffer?.call(this); } @@ -25110,78 +26497,83 @@ class _$LdkNodeError_InvalidOfferImpl extends LdkNodeError_InvalidOffer { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidOffer != null) { @@ -25191,44 +26583,44 @@ class _$LdkNodeError_InvalidOfferImpl extends LdkNodeError_InvalidOffer { } } -abstract class LdkNodeError_InvalidOffer extends LdkNodeError { - const factory LdkNodeError_InvalidOffer() = _$LdkNodeError_InvalidOfferImpl; - const LdkNodeError_InvalidOffer._() : super._(); +abstract class FfiNodeError_InvalidOffer extends FfiNodeError { + const factory FfiNodeError_InvalidOffer() = _$FfiNodeError_InvalidOfferImpl; + const FfiNodeError_InvalidOffer._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_InvalidRefundImplCopyWith<$Res> { - factory _$$LdkNodeError_InvalidRefundImplCopyWith( - _$LdkNodeError_InvalidRefundImpl value, - $Res Function(_$LdkNodeError_InvalidRefundImpl) then) = - __$$LdkNodeError_InvalidRefundImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_InvalidRefundImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidRefundImplCopyWith( + _$FfiNodeError_InvalidRefundImpl value, + $Res Function(_$FfiNodeError_InvalidRefundImpl) then) = + __$$FfiNodeError_InvalidRefundImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_InvalidRefundImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, _$LdkNodeError_InvalidRefundImpl> - implements _$$LdkNodeError_InvalidRefundImplCopyWith<$Res> { - __$$LdkNodeError_InvalidRefundImplCopyWithImpl( - _$LdkNodeError_InvalidRefundImpl _value, - $Res Function(_$LdkNodeError_InvalidRefundImpl) _then) +class __$$FfiNodeError_InvalidRefundImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidRefundImpl> + implements _$$FfiNodeError_InvalidRefundImplCopyWith<$Res> { + __$$FfiNodeError_InvalidRefundImplCopyWithImpl( + _$FfiNodeError_InvalidRefundImpl _value, + $Res Function(_$FfiNodeError_InvalidRefundImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_InvalidRefundImpl extends LdkNodeError_InvalidRefund { - const _$LdkNodeError_InvalidRefundImpl() : super._(); +class _$FfiNodeError_InvalidRefundImpl extends FfiNodeError_InvalidRefund { + const _$FfiNodeError_InvalidRefundImpl() : super._(); @override String toString() { - return 'LdkNodeError.invalidRefund()'; + return 'FfiNodeError.invalidRefund()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_InvalidRefundImpl); + other is _$FfiNodeError_InvalidRefundImpl); } @override @@ -25286,6 +26678,10 @@ class _$LdkNodeError_InvalidRefundImpl extends LdkNodeError_InvalidRefund { required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return invalidRefund(); } @@ -25342,6 +26738,10 @@ class _$LdkNodeError_InvalidRefundImpl extends LdkNodeError_InvalidRefund { TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return invalidRefund?.call(); } @@ -25398,6 +26798,10 @@ class _$LdkNodeError_InvalidRefundImpl extends LdkNodeError_InvalidRefund { TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (invalidRefund != null) { @@ -25409,89 +26813,96 @@ class _$LdkNodeError_InvalidRefundImpl extends LdkNodeError_InvalidRefund { @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return invalidRefund(this); } @@ -25499,81 +26910,86 @@ class _$LdkNodeError_InvalidRefundImpl extends LdkNodeError_InvalidRefund { @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return invalidRefund?.call(this); } @@ -25581,78 +26997,83 @@ class _$LdkNodeError_InvalidRefundImpl extends LdkNodeError_InvalidRefund { @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (invalidRefund != null) { @@ -25662,46 +27083,46 @@ class _$LdkNodeError_InvalidRefundImpl extends LdkNodeError_InvalidRefund { } } -abstract class LdkNodeError_InvalidRefund extends LdkNodeError { - const factory LdkNodeError_InvalidRefund() = _$LdkNodeError_InvalidRefundImpl; - const LdkNodeError_InvalidRefund._() : super._(); +abstract class FfiNodeError_InvalidRefund extends FfiNodeError { + const factory FfiNodeError_InvalidRefund() = _$FfiNodeError_InvalidRefundImpl; + const FfiNodeError_InvalidRefund._() : super._(); } /// @nodoc -abstract class _$$LdkNodeError_UnsupportedCurrencyImplCopyWith<$Res> { - factory _$$LdkNodeError_UnsupportedCurrencyImplCopyWith( - _$LdkNodeError_UnsupportedCurrencyImpl value, - $Res Function(_$LdkNodeError_UnsupportedCurrencyImpl) then) = - __$$LdkNodeError_UnsupportedCurrencyImplCopyWithImpl<$Res>; +abstract class _$$FfiNodeError_UnsupportedCurrencyImplCopyWith<$Res> { + factory _$$FfiNodeError_UnsupportedCurrencyImplCopyWith( + _$FfiNodeError_UnsupportedCurrencyImpl value, + $Res Function(_$FfiNodeError_UnsupportedCurrencyImpl) then) = + __$$FfiNodeError_UnsupportedCurrencyImplCopyWithImpl<$Res>; } /// @nodoc -class __$$LdkNodeError_UnsupportedCurrencyImplCopyWithImpl<$Res> - extends _$LdkNodeErrorCopyWithImpl<$Res, - _$LdkNodeError_UnsupportedCurrencyImpl> - implements _$$LdkNodeError_UnsupportedCurrencyImplCopyWith<$Res> { - __$$LdkNodeError_UnsupportedCurrencyImplCopyWithImpl( - _$LdkNodeError_UnsupportedCurrencyImpl _value, - $Res Function(_$LdkNodeError_UnsupportedCurrencyImpl) _then) +class __$$FfiNodeError_UnsupportedCurrencyImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_UnsupportedCurrencyImpl> + implements _$$FfiNodeError_UnsupportedCurrencyImplCopyWith<$Res> { + __$$FfiNodeError_UnsupportedCurrencyImplCopyWithImpl( + _$FfiNodeError_UnsupportedCurrencyImpl _value, + $Res Function(_$FfiNodeError_UnsupportedCurrencyImpl) _then) : super(_value, _then); } /// @nodoc -class _$LdkNodeError_UnsupportedCurrencyImpl - extends LdkNodeError_UnsupportedCurrency { - const _$LdkNodeError_UnsupportedCurrencyImpl() : super._(); +class _$FfiNodeError_UnsupportedCurrencyImpl + extends FfiNodeError_UnsupportedCurrency { + const _$FfiNodeError_UnsupportedCurrencyImpl() : super._(); @override String toString() { - return 'LdkNodeError.unsupportedCurrency()'; + return 'FfiNodeError.unsupportedCurrency()'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$LdkNodeError_UnsupportedCurrencyImpl); + other is _$FfiNodeError_UnsupportedCurrencyImpl); } @override @@ -25759,6 +27180,10 @@ class _$LdkNodeError_UnsupportedCurrencyImpl required TResult Function() invalidOffer, required TResult Function() invalidRefund, required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, }) { return unsupportedCurrency(); } @@ -25815,6 +27240,10 @@ class _$LdkNodeError_UnsupportedCurrencyImpl TResult? Function()? invalidOffer, TResult? Function()? invalidRefund, TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, }) { return unsupportedCurrency?.call(); } @@ -25871,6 +27300,10 @@ class _$LdkNodeError_UnsupportedCurrencyImpl TResult Function()? invalidOffer, TResult Function()? invalidRefund, TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, required TResult orElse(), }) { if (unsupportedCurrency != null) { @@ -25882,89 +27315,96 @@ class _$LdkNodeError_UnsupportedCurrencyImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LdkNodeError_InvalidTxid value) invalidTxid, - required TResult Function(LdkNodeError_AlreadyRunning value) alreadyRunning, - required TResult Function(LdkNodeError_NotRunning value) notRunning, - required TResult Function(LdkNodeError_OnchainTxCreationFailed value) + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) onchainTxCreationFailed, - required TResult Function(LdkNodeError_ConnectionFailed value) + required TResult Function(FfiNodeError_ConnectionFailed value) connectionFailed, - required TResult Function(LdkNodeError_InvoiceCreationFailed value) + required TResult Function(FfiNodeError_InvoiceCreationFailed value) invoiceCreationFailed, - required TResult Function(LdkNodeError_PaymentSendingFailed value) + required TResult Function(FfiNodeError_PaymentSendingFailed value) paymentSendingFailed, - required TResult Function(LdkNodeError_ProbeSendingFailed value) + required TResult Function(FfiNodeError_ProbeSendingFailed value) probeSendingFailed, - required TResult Function(LdkNodeError_ChannelCreationFailed value) + required TResult Function(FfiNodeError_ChannelCreationFailed value) channelCreationFailed, - required TResult Function(LdkNodeError_ChannelClosingFailed value) + required TResult Function(FfiNodeError_ChannelClosingFailed value) channelClosingFailed, - required TResult Function(LdkNodeError_ChannelConfigUpdateFailed value) + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) channelConfigUpdateFailed, - required TResult Function(LdkNodeError_PersistenceFailed value) + required TResult Function(FfiNodeError_PersistenceFailed value) persistenceFailed, - required TResult Function(LdkNodeError_WalletOperationFailed value) + required TResult Function(FfiNodeError_WalletOperationFailed value) walletOperationFailed, - required TResult Function(LdkNodeError_OnchainTxSigningFailed value) + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) onchainTxSigningFailed, - required TResult Function(LdkNodeError_MessageSigningFailed value) + required TResult Function(FfiNodeError_MessageSigningFailed value) messageSigningFailed, - required TResult Function(LdkNodeError_TxSyncFailed value) txSyncFailed, - required TResult Function(LdkNodeError_GossipUpdateFailed value) + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) gossipUpdateFailed, - required TResult Function(LdkNodeError_InvalidAddress value) invalidAddress, - required TResult Function(LdkNodeError_InvalidSocketAddress value) + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) invalidSocketAddress, - required TResult Function(LdkNodeError_InvalidPublicKey value) + required TResult Function(FfiNodeError_InvalidPublicKey value) invalidPublicKey, - required TResult Function(LdkNodeError_InvalidSecretKey value) + required TResult Function(FfiNodeError_InvalidSecretKey value) invalidSecretKey, - required TResult Function(LdkNodeError_InvalidPaymentHash value) + required TResult Function(FfiNodeError_InvalidPaymentHash value) invalidPaymentHash, - required TResult Function(LdkNodeError_InvalidPaymentPreimage value) + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) invalidPaymentPreimage, - required TResult Function(LdkNodeError_InvalidPaymentSecret value) + required TResult Function(FfiNodeError_InvalidPaymentSecret value) invalidPaymentSecret, - required TResult Function(LdkNodeError_InvalidAmount value) invalidAmount, - required TResult Function(LdkNodeError_InvalidInvoice value) invalidInvoice, - required TResult Function(LdkNodeError_InvalidChannelId value) + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) invalidChannelId, - required TResult Function(LdkNodeError_InvalidNetwork value) invalidNetwork, - required TResult Function(LdkNodeError_DuplicatePayment value) + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) duplicatePayment, - required TResult Function(LdkNodeError_InsufficientFunds value) + required TResult Function(FfiNodeError_InsufficientFunds value) insufficientFunds, - required TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) feerateEstimationUpdateFailed, - required TResult Function(LdkNodeError_LiquidityRequestFailed value) + required TResult Function(FfiNodeError_LiquidityRequestFailed value) liquidityRequestFailed, - required TResult Function(LdkNodeError_LiquiditySourceUnavailable value) + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) liquiditySourceUnavailable, - required TResult Function(LdkNodeError_LiquidityFeeTooHigh value) + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) liquidityFeeTooHigh, - required TResult Function(LdkNodeError_InvalidPaymentId value) + required TResult Function(FfiNodeError_InvalidPaymentId value) invalidPaymentId, - required TResult Function(LdkNodeError_Decode value) decode, - required TResult Function(LdkNodeError_Bolt12Parse value) bolt12Parse, - required TResult Function(LdkNodeError_InvoiceRequestCreationFailed value) + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) invoiceRequestCreationFailed, - required TResult Function(LdkNodeError_OfferCreationFailed value) + required TResult Function(FfiNodeError_OfferCreationFailed value) offerCreationFailed, - required TResult Function(LdkNodeError_RefundCreationFailed value) + required TResult Function(FfiNodeError_RefundCreationFailed value) refundCreationFailed, - required TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value) + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) feerateEstimationUpdateTimeout, - required TResult Function(LdkNodeError_WalletOperationTimeout value) + required TResult Function(FfiNodeError_WalletOperationTimeout value) walletOperationTimeout, - required TResult Function(LdkNodeError_TxSyncTimeout value) txSyncTimeout, - required TResult Function(LdkNodeError_GossipUpdateTimeout value) + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) gossipUpdateTimeout, - required TResult Function(LdkNodeError_InvalidOfferId value) invalidOfferId, - required TResult Function(LdkNodeError_InvalidNodeId value) invalidNodeId, - required TResult Function(LdkNodeError_InvalidOffer value) invalidOffer, - required TResult Function(LdkNodeError_InvalidRefund value) invalidRefund, - required TResult Function(LdkNodeError_UnsupportedCurrency value) + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, }) { return unsupportedCurrency(this); } @@ -25972,81 +27412,86 @@ class _$LdkNodeError_UnsupportedCurrencyImpl @override @optionalTypeArgs TResult? mapOrNull({ - TResult? Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult? Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult? Function(LdkNodeError_NotRunning value)? notRunning, - TResult? Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult? Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult? Function(LdkNodeError_InvoiceCreationFailed value)? + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult? Function(LdkNodeError_PaymentSendingFailed value)? + TResult? Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult? Function(LdkNodeError_ProbeSendingFailed value)? + TResult? Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult? Function(LdkNodeError_ChannelCreationFailed value)? + TResult? Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult? Function(LdkNodeError_ChannelClosingFailed value)? + TResult? Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult? Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult? Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult? Function(LdkNodeError_WalletOperationFailed value)? + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult? Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult? Function(LdkNodeError_MessageSigningFailed value)? + TResult? Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult? Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult? Function(LdkNodeError_GossipUpdateFailed value)? + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult? Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult? Function(LdkNodeError_InvalidSocketAddress value)? + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult? Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult? Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult? Function(LdkNodeError_InvalidPaymentHash value)? + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult? Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult? Function(LdkNodeError_InvalidPaymentSecret value)? + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult? Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult? Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult? Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult? Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult? Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult? Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult? Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult? Function(LdkNodeError_LiquidityRequestFailed value)? + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult? Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult? Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult? Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult? Function(LdkNodeError_Decode value)? decode, - TResult? Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult? Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult? Function(LdkNodeError_OfferCreationFailed value)? + TResult? Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult? Function(LdkNodeError_RefundCreationFailed value)? + TResult? Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult? Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult? Function(LdkNodeError_WalletOperationTimeout value)? + TResult? Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult? Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult? Function(LdkNodeError_GossipUpdateTimeout value)? + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult? Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult? Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult? Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult? Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult? Function(LdkNodeError_UnsupportedCurrency value)? + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, }) { return unsupportedCurrency?.call(this); } @@ -26054,78 +27499,83 @@ class _$LdkNodeError_UnsupportedCurrencyImpl @override @optionalTypeArgs TResult maybeMap({ - TResult Function(LdkNodeError_InvalidTxid value)? invalidTxid, - TResult Function(LdkNodeError_AlreadyRunning value)? alreadyRunning, - TResult Function(LdkNodeError_NotRunning value)? notRunning, - TResult Function(LdkNodeError_OnchainTxCreationFailed value)? + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? onchainTxCreationFailed, - TResult Function(LdkNodeError_ConnectionFailed value)? connectionFailed, - TResult Function(LdkNodeError_InvoiceCreationFailed value)? + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? invoiceCreationFailed, - TResult Function(LdkNodeError_PaymentSendingFailed value)? + TResult Function(FfiNodeError_PaymentSendingFailed value)? paymentSendingFailed, - TResult Function(LdkNodeError_ProbeSendingFailed value)? probeSendingFailed, - TResult Function(LdkNodeError_ChannelCreationFailed value)? + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? channelCreationFailed, - TResult Function(LdkNodeError_ChannelClosingFailed value)? + TResult Function(FfiNodeError_ChannelClosingFailed value)? channelClosingFailed, - TResult Function(LdkNodeError_ChannelConfigUpdateFailed value)? + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? channelConfigUpdateFailed, - TResult Function(LdkNodeError_PersistenceFailed value)? persistenceFailed, - TResult Function(LdkNodeError_WalletOperationFailed value)? + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? walletOperationFailed, - TResult Function(LdkNodeError_OnchainTxSigningFailed value)? + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? onchainTxSigningFailed, - TResult Function(LdkNodeError_MessageSigningFailed value)? + TResult Function(FfiNodeError_MessageSigningFailed value)? messageSigningFailed, - TResult Function(LdkNodeError_TxSyncFailed value)? txSyncFailed, - TResult Function(LdkNodeError_GossipUpdateFailed value)? gossipUpdateFailed, - TResult Function(LdkNodeError_InvalidAddress value)? invalidAddress, - TResult Function(LdkNodeError_InvalidSocketAddress value)? + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? invalidSocketAddress, - TResult Function(LdkNodeError_InvalidPublicKey value)? invalidPublicKey, - TResult Function(LdkNodeError_InvalidSecretKey value)? invalidSecretKey, - TResult Function(LdkNodeError_InvalidPaymentHash value)? invalidPaymentHash, - TResult Function(LdkNodeError_InvalidPaymentPreimage value)? + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? invalidPaymentPreimage, - TResult Function(LdkNodeError_InvalidPaymentSecret value)? + TResult Function(FfiNodeError_InvalidPaymentSecret value)? invalidPaymentSecret, - TResult Function(LdkNodeError_InvalidAmount value)? invalidAmount, - TResult Function(LdkNodeError_InvalidInvoice value)? invalidInvoice, - TResult Function(LdkNodeError_InvalidChannelId value)? invalidChannelId, - TResult Function(LdkNodeError_InvalidNetwork value)? invalidNetwork, - TResult Function(LdkNodeError_DuplicatePayment value)? duplicatePayment, - TResult Function(LdkNodeError_InsufficientFunds value)? insufficientFunds, - TResult Function(LdkNodeError_FeerateEstimationUpdateFailed value)? + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? feerateEstimationUpdateFailed, - TResult Function(LdkNodeError_LiquidityRequestFailed value)? + TResult Function(FfiNodeError_LiquidityRequestFailed value)? liquidityRequestFailed, - TResult Function(LdkNodeError_LiquiditySourceUnavailable value)? + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? liquiditySourceUnavailable, - TResult Function(LdkNodeError_LiquidityFeeTooHigh value)? + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? liquidityFeeTooHigh, - TResult Function(LdkNodeError_InvalidPaymentId value)? invalidPaymentId, - TResult Function(LdkNodeError_Decode value)? decode, - TResult Function(LdkNodeError_Bolt12Parse value)? bolt12Parse, - TResult Function(LdkNodeError_InvoiceRequestCreationFailed value)? + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? invoiceRequestCreationFailed, - TResult Function(LdkNodeError_OfferCreationFailed value)? + TResult Function(FfiNodeError_OfferCreationFailed value)? offerCreationFailed, - TResult Function(LdkNodeError_RefundCreationFailed value)? + TResult Function(FfiNodeError_RefundCreationFailed value)? refundCreationFailed, - TResult Function(LdkNodeError_FeerateEstimationUpdateTimeout value)? + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? feerateEstimationUpdateTimeout, - TResult Function(LdkNodeError_WalletOperationTimeout value)? + TResult Function(FfiNodeError_WalletOperationTimeout value)? walletOperationTimeout, - TResult Function(LdkNodeError_TxSyncTimeout value)? txSyncTimeout, - TResult Function(LdkNodeError_GossipUpdateTimeout value)? + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? gossipUpdateTimeout, - TResult Function(LdkNodeError_InvalidOfferId value)? invalidOfferId, - TResult Function(LdkNodeError_InvalidNodeId value)? invalidNodeId, - TResult Function(LdkNodeError_InvalidOffer value)? invalidOffer, - TResult Function(LdkNodeError_InvalidRefund value)? invalidRefund, - TResult Function(LdkNodeError_UnsupportedCurrency value)? + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, required TResult orElse(), }) { if (unsupportedCurrency != null) { @@ -26135,8 +27585,2015 @@ class _$LdkNodeError_UnsupportedCurrencyImpl } } -abstract class LdkNodeError_UnsupportedCurrency extends LdkNodeError { - const factory LdkNodeError_UnsupportedCurrency() = - _$LdkNodeError_UnsupportedCurrencyImpl; - const LdkNodeError_UnsupportedCurrency._() : super._(); +abstract class FfiNodeError_UnsupportedCurrency extends FfiNodeError { + const factory FfiNodeError_UnsupportedCurrency() = + _$FfiNodeError_UnsupportedCurrencyImpl; + const FfiNodeError_UnsupportedCurrency._() : super._(); +} + +/// @nodoc +abstract class _$$FfiNodeError_UriParameterParsingFailedImplCopyWith<$Res> { + factory _$$FfiNodeError_UriParameterParsingFailedImplCopyWith( + _$FfiNodeError_UriParameterParsingFailedImpl value, + $Res Function(_$FfiNodeError_UriParameterParsingFailedImpl) then) = + __$$FfiNodeError_UriParameterParsingFailedImplCopyWithImpl<$Res>; +} + +/// @nodoc +class __$$FfiNodeError_UriParameterParsingFailedImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_UriParameterParsingFailedImpl> + implements _$$FfiNodeError_UriParameterParsingFailedImplCopyWith<$Res> { + __$$FfiNodeError_UriParameterParsingFailedImplCopyWithImpl( + _$FfiNodeError_UriParameterParsingFailedImpl _value, + $Res Function(_$FfiNodeError_UriParameterParsingFailedImpl) _then) + : super(_value, _then); +} + +/// @nodoc + +class _$FfiNodeError_UriParameterParsingFailedImpl + extends FfiNodeError_UriParameterParsingFailed { + const _$FfiNodeError_UriParameterParsingFailedImpl() : super._(); + + @override + String toString() { + return 'FfiNodeError.uriParameterParsingFailed()'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$FfiNodeError_UriParameterParsingFailedImpl); + } + + @override + int get hashCode => runtimeType.hashCode; + + @override + @optionalTypeArgs + TResult when({ + required TResult Function() invalidTxid, + required TResult Function() alreadyRunning, + required TResult Function() notRunning, + required TResult Function() onchainTxCreationFailed, + required TResult Function() connectionFailed, + required TResult Function() invoiceCreationFailed, + required TResult Function() paymentSendingFailed, + required TResult Function() probeSendingFailed, + required TResult Function() channelCreationFailed, + required TResult Function() channelClosingFailed, + required TResult Function() channelConfigUpdateFailed, + required TResult Function() persistenceFailed, + required TResult Function() walletOperationFailed, + required TResult Function() onchainTxSigningFailed, + required TResult Function() messageSigningFailed, + required TResult Function() txSyncFailed, + required TResult Function() gossipUpdateFailed, + required TResult Function() invalidAddress, + required TResult Function() invalidSocketAddress, + required TResult Function() invalidPublicKey, + required TResult Function() invalidSecretKey, + required TResult Function() invalidPaymentHash, + required TResult Function() invalidPaymentPreimage, + required TResult Function() invalidPaymentSecret, + required TResult Function() invalidAmount, + required TResult Function() invalidInvoice, + required TResult Function() invalidChannelId, + required TResult Function() invalidNetwork, + required TResult Function() duplicatePayment, + required TResult Function() insufficientFunds, + required TResult Function() feerateEstimationUpdateFailed, + required TResult Function() liquidityRequestFailed, + required TResult Function() liquiditySourceUnavailable, + required TResult Function() liquidityFeeTooHigh, + required TResult Function() invalidPaymentId, + required TResult Function(DecodeError field0) decode, + required TResult Function(Bolt12ParseError field0) bolt12Parse, + required TResult Function() invoiceRequestCreationFailed, + required TResult Function() offerCreationFailed, + required TResult Function() refundCreationFailed, + required TResult Function() feerateEstimationUpdateTimeout, + required TResult Function() walletOperationTimeout, + required TResult Function() txSyncTimeout, + required TResult Function() gossipUpdateTimeout, + required TResult Function() invalidOfferId, + required TResult Function() invalidNodeId, + required TResult Function() invalidOffer, + required TResult Function() invalidRefund, + required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, + }) { + return uriParameterParsingFailed(); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function()? invalidTxid, + TResult? Function()? alreadyRunning, + TResult? Function()? notRunning, + TResult? Function()? onchainTxCreationFailed, + TResult? Function()? connectionFailed, + TResult? Function()? invoiceCreationFailed, + TResult? Function()? paymentSendingFailed, + TResult? Function()? probeSendingFailed, + TResult? Function()? channelCreationFailed, + TResult? Function()? channelClosingFailed, + TResult? Function()? channelConfigUpdateFailed, + TResult? Function()? persistenceFailed, + TResult? Function()? walletOperationFailed, + TResult? Function()? onchainTxSigningFailed, + TResult? Function()? messageSigningFailed, + TResult? Function()? txSyncFailed, + TResult? Function()? gossipUpdateFailed, + TResult? Function()? invalidAddress, + TResult? Function()? invalidSocketAddress, + TResult? Function()? invalidPublicKey, + TResult? Function()? invalidSecretKey, + TResult? Function()? invalidPaymentHash, + TResult? Function()? invalidPaymentPreimage, + TResult? Function()? invalidPaymentSecret, + TResult? Function()? invalidAmount, + TResult? Function()? invalidInvoice, + TResult? Function()? invalidChannelId, + TResult? Function()? invalidNetwork, + TResult? Function()? duplicatePayment, + TResult? Function()? insufficientFunds, + TResult? Function()? feerateEstimationUpdateFailed, + TResult? Function()? liquidityRequestFailed, + TResult? Function()? liquiditySourceUnavailable, + TResult? Function()? liquidityFeeTooHigh, + TResult? Function()? invalidPaymentId, + TResult? Function(DecodeError field0)? decode, + TResult? Function(Bolt12ParseError field0)? bolt12Parse, + TResult? Function()? invoiceRequestCreationFailed, + TResult? Function()? offerCreationFailed, + TResult? Function()? refundCreationFailed, + TResult? Function()? feerateEstimationUpdateTimeout, + TResult? Function()? walletOperationTimeout, + TResult? Function()? txSyncTimeout, + TResult? Function()? gossipUpdateTimeout, + TResult? Function()? invalidOfferId, + TResult? Function()? invalidNodeId, + TResult? Function()? invalidOffer, + TResult? Function()? invalidRefund, + TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, + }) { + return uriParameterParsingFailed?.call(); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function()? invalidTxid, + TResult Function()? alreadyRunning, + TResult Function()? notRunning, + TResult Function()? onchainTxCreationFailed, + TResult Function()? connectionFailed, + TResult Function()? invoiceCreationFailed, + TResult Function()? paymentSendingFailed, + TResult Function()? probeSendingFailed, + TResult Function()? channelCreationFailed, + TResult Function()? channelClosingFailed, + TResult Function()? channelConfigUpdateFailed, + TResult Function()? persistenceFailed, + TResult Function()? walletOperationFailed, + TResult Function()? onchainTxSigningFailed, + TResult Function()? messageSigningFailed, + TResult Function()? txSyncFailed, + TResult Function()? gossipUpdateFailed, + TResult Function()? invalidAddress, + TResult Function()? invalidSocketAddress, + TResult Function()? invalidPublicKey, + TResult Function()? invalidSecretKey, + TResult Function()? invalidPaymentHash, + TResult Function()? invalidPaymentPreimage, + TResult Function()? invalidPaymentSecret, + TResult Function()? invalidAmount, + TResult Function()? invalidInvoice, + TResult Function()? invalidChannelId, + TResult Function()? invalidNetwork, + TResult Function()? duplicatePayment, + TResult Function()? insufficientFunds, + TResult Function()? feerateEstimationUpdateFailed, + TResult Function()? liquidityRequestFailed, + TResult Function()? liquiditySourceUnavailable, + TResult Function()? liquidityFeeTooHigh, + TResult Function()? invalidPaymentId, + TResult Function(DecodeError field0)? decode, + TResult Function(Bolt12ParseError field0)? bolt12Parse, + TResult Function()? invoiceRequestCreationFailed, + TResult Function()? offerCreationFailed, + TResult Function()? refundCreationFailed, + TResult Function()? feerateEstimationUpdateTimeout, + TResult Function()? walletOperationTimeout, + TResult Function()? txSyncTimeout, + TResult Function()? gossipUpdateTimeout, + TResult Function()? invalidOfferId, + TResult Function()? invalidNodeId, + TResult Function()? invalidOffer, + TResult Function()? invalidRefund, + TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, + required TResult orElse(), + }) { + if (uriParameterParsingFailed != null) { + return uriParameterParsingFailed(); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) + onchainTxCreationFailed, + required TResult Function(FfiNodeError_ConnectionFailed value) + connectionFailed, + required TResult Function(FfiNodeError_InvoiceCreationFailed value) + invoiceCreationFailed, + required TResult Function(FfiNodeError_PaymentSendingFailed value) + paymentSendingFailed, + required TResult Function(FfiNodeError_ProbeSendingFailed value) + probeSendingFailed, + required TResult Function(FfiNodeError_ChannelCreationFailed value) + channelCreationFailed, + required TResult Function(FfiNodeError_ChannelClosingFailed value) + channelClosingFailed, + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) + channelConfigUpdateFailed, + required TResult Function(FfiNodeError_PersistenceFailed value) + persistenceFailed, + required TResult Function(FfiNodeError_WalletOperationFailed value) + walletOperationFailed, + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) + onchainTxSigningFailed, + required TResult Function(FfiNodeError_MessageSigningFailed value) + messageSigningFailed, + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) + gossipUpdateFailed, + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) + invalidSocketAddress, + required TResult Function(FfiNodeError_InvalidPublicKey value) + invalidPublicKey, + required TResult Function(FfiNodeError_InvalidSecretKey value) + invalidSecretKey, + required TResult Function(FfiNodeError_InvalidPaymentHash value) + invalidPaymentHash, + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) + invalidPaymentPreimage, + required TResult Function(FfiNodeError_InvalidPaymentSecret value) + invalidPaymentSecret, + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) + invalidChannelId, + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) + duplicatePayment, + required TResult Function(FfiNodeError_InsufficientFunds value) + insufficientFunds, + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) + feerateEstimationUpdateFailed, + required TResult Function(FfiNodeError_LiquidityRequestFailed value) + liquidityRequestFailed, + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) + liquiditySourceUnavailable, + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) + liquidityFeeTooHigh, + required TResult Function(FfiNodeError_InvalidPaymentId value) + invalidPaymentId, + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) + invoiceRequestCreationFailed, + required TResult Function(FfiNodeError_OfferCreationFailed value) + offerCreationFailed, + required TResult Function(FfiNodeError_RefundCreationFailed value) + refundCreationFailed, + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) + feerateEstimationUpdateTimeout, + required TResult Function(FfiNodeError_WalletOperationTimeout value) + walletOperationTimeout, + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) + gossipUpdateTimeout, + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) + unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, + }) { + return uriParameterParsingFailed(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? + onchainTxCreationFailed, + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? + invoiceCreationFailed, + TResult? Function(FfiNodeError_PaymentSendingFailed value)? + paymentSendingFailed, + TResult? Function(FfiNodeError_ProbeSendingFailed value)? + probeSendingFailed, + TResult? Function(FfiNodeError_ChannelCreationFailed value)? + channelCreationFailed, + TResult? Function(FfiNodeError_ChannelClosingFailed value)? + channelClosingFailed, + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? + channelConfigUpdateFailed, + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? + walletOperationFailed, + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? + onchainTxSigningFailed, + TResult? Function(FfiNodeError_MessageSigningFailed value)? + messageSigningFailed, + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? + gossipUpdateFailed, + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? + invalidSocketAddress, + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? + invalidPaymentHash, + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? + invalidPaymentPreimage, + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? + invalidPaymentSecret, + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? + feerateEstimationUpdateFailed, + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? + liquidityRequestFailed, + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? + liquiditySourceUnavailable, + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? + liquidityFeeTooHigh, + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? + invoiceRequestCreationFailed, + TResult? Function(FfiNodeError_OfferCreationFailed value)? + offerCreationFailed, + TResult? Function(FfiNodeError_RefundCreationFailed value)? + refundCreationFailed, + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? + feerateEstimationUpdateTimeout, + TResult? Function(FfiNodeError_WalletOperationTimeout value)? + walletOperationTimeout, + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? + gossipUpdateTimeout, + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? + unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, + }) { + return uriParameterParsingFailed?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? + onchainTxCreationFailed, + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? + invoiceCreationFailed, + TResult Function(FfiNodeError_PaymentSendingFailed value)? + paymentSendingFailed, + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? + channelCreationFailed, + TResult Function(FfiNodeError_ChannelClosingFailed value)? + channelClosingFailed, + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? + channelConfigUpdateFailed, + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? + walletOperationFailed, + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? + onchainTxSigningFailed, + TResult Function(FfiNodeError_MessageSigningFailed value)? + messageSigningFailed, + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? + invalidSocketAddress, + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? + invalidPaymentPreimage, + TResult Function(FfiNodeError_InvalidPaymentSecret value)? + invalidPaymentSecret, + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? + feerateEstimationUpdateFailed, + TResult Function(FfiNodeError_LiquidityRequestFailed value)? + liquidityRequestFailed, + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? + liquiditySourceUnavailable, + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? + liquidityFeeTooHigh, + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? + invoiceRequestCreationFailed, + TResult Function(FfiNodeError_OfferCreationFailed value)? + offerCreationFailed, + TResult Function(FfiNodeError_RefundCreationFailed value)? + refundCreationFailed, + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? + feerateEstimationUpdateTimeout, + TResult Function(FfiNodeError_WalletOperationTimeout value)? + walletOperationTimeout, + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? + gossipUpdateTimeout, + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? + unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, + required TResult orElse(), + }) { + if (uriParameterParsingFailed != null) { + return uriParameterParsingFailed(this); + } + return orElse(); + } +} + +abstract class FfiNodeError_UriParameterParsingFailed extends FfiNodeError { + const factory FfiNodeError_UriParameterParsingFailed() = + _$FfiNodeError_UriParameterParsingFailedImpl; + const FfiNodeError_UriParameterParsingFailed._() : super._(); +} + +/// @nodoc +abstract class _$$FfiNodeError_InvalidUriImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidUriImplCopyWith( + _$FfiNodeError_InvalidUriImpl value, + $Res Function(_$FfiNodeError_InvalidUriImpl) then) = + __$$FfiNodeError_InvalidUriImplCopyWithImpl<$Res>; +} + +/// @nodoc +class __$$FfiNodeError_InvalidUriImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidUriImpl> + implements _$$FfiNodeError_InvalidUriImplCopyWith<$Res> { + __$$FfiNodeError_InvalidUriImplCopyWithImpl( + _$FfiNodeError_InvalidUriImpl _value, + $Res Function(_$FfiNodeError_InvalidUriImpl) _then) + : super(_value, _then); +} + +/// @nodoc + +class _$FfiNodeError_InvalidUriImpl extends FfiNodeError_InvalidUri { + const _$FfiNodeError_InvalidUriImpl() : super._(); + + @override + String toString() { + return 'FfiNodeError.invalidUri()'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$FfiNodeError_InvalidUriImpl); + } + + @override + int get hashCode => runtimeType.hashCode; + + @override + @optionalTypeArgs + TResult when({ + required TResult Function() invalidTxid, + required TResult Function() alreadyRunning, + required TResult Function() notRunning, + required TResult Function() onchainTxCreationFailed, + required TResult Function() connectionFailed, + required TResult Function() invoiceCreationFailed, + required TResult Function() paymentSendingFailed, + required TResult Function() probeSendingFailed, + required TResult Function() channelCreationFailed, + required TResult Function() channelClosingFailed, + required TResult Function() channelConfigUpdateFailed, + required TResult Function() persistenceFailed, + required TResult Function() walletOperationFailed, + required TResult Function() onchainTxSigningFailed, + required TResult Function() messageSigningFailed, + required TResult Function() txSyncFailed, + required TResult Function() gossipUpdateFailed, + required TResult Function() invalidAddress, + required TResult Function() invalidSocketAddress, + required TResult Function() invalidPublicKey, + required TResult Function() invalidSecretKey, + required TResult Function() invalidPaymentHash, + required TResult Function() invalidPaymentPreimage, + required TResult Function() invalidPaymentSecret, + required TResult Function() invalidAmount, + required TResult Function() invalidInvoice, + required TResult Function() invalidChannelId, + required TResult Function() invalidNetwork, + required TResult Function() duplicatePayment, + required TResult Function() insufficientFunds, + required TResult Function() feerateEstimationUpdateFailed, + required TResult Function() liquidityRequestFailed, + required TResult Function() liquiditySourceUnavailable, + required TResult Function() liquidityFeeTooHigh, + required TResult Function() invalidPaymentId, + required TResult Function(DecodeError field0) decode, + required TResult Function(Bolt12ParseError field0) bolt12Parse, + required TResult Function() invoiceRequestCreationFailed, + required TResult Function() offerCreationFailed, + required TResult Function() refundCreationFailed, + required TResult Function() feerateEstimationUpdateTimeout, + required TResult Function() walletOperationTimeout, + required TResult Function() txSyncTimeout, + required TResult Function() gossipUpdateTimeout, + required TResult Function() invalidOfferId, + required TResult Function() invalidNodeId, + required TResult Function() invalidOffer, + required TResult Function() invalidRefund, + required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, + }) { + return invalidUri(); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function()? invalidTxid, + TResult? Function()? alreadyRunning, + TResult? Function()? notRunning, + TResult? Function()? onchainTxCreationFailed, + TResult? Function()? connectionFailed, + TResult? Function()? invoiceCreationFailed, + TResult? Function()? paymentSendingFailed, + TResult? Function()? probeSendingFailed, + TResult? Function()? channelCreationFailed, + TResult? Function()? channelClosingFailed, + TResult? Function()? channelConfigUpdateFailed, + TResult? Function()? persistenceFailed, + TResult? Function()? walletOperationFailed, + TResult? Function()? onchainTxSigningFailed, + TResult? Function()? messageSigningFailed, + TResult? Function()? txSyncFailed, + TResult? Function()? gossipUpdateFailed, + TResult? Function()? invalidAddress, + TResult? Function()? invalidSocketAddress, + TResult? Function()? invalidPublicKey, + TResult? Function()? invalidSecretKey, + TResult? Function()? invalidPaymentHash, + TResult? Function()? invalidPaymentPreimage, + TResult? Function()? invalidPaymentSecret, + TResult? Function()? invalidAmount, + TResult? Function()? invalidInvoice, + TResult? Function()? invalidChannelId, + TResult? Function()? invalidNetwork, + TResult? Function()? duplicatePayment, + TResult? Function()? insufficientFunds, + TResult? Function()? feerateEstimationUpdateFailed, + TResult? Function()? liquidityRequestFailed, + TResult? Function()? liquiditySourceUnavailable, + TResult? Function()? liquidityFeeTooHigh, + TResult? Function()? invalidPaymentId, + TResult? Function(DecodeError field0)? decode, + TResult? Function(Bolt12ParseError field0)? bolt12Parse, + TResult? Function()? invoiceRequestCreationFailed, + TResult? Function()? offerCreationFailed, + TResult? Function()? refundCreationFailed, + TResult? Function()? feerateEstimationUpdateTimeout, + TResult? Function()? walletOperationTimeout, + TResult? Function()? txSyncTimeout, + TResult? Function()? gossipUpdateTimeout, + TResult? Function()? invalidOfferId, + TResult? Function()? invalidNodeId, + TResult? Function()? invalidOffer, + TResult? Function()? invalidRefund, + TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, + }) { + return invalidUri?.call(); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function()? invalidTxid, + TResult Function()? alreadyRunning, + TResult Function()? notRunning, + TResult Function()? onchainTxCreationFailed, + TResult Function()? connectionFailed, + TResult Function()? invoiceCreationFailed, + TResult Function()? paymentSendingFailed, + TResult Function()? probeSendingFailed, + TResult Function()? channelCreationFailed, + TResult Function()? channelClosingFailed, + TResult Function()? channelConfigUpdateFailed, + TResult Function()? persistenceFailed, + TResult Function()? walletOperationFailed, + TResult Function()? onchainTxSigningFailed, + TResult Function()? messageSigningFailed, + TResult Function()? txSyncFailed, + TResult Function()? gossipUpdateFailed, + TResult Function()? invalidAddress, + TResult Function()? invalidSocketAddress, + TResult Function()? invalidPublicKey, + TResult Function()? invalidSecretKey, + TResult Function()? invalidPaymentHash, + TResult Function()? invalidPaymentPreimage, + TResult Function()? invalidPaymentSecret, + TResult Function()? invalidAmount, + TResult Function()? invalidInvoice, + TResult Function()? invalidChannelId, + TResult Function()? invalidNetwork, + TResult Function()? duplicatePayment, + TResult Function()? insufficientFunds, + TResult Function()? feerateEstimationUpdateFailed, + TResult Function()? liquidityRequestFailed, + TResult Function()? liquiditySourceUnavailable, + TResult Function()? liquidityFeeTooHigh, + TResult Function()? invalidPaymentId, + TResult Function(DecodeError field0)? decode, + TResult Function(Bolt12ParseError field0)? bolt12Parse, + TResult Function()? invoiceRequestCreationFailed, + TResult Function()? offerCreationFailed, + TResult Function()? refundCreationFailed, + TResult Function()? feerateEstimationUpdateTimeout, + TResult Function()? walletOperationTimeout, + TResult Function()? txSyncTimeout, + TResult Function()? gossipUpdateTimeout, + TResult Function()? invalidOfferId, + TResult Function()? invalidNodeId, + TResult Function()? invalidOffer, + TResult Function()? invalidRefund, + TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, + required TResult orElse(), + }) { + if (invalidUri != null) { + return invalidUri(); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) + onchainTxCreationFailed, + required TResult Function(FfiNodeError_ConnectionFailed value) + connectionFailed, + required TResult Function(FfiNodeError_InvoiceCreationFailed value) + invoiceCreationFailed, + required TResult Function(FfiNodeError_PaymentSendingFailed value) + paymentSendingFailed, + required TResult Function(FfiNodeError_ProbeSendingFailed value) + probeSendingFailed, + required TResult Function(FfiNodeError_ChannelCreationFailed value) + channelCreationFailed, + required TResult Function(FfiNodeError_ChannelClosingFailed value) + channelClosingFailed, + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) + channelConfigUpdateFailed, + required TResult Function(FfiNodeError_PersistenceFailed value) + persistenceFailed, + required TResult Function(FfiNodeError_WalletOperationFailed value) + walletOperationFailed, + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) + onchainTxSigningFailed, + required TResult Function(FfiNodeError_MessageSigningFailed value) + messageSigningFailed, + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) + gossipUpdateFailed, + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) + invalidSocketAddress, + required TResult Function(FfiNodeError_InvalidPublicKey value) + invalidPublicKey, + required TResult Function(FfiNodeError_InvalidSecretKey value) + invalidSecretKey, + required TResult Function(FfiNodeError_InvalidPaymentHash value) + invalidPaymentHash, + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) + invalidPaymentPreimage, + required TResult Function(FfiNodeError_InvalidPaymentSecret value) + invalidPaymentSecret, + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) + invalidChannelId, + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) + duplicatePayment, + required TResult Function(FfiNodeError_InsufficientFunds value) + insufficientFunds, + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) + feerateEstimationUpdateFailed, + required TResult Function(FfiNodeError_LiquidityRequestFailed value) + liquidityRequestFailed, + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) + liquiditySourceUnavailable, + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) + liquidityFeeTooHigh, + required TResult Function(FfiNodeError_InvalidPaymentId value) + invalidPaymentId, + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) + invoiceRequestCreationFailed, + required TResult Function(FfiNodeError_OfferCreationFailed value) + offerCreationFailed, + required TResult Function(FfiNodeError_RefundCreationFailed value) + refundCreationFailed, + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) + feerateEstimationUpdateTimeout, + required TResult Function(FfiNodeError_WalletOperationTimeout value) + walletOperationTimeout, + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) + gossipUpdateTimeout, + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) + unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, + }) { + return invalidUri(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? + onchainTxCreationFailed, + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? + invoiceCreationFailed, + TResult? Function(FfiNodeError_PaymentSendingFailed value)? + paymentSendingFailed, + TResult? Function(FfiNodeError_ProbeSendingFailed value)? + probeSendingFailed, + TResult? Function(FfiNodeError_ChannelCreationFailed value)? + channelCreationFailed, + TResult? Function(FfiNodeError_ChannelClosingFailed value)? + channelClosingFailed, + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? + channelConfigUpdateFailed, + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? + walletOperationFailed, + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? + onchainTxSigningFailed, + TResult? Function(FfiNodeError_MessageSigningFailed value)? + messageSigningFailed, + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? + gossipUpdateFailed, + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? + invalidSocketAddress, + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? + invalidPaymentHash, + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? + invalidPaymentPreimage, + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? + invalidPaymentSecret, + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? + feerateEstimationUpdateFailed, + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? + liquidityRequestFailed, + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? + liquiditySourceUnavailable, + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? + liquidityFeeTooHigh, + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? + invoiceRequestCreationFailed, + TResult? Function(FfiNodeError_OfferCreationFailed value)? + offerCreationFailed, + TResult? Function(FfiNodeError_RefundCreationFailed value)? + refundCreationFailed, + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? + feerateEstimationUpdateTimeout, + TResult? Function(FfiNodeError_WalletOperationTimeout value)? + walletOperationTimeout, + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? + gossipUpdateTimeout, + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? + unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, + }) { + return invalidUri?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? + onchainTxCreationFailed, + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? + invoiceCreationFailed, + TResult Function(FfiNodeError_PaymentSendingFailed value)? + paymentSendingFailed, + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? + channelCreationFailed, + TResult Function(FfiNodeError_ChannelClosingFailed value)? + channelClosingFailed, + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? + channelConfigUpdateFailed, + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? + walletOperationFailed, + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? + onchainTxSigningFailed, + TResult Function(FfiNodeError_MessageSigningFailed value)? + messageSigningFailed, + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? + invalidSocketAddress, + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? + invalidPaymentPreimage, + TResult Function(FfiNodeError_InvalidPaymentSecret value)? + invalidPaymentSecret, + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? + feerateEstimationUpdateFailed, + TResult Function(FfiNodeError_LiquidityRequestFailed value)? + liquidityRequestFailed, + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? + liquiditySourceUnavailable, + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? + liquidityFeeTooHigh, + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? + invoiceRequestCreationFailed, + TResult Function(FfiNodeError_OfferCreationFailed value)? + offerCreationFailed, + TResult Function(FfiNodeError_RefundCreationFailed value)? + refundCreationFailed, + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? + feerateEstimationUpdateTimeout, + TResult Function(FfiNodeError_WalletOperationTimeout value)? + walletOperationTimeout, + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? + gossipUpdateTimeout, + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? + unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, + required TResult orElse(), + }) { + if (invalidUri != null) { + return invalidUri(this); + } + return orElse(); + } +} + +abstract class FfiNodeError_InvalidUri extends FfiNodeError { + const factory FfiNodeError_InvalidUri() = _$FfiNodeError_InvalidUriImpl; + const FfiNodeError_InvalidUri._() : super._(); +} + +/// @nodoc +abstract class _$$FfiNodeError_InvalidQuantityImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidQuantityImplCopyWith( + _$FfiNodeError_InvalidQuantityImpl value, + $Res Function(_$FfiNodeError_InvalidQuantityImpl) then) = + __$$FfiNodeError_InvalidQuantityImplCopyWithImpl<$Res>; +} + +/// @nodoc +class __$$FfiNodeError_InvalidQuantityImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, _$FfiNodeError_InvalidQuantityImpl> + implements _$$FfiNodeError_InvalidQuantityImplCopyWith<$Res> { + __$$FfiNodeError_InvalidQuantityImplCopyWithImpl( + _$FfiNodeError_InvalidQuantityImpl _value, + $Res Function(_$FfiNodeError_InvalidQuantityImpl) _then) + : super(_value, _then); +} + +/// @nodoc + +class _$FfiNodeError_InvalidQuantityImpl extends FfiNodeError_InvalidQuantity { + const _$FfiNodeError_InvalidQuantityImpl() : super._(); + + @override + String toString() { + return 'FfiNodeError.invalidQuantity()'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$FfiNodeError_InvalidQuantityImpl); + } + + @override + int get hashCode => runtimeType.hashCode; + + @override + @optionalTypeArgs + TResult when({ + required TResult Function() invalidTxid, + required TResult Function() alreadyRunning, + required TResult Function() notRunning, + required TResult Function() onchainTxCreationFailed, + required TResult Function() connectionFailed, + required TResult Function() invoiceCreationFailed, + required TResult Function() paymentSendingFailed, + required TResult Function() probeSendingFailed, + required TResult Function() channelCreationFailed, + required TResult Function() channelClosingFailed, + required TResult Function() channelConfigUpdateFailed, + required TResult Function() persistenceFailed, + required TResult Function() walletOperationFailed, + required TResult Function() onchainTxSigningFailed, + required TResult Function() messageSigningFailed, + required TResult Function() txSyncFailed, + required TResult Function() gossipUpdateFailed, + required TResult Function() invalidAddress, + required TResult Function() invalidSocketAddress, + required TResult Function() invalidPublicKey, + required TResult Function() invalidSecretKey, + required TResult Function() invalidPaymentHash, + required TResult Function() invalidPaymentPreimage, + required TResult Function() invalidPaymentSecret, + required TResult Function() invalidAmount, + required TResult Function() invalidInvoice, + required TResult Function() invalidChannelId, + required TResult Function() invalidNetwork, + required TResult Function() duplicatePayment, + required TResult Function() insufficientFunds, + required TResult Function() feerateEstimationUpdateFailed, + required TResult Function() liquidityRequestFailed, + required TResult Function() liquiditySourceUnavailable, + required TResult Function() liquidityFeeTooHigh, + required TResult Function() invalidPaymentId, + required TResult Function(DecodeError field0) decode, + required TResult Function(Bolt12ParseError field0) bolt12Parse, + required TResult Function() invoiceRequestCreationFailed, + required TResult Function() offerCreationFailed, + required TResult Function() refundCreationFailed, + required TResult Function() feerateEstimationUpdateTimeout, + required TResult Function() walletOperationTimeout, + required TResult Function() txSyncTimeout, + required TResult Function() gossipUpdateTimeout, + required TResult Function() invalidOfferId, + required TResult Function() invalidNodeId, + required TResult Function() invalidOffer, + required TResult Function() invalidRefund, + required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, + }) { + return invalidQuantity(); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function()? invalidTxid, + TResult? Function()? alreadyRunning, + TResult? Function()? notRunning, + TResult? Function()? onchainTxCreationFailed, + TResult? Function()? connectionFailed, + TResult? Function()? invoiceCreationFailed, + TResult? Function()? paymentSendingFailed, + TResult? Function()? probeSendingFailed, + TResult? Function()? channelCreationFailed, + TResult? Function()? channelClosingFailed, + TResult? Function()? channelConfigUpdateFailed, + TResult? Function()? persistenceFailed, + TResult? Function()? walletOperationFailed, + TResult? Function()? onchainTxSigningFailed, + TResult? Function()? messageSigningFailed, + TResult? Function()? txSyncFailed, + TResult? Function()? gossipUpdateFailed, + TResult? Function()? invalidAddress, + TResult? Function()? invalidSocketAddress, + TResult? Function()? invalidPublicKey, + TResult? Function()? invalidSecretKey, + TResult? Function()? invalidPaymentHash, + TResult? Function()? invalidPaymentPreimage, + TResult? Function()? invalidPaymentSecret, + TResult? Function()? invalidAmount, + TResult? Function()? invalidInvoice, + TResult? Function()? invalidChannelId, + TResult? Function()? invalidNetwork, + TResult? Function()? duplicatePayment, + TResult? Function()? insufficientFunds, + TResult? Function()? feerateEstimationUpdateFailed, + TResult? Function()? liquidityRequestFailed, + TResult? Function()? liquiditySourceUnavailable, + TResult? Function()? liquidityFeeTooHigh, + TResult? Function()? invalidPaymentId, + TResult? Function(DecodeError field0)? decode, + TResult? Function(Bolt12ParseError field0)? bolt12Parse, + TResult? Function()? invoiceRequestCreationFailed, + TResult? Function()? offerCreationFailed, + TResult? Function()? refundCreationFailed, + TResult? Function()? feerateEstimationUpdateTimeout, + TResult? Function()? walletOperationTimeout, + TResult? Function()? txSyncTimeout, + TResult? Function()? gossipUpdateTimeout, + TResult? Function()? invalidOfferId, + TResult? Function()? invalidNodeId, + TResult? Function()? invalidOffer, + TResult? Function()? invalidRefund, + TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, + }) { + return invalidQuantity?.call(); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function()? invalidTxid, + TResult Function()? alreadyRunning, + TResult Function()? notRunning, + TResult Function()? onchainTxCreationFailed, + TResult Function()? connectionFailed, + TResult Function()? invoiceCreationFailed, + TResult Function()? paymentSendingFailed, + TResult Function()? probeSendingFailed, + TResult Function()? channelCreationFailed, + TResult Function()? channelClosingFailed, + TResult Function()? channelConfigUpdateFailed, + TResult Function()? persistenceFailed, + TResult Function()? walletOperationFailed, + TResult Function()? onchainTxSigningFailed, + TResult Function()? messageSigningFailed, + TResult Function()? txSyncFailed, + TResult Function()? gossipUpdateFailed, + TResult Function()? invalidAddress, + TResult Function()? invalidSocketAddress, + TResult Function()? invalidPublicKey, + TResult Function()? invalidSecretKey, + TResult Function()? invalidPaymentHash, + TResult Function()? invalidPaymentPreimage, + TResult Function()? invalidPaymentSecret, + TResult Function()? invalidAmount, + TResult Function()? invalidInvoice, + TResult Function()? invalidChannelId, + TResult Function()? invalidNetwork, + TResult Function()? duplicatePayment, + TResult Function()? insufficientFunds, + TResult Function()? feerateEstimationUpdateFailed, + TResult Function()? liquidityRequestFailed, + TResult Function()? liquiditySourceUnavailable, + TResult Function()? liquidityFeeTooHigh, + TResult Function()? invalidPaymentId, + TResult Function(DecodeError field0)? decode, + TResult Function(Bolt12ParseError field0)? bolt12Parse, + TResult Function()? invoiceRequestCreationFailed, + TResult Function()? offerCreationFailed, + TResult Function()? refundCreationFailed, + TResult Function()? feerateEstimationUpdateTimeout, + TResult Function()? walletOperationTimeout, + TResult Function()? txSyncTimeout, + TResult Function()? gossipUpdateTimeout, + TResult Function()? invalidOfferId, + TResult Function()? invalidNodeId, + TResult Function()? invalidOffer, + TResult Function()? invalidRefund, + TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, + required TResult orElse(), + }) { + if (invalidQuantity != null) { + return invalidQuantity(); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) + onchainTxCreationFailed, + required TResult Function(FfiNodeError_ConnectionFailed value) + connectionFailed, + required TResult Function(FfiNodeError_InvoiceCreationFailed value) + invoiceCreationFailed, + required TResult Function(FfiNodeError_PaymentSendingFailed value) + paymentSendingFailed, + required TResult Function(FfiNodeError_ProbeSendingFailed value) + probeSendingFailed, + required TResult Function(FfiNodeError_ChannelCreationFailed value) + channelCreationFailed, + required TResult Function(FfiNodeError_ChannelClosingFailed value) + channelClosingFailed, + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) + channelConfigUpdateFailed, + required TResult Function(FfiNodeError_PersistenceFailed value) + persistenceFailed, + required TResult Function(FfiNodeError_WalletOperationFailed value) + walletOperationFailed, + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) + onchainTxSigningFailed, + required TResult Function(FfiNodeError_MessageSigningFailed value) + messageSigningFailed, + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) + gossipUpdateFailed, + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) + invalidSocketAddress, + required TResult Function(FfiNodeError_InvalidPublicKey value) + invalidPublicKey, + required TResult Function(FfiNodeError_InvalidSecretKey value) + invalidSecretKey, + required TResult Function(FfiNodeError_InvalidPaymentHash value) + invalidPaymentHash, + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) + invalidPaymentPreimage, + required TResult Function(FfiNodeError_InvalidPaymentSecret value) + invalidPaymentSecret, + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) + invalidChannelId, + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) + duplicatePayment, + required TResult Function(FfiNodeError_InsufficientFunds value) + insufficientFunds, + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) + feerateEstimationUpdateFailed, + required TResult Function(FfiNodeError_LiquidityRequestFailed value) + liquidityRequestFailed, + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) + liquiditySourceUnavailable, + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) + liquidityFeeTooHigh, + required TResult Function(FfiNodeError_InvalidPaymentId value) + invalidPaymentId, + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) + invoiceRequestCreationFailed, + required TResult Function(FfiNodeError_OfferCreationFailed value) + offerCreationFailed, + required TResult Function(FfiNodeError_RefundCreationFailed value) + refundCreationFailed, + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) + feerateEstimationUpdateTimeout, + required TResult Function(FfiNodeError_WalletOperationTimeout value) + walletOperationTimeout, + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) + gossipUpdateTimeout, + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) + unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, + }) { + return invalidQuantity(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? + onchainTxCreationFailed, + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? + invoiceCreationFailed, + TResult? Function(FfiNodeError_PaymentSendingFailed value)? + paymentSendingFailed, + TResult? Function(FfiNodeError_ProbeSendingFailed value)? + probeSendingFailed, + TResult? Function(FfiNodeError_ChannelCreationFailed value)? + channelCreationFailed, + TResult? Function(FfiNodeError_ChannelClosingFailed value)? + channelClosingFailed, + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? + channelConfigUpdateFailed, + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? + walletOperationFailed, + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? + onchainTxSigningFailed, + TResult? Function(FfiNodeError_MessageSigningFailed value)? + messageSigningFailed, + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? + gossipUpdateFailed, + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? + invalidSocketAddress, + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? + invalidPaymentHash, + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? + invalidPaymentPreimage, + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? + invalidPaymentSecret, + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? + feerateEstimationUpdateFailed, + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? + liquidityRequestFailed, + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? + liquiditySourceUnavailable, + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? + liquidityFeeTooHigh, + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? + invoiceRequestCreationFailed, + TResult? Function(FfiNodeError_OfferCreationFailed value)? + offerCreationFailed, + TResult? Function(FfiNodeError_RefundCreationFailed value)? + refundCreationFailed, + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? + feerateEstimationUpdateTimeout, + TResult? Function(FfiNodeError_WalletOperationTimeout value)? + walletOperationTimeout, + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? + gossipUpdateTimeout, + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? + unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, + }) { + return invalidQuantity?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? + onchainTxCreationFailed, + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? + invoiceCreationFailed, + TResult Function(FfiNodeError_PaymentSendingFailed value)? + paymentSendingFailed, + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? + channelCreationFailed, + TResult Function(FfiNodeError_ChannelClosingFailed value)? + channelClosingFailed, + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? + channelConfigUpdateFailed, + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? + walletOperationFailed, + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? + onchainTxSigningFailed, + TResult Function(FfiNodeError_MessageSigningFailed value)? + messageSigningFailed, + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? + invalidSocketAddress, + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? + invalidPaymentPreimage, + TResult Function(FfiNodeError_InvalidPaymentSecret value)? + invalidPaymentSecret, + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? + feerateEstimationUpdateFailed, + TResult Function(FfiNodeError_LiquidityRequestFailed value)? + liquidityRequestFailed, + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? + liquiditySourceUnavailable, + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? + liquidityFeeTooHigh, + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? + invoiceRequestCreationFailed, + TResult Function(FfiNodeError_OfferCreationFailed value)? + offerCreationFailed, + TResult Function(FfiNodeError_RefundCreationFailed value)? + refundCreationFailed, + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? + feerateEstimationUpdateTimeout, + TResult Function(FfiNodeError_WalletOperationTimeout value)? + walletOperationTimeout, + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? + gossipUpdateTimeout, + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? + unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, + required TResult orElse(), + }) { + if (invalidQuantity != null) { + return invalidQuantity(this); + } + return orElse(); + } +} + +abstract class FfiNodeError_InvalidQuantity extends FfiNodeError { + const factory FfiNodeError_InvalidQuantity() = + _$FfiNodeError_InvalidQuantityImpl; + const FfiNodeError_InvalidQuantity._() : super._(); +} + +/// @nodoc +abstract class _$$FfiNodeError_InvalidNodeAliasImplCopyWith<$Res> { + factory _$$FfiNodeError_InvalidNodeAliasImplCopyWith( + _$FfiNodeError_InvalidNodeAliasImpl value, + $Res Function(_$FfiNodeError_InvalidNodeAliasImpl) then) = + __$$FfiNodeError_InvalidNodeAliasImplCopyWithImpl<$Res>; +} + +/// @nodoc +class __$$FfiNodeError_InvalidNodeAliasImplCopyWithImpl<$Res> + extends _$FfiNodeErrorCopyWithImpl<$Res, + _$FfiNodeError_InvalidNodeAliasImpl> + implements _$$FfiNodeError_InvalidNodeAliasImplCopyWith<$Res> { + __$$FfiNodeError_InvalidNodeAliasImplCopyWithImpl( + _$FfiNodeError_InvalidNodeAliasImpl _value, + $Res Function(_$FfiNodeError_InvalidNodeAliasImpl) _then) + : super(_value, _then); +} + +/// @nodoc + +class _$FfiNodeError_InvalidNodeAliasImpl + extends FfiNodeError_InvalidNodeAlias { + const _$FfiNodeError_InvalidNodeAliasImpl() : super._(); + + @override + String toString() { + return 'FfiNodeError.invalidNodeAlias()'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$FfiNodeError_InvalidNodeAliasImpl); + } + + @override + int get hashCode => runtimeType.hashCode; + + @override + @optionalTypeArgs + TResult when({ + required TResult Function() invalidTxid, + required TResult Function() alreadyRunning, + required TResult Function() notRunning, + required TResult Function() onchainTxCreationFailed, + required TResult Function() connectionFailed, + required TResult Function() invoiceCreationFailed, + required TResult Function() paymentSendingFailed, + required TResult Function() probeSendingFailed, + required TResult Function() channelCreationFailed, + required TResult Function() channelClosingFailed, + required TResult Function() channelConfigUpdateFailed, + required TResult Function() persistenceFailed, + required TResult Function() walletOperationFailed, + required TResult Function() onchainTxSigningFailed, + required TResult Function() messageSigningFailed, + required TResult Function() txSyncFailed, + required TResult Function() gossipUpdateFailed, + required TResult Function() invalidAddress, + required TResult Function() invalidSocketAddress, + required TResult Function() invalidPublicKey, + required TResult Function() invalidSecretKey, + required TResult Function() invalidPaymentHash, + required TResult Function() invalidPaymentPreimage, + required TResult Function() invalidPaymentSecret, + required TResult Function() invalidAmount, + required TResult Function() invalidInvoice, + required TResult Function() invalidChannelId, + required TResult Function() invalidNetwork, + required TResult Function() duplicatePayment, + required TResult Function() insufficientFunds, + required TResult Function() feerateEstimationUpdateFailed, + required TResult Function() liquidityRequestFailed, + required TResult Function() liquiditySourceUnavailable, + required TResult Function() liquidityFeeTooHigh, + required TResult Function() invalidPaymentId, + required TResult Function(DecodeError field0) decode, + required TResult Function(Bolt12ParseError field0) bolt12Parse, + required TResult Function() invoiceRequestCreationFailed, + required TResult Function() offerCreationFailed, + required TResult Function() refundCreationFailed, + required TResult Function() feerateEstimationUpdateTimeout, + required TResult Function() walletOperationTimeout, + required TResult Function() txSyncTimeout, + required TResult Function() gossipUpdateTimeout, + required TResult Function() invalidOfferId, + required TResult Function() invalidNodeId, + required TResult Function() invalidOffer, + required TResult Function() invalidRefund, + required TResult Function() unsupportedCurrency, + required TResult Function() uriParameterParsingFailed, + required TResult Function() invalidUri, + required TResult Function() invalidQuantity, + required TResult Function() invalidNodeAlias, + }) { + return invalidNodeAlias(); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function()? invalidTxid, + TResult? Function()? alreadyRunning, + TResult? Function()? notRunning, + TResult? Function()? onchainTxCreationFailed, + TResult? Function()? connectionFailed, + TResult? Function()? invoiceCreationFailed, + TResult? Function()? paymentSendingFailed, + TResult? Function()? probeSendingFailed, + TResult? Function()? channelCreationFailed, + TResult? Function()? channelClosingFailed, + TResult? Function()? channelConfigUpdateFailed, + TResult? Function()? persistenceFailed, + TResult? Function()? walletOperationFailed, + TResult? Function()? onchainTxSigningFailed, + TResult? Function()? messageSigningFailed, + TResult? Function()? txSyncFailed, + TResult? Function()? gossipUpdateFailed, + TResult? Function()? invalidAddress, + TResult? Function()? invalidSocketAddress, + TResult? Function()? invalidPublicKey, + TResult? Function()? invalidSecretKey, + TResult? Function()? invalidPaymentHash, + TResult? Function()? invalidPaymentPreimage, + TResult? Function()? invalidPaymentSecret, + TResult? Function()? invalidAmount, + TResult? Function()? invalidInvoice, + TResult? Function()? invalidChannelId, + TResult? Function()? invalidNetwork, + TResult? Function()? duplicatePayment, + TResult? Function()? insufficientFunds, + TResult? Function()? feerateEstimationUpdateFailed, + TResult? Function()? liquidityRequestFailed, + TResult? Function()? liquiditySourceUnavailable, + TResult? Function()? liquidityFeeTooHigh, + TResult? Function()? invalidPaymentId, + TResult? Function(DecodeError field0)? decode, + TResult? Function(Bolt12ParseError field0)? bolt12Parse, + TResult? Function()? invoiceRequestCreationFailed, + TResult? Function()? offerCreationFailed, + TResult? Function()? refundCreationFailed, + TResult? Function()? feerateEstimationUpdateTimeout, + TResult? Function()? walletOperationTimeout, + TResult? Function()? txSyncTimeout, + TResult? Function()? gossipUpdateTimeout, + TResult? Function()? invalidOfferId, + TResult? Function()? invalidNodeId, + TResult? Function()? invalidOffer, + TResult? Function()? invalidRefund, + TResult? Function()? unsupportedCurrency, + TResult? Function()? uriParameterParsingFailed, + TResult? Function()? invalidUri, + TResult? Function()? invalidQuantity, + TResult? Function()? invalidNodeAlias, + }) { + return invalidNodeAlias?.call(); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function()? invalidTxid, + TResult Function()? alreadyRunning, + TResult Function()? notRunning, + TResult Function()? onchainTxCreationFailed, + TResult Function()? connectionFailed, + TResult Function()? invoiceCreationFailed, + TResult Function()? paymentSendingFailed, + TResult Function()? probeSendingFailed, + TResult Function()? channelCreationFailed, + TResult Function()? channelClosingFailed, + TResult Function()? channelConfigUpdateFailed, + TResult Function()? persistenceFailed, + TResult Function()? walletOperationFailed, + TResult Function()? onchainTxSigningFailed, + TResult Function()? messageSigningFailed, + TResult Function()? txSyncFailed, + TResult Function()? gossipUpdateFailed, + TResult Function()? invalidAddress, + TResult Function()? invalidSocketAddress, + TResult Function()? invalidPublicKey, + TResult Function()? invalidSecretKey, + TResult Function()? invalidPaymentHash, + TResult Function()? invalidPaymentPreimage, + TResult Function()? invalidPaymentSecret, + TResult Function()? invalidAmount, + TResult Function()? invalidInvoice, + TResult Function()? invalidChannelId, + TResult Function()? invalidNetwork, + TResult Function()? duplicatePayment, + TResult Function()? insufficientFunds, + TResult Function()? feerateEstimationUpdateFailed, + TResult Function()? liquidityRequestFailed, + TResult Function()? liquiditySourceUnavailable, + TResult Function()? liquidityFeeTooHigh, + TResult Function()? invalidPaymentId, + TResult Function(DecodeError field0)? decode, + TResult Function(Bolt12ParseError field0)? bolt12Parse, + TResult Function()? invoiceRequestCreationFailed, + TResult Function()? offerCreationFailed, + TResult Function()? refundCreationFailed, + TResult Function()? feerateEstimationUpdateTimeout, + TResult Function()? walletOperationTimeout, + TResult Function()? txSyncTimeout, + TResult Function()? gossipUpdateTimeout, + TResult Function()? invalidOfferId, + TResult Function()? invalidNodeId, + TResult Function()? invalidOffer, + TResult Function()? invalidRefund, + TResult Function()? unsupportedCurrency, + TResult Function()? uriParameterParsingFailed, + TResult Function()? invalidUri, + TResult Function()? invalidQuantity, + TResult Function()? invalidNodeAlias, + required TResult orElse(), + }) { + if (invalidNodeAlias != null) { + return invalidNodeAlias(); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(FfiNodeError_InvalidTxid value) invalidTxid, + required TResult Function(FfiNodeError_AlreadyRunning value) alreadyRunning, + required TResult Function(FfiNodeError_NotRunning value) notRunning, + required TResult Function(FfiNodeError_OnchainTxCreationFailed value) + onchainTxCreationFailed, + required TResult Function(FfiNodeError_ConnectionFailed value) + connectionFailed, + required TResult Function(FfiNodeError_InvoiceCreationFailed value) + invoiceCreationFailed, + required TResult Function(FfiNodeError_PaymentSendingFailed value) + paymentSendingFailed, + required TResult Function(FfiNodeError_ProbeSendingFailed value) + probeSendingFailed, + required TResult Function(FfiNodeError_ChannelCreationFailed value) + channelCreationFailed, + required TResult Function(FfiNodeError_ChannelClosingFailed value) + channelClosingFailed, + required TResult Function(FfiNodeError_ChannelConfigUpdateFailed value) + channelConfigUpdateFailed, + required TResult Function(FfiNodeError_PersistenceFailed value) + persistenceFailed, + required TResult Function(FfiNodeError_WalletOperationFailed value) + walletOperationFailed, + required TResult Function(FfiNodeError_OnchainTxSigningFailed value) + onchainTxSigningFailed, + required TResult Function(FfiNodeError_MessageSigningFailed value) + messageSigningFailed, + required TResult Function(FfiNodeError_TxSyncFailed value) txSyncFailed, + required TResult Function(FfiNodeError_GossipUpdateFailed value) + gossipUpdateFailed, + required TResult Function(FfiNodeError_InvalidAddress value) invalidAddress, + required TResult Function(FfiNodeError_InvalidSocketAddress value) + invalidSocketAddress, + required TResult Function(FfiNodeError_InvalidPublicKey value) + invalidPublicKey, + required TResult Function(FfiNodeError_InvalidSecretKey value) + invalidSecretKey, + required TResult Function(FfiNodeError_InvalidPaymentHash value) + invalidPaymentHash, + required TResult Function(FfiNodeError_InvalidPaymentPreimage value) + invalidPaymentPreimage, + required TResult Function(FfiNodeError_InvalidPaymentSecret value) + invalidPaymentSecret, + required TResult Function(FfiNodeError_InvalidAmount value) invalidAmount, + required TResult Function(FfiNodeError_InvalidInvoice value) invalidInvoice, + required TResult Function(FfiNodeError_InvalidChannelId value) + invalidChannelId, + required TResult Function(FfiNodeError_InvalidNetwork value) invalidNetwork, + required TResult Function(FfiNodeError_DuplicatePayment value) + duplicatePayment, + required TResult Function(FfiNodeError_InsufficientFunds value) + insufficientFunds, + required TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value) + feerateEstimationUpdateFailed, + required TResult Function(FfiNodeError_LiquidityRequestFailed value) + liquidityRequestFailed, + required TResult Function(FfiNodeError_LiquiditySourceUnavailable value) + liquiditySourceUnavailable, + required TResult Function(FfiNodeError_LiquidityFeeTooHigh value) + liquidityFeeTooHigh, + required TResult Function(FfiNodeError_InvalidPaymentId value) + invalidPaymentId, + required TResult Function(FfiNodeError_Decode value) decode, + required TResult Function(FfiNodeError_Bolt12Parse value) bolt12Parse, + required TResult Function(FfiNodeError_InvoiceRequestCreationFailed value) + invoiceRequestCreationFailed, + required TResult Function(FfiNodeError_OfferCreationFailed value) + offerCreationFailed, + required TResult Function(FfiNodeError_RefundCreationFailed value) + refundCreationFailed, + required TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value) + feerateEstimationUpdateTimeout, + required TResult Function(FfiNodeError_WalletOperationTimeout value) + walletOperationTimeout, + required TResult Function(FfiNodeError_TxSyncTimeout value) txSyncTimeout, + required TResult Function(FfiNodeError_GossipUpdateTimeout value) + gossipUpdateTimeout, + required TResult Function(FfiNodeError_InvalidOfferId value) invalidOfferId, + required TResult Function(FfiNodeError_InvalidNodeId value) invalidNodeId, + required TResult Function(FfiNodeError_InvalidOffer value) invalidOffer, + required TResult Function(FfiNodeError_InvalidRefund value) invalidRefund, + required TResult Function(FfiNodeError_UnsupportedCurrency value) + unsupportedCurrency, + required TResult Function(FfiNodeError_UriParameterParsingFailed value) + uriParameterParsingFailed, + required TResult Function(FfiNodeError_InvalidUri value) invalidUri, + required TResult Function(FfiNodeError_InvalidQuantity value) + invalidQuantity, + required TResult Function(FfiNodeError_InvalidNodeAlias value) + invalidNodeAlias, + }) { + return invalidNodeAlias(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult? Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult? Function(FfiNodeError_NotRunning value)? notRunning, + TResult? Function(FfiNodeError_OnchainTxCreationFailed value)? + onchainTxCreationFailed, + TResult? Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult? Function(FfiNodeError_InvoiceCreationFailed value)? + invoiceCreationFailed, + TResult? Function(FfiNodeError_PaymentSendingFailed value)? + paymentSendingFailed, + TResult? Function(FfiNodeError_ProbeSendingFailed value)? + probeSendingFailed, + TResult? Function(FfiNodeError_ChannelCreationFailed value)? + channelCreationFailed, + TResult? Function(FfiNodeError_ChannelClosingFailed value)? + channelClosingFailed, + TResult? Function(FfiNodeError_ChannelConfigUpdateFailed value)? + channelConfigUpdateFailed, + TResult? Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult? Function(FfiNodeError_WalletOperationFailed value)? + walletOperationFailed, + TResult? Function(FfiNodeError_OnchainTxSigningFailed value)? + onchainTxSigningFailed, + TResult? Function(FfiNodeError_MessageSigningFailed value)? + messageSigningFailed, + TResult? Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult? Function(FfiNodeError_GossipUpdateFailed value)? + gossipUpdateFailed, + TResult? Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult? Function(FfiNodeError_InvalidSocketAddress value)? + invalidSocketAddress, + TResult? Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult? Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult? Function(FfiNodeError_InvalidPaymentHash value)? + invalidPaymentHash, + TResult? Function(FfiNodeError_InvalidPaymentPreimage value)? + invalidPaymentPreimage, + TResult? Function(FfiNodeError_InvalidPaymentSecret value)? + invalidPaymentSecret, + TResult? Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult? Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult? Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult? Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult? Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult? Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult? Function(FfiNodeError_FeerateEstimationUpdateFailed value)? + feerateEstimationUpdateFailed, + TResult? Function(FfiNodeError_LiquidityRequestFailed value)? + liquidityRequestFailed, + TResult? Function(FfiNodeError_LiquiditySourceUnavailable value)? + liquiditySourceUnavailable, + TResult? Function(FfiNodeError_LiquidityFeeTooHigh value)? + liquidityFeeTooHigh, + TResult? Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult? Function(FfiNodeError_Decode value)? decode, + TResult? Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult? Function(FfiNodeError_InvoiceRequestCreationFailed value)? + invoiceRequestCreationFailed, + TResult? Function(FfiNodeError_OfferCreationFailed value)? + offerCreationFailed, + TResult? Function(FfiNodeError_RefundCreationFailed value)? + refundCreationFailed, + TResult? Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? + feerateEstimationUpdateTimeout, + TResult? Function(FfiNodeError_WalletOperationTimeout value)? + walletOperationTimeout, + TResult? Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult? Function(FfiNodeError_GossipUpdateTimeout value)? + gossipUpdateTimeout, + TResult? Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult? Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult? Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult? Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult? Function(FfiNodeError_UnsupportedCurrency value)? + unsupportedCurrency, + TResult? Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult? Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult? Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult? Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, + }) { + return invalidNodeAlias?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(FfiNodeError_InvalidTxid value)? invalidTxid, + TResult Function(FfiNodeError_AlreadyRunning value)? alreadyRunning, + TResult Function(FfiNodeError_NotRunning value)? notRunning, + TResult Function(FfiNodeError_OnchainTxCreationFailed value)? + onchainTxCreationFailed, + TResult Function(FfiNodeError_ConnectionFailed value)? connectionFailed, + TResult Function(FfiNodeError_InvoiceCreationFailed value)? + invoiceCreationFailed, + TResult Function(FfiNodeError_PaymentSendingFailed value)? + paymentSendingFailed, + TResult Function(FfiNodeError_ProbeSendingFailed value)? probeSendingFailed, + TResult Function(FfiNodeError_ChannelCreationFailed value)? + channelCreationFailed, + TResult Function(FfiNodeError_ChannelClosingFailed value)? + channelClosingFailed, + TResult Function(FfiNodeError_ChannelConfigUpdateFailed value)? + channelConfigUpdateFailed, + TResult Function(FfiNodeError_PersistenceFailed value)? persistenceFailed, + TResult Function(FfiNodeError_WalletOperationFailed value)? + walletOperationFailed, + TResult Function(FfiNodeError_OnchainTxSigningFailed value)? + onchainTxSigningFailed, + TResult Function(FfiNodeError_MessageSigningFailed value)? + messageSigningFailed, + TResult Function(FfiNodeError_TxSyncFailed value)? txSyncFailed, + TResult Function(FfiNodeError_GossipUpdateFailed value)? gossipUpdateFailed, + TResult Function(FfiNodeError_InvalidAddress value)? invalidAddress, + TResult Function(FfiNodeError_InvalidSocketAddress value)? + invalidSocketAddress, + TResult Function(FfiNodeError_InvalidPublicKey value)? invalidPublicKey, + TResult Function(FfiNodeError_InvalidSecretKey value)? invalidSecretKey, + TResult Function(FfiNodeError_InvalidPaymentHash value)? invalidPaymentHash, + TResult Function(FfiNodeError_InvalidPaymentPreimage value)? + invalidPaymentPreimage, + TResult Function(FfiNodeError_InvalidPaymentSecret value)? + invalidPaymentSecret, + TResult Function(FfiNodeError_InvalidAmount value)? invalidAmount, + TResult Function(FfiNodeError_InvalidInvoice value)? invalidInvoice, + TResult Function(FfiNodeError_InvalidChannelId value)? invalidChannelId, + TResult Function(FfiNodeError_InvalidNetwork value)? invalidNetwork, + TResult Function(FfiNodeError_DuplicatePayment value)? duplicatePayment, + TResult Function(FfiNodeError_InsufficientFunds value)? insufficientFunds, + TResult Function(FfiNodeError_FeerateEstimationUpdateFailed value)? + feerateEstimationUpdateFailed, + TResult Function(FfiNodeError_LiquidityRequestFailed value)? + liquidityRequestFailed, + TResult Function(FfiNodeError_LiquiditySourceUnavailable value)? + liquiditySourceUnavailable, + TResult Function(FfiNodeError_LiquidityFeeTooHigh value)? + liquidityFeeTooHigh, + TResult Function(FfiNodeError_InvalidPaymentId value)? invalidPaymentId, + TResult Function(FfiNodeError_Decode value)? decode, + TResult Function(FfiNodeError_Bolt12Parse value)? bolt12Parse, + TResult Function(FfiNodeError_InvoiceRequestCreationFailed value)? + invoiceRequestCreationFailed, + TResult Function(FfiNodeError_OfferCreationFailed value)? + offerCreationFailed, + TResult Function(FfiNodeError_RefundCreationFailed value)? + refundCreationFailed, + TResult Function(FfiNodeError_FeerateEstimationUpdateTimeout value)? + feerateEstimationUpdateTimeout, + TResult Function(FfiNodeError_WalletOperationTimeout value)? + walletOperationTimeout, + TResult Function(FfiNodeError_TxSyncTimeout value)? txSyncTimeout, + TResult Function(FfiNodeError_GossipUpdateTimeout value)? + gossipUpdateTimeout, + TResult Function(FfiNodeError_InvalidOfferId value)? invalidOfferId, + TResult Function(FfiNodeError_InvalidNodeId value)? invalidNodeId, + TResult Function(FfiNodeError_InvalidOffer value)? invalidOffer, + TResult Function(FfiNodeError_InvalidRefund value)? invalidRefund, + TResult Function(FfiNodeError_UnsupportedCurrency value)? + unsupportedCurrency, + TResult Function(FfiNodeError_UriParameterParsingFailed value)? + uriParameterParsingFailed, + TResult Function(FfiNodeError_InvalidUri value)? invalidUri, + TResult Function(FfiNodeError_InvalidQuantity value)? invalidQuantity, + TResult Function(FfiNodeError_InvalidNodeAlias value)? invalidNodeAlias, + required TResult orElse(), + }) { + if (invalidNodeAlias != null) { + return invalidNodeAlias(this); + } + return orElse(); + } +} + +abstract class FfiNodeError_InvalidNodeAlias extends FfiNodeError { + const factory FfiNodeError_InvalidNodeAlias() = + _$FfiNodeError_InvalidNodeAliasImpl; + const FfiNodeError_InvalidNodeAlias._() : super._(); } diff --git a/lib/src/root.dart b/lib/src/root.dart index 0b40119..df1d027 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -1,31 +1,37 @@ -import 'package:flutter_rust_bridge/flutter_rust_bridge.dart'; +import 'dart:async'; +import 'dart:typed_data'; + +import 'generated/lib.dart'; +import 'generated/api/builder.dart' as builder; +import 'package:ldk_node/src/generated/api/node.dart'; +import 'package:ldk_node/src/generated/api/graph.dart' as graph; import 'package:ldk_node/src/generated/api/bolt11.dart' as bolt11; import 'package:ldk_node/src/generated/api/bolt12.dart' as bolt12; -import 'package:ldk_node/src/generated/api/graph.dart' as graph; +import 'generated/api/on_chain.dart' as on_chain; +import 'generated/api/spontaneous.dart' as spontaneous; +import 'generated/api/unified_qr.dart' as unified_qr; + import 'package:ldk_node/src/generated/api/types.dart' as types; import 'package:ldk_node/src/generated/utils/error.dart' as error; +import 'package:ldk_node/src/utils/frb.dart'; import 'package:ldk_node/src/utils/default_services.dart'; -import 'package:ldk_node/src/utils/utils.dart'; -import 'package:path_provider/path_provider.dart'; +import 'package:ldk_node/src/utils/exceptions.dart'; -import 'generated/api/builder.dart' as builder; -import 'generated/api/node.dart'; -import 'generated/api/on_chain.dart' as on_chain; -import 'generated/api/spontaneous.dart' as spontaneous; -import 'generated/lib.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge.dart'; +import 'package:path_provider/path_provider.dart'; ///The from string implementation will try to determine the language of the mnemonic from all the supported languages. (Languages have to be explicitly enabled using the Cargo features.) /// Supported number of words are 12, 15, 18, 21, and 24. /// -class Mnemonic extends builder.LdkMnemonic { +class Mnemonic extends builder.FfiMnemonic { Mnemonic({required super.seedPhrase}); static Future generate() async { try { await Frb.verifyInit(); - final res = await builder.LdkMnemonic.generate(); + final res = await builder.FfiMnemonic.generate(); return Mnemonic(seedPhrase: res.seedPhrase); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } } @@ -34,8 +40,8 @@ class Mnemonic extends builder.LdkMnemonic { /// ///Needs to be initialized and instantiated through builder.build(). /// -class Node extends LdkNode { - Node._({required super.ptr}); +class Node extends FfiNode { + Node._({required super.opaque}); /// Starts the necessary background tasks, such as handling events coming from user input, /// LDK/BDK, and the peer-to-peer network. @@ -45,9 +51,9 @@ class Node extends LdkNode { @override Future start({hint}) async { try { - return super.start(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.start(); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -59,8 +65,8 @@ class Node extends LdkNode { Future stop({hint}) async { try { await super.stop(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -69,8 +75,8 @@ class Node extends LdkNode { Future status({hint}) async { try { return await super.status(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -81,8 +87,8 @@ class Node extends LdkNode { Future eventHandled({hint}) async { try { await super.eventHandled(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -93,8 +99,8 @@ class Node extends LdkNode { Future nextEvent({hint}) async { try { return await super.nextEvent(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -107,8 +113,8 @@ class Node extends LdkNode { Future waitNextHandled({hint}) async { try { return await super.waitNextEvent(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -119,8 +125,8 @@ class Node extends LdkNode { Future nextEventAsync({hint}) async { try { return await super.nextEventAsync(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -129,8 +135,8 @@ class Node extends LdkNode { Future nodeId({hint}) async { try { return await super.nodeId(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -139,28 +145,28 @@ class Node extends LdkNode { Future?> listeningAddresses({hint}) async { try { return await super.listeningAddresses(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } /// Retrieve the currently spendable on-chain balance in satoshis. @override - Future listBalances({hint}) { + Future listBalances({hint}) async { try { - return super.listBalances(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.listBalances(); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns the config with which the Node was initialized. @override - Future config({hint}) { + Future config({hint}) async { try { - return super.config(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.config(); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -169,8 +175,8 @@ class Node extends LdkNode { Future> listChannels({hint}) async { try { return await super.listChannels(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -186,8 +192,8 @@ class Node extends LdkNode { try { return await super .connect(address: address, nodeId: nodeId, persist: persist); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -202,8 +208,8 @@ class Node extends LdkNode { await super.disconnect( counterpartyNodeId: counterpartyNodeId, ); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -217,24 +223,60 @@ class Node extends LdkNode { /// /// Returns a temporary channel id. @override - Future connectOpenChannel( + Future openChannel( {required types.SocketAddress socketAddress, required types.PublicKey nodeId, required BigInt channelAmountSats, - required bool announceChannel, types.ChannelConfig? channelConfig, BigInt? pushToCounterpartyMsat, hint}) async { try { - return await super.connectOpenChannel( - socketAddress: socketAddress, - nodeId: nodeId, - pushToCounterpartyMsat: pushToCounterpartyMsat, - channelAmountSats: channelAmountSats, - channelConfig: channelConfig, - announceChannel: announceChannel); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.openChannel( + socketAddress: socketAddress, + nodeId: nodeId, + pushToCounterpartyMsat: pushToCounterpartyMsat, + channelAmountSats: channelAmountSats, + channelConfig: channelConfig, + ); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); + } + } + + /// Connect to a node and open a new announced channel. + /// + /// This will return an error if the node has not been sufficiently configured to operate as a + /// forwarding node that can properly announce its existence to the publip network graph, i.e., + /// `config.listeningAddresses` and `config.nodeAlias` are unset. + /// + /// + /// If `pushToCounterpartyMsat` is set, the given value will be pushed (read: sent) to the + /// channel counterparty on channel open. This can be useful to start out with the balance not + /// entirely shifted to one side, therefore allowing to receive payments from the getgo. + /// + /// If Anchor channels are enabled, this will ensure the configured + /// `anchorChannelsConfig.perChannelReserveSats` is available and will be retained before + /// opening the channel. + /// + /// Returns a temporary channelId allowing to locally keep track of the channel. + @override + Future openAnnouncedChannel( + {required types.SocketAddress socketAddress, + required types.PublicKey nodeId, + required BigInt channelAmountSats, + types.ChannelConfig? channelConfig, + BigInt? pushToCounterpartyMsat, + hint}) async { + try { + return await super.openAnnouncedChannel( + socketAddress: socketAddress, + nodeId: nodeId, + pushToCounterpartyMsat: pushToCounterpartyMsat, + channelAmountSats: channelAmountSats, + channelConfig: channelConfig, + ); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -244,18 +286,18 @@ class Node extends LdkNode { Future syncWallets({hint}) async { try { await super.syncWallets(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns a handler allowing to query the network graph. Future networkGraph() async { try { - final res = await LdkNode.networkGraph(ptr: this); - return NetworkGraph._(ptr: res.ptr); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + final res = await FfiNode.networkGraph(ptr: this); + return NetworkGraph._(opaque: res.opaque); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -270,8 +312,8 @@ class Node extends LdkNode { userChannelId: userChannelId, counterpartyNodeId: counterpartyNodeId, ); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -289,8 +331,8 @@ class Node extends LdkNode { userChannelId: userChannelId, counterpartyNodeId: counterpartyNodeId, ); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -308,8 +350,8 @@ class Node extends LdkNode { counterpartyNodeId: counterpartyNodeId, channelConfig: channelConfig, ); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -321,8 +363,8 @@ class Node extends LdkNode { {required types.PaymentId paymentId, hint}) async { try { return await super.payment(paymentId: paymentId); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -331,8 +373,8 @@ class Node extends LdkNode { Future removePayment({required types.PaymentId paymentId, hint}) async { try { return await super.removePayment(paymentId: paymentId); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -343,8 +385,8 @@ class Node extends LdkNode { try { return await super .listPaymentsWithFilter(paymentDirection: paymentDirection); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -352,9 +394,9 @@ class Node extends LdkNode { @override Future> listPayments({hint}) async { try { - return super.listPayments(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.listPayments(); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -363,8 +405,8 @@ class Node extends LdkNode { Future> listPeers({hint}) async { try { return await super.listPeers(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -378,8 +420,8 @@ class Node extends LdkNode { Future signMessage({required List msg, hint}) async { try { return await super.signMessage(msg: msg); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -394,64 +436,76 @@ class Node extends LdkNode { try { return await super .verifySignature(msg: msg, sig: sig, publicKey: publicKey); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns a payment handler allowing to create and pay BOLT 11 invoices. Future bolt11Payment() async { try { - final res = await LdkNode.bolt11Payment(ptr: this); - return Bolt11Payment._(ptr: res.ptr); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + final res = await FfiNode.bolt11Payment(ptr: this); + return Bolt11Payment._(opaque: res.opaque); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns a payment handler allowing to create and pay BOLT 12 invoices. Future bolt12Payment() async { try { - final res = await LdkNode.bolt12Payment(ptr: this); - return Bolt12Payment._(ptr: res.ptr); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + final res = await FfiNode.bolt12Payment(ptr: this); + return Bolt12Payment._(opaque: res.opaque); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns a payment handler allowing to send and receive on-chain payments. Future onChainPayment() async { try { - final res = await LdkNode.onChainPayment(ptr: this); - return OnChainPayment._(ptr: res.ptr); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + final res = await FfiNode.onChainPayment(ptr: this); + return OnChainPayment._(opaque: res.opaque); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns a payment handler allowing to send spontaneous ("keysend") payments. Future spontaneousPayment() async { try { - final res = await LdkNode.spontaneousPayment(ptr: this); - return SpontaneousPayment._(ptr: res.ptr); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + final res = await FfiNode.spontaneousPayment(ptr: this); + return SpontaneousPayment._(opaque: res.opaque); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); + } + } + + ///Returns a payment handler allowing to create BIP 21 URIs with an on-chain, BOLT 11, and BOLT 12 payment options. + Future unifiedQrPayment() async { + try { + final res = await FfiNode.unifiedQrPayment(ptr: this); + return UnifiedQrPayment._(opaque: res.opaque); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } } ///A payment handler allowing to send spontaneous ("keysend") payments. -class SpontaneousPayment extends spontaneous.LdkSpontaneousPayment { - SpontaneousPayment._({required super.ptr}); +class SpontaneousPayment extends spontaneous.FfiSpontaneousPayment { + SpontaneousPayment._({required super.opaque}); ///Sends payment probes over all paths of a route that would be used to pay the given amount to the given node_id. @override Future sendProbes( - {required BigInt amountMsat, required types.PublicKey nodeId, hint}) { + {required BigInt amountMsat, + required types.PublicKey nodeId, + hint}) async { try { - return super.sendProbes(amountMsat: amountMsat, nodeId: nodeId); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.sendProbes(amountMsat: amountMsat, nodeId: nodeId); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -460,95 +514,103 @@ class SpontaneousPayment extends spontaneous.LdkSpontaneousPayment { Future send( {required BigInt amountMsat, required types.PublicKey nodeId, - dynamic hint}) { + types.SendingParameters? sendingParameters, + dynamic hint}) async { try { - return super.send(amountMsat: amountMsat, nodeId: nodeId); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.send( + amountMsat: amountMsat, + nodeId: nodeId, + sendingParameters: sendingParameters); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } } ///A payment handler allowing to send and receive on-chain payments. -class OnChainPayment extends on_chain.LdkOnChainPayment { - OnChainPayment._({required super.ptr}); +class OnChainPayment extends on_chain.FfiOnChainPayment { + OnChainPayment._({required super.opaque}); @override - Future newAddress({hint}) { + Future newAddress({hint}) async { try { - return super.newAddress(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.newAddress(); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @override - Future sendAllToAddress({required types.Address address, hint}) { + Future sendAllToAddress( + {required types.Address address, hint}) async { try { - return super.sendAllToAddress(address: address); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.sendAllToAddress(address: address); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @override Future sendToAddress( - {required types.Address address, required BigInt amountSats, hint}) { + {required types.Address address, + required BigInt amountSats, + hint}) async { try { - return super.sendToAddress(address: address, amountSats: amountSats); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super + .sendToAddress(address: address, amountSats: amountSats); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } } ///Represents the network as nodes and channels between them. -class NetworkGraph extends graph.LdkNetworkGraph { - NetworkGraph._({required super.ptr}); +class NetworkGraph extends graph.FfiNetworkGraph { + NetworkGraph._({required super.opaque}); ///Returns information on a channel with the given id. @override - Future channel({required BigInt shortChannelId}) { + Future channel({required BigInt shortChannelId}) async { try { - return super.channel(shortChannelId: shortChannelId); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.channel(shortChannelId: shortChannelId); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns the list of channels in the graph @override - Future listChannels() { + Future listChannels() async { try { - return super.listChannels(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.listChannels(); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns the list of nodes in the graph @override - Future> listNodes() { + Future> listNodes() async { try { - return super.listNodes(); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.listNodes(); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns information on a node with the given id. @override - Future node({required graph.NodeId nodeId}) { + Future node({required graph.NodeId nodeId}) async { try { - return super.node(nodeId: nodeId); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.node(nodeId: nodeId); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } } ///Represents a syntactically and semantically correct lightning BOLT11 invoice. -class Bolt11Payment extends bolt11.LdkBolt11Payment { - Bolt11Payment._({required super.ptr}); +class Bolt11Payment extends bolt11.FfiBolt11Payment { + Bolt11Payment._({required super.opaque}); ///Allows to attempt manually claiming payments with the given preimage that have previously been registered via ///`receiveForHash` or `receiveVariableAmountForHash`. @@ -559,14 +621,14 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { Future claimForHash( {required types.PaymentHash paymentHash, required BigInt claimableAmountMsat, - required types.PaymentPreimage preimage}) { + required types.PaymentPreimage preimage}) async { try { - return super.claimForHash( + return await super.claimForHash( paymentHash: paymentHash, claimableAmountMsat: claimableAmountMsat, preimage: preimage); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -575,11 +637,11 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { /// This should be called in response to a PaymentClaimable event if the payment needs to be failed back, e. g., if the correct preimage can't be retrieved in time before the claim deadline has been reached. /// Will check that the payment is known before failing the payment, and will return an error otherwise. @override - Future failForHash({required types.PaymentHash paymentHash}) { + Future failForHash({required types.PaymentHash paymentHash}) async { try { - return super.failForHash(paymentHash: paymentHash); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.failForHash(paymentHash: paymentHash); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -592,15 +654,15 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { {required types.PaymentHash paymentHash, required BigInt amountMsat, required String description, - required int expirySecs}) { + required int expirySecs}) async { try { - return super.receiveForHash( + return await super.receiveForHash( paymentHash: paymentHash, amountMsat: amountMsat, description: description, expirySecs: expirySecs); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -612,14 +674,14 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { Future receiveVariableAmountForHash( {required String description, required int expirySecs, - required types.PaymentHash paymentHash}) { + required types.PaymentHash paymentHash}) async { try { - return super.receiveVariableAmountForHash( + return await super.receiveVariableAmountForHash( description: description, expirySecs: expirySecs, paymentHash: paymentHash); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -630,14 +692,14 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { {required BigInt amountMsat, required String description, required int expirySecs, - hint}) { + hint}) async { try { - return super.receive( + return await super.receive( amountMsat: amountMsat, description: description, expirySecs: expirySecs); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -645,12 +707,12 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { /// The inbound payment will be automatically claimed upon arrival. @override Future receiveVariableAmount( - {required String description, required int expirySecs, hint}) { + {required String description, required int expirySecs, hint}) async { try { - return super.receiveVariableAmount( + return await super.receiveVariableAmount( description: description, expirySecs: expirySecs); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -662,14 +724,14 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { {required String description, required int expirySecs, BigInt? maxProportionalLspFeeLimitPpmMsat, - hint}) { + hint}) async { try { - return super.receiveVariableAmountViaJitChannel( + return await super.receiveVariableAmountViaJitChannel( description: description, expirySecs: expirySecs, maxProportionalLspFeeLimitPpmMsat: maxProportionalLspFeeLimitPpmMsat); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -682,25 +744,29 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { required String description, required int expirySecs, BigInt? maxTotalLspFeeLimitMsat, - hint}) { + hint}) async { try { - return super.receiveViaJitChannel( + return await super.receiveViaJitChannel( description: description, expirySecs: expirySecs, maxTotalLspFeeLimitMsat: maxTotalLspFeeLimitMsat, amountMsat: amountMsat); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Send a payment given an invoice. @override - Future send({required bolt11.Bolt11Invoice invoice, hint}) { + Future send( + {required bolt11.Bolt11Invoice invoice, + types.SendingParameters? sendingParameters, + hint}) async { try { - return super.send(invoice: invoice); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super + .send(invoice: invoice, sendingParameters: sendingParameters); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -710,11 +776,11 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { /// Users should therefore be cautious and might avoid sending probes if liquidity is scarce and/ or they don't expect the probe to return before they send the payment. /// To mitigate this issue, channels with available liquidity less than the required amount times @override - Future sendProbes({required bolt11.Bolt11Invoice invoice, hint}) { + Future sendProbes({required bolt11.Bolt11Invoice invoice, hint}) async { try { - return super.sendProbes(invoice: invoice); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.sendProbes(invoice: invoice); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -724,12 +790,12 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { Future sendProbesUsingAmount( {required bolt11.Bolt11Invoice invoice, required BigInt amountMsat, - hint}) { + hint}) async { try { - return super + return await super .sendProbesUsingAmount(invoice: invoice, amountMsat: amountMsat); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -740,49 +806,70 @@ class Bolt11Payment extends bolt11.LdkBolt11Payment { Future sendUsingAmount( {required bolt11.Bolt11Invoice invoice, required BigInt amountMsat, - hint}) { + types.SendingParameters? sendingParameters, + hint}) async { try { - return super.sendUsingAmount(invoice: invoice, amountMsat: amountMsat); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.sendUsingAmount( + invoice: invoice, + amountMsat: amountMsat, + sendingParameters: sendingParameters); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } } ///A payment handler allowing to create and pay BOLT 12 offers and refunds. -class Bolt12Payment extends bolt12.LdkBolt12Payment { - Bolt12Payment._({required super.ptr}); +class Bolt12Payment extends bolt12.FfiBolt12Payment { + Bolt12Payment._({required super.opaque}); ///Returns a Refund object that can be used to offer a refund payment of the amount given. @override - Future initiateRefund( - {required BigInt amountMsat, required int expirySecs}) { + Future initiateRefund({ + required BigInt amountMsat, + required int expirySecs, + BigInt? quantity, + String? payerNote, + }) async { try { - return super - .initiateRefund(amountMsat: amountMsat, expirySecs: expirySecs); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.initiateRefund( + amountMsat: amountMsat, + expirySecs: expirySecs, + quantity: quantity, + payerNote: payerNote); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns a payable offer that can be used to request and receive a payment of the amount given. @override - Future receive( - {required BigInt amountMsat, required String description}) { + Future receive({ + required BigInt amountMsat, + required String description, + int? expirySecs, + BigInt? quantity, + }) async { try { - return super.receive(amountMsat: amountMsat, description: description); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.receive( + amountMsat: amountMsat, + description: description, + expirySecs: expirySecs, + quantity: quantity); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Returns a payable offer that can be used to request and receive a payment for which the amount is to be determined by the user, also known as a "zero-amount" offer. @override - Future receiveVariableAmount({required String description}) { + Future receiveVariableAmount( + {required String description, int? expirySecs}) async { try { - return super.receiveVariableAmount(description: description); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.receiveVariableAmount( + description: description, expirySecs: expirySecs); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -790,11 +877,11 @@ class Bolt12Payment extends bolt12.LdkBolt12Payment { /// The returned `Bolt12Invoice` is for informational purposes only (i. e., isn't needed to retrieve the refund). @override Future requestRefundPayment( - {required bolt12.Refund refund}) { + {required bolt12.Refund refund}) async { try { - return super.requestRefundPayment(refund: refund); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.requestRefundPayment(refund: refund); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } @@ -805,25 +892,78 @@ class Bolt12Payment extends bolt12.LdkBolt12Payment { @override Future sendUsingAmount( {required bolt12.Offer offer, + BigInt? quantity, String? payerNote, - required BigInt amountMsat}) { + required BigInt amountMsat}) async { try { - return super.sendUsingAmount( - offer: offer, payerNote: payerNote, amountMsat: amountMsat); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super.sendUsingAmount( + offer: offer, + payerNote: payerNote, + amountMsat: amountMsat, + quantity: quantity); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } ///Send a payment given an offer. /// If payer_note is Some it will be seen by the recipient and reflected back in the invoice response. @override - Future send( - {required bolt12.Offer offer, String? payerNote}) { + Future send({ + required bolt12.Offer offer, + String? payerNote, + BigInt? quantity, + }) async { try { - return super.send(offer: offer, payerNote: payerNote); - } on error.LdkNodeError catch (e) { - throw mapLdkNodeError(e); + return await super + .send(offer: offer, payerNote: payerNote, quantity: quantity); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); + } + } +} + +class UnifiedQrPayment extends unified_qr.FfiUnifiedQrPayment { + UnifiedQrPayment._({required super.opaque}); + + /// typically opt to use the provided BOLT11 invoice or BOLT12 offer. + /// + /// # Parameters + /// - `amount_sats`: The amount to be received, specified in satoshis. + /// - `description`: A description or note associated with the payment. + /// This message is visible to the payer and can provide context or details about the payment. + /// - `expiry_sec`: The expiration time for the payment, specified in seconds. + /// + /// Returns a payable URI that can be used to request and receive a payment of the amount + /// given. In case of an error, the function throws `:WalletOperationFailed`for on-chain + /// address issues, `InvoiceCreationFailed` for BOLT11 invoice issues, or + /// `OfferCreationFailed` for BOLT12 offer issues. + /// + /// The generated URI can then be given to a QR code library. + /// + /// [BOLT 11]: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md + /// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md + @override + Future receive( + {required BigInt amountSats, + required String message, + required int expirySec}) async { + try { + return await super.receive( + amountSats: amountSats, message: message, expirySec: expirySec); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); + } + } + + ///Sends a payment given a BIP 21 URI. + ///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. + @override + Future send({required String uriStr}) async { + try { + return await super.send(uriStr: uriStr); + } on error.FfiNodeError catch (e) { + throw mapFfiNodeError(e); } } } @@ -853,26 +993,16 @@ class Builder { /// Creates a new builder instance with the default configuration. /// factory Builder() { - return Builder._( - types.Config( - storageDirPath: '', - network: types.Network.bitcoin, - listeningAddresses: [ - types.SocketAddress.hostname(addr: "0.0.0.0", port: 9735) - ], - onchainWalletSyncIntervalSecs: BigInt.from(60), - walletSyncIntervalSecs: BigInt.from(20), - feeRateCacheUpdateIntervalSecs: BigInt.from(200), - logLevel: types.LogLevel.debug, - defaultCltvExpiryDelta: 144, - trustedPeers0Conf: [], - probingLiquidityLimitMultiplier: BigInt.from(3), - anchorChannelsConfig: types.AnchorChannelsConfig( - trustedPeersNoReserve: [], - perChannelReserveSats: BigInt.from(25000), - ), - ), - ); + return Builder._(types.Config( + storageDirPath: '', + network: types.Network.bitcoin, + listeningAddresses: [ + types.SocketAddress.hostname(addr: "0.0.0.0", port: 9735) + ], + logLevel: types.LogLevel.debug, + trustedPeers0Conf: [], + probingLiquidityLimitMultiplier: BigInt.from(3), + )); } /// Creates a new builder instance with default services configured for testnet. @@ -883,7 +1013,8 @@ class Builder { return builder .setNetwork(types.Network.testnet) - .setEsploraServer(DefaultServicesTestnet.esploraServerUrl) + .setChainSourceEsplora( + esploraServerUrl: DefaultServicesTestnet.esploraServerUrl) .setGossipSourceRgs(DefaultServicesTestnet.rgsServerUrl); } @@ -895,7 +1026,9 @@ class Builder { return builder .setNetwork(types.Network.signet) - .setEsploraServer(DefaultServicesMutinynet.esploraServerUrl) + .setChainSourceEsplora( + esploraServerUrl: DefaultServicesMutinynet.esploraServerUrl, + syncConfig: DefaultServicesMutinynet.esploraServerConfig) .setGossipSourceRgs(DefaultServicesMutinynet.rgsServerUrl) .setLiquiditySourceLsps2( address: types.SocketAddress.hostname( @@ -939,9 +1072,23 @@ class Builder { ///Configures the [Node] instance to source its chain data from the given Esplora server. /// - Builder setEsploraServer(String esploraServerUrl) { - _chainDataSourceConfig = - types.ChainDataSourceConfig.esplora(esploraServerUrl); + Builder setChainSourceEsplora( + {required String esploraServerUrl, types.EsploraSyncConfig? syncConfig}) { + _chainDataSourceConfig = types.ChainDataSourceConfig.esplora( + serverUrl: esploraServerUrl, syncConfig: syncConfig); + return this; + } + + Builder setChainSourceBitcoinRpc( + {required String rpcHost, + required int rpcPort, + required String rpcUser, + required String rpcPassword}) { + _chainDataSourceConfig = types.ChainDataSourceConfig.bitcoindRpc( + rpcHost: rpcHost, + rpcPort: rpcPort, + rpcUser: rpcUser, + rpcPassword: rpcPassword); return this; } @@ -981,10 +1128,35 @@ class Builder { /// /// Builder setListeningAddresses(List listeningAddresses) { + if (listeningAddresses.length > 100) { + throw BuilderException(message: "Given listening addresses are invalid."); + } _config!.listeningAddresses = listeningAddresses; return this; } + /// Sets the node alias that will be used when broadcasting announcements to the gossip + /// network. + /// + /// The provided alias must be a valid UTF-8 string and no longer than 32 bytes in total. + Builder setNodeAlias(String nodeAlias) { + // Alias must be 32 bytes or less. + if (nodeAlias.codeUnits.length > 32) { + throw BuilderException(message: "Invalid NodeAlias."); + } + final bytes = Uint8List(32) + ..setRange(0, nodeAlias.codeUnits.length, nodeAlias.codeUnits); + _config!.nodeAlias = types.NodeAlias(field0: U8Array32(bytes)); + return this; + } + + /// Sets the level at which [`Node`] will log messages. + /// + Builder setLogLevel(types.LogLevel logLevel) { + _config!.logLevel = logLevel; + return this; + } + /// Configures the [Node] instance to source its inbound liquidity from the given /// [LSPS2](https://github.com/BitcoinAndLightningLayerSpecs/lsp/blob/main/LSPS2/README.md) /// service. @@ -1004,7 +1176,6 @@ class Builder { /// Builds a [Node] instance with a SqliteStore backend and according to the options /// previously configured. /// - /// Future build() async { try { await Frb.verifyInit(); @@ -1013,16 +1184,16 @@ class Builder { final nodePath = "${directory.path}/ldk_cache/"; _config!.storageDirPath = nodePath; } - final res = await (await builder.NodeBuilder.createBuilder( + final res = await (await builder.FfiBuilder.createBuilder( config: _config ?? Builder()._config!, chainDataSourceConfig: _chainDataSourceConfig, entropySourceConfig: _entropySource, liquiditySourceConfig: _liquiditySourceConfig, gossipSourceConfig: _gossipSourceConfig)) .build(); - return Node._(ptr: res.ptr); - } on error.LdkBuilderError catch (e) { - throw mapLdkBuilderError(e); + return Node._(opaque: res.opaque); + } on error.FfiBuilderError catch (e) { + throw mapFfiBuilderError(e); } } @@ -1035,16 +1206,70 @@ class Builder { final nodePath = "${directory.path}/ldk_cache/"; _config!.storageDirPath = nodePath; } - final res = await (await builder.NodeBuilder.createBuilder( + final res = await (await builder.FfiBuilder.createBuilder( config: _config ?? Builder()._config!, chainDataSourceConfig: _chainDataSourceConfig, entropySourceConfig: _entropySource, liquiditySourceConfig: _liquiditySourceConfig, gossipSourceConfig: _gossipSourceConfig)) .buildWithFsStore(); - return Node._(ptr: res.ptr); - } on error.LdkBuilderError catch (e) { - throw mapLdkBuilderError(e); + return Node._(opaque: res.opaque); + } on error.FfiBuilderError catch (e) { + throw mapFfiBuilderError(e); + } + } + + Future buildWithVssStore( + {required String vssUrl, + required String storeId, + required String lnurlAuthServerUrl, + required Map fixedHeaders}) async { + try { + await Frb.verifyInit(); + if (_config!.storageDirPath == '') { + final directory = await getApplicationDocumentsDirectory(); + final nodePath = "${directory.path}/ldk_cache/"; + _config!.storageDirPath = nodePath; + } + final res = await (await builder.FfiBuilder.createBuilder( + config: _config ?? Builder()._config!, + chainDataSourceConfig: _chainDataSourceConfig, + entropySourceConfig: _entropySource, + liquiditySourceConfig: _liquiditySourceConfig, + gossipSourceConfig: _gossipSourceConfig)) + .buildWithVssStore( + vssUrl: vssUrl, + storeId: storeId, + lnurlAuthServerUrl: lnurlAuthServerUrl, + fixedHeaders: fixedHeaders); + return Node._(opaque: res.opaque); + } on error.FfiBuilderError catch (e) { + throw mapFfiBuilderError(e); + } + } + + Future buildWithvssStoreAndFixedHeaders( + {required String vssUrl, + required String store_id, + required Map fixedHeaders}) async { + try { + await Frb.verifyInit(); + if (_config!.storageDirPath == '') { + final directory = await getApplicationDocumentsDirectory(); + final nodePath = "${directory.path}/ldk_cache/"; + _config!.storageDirPath = nodePath; + } + final res = await (await builder.FfiBuilder.createBuilder( + config: _config ?? Builder()._config!, + chainDataSourceConfig: _chainDataSourceConfig, + entropySourceConfig: _entropySource, + liquiditySourceConfig: _liquiditySourceConfig, + gossipSourceConfig: _gossipSourceConfig)) + .buildWithVssStoreAndFixedHeaders( + vssUrl: vssUrl, storeId: store_id, fixedHeaders: fixedHeaders); + return Node._(opaque: res.opaque); + } on error.FfiBuilderError catch (e) { + throw mapFfiBuilderError(e); } } } diff --git a/lib/src/utils/default_services.dart b/lib/src/utils/default_services.dart index e1b5637..d0cb129 100644 --- a/lib/src/utils/default_services.dart +++ b/lib/src/utils/default_services.dart @@ -1,9 +1,15 @@ +import '../generated/api/types.dart'; + class DefaultServicesTestnet { static const String esploraServerUrl = 'https://testnet.ltbl.io/api'; static const String rgsServerUrl = 'https://testnet.ltbl.io/snapshot'; } class DefaultServicesMutinynet { + static var esploraServerConfig = EsploraSyncConfig( + onchainWalletSyncIntervalSecs: BigInt.from(60), + lightningWalletSyncIntervalSecs: BigInt.from(60), + feeRateCacheUpdateIntervalSecs: BigInt.from(600)); static const String esploraServerUrl = 'https://mutinynet.ltbl.io/api'; static const String rgsServerUrl = 'https://mutinynet.ltbl.io/snapshot'; static const String lsps2SourceAddress = '44.219.111.31'; diff --git a/lib/src/utils/exceptions.dart b/lib/src/utils/exceptions.dart index 0af8206..7f97325 100644 --- a/lib/src/utils/exceptions.dart +++ b/lib/src/utils/exceptions.dart @@ -17,46 +17,47 @@ class BuilderException extends ExceptionBase { BuilderException({super.message}); } -BuilderException mapLdkBuilderError(error.LdkBuilderError e) { +BuilderException mapFfiBuilderError(error.FfiBuilderError e) { switch (e) { - case error.LdkBuilderError.invalidSeedBytes: + case error.FfiBuilderError.invalidSeedBytes: return BuilderException(message: "Given seed bytes are invalid."); - case error.LdkBuilderError.invalidSeedFile: + case error.FfiBuilderError.invalidSeedFile: return BuilderException( message: "Given seed file is invalid or could not be read."); - case error.LdkBuilderError.invalidSystemTime: + case error.FfiBuilderError.invalidSystemTime: return BuilderException( message: "System time is invalid. Clocks might have gone back in time."); - case error.LdkBuilderError.readFailed: + case error.FfiBuilderError.readFailed: return BuilderException(message: "Failed to read from store."); - case error.LdkBuilderError.writeFailed: + case error.FfiBuilderError.writeFailed: return BuilderException(message: "Failed to write to store."); - case error.LdkBuilderError.storagePathAccessFailed: + case error.FfiBuilderError.storagePathAccessFailed: return BuilderException( message: "Failed to access the given storage path."); - case error.LdkBuilderError.walletSetupFailed: + case error.FfiBuilderError.walletSetupFailed: return BuilderException(message: "Failed to setup onchain wallet."); - case error.LdkBuilderError.loggerSetupFailed: + case error.FfiBuilderError.loggerSetupFailed: return BuilderException(message: "Failed to setup the logger."); - case error.LdkBuilderError.invalidChannelMonitor: + case error.FfiBuilderError.invalidChannelMonitor: return BuilderException( message: "Failed to watch a deserialized ChannelMonitor."); - case error.LdkBuilderError.invalidListeningAddress: + case error.FfiBuilderError.invalidListeningAddress: return BuilderException( message: "Given listening addresses are invalid."); - case error.LdkBuilderError.kvStoreSetupFailed: + case error.FfiBuilderError.kvStoreSetupFailed: return BuilderException(message: "Failed to setup KVStore."); - case error.LdkBuilderError.socketAddressParseError: + case error.FfiBuilderError.socketAddressParseError: return BuilderException(message: "Invalid SocketAddress."); - - case error.LdkBuilderError.invalidPublicKey: + case error.FfiBuilderError.invalidNodeAlias: + return BuilderException(message: "Invalid NodeAlias."); + case error.FfiBuilderError.invalidPublicKey: return BuilderException(message: "Invalid PublicKey."); } } -NodeException mapLdkNodeError(error.LdkNodeError e) { +NodeException mapFfiNodeError(error.FfiNodeError e) { return e.map( alreadyRunning: (_) => NodeException(message: "Node is already running."), notRunning: (_) => NodeException(message: "Node is not running."), @@ -136,7 +137,11 @@ NodeException mapLdkNodeError(error.LdkNodeError e) { invalidNodeId: (e) => NodeException(message: "The given node id is invalid."), invalidOffer: (e) => NodeException(message: "The given offer is invalid."), invalidRefund: (e) => NodeException(message: "The given refund is invalid."), - unsupportedCurrency: (e) => NodeException(message: "The provided offer was denominated in an unsupported currency.")); + unsupportedCurrency: (e) => NodeException(message: "The provided offer was denominated in an unsupported currency."), + uriParameterParsingFailed: (e) => NodeException(message: "Parsing a URI parameter has failed."), + invalidUri: (e) => NodeException(message: "The given URI is invalid."), + invalidQuantity: (e) => NodeException(message: "The given quantity is invalid."), + invalidNodeAlias: (e) => NodeException(message: "The given node alias is invalid.")); } NodeException mapLdkDecodeError(error.DecodeError e) { diff --git a/lib/src/utils/utils.dart b/lib/src/utils/frb.dart similarity index 92% rename from lib/src/utils/utils.dart rename to lib/src/utils/frb.dart index 2f58dbf..6b53d8b 100644 --- a/lib/src/utils/utils.dart +++ b/lib/src/utils/frb.dart @@ -2,8 +2,6 @@ import 'package:flutter/foundation.dart'; import '../generated/frb_generated.dart'; -export 'exceptions.dart'; - class Frb { static Future verifyInit() async { try { diff --git a/macos/Classes/EnforceBundling.swift b/macos/Classes/EnforceBundling.swift new file mode 100644 index 0000000..f95cacb --- /dev/null +++ b/macos/Classes/EnforceBundling.swift @@ -0,0 +1,4 @@ +public func dummyMethodToEnforceBundling() -> Int64 { + return dummy_method_to_enforce_bundling() +} +let dummyVar = dummyMethodToEnforceBundling(); diff --git a/macos/Classes/frb_generated.h b/macos/Classes/frb_generated.h new file mode 100644 index 0000000..131795e --- /dev/null +++ b/macos/Classes/frb_generated.h @@ -0,0 +1,1417 @@ +#include +#include +#include +// EXTRA BEGIN +typedef struct DartCObject *WireSyncRust2DartDco; +typedef struct WireSyncRust2DartSse { + uint8_t *ptr; + int32_t len; +} WireSyncRust2DartSse; + +typedef int64_t DartPort; +typedef bool (*DartPostCObjectFnType)(DartPort port_id, void *message); +void store_dart_post_cobject(DartPostCObjectFnType ptr); +// EXTRA END +typedef struct _Dart_Handle* Dart_Handle; + +typedef struct wire_cst_ffi_bolt_11_payment { + uintptr_t opaque; +} wire_cst_ffi_bolt_11_payment; + +typedef struct wire_cst_list_prim_u_8_strict { + uint8_t *ptr; + int32_t len; +} wire_cst_list_prim_u_8_strict; + +typedef struct wire_cst_payment_hash { + struct wire_cst_list_prim_u_8_strict *data; +} wire_cst_payment_hash; + +typedef struct wire_cst_payment_preimage { + struct wire_cst_list_prim_u_8_strict *data; +} wire_cst_payment_preimage; + +typedef struct wire_cst_bolt_11_invoice { + struct wire_cst_list_prim_u_8_strict *signed_raw_invoice; +} wire_cst_bolt_11_invoice; + +typedef struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap { + uint64_t amount_msat; +} wire_cst_MaxTotalRoutingFeeLimit_FeeCap; + +typedef union MaxTotalRoutingFeeLimitKind { + struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap FeeCap; +} MaxTotalRoutingFeeLimitKind; + +typedef struct wire_cst_max_total_routing_fee_limit { + int32_t tag; + union MaxTotalRoutingFeeLimitKind kind; +} wire_cst_max_total_routing_fee_limit; + +typedef struct wire_cst_sending_parameters { + struct wire_cst_max_total_routing_fee_limit *max_total_routing_fee_msat; + uint32_t *max_total_cltv_expiry_delta; + uint8_t *max_path_count; + uint8_t *max_channel_saturation_power_of_half; +} wire_cst_sending_parameters; + +typedef struct wire_cst_ffi_bolt_12_payment { + uintptr_t opaque; +} wire_cst_ffi_bolt_12_payment; + +typedef struct wire_cst_refund { + struct wire_cst_list_prim_u_8_strict *s; +} wire_cst_refund; + +typedef struct wire_cst_offer { + struct wire_cst_list_prim_u_8_strict *s; +} wire_cst_offer; + +typedef struct wire_cst_record_string_string { + struct wire_cst_list_prim_u_8_strict *field0; + struct wire_cst_list_prim_u_8_strict *field1; +} wire_cst_record_string_string; + +typedef struct wire_cst_list_record_string_string { + struct wire_cst_record_string_string *ptr; + int32_t len; +} wire_cst_list_record_string_string; + +typedef struct wire_cst_SocketAddress_TcpIpV4 { + struct wire_cst_list_prim_u_8_strict *addr; + uint16_t port; +} wire_cst_SocketAddress_TcpIpV4; + +typedef struct wire_cst_SocketAddress_TcpIpV6 { + struct wire_cst_list_prim_u_8_strict *addr; + uint16_t port; +} wire_cst_SocketAddress_TcpIpV6; + +typedef struct wire_cst_SocketAddress_OnionV2 { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_SocketAddress_OnionV2; + +typedef struct wire_cst_SocketAddress_OnionV3 { + struct wire_cst_list_prim_u_8_strict *ed25519_pubkey; + uint16_t checksum; + uint8_t version; + uint16_t port; +} wire_cst_SocketAddress_OnionV3; + +typedef struct wire_cst_SocketAddress_Hostname { + struct wire_cst_list_prim_u_8_strict *addr; + uint16_t port; +} wire_cst_SocketAddress_Hostname; + +typedef union SocketAddressKind { + struct wire_cst_SocketAddress_TcpIpV4 TcpIpV4; + struct wire_cst_SocketAddress_TcpIpV6 TcpIpV6; + struct wire_cst_SocketAddress_OnionV2 OnionV2; + struct wire_cst_SocketAddress_OnionV3 OnionV3; + struct wire_cst_SocketAddress_Hostname Hostname; +} SocketAddressKind; + +typedef struct wire_cst_socket_address { + int32_t tag; + union SocketAddressKind kind; +} wire_cst_socket_address; + +typedef struct wire_cst_list_socket_address { + struct wire_cst_socket_address *ptr; + int32_t len; +} wire_cst_list_socket_address; + +typedef struct wire_cst_node_alias { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_node_alias; + +typedef struct wire_cst_public_key { + struct wire_cst_list_prim_u_8_strict *hex; +} wire_cst_public_key; + +typedef struct wire_cst_list_public_key { + struct wire_cst_public_key *ptr; + int32_t len; +} wire_cst_list_public_key; + +typedef struct wire_cst_anchor_channels_config { + struct wire_cst_list_public_key *trusted_peers_no_reserve; + uint64_t per_channel_reserve_sats; +} wire_cst_anchor_channels_config; + +typedef struct wire_cst_config { + struct wire_cst_list_prim_u_8_strict *storage_dir_path; + struct wire_cst_list_prim_u_8_strict *log_dir_path; + int32_t network; + struct wire_cst_list_socket_address *listening_addresses; + struct wire_cst_node_alias *node_alias; + struct wire_cst_list_public_key *trusted_peers_0conf; + uint64_t probing_liquidity_limit_multiplier; + int32_t log_level; + struct wire_cst_anchor_channels_config *anchor_channels_config; + struct wire_cst_sending_parameters *sending_parameters; +} wire_cst_config; + +typedef struct wire_cst_esplora_sync_config { + uint64_t onchain_wallet_sync_interval_secs; + uint64_t lightning_wallet_sync_interval_secs; + uint64_t fee_rate_cache_update_interval_secs; +} wire_cst_esplora_sync_config; + +typedef struct wire_cst_ChainDataSourceConfig_Esplora { + struct wire_cst_list_prim_u_8_strict *server_url; + struct wire_cst_esplora_sync_config *sync_config; +} wire_cst_ChainDataSourceConfig_Esplora; + +typedef struct wire_cst_ChainDataSourceConfig_BitcoindRpc { + struct wire_cst_list_prim_u_8_strict *rpc_host; + uint16_t rpc_port; + struct wire_cst_list_prim_u_8_strict *rpc_user; + struct wire_cst_list_prim_u_8_strict *rpc_password; +} wire_cst_ChainDataSourceConfig_BitcoindRpc; + +typedef union ChainDataSourceConfigKind { + struct wire_cst_ChainDataSourceConfig_Esplora Esplora; + struct wire_cst_ChainDataSourceConfig_BitcoindRpc BitcoindRpc; +} ChainDataSourceConfigKind; + +typedef struct wire_cst_chain_data_source_config { + int32_t tag; + union ChainDataSourceConfigKind kind; +} wire_cst_chain_data_source_config; + +typedef struct wire_cst_EntropySourceConfig_SeedFile { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_EntropySourceConfig_SeedFile; + +typedef struct wire_cst_EntropySourceConfig_SeedBytes { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_EntropySourceConfig_SeedBytes; + +typedef struct wire_cst_ffi_mnemonic { + struct wire_cst_list_prim_u_8_strict *seed_phrase; +} wire_cst_ffi_mnemonic; + +typedef struct wire_cst_EntropySourceConfig_Bip39Mnemonic { + struct wire_cst_ffi_mnemonic *mnemonic; + struct wire_cst_list_prim_u_8_strict *passphrase; +} wire_cst_EntropySourceConfig_Bip39Mnemonic; + +typedef union EntropySourceConfigKind { + struct wire_cst_EntropySourceConfig_SeedFile SeedFile; + struct wire_cst_EntropySourceConfig_SeedBytes SeedBytes; + struct wire_cst_EntropySourceConfig_Bip39Mnemonic Bip39Mnemonic; +} EntropySourceConfigKind; + +typedef struct wire_cst_entropy_source_config { + int32_t tag; + union EntropySourceConfigKind kind; +} wire_cst_entropy_source_config; + +typedef struct wire_cst_GossipSourceConfig_RapidGossipSync { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_GossipSourceConfig_RapidGossipSync; + +typedef union GossipSourceConfigKind { + struct wire_cst_GossipSourceConfig_RapidGossipSync RapidGossipSync; +} GossipSourceConfigKind; + +typedef struct wire_cst_gossip_source_config { + int32_t tag; + union GossipSourceConfigKind kind; +} wire_cst_gossip_source_config; + +typedef struct wire_cst_record_socket_address_public_key_opt_string { + struct wire_cst_socket_address field0; + struct wire_cst_public_key field1; + struct wire_cst_list_prim_u_8_strict *field2; +} wire_cst_record_socket_address_public_key_opt_string; + +typedef struct wire_cst_liquidity_source_config { + struct wire_cst_record_socket_address_public_key_opt_string lsps2_service; +} wire_cst_liquidity_source_config; + +typedef struct wire_cst_ffi_network_graph { + uintptr_t opaque; +} wire_cst_ffi_network_graph; + +typedef struct wire_cst_node_id { + struct wire_cst_list_prim_u_8_strict *compressed; +} wire_cst_node_id; + +typedef struct wire_cst_ffi_node { + uintptr_t opaque; +} wire_cst_ffi_node; + +typedef struct wire_cst_user_channel_id { + struct wire_cst_list_prim_u_8_strict *data; +} wire_cst_user_channel_id; + +typedef struct wire_cst_MaxDustHTLCExposure_FixedLimitMsat { + uint64_t field0; +} wire_cst_MaxDustHTLCExposure_FixedLimitMsat; + +typedef struct wire_cst_MaxDustHTLCExposure_FeeRateMultiplier { + uint64_t field0; +} wire_cst_MaxDustHTLCExposure_FeeRateMultiplier; + +typedef union MaxDustHTLCExposureKind { + struct wire_cst_MaxDustHTLCExposure_FixedLimitMsat FixedLimitMsat; + struct wire_cst_MaxDustHTLCExposure_FeeRateMultiplier FeeRateMultiplier; +} MaxDustHTLCExposureKind; + +typedef struct wire_cst_max_dust_htlc_exposure { + int32_t tag; + union MaxDustHTLCExposureKind kind; +} wire_cst_max_dust_htlc_exposure; + +typedef struct wire_cst_channel_config { + uint32_t forwarding_fee_proportional_millionths; + uint32_t forwarding_fee_base_msat; + uint16_t cltv_expiry_delta; + struct wire_cst_max_dust_htlc_exposure max_dust_htlc_exposure; + uint64_t force_close_avoidance_max_fee_satoshis; + bool accept_underpaying_htlcs; +} wire_cst_channel_config; + +typedef struct wire_cst_payment_id { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_payment_id; + +typedef struct wire_cst_list_prim_u_8_loose { + uint8_t *ptr; + int32_t len; +} wire_cst_list_prim_u_8_loose; + +typedef struct wire_cst_ffi_on_chain_payment { + uintptr_t opaque; +} wire_cst_ffi_on_chain_payment; + +typedef struct wire_cst_address { + struct wire_cst_list_prim_u_8_strict *s; +} wire_cst_address; + +typedef struct wire_cst_ffi_spontaneous_payment { + uintptr_t opaque; +} wire_cst_ffi_spontaneous_payment; + +typedef struct wire_cst_ffi_unified_qr_payment { + uintptr_t opaque; +} wire_cst_ffi_unified_qr_payment; + +typedef struct wire_cst_Bolt12ParseError_Bech32 { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_Bolt12ParseError_Bech32; + +typedef struct wire_cst_DecodeError_Io { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_DecodeError_Io; + +typedef union DecodeErrorKind { + struct wire_cst_DecodeError_Io Io; +} DecodeErrorKind; + +typedef struct wire_cst_decode_error { + int32_t tag; + union DecodeErrorKind kind; +} wire_cst_decode_error; + +typedef struct wire_cst_Bolt12ParseError_Decode { + struct wire_cst_decode_error *field0; +} wire_cst_Bolt12ParseError_Decode; + +typedef struct wire_cst_Bolt12ParseError_InvalidSemantics { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_Bolt12ParseError_InvalidSemantics; + +typedef struct wire_cst_Bolt12ParseError_InvalidSignature { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_Bolt12ParseError_InvalidSignature; + +typedef union Bolt12ParseErrorKind { + struct wire_cst_Bolt12ParseError_Bech32 Bech32; + struct wire_cst_Bolt12ParseError_Decode Decode; + struct wire_cst_Bolt12ParseError_InvalidSemantics InvalidSemantics; + struct wire_cst_Bolt12ParseError_InvalidSignature InvalidSignature; +} Bolt12ParseErrorKind; + +typedef struct wire_cst_bolt_12_parse_error { + int32_t tag; + union Bolt12ParseErrorKind kind; +} wire_cst_bolt_12_parse_error; + +typedef struct wire_cst_channel_id { + struct wire_cst_list_prim_u_8_strict *data; +} wire_cst_channel_id; + +typedef struct wire_cst_routing_fees { + uint32_t base_msat; + uint32_t proportional_millionths; +} wire_cst_routing_fees; + +typedef struct wire_cst_channel_update_info { + uint32_t last_update; + bool enabled; + uint16_t cltv_expiry_delta; + uint64_t htlc_minimum_msat; + uint64_t htlc_maximum_msat; + struct wire_cst_routing_fees fees; +} wire_cst_channel_update_info; + +typedef struct wire_cst_channel_info { + struct wire_cst_node_id node_one; + struct wire_cst_channel_update_info *one_to_two; + struct wire_cst_node_id node_two; + struct wire_cst_channel_update_info *two_to_one; + uint64_t *capacity_sats; +} wire_cst_channel_info; + +typedef struct wire_cst_ClosureReason_PeerFeerateTooLow { + uint32_t peer_feerate_sat_per_kw; + uint32_t required_feerate_sat_per_kw; +} wire_cst_ClosureReason_PeerFeerateTooLow; + +typedef struct wire_cst_ClosureReason_CounterpartyForceClosed { + struct wire_cst_list_prim_u_8_strict *peer_msg; +} wire_cst_ClosureReason_CounterpartyForceClosed; + +typedef struct wire_cst_ClosureReason_HolderForceClosed { + bool *broadcasted_latest_txn; +} wire_cst_ClosureReason_HolderForceClosed; + +typedef struct wire_cst_ClosureReason_ProcessingError { + struct wire_cst_list_prim_u_8_strict *err; +} wire_cst_ClosureReason_ProcessingError; + +typedef union ClosureReasonKind { + struct wire_cst_ClosureReason_PeerFeerateTooLow PeerFeerateTooLow; + struct wire_cst_ClosureReason_CounterpartyForceClosed CounterpartyForceClosed; + struct wire_cst_ClosureReason_HolderForceClosed HolderForceClosed; + struct wire_cst_ClosureReason_ProcessingError ProcessingError; +} ClosureReasonKind; + +typedef struct wire_cst_closure_reason { + int32_t tag; + union ClosureReasonKind kind; +} wire_cst_closure_reason; + +typedef struct wire_cst_Event_PaymentClaimable { + struct wire_cst_payment_id *payment_id; + struct wire_cst_payment_hash *payment_hash; + uint64_t claimable_amount_msat; + uint32_t *claim_deadline; +} wire_cst_Event_PaymentClaimable; + +typedef struct wire_cst_Event_PaymentSuccessful { + struct wire_cst_payment_id *payment_id; + struct wire_cst_payment_hash *payment_hash; + uint64_t *fee_paid_msat; +} wire_cst_Event_PaymentSuccessful; + +typedef struct wire_cst_Event_PaymentFailed { + struct wire_cst_payment_id *payment_id; + struct wire_cst_payment_hash *payment_hash; + int32_t *reason; +} wire_cst_Event_PaymentFailed; + +typedef struct wire_cst_Event_PaymentReceived { + struct wire_cst_payment_id *payment_id; + struct wire_cst_payment_hash *payment_hash; + uint64_t amount_msat; +} wire_cst_Event_PaymentReceived; + +typedef struct wire_cst_txid { + struct wire_cst_list_prim_u_8_strict *hash; +} wire_cst_txid; + +typedef struct wire_cst_out_point { + struct wire_cst_txid txid; + uint32_t vout; +} wire_cst_out_point; + +typedef struct wire_cst_Event_ChannelPending { + struct wire_cst_channel_id *channel_id; + struct wire_cst_user_channel_id *user_channel_id; + struct wire_cst_channel_id *former_temporary_channel_id; + struct wire_cst_public_key *counterparty_node_id; + struct wire_cst_out_point *funding_txo; +} wire_cst_Event_ChannelPending; + +typedef struct wire_cst_Event_ChannelReady { + struct wire_cst_channel_id *channel_id; + struct wire_cst_user_channel_id *user_channel_id; + struct wire_cst_public_key *counterparty_node_id; +} wire_cst_Event_ChannelReady; + +typedef struct wire_cst_Event_ChannelClosed { + struct wire_cst_channel_id *channel_id; + struct wire_cst_user_channel_id *user_channel_id; + struct wire_cst_public_key *counterparty_node_id; + struct wire_cst_closure_reason *reason; +} wire_cst_Event_ChannelClosed; + +typedef union EventKind { + struct wire_cst_Event_PaymentClaimable PaymentClaimable; + struct wire_cst_Event_PaymentSuccessful PaymentSuccessful; + struct wire_cst_Event_PaymentFailed PaymentFailed; + struct wire_cst_Event_PaymentReceived PaymentReceived; + struct wire_cst_Event_ChannelPending ChannelPending; + struct wire_cst_Event_ChannelReady ChannelReady; + struct wire_cst_Event_ChannelClosed ChannelClosed; +} EventKind; + +typedef struct wire_cst_event { + int32_t tag; + union EventKind kind; +} wire_cst_event; + +typedef struct wire_cst_lsp_fee_limits { + uint64_t *max_total_opening_fee_msat; + uint64_t *max_proportional_opening_fee_ppm_msat; +} wire_cst_lsp_fee_limits; + +typedef struct wire_cst_node_announcement_info { + uint32_t last_update; + struct wire_cst_list_prim_u_8_strict *alias; + struct wire_cst_list_socket_address *addresses; +} wire_cst_node_announcement_info; + +typedef struct wire_cst_list_prim_u_64_strict { + uint64_t *ptr; + int32_t len; +} wire_cst_list_prim_u_64_strict; + +typedef struct wire_cst_node_info { + struct wire_cst_list_prim_u_64_strict *channels; + struct wire_cst_node_announcement_info *announcement_info; +} wire_cst_node_info; + +typedef struct wire_cst_offer_id { + struct wire_cst_list_prim_u_8_strict *field0; +} wire_cst_offer_id; + +typedef struct wire_cst_payment_secret { + struct wire_cst_list_prim_u_8_strict *data; +} wire_cst_payment_secret; + +typedef struct wire_cst_PaymentKind_Bolt11 { + struct wire_cst_payment_hash *hash; + struct wire_cst_payment_preimage *preimage; + struct wire_cst_payment_secret *secret; +} wire_cst_PaymentKind_Bolt11; + +typedef struct wire_cst_PaymentKind_Bolt11Jit { + struct wire_cst_payment_hash *hash; + struct wire_cst_payment_preimage *preimage; + struct wire_cst_payment_secret *secret; + struct wire_cst_lsp_fee_limits *lsp_fee_limits; +} wire_cst_PaymentKind_Bolt11Jit; + +typedef struct wire_cst_PaymentKind_Spontaneous { + struct wire_cst_payment_hash *hash; + struct wire_cst_payment_preimage *preimage; +} wire_cst_PaymentKind_Spontaneous; + +typedef struct wire_cst_PaymentKind_Bolt12Offer { + struct wire_cst_payment_hash *hash; + struct wire_cst_payment_preimage *preimage; + struct wire_cst_payment_secret *secret; + struct wire_cst_offer_id *offer_id; + struct wire_cst_list_prim_u_8_strict *payer_note; + uint64_t *quantity; +} wire_cst_PaymentKind_Bolt12Offer; + +typedef struct wire_cst_PaymentKind_Bolt12Refund { + struct wire_cst_payment_hash *hash; + struct wire_cst_payment_preimage *preimage; + struct wire_cst_payment_secret *secret; + struct wire_cst_list_prim_u_8_strict *payer_note; + uint64_t *quantity; +} wire_cst_PaymentKind_Bolt12Refund; + +typedef union PaymentKindKind { + struct wire_cst_PaymentKind_Bolt11 Bolt11; + struct wire_cst_PaymentKind_Bolt11Jit Bolt11Jit; + struct wire_cst_PaymentKind_Spontaneous Spontaneous; + struct wire_cst_PaymentKind_Bolt12Offer Bolt12Offer; + struct wire_cst_PaymentKind_Bolt12Refund Bolt12Refund; +} PaymentKindKind; + +typedef struct wire_cst_payment_kind { + int32_t tag; + union PaymentKindKind kind; +} wire_cst_payment_kind; + +typedef struct wire_cst_payment_details { + struct wire_cst_payment_id id; + struct wire_cst_payment_kind kind; + uint64_t *amount_msat; + int32_t direction; + int32_t status; + uint64_t latest_update_timestamp; +} wire_cst_payment_details; + +typedef struct wire_cst_channel_details { + struct wire_cst_channel_id channel_id; + struct wire_cst_public_key counterparty_node_id; + struct wire_cst_out_point *funding_txo; + uint64_t channel_value_sats; + uint64_t *unspendable_punishment_reserve; + struct wire_cst_user_channel_id user_channel_id; + uint32_t feerate_sat_per_1000_weight; + uint64_t outbound_capacity_msat; + uint64_t inbound_capacity_msat; + uint32_t *confirmations_required; + uint32_t *confirmations; + bool is_outbound; + bool is_channel_ready; + bool is_usable; + uint16_t *cltv_expiry_delta; + uint64_t counterparty_unspendable_punishment_reserve; + uint64_t *counterparty_outbound_htlc_minimum_msat; + uint64_t *counterparty_outbound_htlc_maximum_msat; + uint32_t *counterparty_forwarding_info_fee_base_msat; + uint32_t *counterparty_forwarding_info_fee_proportional_millionths; + uint16_t *counterparty_forwarding_info_cltv_expiry_delta; + uint64_t next_outbound_htlc_limit_msat; + uint64_t next_outbound_htlc_minimum_msat; + uint16_t *force_close_spend_delay; + uint64_t inbound_htlc_minimum_msat; + uint64_t *inbound_htlc_maximum_msat; + struct wire_cst_channel_config config; +} wire_cst_channel_details; + +typedef struct wire_cst_list_channel_details { + struct wire_cst_channel_details *ptr; + int32_t len; +} wire_cst_list_channel_details; + +typedef struct wire_cst_LightningBalance_ClaimableOnChannelClose { + struct wire_cst_channel_id *channel_id; + struct wire_cst_public_key *counterparty_node_id; + uint64_t amount_satoshis; + uint64_t transaction_fee_satoshis; + uint64_t outbound_payment_htlc_rounded_msat; + uint64_t outbound_forwarded_htlc_rounded_msat; + uint64_t inbound_claiming_htlc_rounded_msat; + uint64_t inbound_htlc_rounded_msat; +} wire_cst_LightningBalance_ClaimableOnChannelClose; + +typedef struct wire_cst_LightningBalance_ClaimableAwaitingConfirmations { + struct wire_cst_channel_id *channel_id; + struct wire_cst_public_key *counterparty_node_id; + uint64_t amount_satoshis; + uint32_t confirmation_height; + int32_t source; +} wire_cst_LightningBalance_ClaimableAwaitingConfirmations; + +typedef struct wire_cst_LightningBalance_ContentiousClaimable { + struct wire_cst_channel_id *channel_id; + struct wire_cst_public_key *counterparty_node_id; + uint64_t amount_satoshis; + uint32_t timeout_height; + struct wire_cst_payment_hash *payment_hash; + struct wire_cst_payment_preimage *payment_preimage; +} wire_cst_LightningBalance_ContentiousClaimable; + +typedef struct wire_cst_LightningBalance_MaybeTimeoutClaimableHTLC { + struct wire_cst_channel_id *channel_id; + struct wire_cst_public_key *counterparty_node_id; + uint64_t amount_satoshis; + uint32_t claimable_height; + struct wire_cst_payment_hash *payment_hash; + bool outbound_payment; +} wire_cst_LightningBalance_MaybeTimeoutClaimableHTLC; + +typedef struct wire_cst_LightningBalance_MaybePreimageClaimableHTLC { + struct wire_cst_channel_id *channel_id; + struct wire_cst_public_key *counterparty_node_id; + uint64_t amount_satoshis; + uint32_t expiry_height; + struct wire_cst_payment_hash *payment_hash; +} wire_cst_LightningBalance_MaybePreimageClaimableHTLC; + +typedef struct wire_cst_LightningBalance_CounterpartyRevokedOutputClaimable { + struct wire_cst_channel_id *channel_id; + struct wire_cst_public_key *counterparty_node_id; + uint64_t amount_satoshis; +} wire_cst_LightningBalance_CounterpartyRevokedOutputClaimable; + +typedef union LightningBalanceKind { + struct wire_cst_LightningBalance_ClaimableOnChannelClose ClaimableOnChannelClose; + struct wire_cst_LightningBalance_ClaimableAwaitingConfirmations ClaimableAwaitingConfirmations; + struct wire_cst_LightningBalance_ContentiousClaimable ContentiousClaimable; + struct wire_cst_LightningBalance_MaybeTimeoutClaimableHTLC MaybeTimeoutClaimableHTLC; + struct wire_cst_LightningBalance_MaybePreimageClaimableHTLC MaybePreimageClaimableHTLC; + struct wire_cst_LightningBalance_CounterpartyRevokedOutputClaimable CounterpartyRevokedOutputClaimable; +} LightningBalanceKind; + +typedef struct wire_cst_lightning_balance { + int32_t tag; + union LightningBalanceKind kind; +} wire_cst_lightning_balance; + +typedef struct wire_cst_list_lightning_balance { + struct wire_cst_lightning_balance *ptr; + int32_t len; +} wire_cst_list_lightning_balance; + +typedef struct wire_cst_list_node_id { + struct wire_cst_node_id *ptr; + int32_t len; +} wire_cst_list_node_id; + +typedef struct wire_cst_list_payment_details { + struct wire_cst_payment_details *ptr; + int32_t len; +} wire_cst_list_payment_details; + +typedef struct wire_cst_peer_details { + struct wire_cst_public_key node_id; + struct wire_cst_socket_address address; + bool is_connected; +} wire_cst_peer_details; + +typedef struct wire_cst_list_peer_details { + struct wire_cst_peer_details *ptr; + int32_t len; +} wire_cst_list_peer_details; + +typedef struct wire_cst_PendingSweepBalance_PendingBroadcast { + struct wire_cst_channel_id *channel_id; + uint64_t amount_satoshis; +} wire_cst_PendingSweepBalance_PendingBroadcast; + +typedef struct wire_cst_PendingSweepBalance_BroadcastAwaitingConfirmation { + struct wire_cst_channel_id *channel_id; + uint32_t latest_broadcast_height; + struct wire_cst_txid *latest_spending_txid; + uint64_t amount_satoshis; +} wire_cst_PendingSweepBalance_BroadcastAwaitingConfirmation; + +typedef struct wire_cst_PendingSweepBalance_AwaitingThresholdConfirmations { + struct wire_cst_channel_id *channel_id; + struct wire_cst_txid *latest_spending_txid; + struct wire_cst_list_prim_u_8_strict *confirmation_hash; + uint32_t confirmation_height; + uint64_t amount_satoshis; +} wire_cst_PendingSweepBalance_AwaitingThresholdConfirmations; + +typedef union PendingSweepBalanceKind { + struct wire_cst_PendingSweepBalance_PendingBroadcast PendingBroadcast; + struct wire_cst_PendingSweepBalance_BroadcastAwaitingConfirmation BroadcastAwaitingConfirmation; + struct wire_cst_PendingSweepBalance_AwaitingThresholdConfirmations AwaitingThresholdConfirmations; +} PendingSweepBalanceKind; + +typedef struct wire_cst_pending_sweep_balance { + int32_t tag; + union PendingSweepBalanceKind kind; +} wire_cst_pending_sweep_balance; + +typedef struct wire_cst_list_pending_sweep_balance { + struct wire_cst_pending_sweep_balance *ptr; + int32_t len; +} wire_cst_list_pending_sweep_balance; + +typedef struct wire_cst_balance_details { + uint64_t total_onchain_balance_sats; + uint64_t spendable_onchain_balance_sats; + uint64_t total_lightning_balance_sats; + struct wire_cst_list_lightning_balance *lightning_balances; + struct wire_cst_list_pending_sweep_balance *pending_balances_from_channel_closures; +} wire_cst_balance_details; + +typedef struct wire_cst_best_block { + struct wire_cst_list_prim_u_8_strict *block_hash; + uint32_t height; +} wire_cst_best_block; + +typedef struct wire_cst_bolt_12_invoice { + struct wire_cst_list_prim_u_8_strict *data; +} wire_cst_bolt_12_invoice; + +typedef struct wire_cst_FfiNodeError_Decode { + struct wire_cst_decode_error *field0; +} wire_cst_FfiNodeError_Decode; + +typedef struct wire_cst_FfiNodeError_Bolt12Parse { + struct wire_cst_bolt_12_parse_error *field0; +} wire_cst_FfiNodeError_Bolt12Parse; + +typedef union FfiNodeErrorKind { + struct wire_cst_FfiNodeError_Decode Decode; + struct wire_cst_FfiNodeError_Bolt12Parse Bolt12Parse; +} FfiNodeErrorKind; + +typedef struct wire_cst_ffi_node_error { + int32_t tag; + union FfiNodeErrorKind kind; +} wire_cst_ffi_node_error; + +typedef struct wire_cst_node_status { + bool is_running; + bool is_listening; + struct wire_cst_best_block current_best_block; + uint64_t *latest_lightning_wallet_sync_timestamp; + uint64_t *latest_onchain_wallet_sync_timestamp; + uint64_t *latest_fee_rate_cache_update_timestamp; + uint64_t *latest_rgs_snapshot_timestamp; + uint64_t *latest_node_announcement_broadcast_timestamp; + uint32_t *latest_channel_monitor_archival_height; +} wire_cst_node_status; + +typedef struct wire_cst_QrPaymentResult_Onchain { + struct wire_cst_txid *txid; +} wire_cst_QrPaymentResult_Onchain; + +typedef struct wire_cst_QrPaymentResult_Bolt11 { + struct wire_cst_payment_id *payment_id; +} wire_cst_QrPaymentResult_Bolt11; + +typedef struct wire_cst_QrPaymentResult_Bolt12 { + struct wire_cst_payment_id *payment_id; +} wire_cst_QrPaymentResult_Bolt12; + +typedef union QrPaymentResultKind { + struct wire_cst_QrPaymentResult_Onchain Onchain; + struct wire_cst_QrPaymentResult_Bolt11 Bolt11; + struct wire_cst_QrPaymentResult_Bolt12 Bolt12; +} QrPaymentResultKind; + +typedef struct wire_cst_qr_payment_result { + int32_t tag; + union QrPaymentResultKind kind; +} wire_cst_qr_payment_result; + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_payment_hash *payment_hash, + uint64_t claimable_amount_msat, + struct wire_cst_payment_preimage *preimage); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_payment_hash *payment_hash); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + uint64_t amount_msat, + struct wire_cst_list_prim_u_8_strict *description, + uint32_t expiry_secs); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_payment_hash *payment_hash, + uint64_t amount_msat, + struct wire_cst_list_prim_u_8_strict *description, + uint32_t expiry_secs); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_list_prim_u_8_strict *description, + uint32_t expiry_secs); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_list_prim_u_8_strict *description, + uint32_t expiry_secs, + struct wire_cst_payment_hash *payment_hash); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_list_prim_u_8_strict *description, + uint32_t expiry_secs, + uint64_t *max_proportional_lsp_fee_limit_ppm_msat); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + uint64_t amount_msat, + struct wire_cst_list_prim_u_8_strict *description, + uint32_t expiry_secs, + uint64_t *max_total_lsp_fee_limit_msat); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_bolt_11_invoice *invoice, + struct wire_cst_sending_parameters *sending_parameters); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_bolt_11_invoice *invoice); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_bolt_11_invoice *invoice, + uint64_t amount_msat); + +void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount(int64_t port_, + struct wire_cst_ffi_bolt_11_payment *that, + struct wire_cst_bolt_11_invoice *invoice, + uint64_t amount_msat, + struct wire_cst_sending_parameters *sending_parameters); + +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, + uint64_t amount_msat, + uint32_t expiry_secs, + uint64_t *quantity, + struct wire_cst_list_prim_u_8_strict *payer_note); + +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, + uint64_t amount_msat, + struct wire_cst_list_prim_u_8_strict *description, + uint32_t *expiry_secs, + uint64_t *quantity); + +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, + struct wire_cst_list_prim_u_8_strict *description, + uint32_t *expiry_secs); + +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, + struct wire_cst_refund *refund); + +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, + struct wire_cst_offer *offer, + uint64_t *quantity, + struct wire_cst_list_prim_u_8_strict *payer_note); + +void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount(int64_t port_, + struct wire_cst_ffi_bolt_12_payment *that, + struct wire_cst_offer *offer, + uint64_t amount_msat, + uint64_t *quantity, + struct wire_cst_list_prim_u_8_strict *payer_note); + +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque(uintptr_t that); + +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque(uintptr_t that, + uintptr_t opaque); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build(int64_t port_, uintptr_t that); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store(int64_t port_, + uintptr_t that); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store(int64_t port_, + uintptr_t that, + struct wire_cst_list_prim_u_8_strict *vss_url, + struct wire_cst_list_prim_u_8_strict *store_id, + struct wire_cst_list_prim_u_8_strict *lnurl_auth_server_url, + struct wire_cst_list_record_string_string *fixed_headers); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers(int64_t port_, + uintptr_t that, + struct wire_cst_list_prim_u_8_strict *vss_url, + struct wire_cst_list_prim_u_8_strict *store_id, + struct wire_cst_list_record_string_string *fixed_headers); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder(int64_t port_, + struct wire_cst_config *config, + struct wire_cst_chain_data_source_config *chain_data_source_config, + struct wire_cst_entropy_source_config *entropy_source_config, + struct wire_cst_gossip_source_config *gossip_source_config, + struct wire_cst_liquidity_source_config *liquidity_source_config); + +void frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate(int64_t port_); + +void frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_channel(int64_t port_, + struct wire_cst_ffi_network_graph *that, + uint64_t short_channel_id); + +void frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_channels(int64_t port_, + struct wire_cst_ffi_network_graph *that); + +void frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_nodes(int64_t port_, + struct wire_cst_ffi_network_graph *that); + +void frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_node(int64_t port_, + struct wire_cst_ffi_network_graph *that, + struct wire_cst_node_id *node_id); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt11_payment(int64_t port_, + struct wire_cst_ffi_node *ptr); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt12_payment(int64_t port_, + struct wire_cst_ffi_node *ptr); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_close_channel(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_user_channel_id *user_channel_id, + struct wire_cst_public_key *counterparty_node_id); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_config(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_connect(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_public_key *node_id, + struct wire_cst_socket_address *address, + bool persist); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_disconnect(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_public_key *counterparty_node_id); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_event_handled(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_force_close_channel(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_user_channel_id *user_channel_id, + struct wire_cst_public_key *counterparty_node_id); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_list_balances(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_list_channels(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments_with_filter(int64_t port_, + struct wire_cst_ffi_node *that, + int32_t payment_direction); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_list_peers(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_listening_addresses(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_network_graph(int64_t port_, + struct wire_cst_ffi_node *ptr); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event_async(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_node_id(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_on_chain_payment(int64_t port_, + struct wire_cst_ffi_node *ptr); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_open_announced_channel(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_socket_address *socket_address, + struct wire_cst_public_key *node_id, + uint64_t channel_amount_sats, + uint64_t *push_to_counterparty_msat, + struct wire_cst_channel_config *channel_config); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_open_channel(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_socket_address *socket_address, + struct wire_cst_public_key *node_id, + uint64_t channel_amount_sats, + uint64_t *push_to_counterparty_msat, + struct wire_cst_channel_config *channel_config); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_payment(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_payment_id *payment_id); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_remove_payment(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_payment_id *payment_id); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_sign_message(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_list_prim_u_8_loose *msg); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_spontaneous_payment(int64_t port_, + struct wire_cst_ffi_node *ptr); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_start(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_status(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_stop(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_sync_wallets(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_unified_qr_payment(int64_t port_, + struct wire_cst_ffi_node *ptr); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_update_channel_config(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_user_channel_id *user_channel_id, + struct wire_cst_public_key *counterparty_node_id, + struct wire_cst_channel_config *channel_config); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_verify_signature(int64_t port_, + struct wire_cst_ffi_node *that, + struct wire_cst_list_prim_u_8_loose *msg, + struct wire_cst_list_prim_u_8_strict *sig, + struct wire_cst_public_key *public_key); + +void frbgen_ldk_node_wire__crate__api__node__ffi_node_wait_next_event(int64_t port_, + struct wire_cst_ffi_node *that); + +void frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_new_address(int64_t port_, + struct wire_cst_ffi_on_chain_payment *that); + +void frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address(int64_t port_, + struct wire_cst_ffi_on_chain_payment *that, + struct wire_cst_address *address); + +void frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address(int64_t port_, + struct wire_cst_ffi_on_chain_payment *that, + struct wire_cst_address *address, + uint64_t amount_sats); + +void frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send(int64_t port_, + struct wire_cst_ffi_spontaneous_payment *that, + uint64_t amount_msat, + struct wire_cst_public_key *node_id, + struct wire_cst_sending_parameters *sending_parameters); + +void frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes(int64_t port_, + struct wire_cst_ffi_spontaneous_payment *that, + uint64_t amount_msat, + struct wire_cst_public_key *node_id); + +void frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default(int64_t port_); + +void frbgen_ldk_node_wire__crate__api__types__config_default(int64_t port_); + +void frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_receive(int64_t port_, + struct wire_cst_ffi_unified_qr_payment *that, + uint64_t amount_sats, + struct wire_cst_list_prim_u_8_strict *message, + uint32_t expiry_sec); + +void frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_send(int64_t port_, + struct wire_cst_ffi_unified_qr_payment *that, + struct wire_cst_list_prim_u_8_strict *uri_str); + +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder(const void *ptr); + +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeBuilder(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeBuilder(const void *ptr); + +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeNode(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNode(const void *ptr); + +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodegraphNetworkGraph(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodegraphNetworkGraph(const void *ptr); + +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt11Payment(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt11Payment(const void *ptr); + +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment(const void *ptr); + +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment(const void *ptr); + +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPayment(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPayment(const void *ptr); + +void frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment(const void *ptr); + +void frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment(const void *ptr); + +struct wire_cst_address *frbgen_ldk_node_cst_new_box_autoadd_address(void); + +struct wire_cst_anchor_channels_config *frbgen_ldk_node_cst_new_box_autoadd_anchor_channels_config(void); + +struct wire_cst_bolt_11_invoice *frbgen_ldk_node_cst_new_box_autoadd_bolt_11_invoice(void); + +struct wire_cst_bolt_12_parse_error *frbgen_ldk_node_cst_new_box_autoadd_bolt_12_parse_error(void); + +bool *frbgen_ldk_node_cst_new_box_autoadd_bool(bool value); + +struct wire_cst_chain_data_source_config *frbgen_ldk_node_cst_new_box_autoadd_chain_data_source_config(void); + +struct wire_cst_channel_config *frbgen_ldk_node_cst_new_box_autoadd_channel_config(void); + +struct wire_cst_channel_id *frbgen_ldk_node_cst_new_box_autoadd_channel_id(void); + +struct wire_cst_channel_info *frbgen_ldk_node_cst_new_box_autoadd_channel_info(void); + +struct wire_cst_channel_update_info *frbgen_ldk_node_cst_new_box_autoadd_channel_update_info(void); + +struct wire_cst_closure_reason *frbgen_ldk_node_cst_new_box_autoadd_closure_reason(void); + +struct wire_cst_config *frbgen_ldk_node_cst_new_box_autoadd_config(void); + +struct wire_cst_decode_error *frbgen_ldk_node_cst_new_box_autoadd_decode_error(void); + +struct wire_cst_entropy_source_config *frbgen_ldk_node_cst_new_box_autoadd_entropy_source_config(void); + +struct wire_cst_esplora_sync_config *frbgen_ldk_node_cst_new_box_autoadd_esplora_sync_config(void); + +struct wire_cst_event *frbgen_ldk_node_cst_new_box_autoadd_event(void); + +struct wire_cst_ffi_bolt_11_payment *frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_11_payment(void); + +struct wire_cst_ffi_bolt_12_payment *frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_12_payment(void); + +struct wire_cst_ffi_mnemonic *frbgen_ldk_node_cst_new_box_autoadd_ffi_mnemonic(void); + +struct wire_cst_ffi_network_graph *frbgen_ldk_node_cst_new_box_autoadd_ffi_network_graph(void); + +struct wire_cst_ffi_node *frbgen_ldk_node_cst_new_box_autoadd_ffi_node(void); + +struct wire_cst_ffi_on_chain_payment *frbgen_ldk_node_cst_new_box_autoadd_ffi_on_chain_payment(void); + +struct wire_cst_ffi_spontaneous_payment *frbgen_ldk_node_cst_new_box_autoadd_ffi_spontaneous_payment(void); + +struct wire_cst_ffi_unified_qr_payment *frbgen_ldk_node_cst_new_box_autoadd_ffi_unified_qr_payment(void); + +struct wire_cst_gossip_source_config *frbgen_ldk_node_cst_new_box_autoadd_gossip_source_config(void); + +struct wire_cst_liquidity_source_config *frbgen_ldk_node_cst_new_box_autoadd_liquidity_source_config(void); + +struct wire_cst_lsp_fee_limits *frbgen_ldk_node_cst_new_box_autoadd_lsp_fee_limits(void); + +struct wire_cst_max_total_routing_fee_limit *frbgen_ldk_node_cst_new_box_autoadd_max_total_routing_fee_limit(void); + +struct wire_cst_node_alias *frbgen_ldk_node_cst_new_box_autoadd_node_alias(void); + +struct wire_cst_node_announcement_info *frbgen_ldk_node_cst_new_box_autoadd_node_announcement_info(void); + +struct wire_cst_node_id *frbgen_ldk_node_cst_new_box_autoadd_node_id(void); + +struct wire_cst_node_info *frbgen_ldk_node_cst_new_box_autoadd_node_info(void); + +struct wire_cst_offer *frbgen_ldk_node_cst_new_box_autoadd_offer(void); + +struct wire_cst_offer_id *frbgen_ldk_node_cst_new_box_autoadd_offer_id(void); + +struct wire_cst_out_point *frbgen_ldk_node_cst_new_box_autoadd_out_point(void); + +struct wire_cst_payment_details *frbgen_ldk_node_cst_new_box_autoadd_payment_details(void); + +int32_t *frbgen_ldk_node_cst_new_box_autoadd_payment_failure_reason(int32_t value); + +struct wire_cst_payment_hash *frbgen_ldk_node_cst_new_box_autoadd_payment_hash(void); + +struct wire_cst_payment_id *frbgen_ldk_node_cst_new_box_autoadd_payment_id(void); + +struct wire_cst_payment_preimage *frbgen_ldk_node_cst_new_box_autoadd_payment_preimage(void); + +struct wire_cst_payment_secret *frbgen_ldk_node_cst_new_box_autoadd_payment_secret(void); + +struct wire_cst_public_key *frbgen_ldk_node_cst_new_box_autoadd_public_key(void); + +struct wire_cst_refund *frbgen_ldk_node_cst_new_box_autoadd_refund(void); + +struct wire_cst_sending_parameters *frbgen_ldk_node_cst_new_box_autoadd_sending_parameters(void); + +struct wire_cst_socket_address *frbgen_ldk_node_cst_new_box_autoadd_socket_address(void); + +struct wire_cst_txid *frbgen_ldk_node_cst_new_box_autoadd_txid(void); + +uint16_t *frbgen_ldk_node_cst_new_box_autoadd_u_16(uint16_t value); + +uint32_t *frbgen_ldk_node_cst_new_box_autoadd_u_32(uint32_t value); + +uint64_t *frbgen_ldk_node_cst_new_box_autoadd_u_64(uint64_t value); + +uint8_t *frbgen_ldk_node_cst_new_box_autoadd_u_8(uint8_t value); + +struct wire_cst_user_channel_id *frbgen_ldk_node_cst_new_box_autoadd_user_channel_id(void); + +struct wire_cst_list_channel_details *frbgen_ldk_node_cst_new_list_channel_details(int32_t len); + +struct wire_cst_list_lightning_balance *frbgen_ldk_node_cst_new_list_lightning_balance(int32_t len); + +struct wire_cst_list_node_id *frbgen_ldk_node_cst_new_list_node_id(int32_t len); + +struct wire_cst_list_payment_details *frbgen_ldk_node_cst_new_list_payment_details(int32_t len); + +struct wire_cst_list_peer_details *frbgen_ldk_node_cst_new_list_peer_details(int32_t len); + +struct wire_cst_list_pending_sweep_balance *frbgen_ldk_node_cst_new_list_pending_sweep_balance(int32_t len); + +struct wire_cst_list_prim_u_64_strict *frbgen_ldk_node_cst_new_list_prim_u_64_strict(int32_t len); + +struct wire_cst_list_prim_u_8_loose *frbgen_ldk_node_cst_new_list_prim_u_8_loose(int32_t len); + +struct wire_cst_list_prim_u_8_strict *frbgen_ldk_node_cst_new_list_prim_u_8_strict(int32_t len); + +struct wire_cst_list_public_key *frbgen_ldk_node_cst_new_list_public_key(int32_t len); + +struct wire_cst_list_record_string_string *frbgen_ldk_node_cst_new_list_record_string_string(int32_t len); + +struct wire_cst_list_socket_address *frbgen_ldk_node_cst_new_list_socket_address(int32_t len); +static int64_t dummy_method_to_enforce_bundling(void) { + int64_t dummy_var = 0; + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_address); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_anchor_channels_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_bolt_11_invoice); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_bolt_12_parse_error); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_bool); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_chain_data_source_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_channel_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_channel_id); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_channel_info); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_channel_update_info); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_closure_reason); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_decode_error); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_entropy_source_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_esplora_sync_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_event); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_11_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_12_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_mnemonic); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_network_graph); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_node); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_on_chain_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_spontaneous_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_ffi_unified_qr_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_gossip_source_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_liquidity_source_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_lsp_fee_limits); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_max_total_routing_fee_limit); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_node_alias); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_node_announcement_info); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_node_id); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_node_info); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_offer); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_offer_id); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_out_point); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_payment_details); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_payment_failure_reason); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_payment_hash); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_payment_id); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_payment_preimage); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_payment_secret); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_public_key); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_refund); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_sending_parameters); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_socket_address); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_txid); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_u_16); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_u_32); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_u_64); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_u_8); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_box_autoadd_user_channel_id); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_channel_details); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_lightning_balance); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_node_id); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_payment_details); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_peer_details); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_pending_sweep_balance); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_prim_u_64_strict); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_prim_u_8_loose); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_prim_u_8_strict); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_public_key); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_record_string_string); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_cst_new_list_socket_address); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNode); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodegraphNetworkGraph); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt11Payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPayment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeNode); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodegraphNetworkGraph); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt11Payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPayment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_channels); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_nodes); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_node); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt11_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt12_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_close_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_connect); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_disconnect); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_event_handled); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_force_close_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_list_balances); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_list_channels); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments_with_filter); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_list_peers); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_listening_addresses); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_network_graph); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event_async); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_node_id); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_on_chain_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_open_announced_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_open_channel); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_remove_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_sign_message); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_spontaneous_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_start); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_status); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_stop); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_sync_wallets); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_unified_qr_payment); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_update_channel_config); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_verify_signature); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__node__ffi_node_wait_next_event); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_new_address); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__types__config_default); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_receive); + dummy_var ^= ((int64_t) (void*) frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_send); + dummy_var ^= ((int64_t) (void*) store_dart_post_cobject); + return dummy_var; +} diff --git a/macos/Classes/ldk_node.c b/macos/Classes/ldk_node.c new file mode 100644 index 0000000..e69de29 diff --git a/macos/ldk_node.podspec b/macos/ldk_node.podspec new file mode 100644 index 0000000..8fedbdb --- /dev/null +++ b/macos/ldk_node.podspec @@ -0,0 +1,39 @@ +# +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. +# Run `pod lib lint ldk_node.podspec` to validate before publishing. +# +Pod::Spec.new do |s| + s.name = 'ldk_node' + s.version = '0.4.2' + s.summary = 'A ready-to-go Lightning node library built using LDK and BDK.' + s.homepage = 'https://www.LtbL.io' + s.license = { :file => '../LICENSE' } + s.author = { 'Let there be Lightning, Inc' => 'hello@LtbL.io' } + s.source = { :path => '.' } + s.source_files = 'Classes/**/*' + s.source_files = 'Classes/**/*' + s.platform = :osx, '10.11' + s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } + s.swift_version = '5.0' + s.dependency 'FlutterMacOS' + s.osx.deployment_target = '14.0' + s.script_phase = { + :name => 'Build Rust library', + # First argument is relative path to the `rust` folder, second is name of rust library + :script => 'sh "$PODS_TARGET_SRCROOT/../cargokit/build_pod.sh" ../rust ldk_node', + :execution_position => :before_compile, + :input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'], + # Let XCode know that the static library referenced in -force_load below is + # created by this build step. + :output_files => ["${BUILT_PRODUCTS_DIR}/libldk_node.a"], + } + s.pod_target_xcconfig = { + 'DEFINES_MODULE' => 'YES', + 'OTHER_LDFLAGS' => '-force_load ${BUILT_PRODUCTS_DIR}/libldk_node.a', + 'DEAD_CODE_STRIPPING' => 'YES', + 'STRIP_INSTALLED_PRODUCT[config=Release][sdk=*][arch=*]' => "YES", + 'STRIP_STYLE[config=Release][sdk=*][arch=*]' => "non-global", + 'DEPLOYMENT_POSTPROCESSING[config=Release][sdk=*][arch=*]' => "YES", + } + s.framework = 'SystemConfiguration' + end diff --git a/makefile b/makefile index a003e3c..c5c7f4a 100644 --- a/makefile +++ b/makefile @@ -11,12 +11,13 @@ help: makefile ## init: Install missing dependencies. init: - cargo install flutter_rust_bridge_codegen --version 2.0.0 + cargo install flutter_rust_bridge_codegen --version 2.4.0 ## : -all: init generate-bindings - -generate-bindings: +all: init fmt codegen +fmt: + cd rust && cargo fmt --all +codegen: @echo "[GENERATING FRB CODE] $@" flutter_rust_bridge_codegen generate @echo "[Done ✅]" diff --git a/pubspec.yaml b/pubspec.yaml index b55efa4..4707014 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: ldk_node description: A ready-to-go Lightning node library built using LDK and BDK. -version: 0.3.0 +version: 0.4.2 homepage: https://github.com/LtbLightning/ldk-node-flutter environment: @@ -12,7 +12,7 @@ dependencies: ffi: ^2.1.0 flutter: sdk: flutter - flutter_rust_bridge: ^2.0.0 + flutter_rust_bridge: "2.4.0" freezed_annotation: ^2.2.0 meta: ^1.12.0 uuid: ^4.3.3 @@ -32,3 +32,5 @@ flutter: ffiPlugin: true ios: ffiPlugin: true + macos: + ffiPlugin: true diff --git a/rust/Cargo.lock b/rust/Cargo.lock index a74fed9..606ec80 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -19,14 +19,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "ahash" -version = "0.7.8" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" -dependencies = [ - "getrandom", - "once_cell", - "version_check", -] +checksum = "0453232ace82dee0dd0b4c87a59bd90f7b53b314f3e0f61fe2ee7c8a16482289" [[package]] name = "ahash" @@ -105,6 +100,12 @@ version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + [[package]] name = "async-trait" version = "0.1.80" @@ -113,7 +114,7 @@ checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.83", ] [[package]] @@ -144,10 +145,14 @@ dependencies = [ ] [[package]] -name = "base64" -version = "0.13.1" +name = "base58ck" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" +checksum = "2c8d66485a3a2ea485c1913c4572ce0256067a5377ac8c75c4960e1cda98605f" +dependencies = [ + "bitcoin-internals", + "bitcoin_hashes 0.14.0", +] [[package]] name = "base64" @@ -156,28 +161,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] -name = "bdk" -version = "0.29.0" +name = "base64" +version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fc1fc1a92e0943bfbcd6eb7d32c1b2a79f2f1357eb1e2eee9d7f36d6d7ca44a" -dependencies = [ - "ahash 0.7.8", - "async-trait", - "bdk-macros", - "bip39", - "bitcoin", - "esplora-client", - "futures", - "getrandom", - "js-sys", - "log", - "miniscript", - "rand", - "rusqlite", - "serde", - "serde_json", - "tokio", -] +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "bdk-macros" @@ -190,12 +177,78 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "bdk_chain" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e553c45ffed860aa7e0c6998c3a827fcdc039a2df76307563208ecfcae2f750" +dependencies = [ + "bdk_core", + "bitcoin", + "miniscript", + "serde", +] + +[[package]] +name = "bdk_core" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c0b45300422611971b0bbe84b04d18e38e81a056a66860c9dd3434f6d0f5396" +dependencies = [ + "bitcoin", + "hashbrown 0.9.1", + "serde", +] + +[[package]] +name = "bdk_esplora" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3cc9b320b2042e9729739eed66c6fc47b208554c8c6e393785cd56d257045e9f" +dependencies = [ + "async-trait", + "bdk_core", + "esplora-client", + "futures", +] + +[[package]] +name = "bdk_wallet" +version = "1.0.0-beta.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aeb48cd8e0a15d0bf7351fc8c30e44c474be01f4f98eb29f20ab59b645bd29c" +dependencies = [ + "bdk_chain", + "bip39", + "bitcoin", + "miniscript", + "rand_core", + "serde", + "serde_json", +] + [[package]] name = "bech32" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445" +[[package]] +name = "bech32" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d" + +[[package]] +name = "bip21" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe7a7f5928d264879d5b65eb18a72ea1890c57f22d62ee2eba93f207a6a020b" +dependencies = [ + "bitcoin", + "percent-encoding-rfc3986", +] + [[package]] name = "bip39" version = "2.0.0" @@ -209,14 +262,18 @@ dependencies = [ [[package]] name = "bitcoin" -version = "0.30.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1945a5048598e4189e239d3f809b19bdad4845c4b2ba400d304d2dcf26d2c462" +checksum = "0032b0e8ead7074cda7fc4f034409607e3f03a6f71d66ade8a307f79b4d99e73" dependencies = [ - "base64 0.13.1", - "bech32", - "bitcoin-private", - "bitcoin_hashes 0.12.0", + "base58ck", + "base64 0.21.7", + "bech32 0.11.0", + "bitcoin-internals", + "bitcoin-io", + "bitcoin-units", + "bitcoin_hashes 0.14.0", + "hex-conservative", "hex_lit", "secp256k1", "serde", @@ -224,15 +281,28 @@ dependencies = [ [[package]] name = "bitcoin-internals" -version = "0.1.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f9997f8650dd818369931b5672a18dbef95324d0513aa99aae758de8ce86e5b" +checksum = "30bdbe14aa07b06e6cfeffc529a1f099e5fbe249524f8125358604df99a4bed2" +dependencies = [ + "serde", +] [[package]] -name = "bitcoin-private" -version = "0.1.0" +name = "bitcoin-io" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "340e09e8399c7bd8912f495af6aa58bea0c9214773417ffaa8f6460f93aaee56" + +[[package]] +name = "bitcoin-units" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73290177011694f38ec25e165d0387ab7ea749a4b81cd4c80dae5988229f7a57" +checksum = "5285c8bcaa25876d07f37e3d30c303f2609179716e11d688f51e8f1fe70063e2" +dependencies = [ + "bitcoin-internals", + "serde", +] [[package]] name = "bitcoin_hashes" @@ -242,11 +312,12 @@ checksum = "90064b8dee6815a6470d60bad07bbbaee885c0e12d04177138fa3291a01b7bc4" [[package]] name = "bitcoin_hashes" -version = "0.12.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d7066118b13d4b20b23645932dfb3a81ce7e29f95726c2036fa33cd7b092501" +checksum = "bb18c03d0db0247e147a21a6faafd5a7eb851c743db062de72018b6b7e8e4d16" dependencies = [ - "bitcoin-private", + "bitcoin-io", + "hex-conservative", "serde", ] @@ -326,6 +397,12 @@ dependencies = [ "windows-targets 0.52.5", ] +[[package]] +name = "chunked_transfer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e4de3bc4ea267985becf712dc6d9eed8b04c953b3fcfb339ebc87acd9804901" + [[package]] name = "console_error_panic_hook" version = "0.1.7" @@ -389,7 +466,7 @@ checksum = "51aac4c99b2e6775164b412ea33ae8441b2fde2dbf05a20bc0052a63d08c475b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.83", ] [[package]] @@ -445,12 +522,12 @@ dependencies = [ [[package]] name = "esplora-client" -version = "0.6.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cb1f7f2489cce83bc3bd92784f9ba5271eeb6e729b975895fc541f78cbfcdca" +checksum = "9b546e91283ebfc56337de34e0cf814e3ad98083afde593b8e58495ee5355d0e" dependencies = [ "bitcoin", - "bitcoin-internals", + "hex-conservative", "log", "reqwest", "serde", @@ -482,9 +559,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flutter_rust_bridge" -version = "2.0.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "033e831e28f1077ceae3490fb6d093dfdefefd09c5c6e8544c6579effe7e814f" +checksum = "6ff967a5893be60d849e4362910762acdc275febe44333153a11dcec1bca2cd2" dependencies = [ "allo-isolate", "android_logger", @@ -499,6 +576,7 @@ dependencies = [ "futures", "js-sys", "lazy_static", + "log", "oslog", "threadpool", "tokio", @@ -509,15 +587,15 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_macros" -version = "2.0.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0217fc4b7131b52578be60bbe38c76b3edfc2f9fecab46d9f930510f40ef9023" +checksum = "d48b4d3fae9d29377b19134a38386d8792bde70b9448cde49e96391bcfc8fed1" dependencies = [ "hex", "md-5", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.83", ] [[package]] @@ -591,7 +669,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.83", ] [[package]] @@ -670,6 +748,16 @@ dependencies = [ "tracing", ] +[[package]] +name = "hashbrown" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" +dependencies = [ + "ahash 0.4.8", + "serde", +] + [[package]] name = "hashbrown" version = "0.14.5" @@ -686,7 +774,7 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" dependencies = [ - "hashbrown", + "hashbrown 0.14.5", ] [[package]] @@ -709,9 +797,12 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hex-conservative" -version = "0.1.2" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "212ab92002354b4819390025006c897e8140934349e8635c9b077f47b4dcbd20" +checksum = "5313b072ce3c597065a808dbf612c4c8e8590bdbf8b579508bf7a762c5eae6cd" +dependencies = [ + "arrayvec", +] [[package]] name = "hex_lit" @@ -840,7 +931,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", - "hashbrown", + "hashbrown 0.14.5", ] [[package]] @@ -881,11 +972,15 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "ldk-node" -version = "0.3.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a5400043598f1da534abf81bb937739a680663d57a451bf8363d6113211424" +checksum = "8f7cea380aa969af6604fd7375f0c877b83e81c6bf23a975a6ce94d96109a702" dependencies = [ - "bdk", + "base64 0.22.1", + "bdk_chain", + "bdk_esplora", + "bdk_wallet", + "bip21", "bip39", "bitcoin", "chrono", @@ -893,6 +988,7 @@ dependencies = [ "libc", "lightning", "lightning-background-processor", + "lightning-block-sync", "lightning-invoice", "lightning-liquidity", "lightning-net-tokio", @@ -903,6 +999,8 @@ dependencies = [ "rand", "reqwest", "rusqlite", + "serde", + "serde_json", "tokio", "vss-client", "winapi", @@ -910,7 +1008,7 @@ dependencies = [ [[package]] name = "ldk_node" -version = "0.3.0" +version = "0.4.2" dependencies = [ "anyhow", "flutter_rust_bridge", @@ -936,19 +1034,21 @@ dependencies = [ [[package]] name = "lightning" -version = "0.0.123" +version = "0.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd92d4aa159374be430c7590e169b4a6c0fb79018f5bc4ea1bffde536384db3" +checksum = "767f388e50251da71f95a3737d6db32c9729f9de6427a54fa92bb994d04d793f" dependencies = [ + "bech32 0.9.1", "bitcoin", - "hex-conservative", + "lightning-invoice", + "lightning-types", ] [[package]] name = "lightning-background-processor" -version = "0.0.123" +version = "0.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb1c2c64050e37cee7c3b6b022106523784055ac3ee572d360780a1d6fe8062c" +checksum = "4734caab73611a2c725f15392565150e4f5a531dd1f239365d01311f7de65d2d" dependencies = [ "bitcoin", "lightning", @@ -956,37 +1056,50 @@ dependencies = [ ] [[package]] -name = "lightning-invoice" -version = "0.31.0" +name = "lightning-block-sync" +version = "0.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26d07d01cf197bf2184b929b7dc94aa70d935aac6df896c256a3a9475b7e9d40" +checksum = "ea041135bad736b075ad1123ef0a4793e78da8041386aa7887779fc5c540b94b" dependencies = [ - "bech32", "bitcoin", + "chunked_transfer", "lightning", - "secp256k1", + "serde_json", + "tokio", +] + +[[package]] +name = "lightning-invoice" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90ab9f6ea77e20e3129235e62a2e6bd64ed932363df104e864ee65ccffb54a8f" +dependencies = [ + "bech32 0.9.1", + "bitcoin", + "lightning-types", "serde", ] [[package]] name = "lightning-liquidity" -version = "0.1.0-alpha.4" +version = "0.1.0-alpha.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fa6284740f64672f42145de7b0a242beea3821dae1f0eac7949a8f48799c828" +checksum = "175cff5d30b8d3f94ae9772b59f9ca576b1927a6ab60dd773e8c4e0593cd4e95" dependencies = [ "bitcoin", "chrono", "lightning", "lightning-invoice", + "lightning-types", "serde", "serde_json", ] [[package]] name = "lightning-net-tokio" -version = "0.0.123" +version = "0.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9e6a4d49c50a1344916d080dc8c012ce3a778cdd45de8def75350b2b40fe018" +checksum = "af2847a19f892f32b9ab5075af25c70370b4cc5842b4f5b53c57092e52a49498" dependencies = [ "bitcoin", "lightning", @@ -995,9 +1108,9 @@ dependencies = [ [[package]] name = "lightning-persister" -version = "0.0.123" +version = "0.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a8dd33971815fa074b05678e09a6d4b15c78225ea34d66ed4f17c35a53467a9" +checksum = "8d06283d41eb8e6d4af883cd602d91ab0c5f9e0c9a6be1c944b10e6f47176f20" dependencies = [ "bitcoin", "lightning", @@ -1006,9 +1119,9 @@ dependencies = [ [[package]] name = "lightning-rapid-gossip-sync" -version = "0.0.123" +version = "0.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d861b0f0cd5f8fe8c63760023c4fd4fd32c384881b41780b62ced2a8a619f91" +checksum = "92185313db1075495e5efa3dd6a3b5d4dee63e1496059f58cf65074994718f05" dependencies = [ "bitcoin", "lightning", @@ -1016,9 +1129,9 @@ dependencies = [ [[package]] name = "lightning-transaction-sync" -version = "0.0.123" +version = "0.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04c1e88eece28f19b5834fb5aefceabc5d143cfda2dfa9a32f73e66f4d0c84ed" +checksum = "a8f023cb8dcd9c8b83b9b0c673ed6ca2e9afb57791119d3fa3224db2787b717e" dependencies = [ "bdk-macros", "bitcoin", @@ -1027,6 +1140,17 @@ dependencies = [ "lightning", ] +[[package]] +name = "lightning-types" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1083b8d9137000edf3bfcb1ff011c0d25e0cdd2feb98cc21d6765e64a494148f" +dependencies = [ + "bech32 0.9.1", + "bitcoin", + "hex-conservative", +] + [[package]] name = "linux-raw-sys" version = "0.4.14" @@ -1063,12 +1187,12 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "miniscript" -version = "10.0.0" +version = "12.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1eb102b66b2127a872dbcc73095b7b47aeb9d92f7b03c2b2298253ffc82c7594" +checksum = "add2d4aee30e4291ce5cffa3a322e441ff4d4bc57b38c8d9bf0e94faa50ab626" dependencies = [ + "bech32 0.11.0", "bitcoin", - "bitcoin-private", "serde", ] @@ -1149,6 +1273,12 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" +[[package]] +name = "percent-encoding-rfc3986" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3637c05577168127568a64e9dc5a6887da720efef07b3d9472d45f63ab191166" + [[package]] name = "petgraph" version = "0.6.5" @@ -1463,11 +1593,11 @@ dependencies = [ [[package]] name = "secp256k1" -version = "0.27.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25996b82292a7a57ed3508f052cfff8640d38d32018784acd714758b43da9c8f" +checksum = "9465315bc9d4566e1724f0fffcbcc446268cb522e60f9a27bcded6b19c108113" dependencies = [ - "bitcoin_hashes 0.12.0", + "bitcoin_hashes 0.14.0", "rand", "secp256k1-sys", "serde", @@ -1475,40 +1605,41 @@ dependencies = [ [[package]] name = "secp256k1-sys" -version = "0.8.1" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a129b9e9efbfb223753b9163c4ab3b13cff7fd9c7f010fbac25ab4099fa07e" +checksum = "d4387882333d3aa8cb20530a17c69a3752e97837832f34f6dccc760e715001d9" dependencies = [ "cc", ] [[package]] name = "serde" -version = "1.0.203" +version = "1.0.213" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" +checksum = "3ea7893ff5e2466df8d720bb615088341b295f849602c6956047f8f80f0e9bc1" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.203" +version = "1.0.213" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" +checksum = "7e85ad2009c50b58e87caa8cd6dac16bdf511bbfb7af6c33df902396aa480fa5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.83", ] [[package]] name = "serde_json" -version = "1.0.117" +version = "1.0.132" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" +checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" dependencies = [ "itoa", + "memchr", "ryu", "serde", ] @@ -1569,9 +1700,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.66" +version = "2.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" +checksum = "01680f5d178a369f817f43f3d399650272873a8e7588a7872f7e90edc71d60a3" dependencies = [ "proc-macro2", "quote", @@ -1634,7 +1765,7 @@ checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.83", ] [[package]] @@ -1686,7 +1817,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.83", ] [[package]] @@ -1813,15 +1944,22 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "vss-client" -version = "0.2.2" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a62cbd331368125aeb93b67dd4a80826a4ee29a810d4c76d2c9d265c1522a3f2" +checksum = "d787f7640ceae8caef95434f1b14936402b73e18d34868b052a502a5d5085490" dependencies = [ + "async-trait", + "base64 0.21.7", + "bitcoin", + "bitcoin_hashes 0.14.0", "prost", "prost-build", "rand", "reqwest", + "serde", + "serde_json", "tokio", + "url", ] [[package]] @@ -1860,7 +1998,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.83", "wasm-bindgen-shared", ] @@ -1894,7 +2032,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.83", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -2130,5 +2268,5 @@ checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.83", ] diff --git a/rust/Cargo.toml b/rust/Cargo.toml index e81455f..c5ef462 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ldk_node" -version = "0.3.0" +version = "0.4.2" edition = "2021" [lib] @@ -10,9 +10,9 @@ crate-type = ["staticlib", "cdylib"] [build-dependencies] anyhow = "1.0.68" [dependencies] -flutter_rust_bridge = "=2.0.0" +flutter_rust_bridge = "=2.4.0" anyhow = { version = "1.0.71"} -ldk-node = { version = "= 0.3.0" } +ldk-node = { version = "= 0.4.2" } # ldk-node = {git = 'https://github.com/lightningdevkit/ldk-node.git', rev = "246775d04dbb2e99528a6a1aa0bc04ad7378e900"} diff --git a/rust/cargokit.yaml b/rust/cargokit.yaml index c57f2dd..d0a7a4e 100644 --- a/rust/cargokit.yaml +++ b/rust/cargokit.yaml @@ -4,4 +4,4 @@ cargo: precompiled_binaries: url_prefix: https://github.com/LtbLightning/ldk-node-flutter/releases/download/precompiled_ - public_key: 0e43d5e8452d00db7f3000c18fb1ba796babfcb5dc6306bb0629eff24f8be85b + public_key: 0e43d5e8452d00db7f3000c18fb1ba796babfcb5dc6306bb0629eff24f8be85b \ No newline at end of file diff --git a/rust/src/api/bolt11.rs b/rust/src/api/bolt11.rs index 42ad08a..1dc57b9 100644 --- a/rust/src/api/bolt11.rs +++ b/rust/src/api/bolt11.rs @@ -1,15 +1,17 @@ use crate::api::types::{PaymentHash, PaymentId, PaymentPreimage}; use crate::frb_generated::RustOpaque; -use crate::utils::error::LdkNodeError; +use crate::utils::error::FfiNodeError; use std::str::FromStr; -pub struct LdkBolt11Payment { - pub ptr: RustOpaque, +use super::types::SendingParameters; + +pub struct FfiBolt11Payment { + pub opaque: RustOpaque, } -impl From for LdkBolt11Payment { +impl From for FfiBolt11Payment { fn from(value: ldk_node::payment::Bolt11Payment) -> Self { - LdkBolt11Payment { - ptr: RustOpaque::new(value), + FfiBolt11Payment { + opaque: RustOpaque::new(value), } } } @@ -21,11 +23,11 @@ pub struct Bolt11Invoice { } impl TryFrom for ldk_node::lightning_invoice::Bolt11Invoice { - type Error = LdkNodeError; + type Error = FfiNodeError; fn try_from(value: Bolt11Invoice) -> Result { ldk_node::lightning_invoice::Bolt11Invoice::from_str(value.signed_raw_invoice.as_str()) - .map_err(|_| LdkNodeError::InvalidInvoice) + .map_err(|_| FfiNodeError::InvalidInvoice) } } impl From for Bolt11Invoice { @@ -36,10 +38,14 @@ impl From for Bolt11Invoice { } } -impl LdkBolt11Payment { - pub fn send(&self, invoice: Bolt11Invoice) -> Result { - self.ptr - .send(&(invoice.try_into()?)) +impl FfiBolt11Payment { + pub fn send( + &self, + invoice: Bolt11Invoice, + sending_parameters: Option, + ) -> Result { + self.opaque + .send(&invoice.try_into()?, sending_parameters.map(|e| e.into())) .map_err(|e| e.into()) .map(|e| e.into()) } @@ -47,16 +53,21 @@ impl LdkBolt11Payment { &self, invoice: Bolt11Invoice, amount_msat: u64, - ) -> anyhow::Result { - self.ptr - .send_using_amount(&(invoice.try_into()?), amount_msat) + sending_parameters: Option, + ) -> anyhow::Result { + self.opaque + .send_using_amount( + &invoice.try_into()?, + amount_msat, + sending_parameters.map(|e| e.into()), + ) .map_err(|e| e.into()) .map(|e| e.into()) } - pub fn send_probes(&self, invoice: Bolt11Invoice) -> anyhow::Result<(), LdkNodeError> { - self.ptr - .send_probes(&(invoice.try_into()?)) + pub fn send_probes(&self, invoice: Bolt11Invoice) -> anyhow::Result<(), FfiNodeError> { + self.opaque + .send_probes(&invoice.try_into()?) .map_err(|e| e.into()) } @@ -64,9 +75,9 @@ impl LdkBolt11Payment { &self, invoice: Bolt11Invoice, amount_msat: u64, - ) -> Result<(), LdkNodeError> { - self.ptr - .send_probes_using_amount(&(invoice.try_into()?), amount_msat) + ) -> Result<(), FfiNodeError> { + self.opaque + .send_probes_using_amount(&invoice.try_into()?, amount_msat) .map_err(|e| e.into()) } pub fn claim_for_hash( @@ -74,13 +85,13 @@ impl LdkBolt11Payment { payment_hash: PaymentHash, claimable_amount_msat: u64, preimage: PaymentPreimage, - ) -> anyhow::Result<(), LdkNodeError> { - self.ptr + ) -> anyhow::Result<(), FfiNodeError> { + self.opaque .claim_for_hash(payment_hash.into(), claimable_amount_msat, preimage.into()) .map_err(|e| e.into()) } - pub fn fail_for_hash(&self, payment_hash: PaymentHash) -> anyhow::Result<(), LdkNodeError> { - self.ptr + pub fn fail_for_hash(&self, payment_hash: PaymentHash) -> anyhow::Result<(), FfiNodeError> { + self.opaque .fail_for_hash(payment_hash.into()) .map_err(|e| e.into()) } @@ -89,8 +100,8 @@ impl LdkBolt11Payment { amount_msat: u64, description: String, expiry_secs: u32, - ) -> anyhow::Result { - self.ptr + ) -> anyhow::Result { + self.opaque .receive(amount_msat, description.as_str(), expiry_secs) .map_err(|e| e.into()) .map(|e| e.into()) @@ -102,8 +113,8 @@ impl LdkBolt11Payment { amount_msat: u64, description: String, expiry_secs: u32, - ) -> anyhow::Result { - self.ptr + ) -> anyhow::Result { + self.opaque .receive_for_hash( amount_msat, description.as_str(), @@ -117,8 +128,8 @@ impl LdkBolt11Payment { &self, description: String, expiry_secs: u32, - ) -> anyhow::Result { - self.ptr + ) -> anyhow::Result { + self.opaque .receive_variable_amount(description.as_str(), expiry_secs) .map_err(|e| e.into()) .map(|e| e.into()) @@ -128,8 +139,8 @@ impl LdkBolt11Payment { description: String, expiry_secs: u32, max_proportional_lsp_fee_limit_ppm_msat: Option, - ) -> anyhow::Result { - match self.ptr.receive_variable_amount_via_jit_channel( + ) -> anyhow::Result { + match self.opaque.receive_variable_amount_via_jit_channel( description.as_str(), expiry_secs, max_proportional_lsp_fee_limit_ppm_msat, @@ -143,12 +154,12 @@ impl LdkBolt11Payment { &self, description: String, expiry_secs: u32, - payment_hash: PaymentHash - ) -> anyhow::Result { - match self.ptr.receive_variable_amount_for_hash( + payment_hash: PaymentHash, + ) -> anyhow::Result { + match self.opaque.receive_variable_amount_for_hash( description.as_str(), expiry_secs, - payment_hash.into() + payment_hash.into(), ) { Ok(e) => Ok(e.into()), Err(e) => Err(e.into()), @@ -161,8 +172,8 @@ impl LdkBolt11Payment { description: String, expiry_secs: u32, max_total_lsp_fee_limit_msat: Option, - ) -> anyhow::Result { - match self.ptr.receive_via_jit_channel( + ) -> anyhow::Result { + match self.opaque.receive_via_jit_channel( amount_msat, description.as_str(), expiry_secs, diff --git a/rust/src/api/bolt12.rs b/rust/src/api/bolt12.rs index 553bb2f..54a7530 100644 --- a/rust/src/api/bolt12.rs +++ b/rust/src/api/bolt12.rs @@ -1,10 +1,90 @@ use crate::api::types::PaymentId; use ldk_node::lightning::util::ser::Writeable; use std::str::FromStr; -use std::sync::Arc; use crate::frb_generated::RustOpaque; -use crate::utils::error::LdkNodeError; +use crate::utils::error::FfiNodeError; + +pub struct FfiBolt12Payment { + pub opaque: RustOpaque, +} +impl From for FfiBolt12Payment { + fn from(value: ldk_node::payment::Bolt12Payment) -> Self { + FfiBolt12Payment { + opaque: RustOpaque::new(value), + } + } +} +impl FfiBolt12Payment { + pub fn send( + &self, + offer: Offer, + quantity: Option, + payer_note: Option, + ) -> Result { + self.opaque + .send(&offer.try_into()?, quantity, payer_note) + .map_err(|e| e.into()) + .map(|e| e.into()) + } + pub fn send_using_amount( + &self, + offer: Offer, + amount_msat: u64, + quantity: Option, + payer_note: Option, + ) -> anyhow::Result { + self.opaque + .send_using_amount(&offer.try_into()?, amount_msat, quantity, payer_note) + .map_err(|e| e.into()) + .map(|e| e.into()) + } + pub fn receive( + &self, + amount_msat: u64, + description: String, + expiry_secs: Option, + quantity: Option, + ) -> anyhow::Result { + self.opaque + .receive(amount_msat, description.as_str(), expiry_secs, quantity) + .map_err(|e| e.into()) + .map(|e| e.into()) + } + pub fn receive_variable_amount( + &self, + description: String, + expiry_secs: Option, + ) -> anyhow::Result { + self.opaque + .receive_variable_amount(description.as_str(), expiry_secs) + .map_err(|e| e.into()) + .map(|e| e.into()) + } + + pub fn request_refund_payment( + &self, + refund: Refund, + ) -> anyhow::Result { + self.opaque + .request_refund_payment(&refund.try_into()?) + .map_err(|e| e.into()) + .map(|e| e.into()) + } + + pub fn initiate_refund( + &self, + amount_msat: u64, + expiry_secs: u32, + quantity: Option, + payer_note: Option, + ) -> anyhow::Result { + self.opaque + .initiate_refund(amount_msat, expiry_secs, quantity, payer_note) + .map_err(|e| e.into()) + .map(|e| e.into()) + } +} /// An `Offer` is a potentially long-lived proposal for payment of a good or service. /// /// An offer is a precursor to an [InvoiceRequest]. A merchant publishes an offer from which a @@ -19,7 +99,7 @@ pub struct Offer { pub s: String, } impl TryFrom for ldk_node::lightning::offers::offer::Offer { - type Error = LdkNodeError; + type Error = FfiNodeError; fn try_from(value: Offer) -> Result { ldk_node::lightning::offers::offer::Offer::from_str(value.s.as_str()).map_err(|e| e.into()) @@ -36,13 +116,12 @@ impl From for Offer { // // Typically, after an invoice is paid, the recipient may publish a refund allowing the sender to recoup their funds. // A refund may be used more generally as an “offer for money”, such as with a bitcoin ATM. - pub struct Refund { pub s: String, } impl TryFrom for ldk_node::lightning::offers::refund::Refund { - type Error = LdkNodeError; + type Error = FfiNodeError; fn try_from(value: Refund) -> Result { ldk_node::lightning::offers::refund::Refund::from_str(value.s.as_str()) @@ -65,11 +144,11 @@ pub struct Bolt12Invoice { } impl TryFrom for ldk_node::lightning::offers::invoice::Bolt12Invoice { - type Error = LdkNodeError; + type Error = FfiNodeError; fn try_from(value: Bolt12Invoice) -> Result { ldk_node::lightning::offers::invoice::Bolt12Invoice::try_from(value.data) - .map_err(|_| LdkNodeError::InvalidInvoice) + .map_err(|_| FfiNodeError::InvalidInvoice) } } impl From for Bolt12Invoice { @@ -79,69 +158,3 @@ impl From for Bolt12Invoice } } } -pub struct LdkBolt12Payment { - pub ptr: RustOpaque>, -} -impl LdkBolt12Payment { - pub fn send( - &self, - offer: Offer, - payer_note: Option, - ) -> Result { - self.ptr - .send(&(offer.try_into()?), payer_note) - .map_err(|e| e.into()) - .map(|e| e.into()) - } - pub fn send_using_amount( - &self, - offer: Offer, - payer_note: Option, - amount_msat: u64, - ) -> anyhow::Result { - self.ptr - .send_using_amount(&(offer.try_into()?), payer_note, amount_msat) - .map_err(|e| e.into()) - .map(|e| e.into()) - } - pub fn receive( - &self, - amount_msat: u64, - description: String, - ) -> anyhow::Result { - self.ptr - .receive(amount_msat, description.as_str()) - .map_err(|e| e.into()) - .map(|e| e.into()) - } - pub fn receive_variable_amount( - &self, - description: String, - ) -> anyhow::Result { - self.ptr - .receive_variable_amount(description.as_str()) - .map_err(|e| e.into()) - .map(|e| e.into()) - } - - pub fn request_refund_payment( - &self, - refund: Refund, - ) -> anyhow::Result { - self.ptr - .request_refund_payment(&(refund.try_into()?)) - .map_err(|e| e.into()) - .map(|e| e.into()) - } - - pub fn initiate_refund( - &self, - amount_msat: u64, - expiry_secs: u32, - ) -> anyhow::Result { - self.ptr - .initiate_refund(amount_msat, expiry_secs) - .map_err(|e| e.into()) - .map(|e| e.into()) - } -} diff --git a/rust/src/api/builder.rs b/rust/src/api/builder.rs index 0411f2d..7dd9d12 100644 --- a/rust/src/api/builder.rs +++ b/rust/src/api/builder.rs @@ -1,75 +1,105 @@ -use crate::api::node::LdkNode; +use crate::api::node::FfiNode; use crate::api::types::{ ChainDataSourceConfig, Config, EntropySourceConfig, GossipSourceConfig, LiquiditySourceConfig, }; use crate::frb_generated::RustOpaque; -use crate::utils::error::LdkBuilderError; +use crate::utils::error::FfiBuilderError; use flutter_rust_bridge::frb; use ldk_node::lightning::util::ser::Writeable; +use std::collections::HashMap; use std::str::FromStr; #[derive(Debug, Clone)] -pub struct LdkMnemonic { +pub struct FfiMnemonic { pub seed_phrase: String, } -impl TryFrom for ldk_node::bip39::Mnemonic { - type Error = LdkBuilderError; +impl TryFrom for ldk_node::bip39::Mnemonic { + type Error = FfiBuilderError; - fn try_from(value: LdkMnemonic) -> Result { + fn try_from(value: FfiMnemonic) -> Result { ldk_node::bip39::Mnemonic::from_str(&value.seed_phrase).map_err(|e| e.into()) } } -impl From for LdkMnemonic { +impl From for FfiMnemonic { fn from(value: ldk_node::bip39::Mnemonic) -> Self { - LdkMnemonic { + FfiMnemonic { seed_phrase: value.to_string(), } } } -impl LdkMnemonic { - pub fn generate() -> LdkMnemonic { +impl FfiMnemonic { + pub fn generate() -> FfiMnemonic { ldk_node::generate_entropy_mnemonic().into() } } #[frb(opaque)] -pub struct NodeBuilder { - pub builder: RustOpaque, +pub struct FfiBuilder { + pub opaque: RustOpaque, } -impl NodeBuilder { +impl FfiBuilder { pub fn create_builder( config: Config, chain_data_source_config: Option, entropy_source_config: Option, gossip_source_config: Option, liquidity_source_config: Option, - ) -> Result { + ) -> Result { let mut builder = ldk_node::Builder::from_config(config.try_into()?); if let Some(source) = entropy_source_config { match source { - EntropySourceConfig::SeedFile(e) => builder.set_entropy_seed_path(e), - EntropySourceConfig::SeedBytes(e) => builder.set_entropy_seed_bytes(e.encode())?, + EntropySourceConfig::SeedFile(e) => { + builder.set_entropy_seed_path(e); + } + EntropySourceConfig::SeedBytes(e) => { + builder.set_entropy_seed_bytes(e.encode())?; + } EntropySourceConfig::Bip39Mnemonic { mnemonic, passphrase, - } => builder.set_entropy_bip39_mnemonic( - >::try_into(mnemonic)?, - passphrase, - ), - }; + } => { + builder.set_entropy_bip39_mnemonic( + >::try_into(mnemonic)?, + passphrase, + ); + } + } } + if let Some(source) = chain_data_source_config { match source { - ChainDataSourceConfig::Esplora(e) => builder.set_esplora_server(e), - }; + ChainDataSourceConfig::Esplora { + server_url, + sync_config, + } => { + builder.set_chain_source_esplora(server_url, sync_config.map(|e| e.into())); + } + ChainDataSourceConfig::BitcoindRpc { + rpc_host, + rpc_port, + rpc_user, + rpc_password, + } => { + builder.set_chain_source_bitcoind_rpc( + rpc_host, + rpc_port, + rpc_user, + rpc_password, + ); + } + } } if let Some(source) = gossip_source_config { match source { - GossipSourceConfig::P2PNetwork => builder.set_gossip_source_p2p(), - GossipSourceConfig::RapidGossipSync(e) => builder.set_gossip_source_rgs(e), - }; + GossipSourceConfig::P2PNetwork => { + builder.set_gossip_source_p2p(); + } + GossipSourceConfig::RapidGossipSync(e) => { + builder.set_gossip_source_rgs(e); + } + } } if let Some(liquidity) = liquidity_source_config { builder.set_liquidity_source_lsps2( @@ -78,49 +108,80 @@ impl NodeBuilder { .lsps2_service .1 .try_into() - .map_err(|_| LdkBuilderError::InvalidPublicKey)?, + .map_err(|_| FfiBuilderError::InvalidPublicKey)?, liquidity.lsps2_service.2, ); } - Ok(NodeBuilder { - builder: RustOpaque::new(builder), + Ok(FfiBuilder { + opaque: RustOpaque::new(builder), }) } - pub fn build(self) -> anyhow::Result { - match self.builder.build() { - Ok(e) => Ok(LdkNode { - ptr: RustOpaque::new(e), + pub fn build(self) -> anyhow::Result { + match self.opaque.build() { + Ok(e) => Ok(FfiNode { + opaque: RustOpaque::new(e), + }), + Err(e) => Err(e.into()), + } + } + pub fn build_with_fs_store(self) -> anyhow::Result { + match self.opaque.build_with_fs_store() { + Ok(e) => Ok(FfiNode { + opaque: RustOpaque::new(e), }), Err(e) => Err(e.into()), } } - pub fn build_with_fs_store(self) -> anyhow::Result { - match self.builder.build_with_fs_store() { - Ok(e) => Ok(LdkNode { - ptr: RustOpaque::new(e), + pub fn build_with_vss_store( + &self, + vss_url: String, + store_id: String, + lnurl_auth_server_url: String, + fixed_headers: HashMap, + ) -> anyhow::Result { + match self.opaque.build_with_vss_store( + vss_url, + store_id, + lnurl_auth_server_url, + fixed_headers, + ) { + Ok(e) => Ok(FfiNode { + opaque: RustOpaque::new(e), }), Err(e) => Err(e.into()), } } - // fn build_with_store( - // self - // ) -> anyhow::Result { - // match self.builder.build_with_store(Arc::new(())) { - // Ok(e) => Ok(LdkNode { - // ptr: RustOpaque::new(e), - // }), + pub fn build_with_vss_store_and_fixed_headers( + &self, + vss_url: String, + store_id: String, + fixed_headers: HashMap, + ) -> anyhow::Result { + match self + .opaque + .build_with_vss_store_and_fixed_headers(vss_url, store_id, fixed_headers) + { + Ok(e) => Ok(FfiNode { + opaque: RustOpaque::new(e), + }), + Err(e) => Err(e.into()), + } + } + // pub fn build_with_vss_store_and_header_provider( + // &self, + // vss_url: String, + // store_id: String, + // //todo; create a callback + // header_provider: Opaque + // ) -> anyhow::Result { + // match + // self.opaque.build_with_vss_store_and_header_provider(vss_url, store_id, header_provider) + // { + // Ok(e) => + // Ok(FfiNode { + // opaque: RustOpaque::new(e), + // }), // Err(e) => Err(e.into()), // } // } } - -// pub fn build_with_vss_store( -// self, url: String, store_id: String -// ) -> anyhow::Result { -// match self.builder.build_with_vss_store(url, store_id) { -// Ok(e) => Ok(LdkNode { -// ptr: RustOpaque::new(e), -// }), -// Err(e) => Err(e.into()), -// } -// } diff --git a/rust/src/api/graph.rs b/rust/src/api/graph.rs index f745e4c..2527a9c 100644 --- a/rust/src/api/graph.rs +++ b/rust/src/api/graph.rs @@ -1,6 +1,6 @@ use crate::api::types::SocketAddress; use crate::frb_generated::RustOpaque; -use crate::utils::error::LdkNodeError; +use crate::utils::error::FfiNodeError; use ldk_node::lightning::util::ser::Writeable; ///Represents the compressed public key of a node @@ -16,7 +16,7 @@ impl From for NodeId { } } impl TryFrom for ldk_node::lightning::routing::gossip::NodeId { - type Error = LdkNodeError; + type Error = FfiNodeError; fn try_from(value: NodeId) -> Result { ldk_node::lightning::routing::gossip::NodeId::from_slice(value.compressed.as_slice()) @@ -120,8 +120,8 @@ pub struct NodeAnnouncementInfo { impl From for NodeAnnouncementInfo { fn from(value: ldk_node::lightning::routing::gossip::NodeAnnouncementInfo) -> Self { Self { - last_update: value.last_update, - alias: value.alias.to_string(), + last_update: value.last_update(), + alias: value.alias().to_string(), addresses: value .addresses() .iter() @@ -130,38 +130,38 @@ impl From for NodeAn } } } -pub struct LdkNetworkGraph { - pub ptr: RustOpaque, +pub struct FfiNetworkGraph { + pub opaque: RustOpaque, } -impl From for LdkNetworkGraph { +impl From for FfiNetworkGraph { fn from(value: ldk_node::graph::NetworkGraph) -> Self { - LdkNetworkGraph { - ptr: RustOpaque::new(value), + FfiNetworkGraph { + opaque: RustOpaque::new(value), } } } -impl LdkNetworkGraph { +impl FfiNetworkGraph { /// Returns the list of channels in the graph pub fn list_channels(&self) -> Vec { - self.ptr.list_channels() + self.opaque.list_channels() } /// Returns information on a channel with the given id. pub fn channel(&self, short_channel_id: u64) -> Option { - self.ptr.channel(short_channel_id).map(|e| e.into()) + self.opaque.channel(short_channel_id).map(|e| e.into()) } /// Returns the list of nodes in the graph pub fn list_nodes(&self) -> Vec { - self.ptr + self.opaque .list_nodes() .iter() .map(|e| e.to_owned().into()) .collect() } - pub fn node(&self, node_id: NodeId) -> Result, LdkNodeError> { - Ok(self.ptr.node(&(node_id.try_into()?)).map(|e| e.into())) + pub fn node(&self, node_id: NodeId) -> Result, FfiNodeError> { + Ok(self.opaque.node(&node_id.try_into()?).map(|e| e.into())) } } diff --git a/rust/src/api/mod.rs b/rust/src/api/mod.rs index 045ddfe..f92f2b5 100644 --- a/rust/src/api/mod.rs +++ b/rust/src/api/mod.rs @@ -6,3 +6,4 @@ pub mod node; pub mod on_chain; pub mod spontaneous; pub mod types; +pub mod unified_qr; diff --git a/rust/src/api/node.rs b/rust/src/api/node.rs index e320984..f1dbdc2 100644 --- a/rust/src/api/node.rs +++ b/rust/src/api/node.rs @@ -1,55 +1,54 @@ -use crate::api::bolt11::LdkBolt11Payment; -use crate::api::bolt12::LdkBolt12Payment; -use crate::api::graph::LdkNetworkGraph; -use crate::api::on_chain::LdkOnChainPayment; -use crate::api::spontaneous::LdkSpontaneousPayment; +use crate::api::bolt11::FfiBolt11Payment; +use crate::api::bolt12::FfiBolt12Payment; +use crate::api::graph::FfiNetworkGraph; +use crate::api::on_chain::FfiOnChainPayment; +use crate::api::spontaneous::FfiSpontaneousPayment; use crate::api::types::*; use crate::frb_generated::RustOpaque; -use crate::utils::error::LdkNodeError; +use crate::utils::error::FfiNodeError; pub use ldk_node::io::sqlite_store::SqliteStore; -pub use ldk_node::Node; pub use std::sync::{Arc, Mutex}; -pub struct LdkNode { - pub ptr: RustOpaque, +use crate::api::unified_qr::FfiUnifiedQrPayment; + +pub struct FfiNode { + pub opaque: RustOpaque, } -impl LdkNode { - pub fn start(&self) -> anyhow::Result<(), LdkNodeError> { - self.ptr.start().map_err(|e| e.into()) +impl FfiNode { + pub fn start(&self) -> anyhow::Result<(), FfiNodeError> { + self.opaque.start().map_err(|e| e.into()) } - pub fn stop(&self) -> anyhow::Result<(), LdkNodeError> { - self.ptr.stop().map_err(|e| e.into()) + pub fn stop(&self) -> anyhow::Result<(), FfiNodeError> { + self.opaque.stop().map_err(|e| e.into()) } + pub fn status(&self) -> NodeStatus { - self.ptr.status().into() + self.opaque.status().into() } pub fn config(&self) -> Config { - self.ptr.config().into() + self.opaque.config().into() } pub fn event_handled(&self) { - self.ptr.event_handled() + self.opaque.event_handled() } pub fn next_event(&self) -> Option { - match self.ptr.next_event() { - None => None, - Some(e) => Some(e.into()), - } + self.opaque.next_event().map(|e| e.into()) } pub fn wait_next_event(&self) -> Event { - self.ptr.wait_next_event().into() + self.opaque.wait_next_event().into() } pub async fn next_event_async(&self) -> Event { - self.ptr.next_event_async().await.into() + self.opaque.next_event_async().await.into() } pub fn node_id(&self) -> PublicKey { - self.ptr.node_id().into() + self.opaque.node_id().into() } pub fn listening_addresses(&self) -> Option> { - self.ptr.listening_addresses().map(|vec_socket_addr| { + self.opaque.listening_addresses().map(|vec_socket_addr| { vec_socket_addr .into_iter() .map(|socket_addr| socket_addr.into()) @@ -57,12 +56,16 @@ impl LdkNode { }) } - pub fn list_balances(&self) -> anyhow::Result { - Ok(self.ptr.list_balances().into()) + pub fn list_balances(&self) -> anyhow::Result { + Ok(self.opaque.list_balances().into()) } pub fn list_channels(&self) -> Vec { - self.ptr.list_channels().iter().map(|x| x.into()).collect() + self.opaque + .list_channels() + .iter() + .map(|x| x.into()) + .collect() } pub fn connect( @@ -70,60 +73,80 @@ impl LdkNode { node_id: PublicKey, address: SocketAddress, persist: bool, - ) -> anyhow::Result<(), LdkNodeError> { - self.ptr + ) -> anyhow::Result<(), FfiNodeError> { + self.opaque .connect( node_id.try_into()?, address .try_into() - .map_err(|_| LdkNodeError::InvalidAddress)?, + .map_err(|_| FfiNodeError::InvalidAddress)?, persist, ) .map_err(|e| e.into()) } - pub fn disconnect(&self, counterparty_node_id: PublicKey) -> anyhow::Result<(), LdkNodeError> { - self.ptr + pub fn disconnect(&self, counterparty_node_id: PublicKey) -> anyhow::Result<(), FfiNodeError> { + self.opaque .disconnect(counterparty_node_id.try_into()?) .map_err(|e| e.into()) } - pub fn connect_open_channel( + pub fn open_channel( &self, socket_address: SocketAddress, node_id: PublicKey, channel_amount_sats: u64, push_to_counterparty_msat: Option, - announce_channel: bool, channel_config: Option, - ) -> Result { - self.ptr - .connect_open_channel( + ) -> Result { + self.opaque + .open_channel( node_id.try_into()?, socket_address .try_into() - .map_err(|_| LdkNodeError::InvalidAddress)?, + .map_err(|_| FfiNodeError::InvalidAddress)?, channel_amount_sats, push_to_counterparty_msat, - channel_config.map(|x| Arc::new(x.into())), - announce_channel, + channel_config.map(|x| x.into()), ) .map_err(|e| e.into()) .map(|e| e.into()) } - pub fn sync_wallets(&self) -> anyhow::Result<(), LdkNodeError> { - self.ptr.sync_wallets().map_err(|e| e.into()) + pub fn sync_wallets(&self) -> anyhow::Result<(), FfiNodeError> { + self.opaque.sync_wallets().map_err(|e| e.into()) + } + + pub fn open_announced_channel( + &self, + socket_address: SocketAddress, + node_id: PublicKey, + channel_amount_sats: u64, + push_to_counterparty_msat: Option, + channel_config: Option, + ) -> Result { + self.opaque + .open_announced_channel( + node_id.try_into()?, + socket_address + .try_into() + .map_err(|_| FfiNodeError::InvalidAddress)?, + channel_amount_sats, + push_to_counterparty_msat, + channel_config.map(|x| x.into()), + ) + .map_err(|e| e.into()) + .map(|e| e.into()) } pub fn close_channel( &self, user_channel_id: UserChannelId, counterparty_node_id: PublicKey, - ) -> anyhow::Result<(), LdkNodeError> { - self.ptr + ) -> anyhow::Result<(), FfiNodeError> { + self.opaque .close_channel( - &(user_channel_id.try_into()?), + &user_channel_id.try_into()?, counterparty_node_id.try_into()?, ) .map_err(|e| e.into()) @@ -133,10 +156,10 @@ impl LdkNode { &self, user_channel_id: UserChannelId, counterparty_node_id: PublicKey, - ) -> anyhow::Result<(), LdkNodeError> { - self.ptr - .force_close_channel( - &(user_channel_id.try_into()?), + ) -> anyhow::Result<(), FfiNodeError> { + self.opaque + .close_channel( + &user_channel_id.try_into()?, counterparty_node_id.try_into()?, ) .map_err(|e| e.into()) @@ -147,26 +170,23 @@ impl LdkNode { user_channel_id: UserChannelId, counterparty_node_id: PublicKey, channel_config: ChannelConfig, - ) -> anyhow::Result<(), LdkNodeError> { - self.ptr + ) -> anyhow::Result<(), FfiNodeError> { + self.opaque .update_channel_config( - &(user_channel_id.try_into()?), + &user_channel_id.try_into()?, counterparty_node_id.try_into()?, - Arc::new(channel_config.into()), + channel_config.into(), ) .map_err(|e| e.into()) } pub fn payment(&self, payment_id: PaymentId) -> Option { - match self.ptr.payment(&(payment_id.into())) { - None => None, - Some(e) => Some(e.into()), - } + self.opaque.payment(&payment_id.into()).map(|e| e.into()) } - pub fn remove_payment(&self, payment_id: PaymentId) -> Result<(), LdkNodeError> { - self.ptr - .remove_payment(&(payment_id.into())) + pub fn remove_payment(&self, payment_id: PaymentId) -> Result<(), FfiNodeError> { + self.opaque + .remove_payment(&payment_id.into()) .map_err(|e| e.into()) } @@ -174,7 +194,7 @@ impl LdkNode { &self, payment_direction: PaymentDirection, ) -> Vec { - self.ptr + self.opaque .list_payments_with_filter(|p| p.direction == payment_direction.into()) .iter() .map(|x| x.to_owned().into()) @@ -182,7 +202,7 @@ impl LdkNode { } pub fn list_payments(&self) -> Vec { - self.ptr + self.opaque .list_payments() .iter() .map(|x| x.to_owned().into()) @@ -190,32 +210,33 @@ impl LdkNode { } pub fn list_peers(&self) -> Vec { - self.ptr + self.opaque .list_peers() .iter() .map(|x| x.to_owned().into()) .collect() } - pub fn sign_message(&self, msg: Vec) -> anyhow::Result { - self.ptr.sign_message(msg.as_slice()).map_err(|e| e.into()) + pub fn sign_message(&self, msg: Vec) -> String { + self.opaque.sign_message(msg.as_slice()) + } + pub fn network_graph(ptr: Self) -> FfiNetworkGraph { + ptr.opaque.network_graph().into() } - pub fn network_graph(ptr: Self) -> LdkNetworkGraph { - ptr.ptr.network_graph().into() + pub fn bolt11_payment(ptr: Self) -> FfiBolt11Payment { + ptr.opaque.bolt11_payment().into() } - pub fn bolt11_payment(ptr: Self) -> LdkBolt11Payment { - ptr.ptr.bolt11_payment().into() + pub fn on_chain_payment(ptr: Self) -> FfiOnChainPayment { + ptr.opaque.onchain_payment().into() } - pub fn on_chain_payment(ptr: Self) -> LdkOnChainPayment { - ptr.ptr.onchain_payment().into() + pub fn spontaneous_payment(ptr: Self) -> FfiSpontaneousPayment { + ptr.opaque.spontaneous_payment().into() } - pub fn spontaneous_payment(ptr: Self) -> LdkSpontaneousPayment { - ptr.ptr.spontaneous_payment().into() + pub fn bolt12_payment(ptr: Self) -> FfiBolt12Payment { + ptr.opaque.bolt12_payment().into() } - pub fn bolt12_payment(ptr: Self) -> LdkBolt12Payment { - LdkBolt12Payment { - ptr: RustOpaque::new(ptr.ptr.bolt12_payment()), - } + pub fn unified_qr_payment(ptr: Self) -> FfiUnifiedQrPayment { + ptr.opaque.unified_qr_payment().into() } pub fn verify_signature( @@ -223,9 +244,9 @@ impl LdkNode { msg: Vec, sig: String, public_key: PublicKey, - ) -> anyhow::Result { + ) -> anyhow::Result { Ok(self - .ptr + .opaque .verify_signature(msg.as_slice(), sig.as_str(), &public_key.try_into()?)) } } diff --git a/rust/src/api/on_chain.rs b/rust/src/api/on_chain.rs index 14e5fea..c9bcfbf 100644 --- a/rust/src/api/on_chain.rs +++ b/rust/src/api/on_chain.rs @@ -1,21 +1,21 @@ use crate::api::types::{Address, Txid}; use crate::frb_generated::RustOpaque; -use crate::utils::error::LdkNodeError; +use crate::utils::error::FfiNodeError; -pub struct LdkOnChainPayment { - pub ptr: RustOpaque, +pub struct FfiOnChainPayment { + pub opaque: RustOpaque, } -impl From for LdkOnChainPayment { +impl From for FfiOnChainPayment { fn from(value: ldk_node::payment::OnchainPayment) -> Self { - LdkOnChainPayment { - ptr: RustOpaque::new(value), + FfiOnChainPayment { + opaque: RustOpaque::new(value), } } } -impl LdkOnChainPayment { - pub fn new_address(&self) -> Result { - self.ptr +impl FfiOnChainPayment { + pub fn new_address(&self) -> Result { + self.opaque .new_address() .map_err(|e| e.into()) .map(|e| e.into()) @@ -24,15 +24,15 @@ impl LdkOnChainPayment { &self, address: Address, amount_sats: u64, - ) -> Result { - self.ptr - .send_to_address(&(address.try_into()?), amount_sats) + ) -> Result { + self.opaque + .send_to_address(&address.try_into()?, amount_sats) .map_err(|e| e.into()) .map(|e| e.into()) } - pub fn send_all_to_address(&self, address: Address) -> Result { - self.ptr - .send_all_to_address(&(address.try_into()?)) + pub fn send_all_to_address(&self, address: Address) -> Result { + self.opaque + .send_all_to_address(&address.try_into()?) .map_err(|e| e.into()) .map(|e| e.into()) } diff --git a/rust/src/api/spontaneous.rs b/rust/src/api/spontaneous.rs index c46f61b..4a16348 100644 --- a/rust/src/api/spontaneous.rs +++ b/rust/src/api/spontaneous.rs @@ -1,28 +1,38 @@ use crate::api::types::{PaymentId, PublicKey}; use crate::frb_generated::RustOpaque; -use crate::utils::error::LdkNodeError; +use crate::utils::error::FfiNodeError; -pub struct LdkSpontaneousPayment { - pub ptr: RustOpaque, +use super::types::SendingParameters; + +pub struct FfiSpontaneousPayment { + pub opaque: RustOpaque, } -impl From for LdkSpontaneousPayment { +impl From for FfiSpontaneousPayment { fn from(value: ldk_node::payment::SpontaneousPayment) -> Self { Self { - ptr: RustOpaque::new(value), + opaque: RustOpaque::new(value), } } } -impl LdkSpontaneousPayment { - pub fn send(&self, amount_msat: u64, node_id: PublicKey) -> Result { - self.ptr - .send(amount_msat, node_id.try_into()?) +impl FfiSpontaneousPayment { + pub fn send( + &self, + amount_msat: u64, + node_id: PublicKey, + sending_parameters: Option, + ) -> Result { + self.opaque + .send( + amount_msat, + node_id.try_into()?, + sending_parameters.map(|e| e.into()), + ) .map_err(|e| e.into()) .map(|e| e.into()) } - pub fn send_probes(&self, amount_msat: u64, node_id: PublicKey) -> Result<(), LdkNodeError> { - self.ptr + pub fn send_probes(&self, amount_msat: u64, node_id: PublicKey) -> Result<(), FfiNodeError> { + self.opaque .send_probes(amount_msat, node_id.try_into()?) .map_err(|e| e.into()) - .map(|e| e.into()) } } diff --git a/rust/src/api/types.rs b/rust/src/api/types.rs index 8b78caa..45cc245 100644 --- a/rust/src/api/types.rs +++ b/rust/src/api/types.rs @@ -1,5 +1,5 @@ -use crate::api::builder::LdkMnemonic; -use crate::utils::error::{LdkBuilderError, LdkNodeError}; +use crate::api::builder::FfiMnemonic; +use crate::utils::error::{FfiBuilderError, FfiNodeError}; use flutter_rust_bridge::*; use ldk_node::lightning::util::ser::{Readable, Writeable}; use std::default::Default; @@ -60,7 +60,7 @@ impl From for SocketAddress { } } impl TryFrom for ldk_node::lightning::ln::msgs::SocketAddress { - type Error = LdkBuilderError; + type Error = FfiBuilderError; fn try_from(value: SocketAddress) -> Result { match value { @@ -87,7 +87,7 @@ impl TryFrom for ldk_node::lightning::ln::msgs::SocketAddress { SocketAddress::Hostname { addr, port } => { Ok(ldk_node::lightning::ln::msgs::SocketAddress::Hostname { hostname: ldk_node::lightning::util::ser::Hostname::try_from(addr) - .map_err(|_| LdkBuilderError::SocketAddressParseError)?, + .map_err(|_| FfiBuilderError::SocketAddressParseError)?, port, }) } @@ -114,7 +114,7 @@ pub struct ChannelConfig { /// Default value: 72 (12 hours at an average of 6 blocks/hour). Minimum value: MIN_CLTV_EXPIRY_DELTA, any values less than this will be treated as MIN_CLTV_EXPIRY_DELTA instead. pub cltv_expiry_delta: u16, /// Options for how to set the max dust HTLC exposure allowed on a channel. - pub max_dust_htlc_exposure: Option, + pub max_dust_htlc_exposure: MaxDustHTLCExposure, ///The additional fee we’re willing to pay to avoid waiting for the counterparty’s toSelfDelay to reclaim funds. /// /// When we close a channel cooperatively with our counterparty, we negotiate a fee for the closing transaction which both sides find acceptable, ultimately paid by the channel funder/initiator. @@ -132,15 +132,15 @@ pub struct ChannelConfig { pub accept_underpaying_htlcs: bool, } -impl From for ChannelConfig { - fn from(value: ldk_node::ChannelConfig) -> Self { +impl From for ChannelConfig { + fn from(value: ldk_node::config::ChannelConfig) -> Self { ChannelConfig { - forwarding_fee_proportional_millionths: value.forwarding_fee_proportional_millionths(), - forwarding_fee_base_msat: value.forwarding_fee_base_msat(), - cltv_expiry_delta: value.cltv_expiry_delta(), - max_dust_htlc_exposure: None, - force_close_avoidance_max_fee_satoshis: value.force_close_avoidance_max_fee_satoshis(), - accept_underpaying_htlcs: value.accept_underpaying_htlcs(), + forwarding_fee_proportional_millionths: value.forwarding_fee_proportional_millionths, + forwarding_fee_base_msat: value.forwarding_fee_base_msat, + cltv_expiry_delta: value.cltv_expiry_delta, + max_dust_htlc_exposure: value.max_dust_htlc_exposure.into(), + force_close_avoidance_max_fee_satoshis: value.force_close_avoidance_max_fee_satoshis, + accept_underpaying_htlcs: value.accept_underpaying_htlcs, } } } @@ -161,28 +161,40 @@ pub enum MaxDustHTLCExposure { // This variant is primarily meant to serve pre-anchor channels, as HTLC fees being included on HTLC outputs means your channel may be subject to more dust exposure in the event of increases in fee rate. FeeRateMultiplier(u64), } -impl From for ldk_node::ChannelConfig { - fn from(e: ChannelConfig) -> Self { - let config = ldk_node::ChannelConfig::new(); - if e.accept_underpaying_htlcs { - config.accept_underpaying_htlcs(); +impl From for ldk_node::config::MaxDustHTLCExposure { + fn from(value: MaxDustHTLCExposure) -> Self { + match value { + MaxDustHTLCExposure::FixedLimitMsat(e) => { + ldk_node::config::MaxDustHTLCExposure::FixedLimit { limit_msat: e } + } + MaxDustHTLCExposure::FeeRateMultiplier(e) => { + ldk_node::config::MaxDustHTLCExposure::FeeRateMultiplier { multiplier: e } + } } - config.set_accept_underpaying_htlcs(e.accept_underpaying_htlcs); - config.set_cltv_expiry_delta(e.cltv_expiry_delta); - config.set_forwarding_fee_base_msat(e.forwarding_fee_base_msat); - config.set_force_close_avoidance_max_fee_satoshis(e.force_close_avoidance_max_fee_satoshis); - config.set_forwarding_fee_proportional_millionths(e.forwarding_fee_proportional_millionths); - if let Some(max_dust_htlc_exposure) = e.max_dust_htlc_exposure { - match max_dust_htlc_exposure { - MaxDustHTLCExposure::FixedLimitMsat(e) => { - config.set_max_dust_htlc_exposure_from_fixed_limit(e); - } - MaxDustHTLCExposure::FeeRateMultiplier(e) => { - config.set_max_dust_htlc_exposure_from_fee_rate_multiplier(e); - } + } +} +impl From for MaxDustHTLCExposure { + fn from(value: ldk_node::config::MaxDustHTLCExposure) -> Self { + match value { + ldk_node::config::MaxDustHTLCExposure::FixedLimit { limit_msat } => { + MaxDustHTLCExposure::FixedLimitMsat(limit_msat) + } + ldk_node::config::MaxDustHTLCExposure::FeeRateMultiplier { multiplier } => { + MaxDustHTLCExposure::FixedLimitMsat(multiplier) } } - config + } +} +impl From for ldk_node::config::ChannelConfig { + fn from(e: ChannelConfig) -> Self { + ldk_node::config::ChannelConfig { + forwarding_fee_proportional_millionths: e.forwarding_fee_proportional_millionths, + forwarding_fee_base_msat: e.forwarding_fee_base_msat, + cltv_expiry_delta: e.cltv_expiry_delta, + max_dust_htlc_exposure: e.max_dust_htlc_exposure.into(), + force_close_avoidance_max_fee_satoshis: e.force_close_avoidance_max_fee_satoshis, + accept_underpaying_htlcs: e.accept_underpaying_htlcs, + } } } /// The global identifier of a channel. @@ -196,14 +208,14 @@ pub struct ChannelId { pub data: [u8; 32], } -impl From for ChannelId { - fn from(value: ldk_node::lightning::ln::ChannelId) -> Self { +impl From for ChannelId { + fn from(value: ldk_node::lightning::ln::types::ChannelId) -> Self { ChannelId { data: value.0 } } } -impl From for ldk_node::lightning::ln::ChannelId { +impl From for ldk_node::lightning::ln::types::ChannelId { fn from(value: ChannelId) -> Self { - ldk_node::lightning::ln::ChannelId(value.data) + ldk_node::lightning::ln::types::ChannelId(value.data) } } ///A local, potentially user-provided, identifier of a channel. @@ -224,7 +236,7 @@ impl From for UserChannelId { } } impl TryFrom for ldk_node::UserChannelId { - type Error = LdkNodeError; + type Error = FfiNodeError; fn try_from(value: UserChannelId) -> Result { let mut encoded = value.data.as_slice(); @@ -239,9 +251,11 @@ impl From for ClosureReason { peer_msg: peer_msg.0, } } - ldk_node::lightning::events::ClosureReason::HolderForceClosed => { - ClosureReason::HolderForceClosed - } + ldk_node::lightning::events::ClosureReason::HolderForceClosed { + broadcasted_latest_txn, + } => ClosureReason::HolderForceClosed { + broadcasted_latest_txn, + }, ldk_node::lightning::events::ClosureReason::CommitmentTxConfirmed => { ClosureReason::CommitmentTxConfirmed @@ -276,6 +290,13 @@ impl From for ClosureReason { ldk_node::lightning::events::ClosureReason::HTLCsTimedOut => { ClosureReason::HTLCsTimedOut } + ldk_node::lightning::events::ClosureReason::PeerFeerateTooLow { + peer_feerate_sat_per_kw, + required_feerate_sat_per_kw, + } => ClosureReason::PeerFeerateTooLow { + peer_feerate_sat_per_kw, + required_feerate_sat_per_kw, + }, } } } @@ -300,6 +321,12 @@ pub enum PaymentFailureReason { /// This error should generally never happen. This likely means that there is a problem with /// your router. UnexpectedError, + ///An invoice was received that required unknown features. + UnknownRequiredFeatures, + ///A Bolt12Invoice was not received in a reasonable amount of time. + InvoiceRequestExpired, + ///An InvoiceRequest for the payment was rejected by the recipient. + InvoiceRequestRejected, } impl From for PaymentFailureReason { fn from(value: ldk_node::lightning::events::PaymentFailureReason) -> Self { @@ -322,12 +349,28 @@ impl From for PaymentFailureR ldk_node::lightning::events::PaymentFailureReason::UnexpectedError => { PaymentFailureReason::UnexpectedError } + ldk_node::lightning::events::PaymentFailureReason::UnknownRequiredFeatures => { + PaymentFailureReason::UnknownRequiredFeatures + } + ldk_node::lightning::events::PaymentFailureReason::InvoiceRequestExpired => { + PaymentFailureReason::InvoiceRequestExpired + } + ldk_node::lightning::events::PaymentFailureReason::InvoiceRequestRejected => { + PaymentFailureReason::InvoiceRequestRejected + } } } } #[derive(Clone, Debug, PartialEq, Eq)] /// The reason the channel was closed. See individual variants for more details. pub enum ClosureReason { + /// Our peer provided a feerate which violated our required minimum (fetched from our + /// `FeeEstimator` + /// + PeerFeerateTooLow { + peer_feerate_sat_per_kw: u32, + required_feerate_sat_per_kw: u32, + }, /// Closure generated from receiving a peer error message. /// /// Our counterparty may have broadcasted their latest commitment state, and we have @@ -345,7 +388,9 @@ pub enum ClosureReason { /// Closure generated from [`ChannelManager::force_close_channel`], called by the user. /// /// [`ChannelManager::force_close_channel`]: crate::ln::channelmanager::ChannelManager::force_close_channel. - HolderForceClosed, + HolderForceClosed { + broadcasted_latest_txn: Option, + }, /// The channel was closed after negotiating a cooperative close and we've now broadcasted /// the cooperative close transaction. Note the shutdown may have been initiated by us. /// @@ -453,7 +498,7 @@ pub enum Event { /// Will only be `None` for events serialized with LDK Node v0.2.1 or prior. payment_id: Option, /// The hash of the payment. - payment_hash: PaymentHash, + payment_hash: Option, /// The reason why the payment failed. /// /// This will be `None` for events serialized by LDK Node v0.2.1 and prior. @@ -529,9 +574,7 @@ impl From for Event { reason, } => Event::PaymentFailed { payment_id: payment_id.map(|e| e.into()), - payment_hash: PaymentHash { - data: payment_hash.0, - }, + payment_hash: payment_hash.map(|e| PaymentHash { data: e.0 }), reason: reason.map(|e| e.into()), }, ldk_node::Event::PaymentReceived { @@ -588,8 +631,8 @@ impl From for Event { } => Event::PaymentClaimable { payment_id: payment_id.into(), payment_hash: payment_hash.into(), - claimable_amount_msat: claimable_amount_msat, - claim_deadline: claim_deadline, + claimable_amount_msat, + claim_deadline, }, } } @@ -603,11 +646,11 @@ pub struct Txid { } impl TryFrom for ldk_node::bitcoin::Txid { - type Error = LdkNodeError; + type Error = FfiNodeError; fn try_from(value: Txid) -> Result { ldk_node::bitcoin::Txid::from_str(value.hash.as_str()) - .map_err(|_| LdkNodeError::InvalidTxid) + .map_err(|_| FfiNodeError::InvalidTxid) } } @@ -852,6 +895,16 @@ pub enum PaymentKind { secret: Option, /// The ID of the offer this payment is for. offer_id: OfferId, + /// The payer note for the payment. + /// + /// Truncated to `PAYER_NOTE_LIMIT` characters. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + payer_note: Option, + /// The quantity of an item requested in the offer. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + quantity: Option, }, /// A [BOLT 12] 'refund' payment, i.e., a payment for a `Refund`. /// @@ -863,6 +916,14 @@ pub enum PaymentKind { preimage: Option, /// The secret used by the payment. secret: Option, + // The payer note for the refund payment. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + payer_note: Option, + /// The quantity of an item that the refund is for. + /// + /// This will always be `None` for payments serialized with version `v0.3.0`. + quantity: Option, }, } impl From for PaymentKind { @@ -900,20 +961,28 @@ impl From for PaymentKind { preimage, secret, offer_id, + payer_note, + quantity, } => PaymentKind::Bolt12Offer { hash: hash.map(|e| e.into()), preimage: preimage.map(|e| e.into()), secret: secret.map(|e| e.into()), offer_id: offer_id.into(), + payer_note: payer_note.map(|e| e.to_string()), + quantity, }, ldk_node::payment::PaymentKind::Bolt12Refund { hash, preimage, secret, + payer_note, + quantity, } => PaymentKind::Bolt12Refund { hash: hash.map(|e| e.into()), preimage: preimage.map(|e| e.into()), secret: secret.map(|e| e.into()), + payer_note: payer_note.map(|e| e.to_string()), + quantity, }, } } @@ -927,11 +996,11 @@ pub struct PublicKey { } impl TryFrom for ldk_node::bitcoin::secp256k1::PublicKey { - type Error = LdkNodeError; + type Error = FfiNodeError; fn try_from(value: PublicKey) -> Result { ldk_node::bitcoin::secp256k1::PublicKey::from_str(value.hex.as_str()) - .map_err(|_| LdkNodeError::InvalidPublicKey) + .map_err(|_| FfiNodeError::InvalidPublicKey) } } impl From for PublicKey { @@ -948,12 +1017,12 @@ pub struct Address { } impl TryFrom
for ldk_node::bitcoin::Address { - type Error = LdkNodeError; + type Error = FfiNodeError; fn try_from(value: Address) -> Result { ldk_node::bitcoin::Address::from_str(value.s.as_str()) .map(|e| e.assume_checked()) - .map_err(|_| LdkNodeError::InvalidAddress) + .map_err(|_| FfiNodeError::InvalidAddress) } } impl From for Address { @@ -1026,8 +1095,6 @@ pub struct ChannelDetails { /// /// This is a strict superset of `is_channel_ready`. pub is_usable: bool, - /// Returns `true` if this channel is (or will be) publicly-announced - pub is_public: bool, /// The difference in the CLTV value between incoming HTLCs and an outbound HTLC forwarded over /// the channel. pub cltv_expiry_delta: Option, @@ -1095,7 +1162,6 @@ impl From<&ldk_node::ChannelDetails> for ChannelDetails { is_outbound: value.clone().is_outbound, is_channel_ready: value.clone().is_channel_ready, is_usable: value.clone().is_usable, - is_public: value.clone().is_public, cltv_expiry_delta: value.clone().cltv_expiry_delta, counterparty_unspendable_punishment_reserve: value .clone() @@ -1118,7 +1184,7 @@ impl From<&ldk_node::ChannelDetails> for ChannelDetails { force_close_spend_delay: value.force_close_spend_delay, inbound_htlc_minimum_msat: value.inbound_htlc_minimum_msat, inbound_htlc_maximum_msat: value.inbound_htlc_maximum_msat, - config: (*value.config).clone().into(), + config: value.config.into(), } } } @@ -1300,17 +1366,17 @@ pub struct AnchorChannelsConfig { pub per_channel_reserve_sats: u64, } -impl TryFrom for ldk_node::AnchorChannelsConfig { - type Error = LdkBuilderError; +impl TryFrom for ldk_node::config::AnchorChannelsConfig { + type Error = FfiBuilderError; fn try_from(value: AnchorChannelsConfig) -> Result { let trusted_peers_no_reserve: Result< Vec, - LdkBuilderError, + FfiBuilderError, > = value .trusted_peers_no_reserve .into_iter() - .map(|x| x.try_into().map_err(|_| LdkBuilderError::InvalidPublicKey)) + .map(|x| x.try_into().map_err(|_| FfiBuilderError::InvalidPublicKey)) .collect(); Ok(Self { trusted_peers_no_reserve: trusted_peers_no_reserve?, @@ -1319,8 +1385,8 @@ impl TryFrom for ldk_node::AnchorChannelsConfig { } } -impl From for AnchorChannelsConfig { - fn from(value: ldk_node::AnchorChannelsConfig) -> Self { +impl From for AnchorChannelsConfig { + fn from(value: ldk_node::config::AnchorChannelsConfig) -> Self { Self { trusted_peers_no_reserve: value .trusted_peers_no_reserve @@ -1332,14 +1398,14 @@ impl From for AnchorChannelsConfig { } } -impl TryFrom for ldk_node::Config { - type Error = LdkBuilderError; +impl TryFrom for ldk_node::config::Config { + type Error = FfiBuilderError; fn try_from(value: Config) -> Result { let addresses = if let Some(addresses) = value.listening_addresses { let addr_vec: Result< Vec, - LdkBuilderError, + FfiBuilderError, > = addresses .into_iter() .map(|socket_addr| socket_addr.try_into()) @@ -1350,39 +1416,39 @@ impl TryFrom for ldk_node::Config { }; let anchor_channels_config = if let Some(anchor_channels_config) = value.anchor_channels_config { - let anchr_channels_config: Result = - anchor_channels_config.try_into(); + let anchr_channels_config: Result< + ldk_node::config::AnchorChannelsConfig, + FfiBuilderError, + > = anchor_channels_config.try_into(); Some(anchr_channels_config?) } else { None }; let trusted_peers_0conf: Result< Vec, - LdkBuilderError, + FfiBuilderError, > = value .trusted_peers_0conf .into_iter() - .map(|x| x.try_into().map_err(|_| LdkBuilderError::InvalidPublicKey)) + .map(|x| x.try_into().map_err(|_| FfiBuilderError::InvalidPublicKey)) .collect(); - Ok(ldk_node::Config { + Ok(ldk_node::config::Config { storage_dir_path: value.storage_dir_path, log_dir_path: value.log_dir_path, network: value.network.into(), listening_addresses: addresses, - default_cltv_expiry_delta: value.default_cltv_expiry_delta, - onchain_wallet_sync_interval_secs: value.onchain_wallet_sync_interval_secs, - wallet_sync_interval_secs: value.wallet_sync_interval_secs, - fee_rate_cache_update_interval_secs: value.fee_rate_cache_update_interval_secs, trusted_peers_0conf: trusted_peers_0conf?, log_level: value.log_level.into(), probing_liquidity_limit_multiplier: value.probing_liquidity_limit_multiplier, anchor_channels_config, + node_alias: value.node_alias.map(|e| e.into()), + sending_parameters: value.sending_parameters.map(|e| e.into()), }) } } -impl From for Config { - fn from(value: ldk_node::Config) -> Self { +impl From for Config { + fn from(value: ldk_node::config::Config) -> Self { Config { storage_dir_path: value.storage_dir_path, log_dir_path: value.log_dir_path, @@ -1393,10 +1459,6 @@ impl From for Config { .map(|socket_addr| socket_addr.into()) .collect() }), - default_cltv_expiry_delta: value.default_cltv_expiry_delta, - onchain_wallet_sync_interval_secs: value.onchain_wallet_sync_interval_secs, - wallet_sync_interval_secs: value.wallet_sync_interval_secs, - fee_rate_cache_update_interval_secs: value.fee_rate_cache_update_interval_secs, trusted_peers_0conf: value .trusted_peers_0conf .into_iter() @@ -1405,9 +1467,28 @@ impl From for Config { log_level: value.log_level.into(), probing_liquidity_limit_multiplier: value.probing_liquidity_limit_multiplier, anchor_channels_config: value.anchor_channels_config.map(|e| e.into()), + sending_parameters: value.sending_parameters.map(|e| e.into()), + node_alias: value.node_alias.map(|e| e.into()), } } } + +/// A user-defined name for a node, which may be used when displaying the node in a graph. +/// +/// Since node aliases are provided by third parties, they are a potential avenue for injection +/// attacks. Care must be taken when processing. +#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)] +pub struct NodeAlias(pub [u8; 32]); +impl From for NodeAlias { + fn from(value: ldk_node::lightning::routing::gossip::NodeAlias) -> Self { + NodeAlias(value.0) + } +} +impl From for ldk_node::lightning::routing::gossip::NodeAlias { + fn from(value: NodeAlias) -> Self { + ldk_node::lightning::routing::gossip::NodeAlias(value.0) + } +} /// Represents the configuration of an [Node] instance. /// #[frb(serialize)] @@ -1425,27 +1506,14 @@ pub struct Config { /// #[frb(non_final)] pub listening_addresses: Option>, - /// The default CLTV expiry delta to be used for payments. - /// - #[frb(non_final)] - pub default_cltv_expiry_delta: u32, - ///The time in-between background sync attempts of the onchain wallet, in seconds. - /// Note: A minimum of 10 seconds is always enforced. - #[frb(non_final)] - pub onchain_wallet_sync_interval_secs: u64, - - /// The time in-between background sync attempts of the LDK wallet, in seconds. - /// Note: A minimum of 10 seconds is always enforced. + /// The node alias that will be used when broadcasting announcements to the gossip network. /// - #[frb(non_final)] - pub wallet_sync_interval_secs: u64, - - ///The time in-between background update attempts to our fee rate cache, in seconds. - /// Note: A minimum of 10 seconds is always enforced. + /// The provided alias must be a valid UTF-8 string and no longer than 32 bytes in total. /// - #[frb(non_final)] - pub fee_rate_cache_update_interval_secs: u64, + /// **Note**: We will only allow opening and accepting public channels if the `nodeAlias` and the + /// `listeningAddresses` are set. + pub node_alias: Option, ///A list of peers that we allow to establish zero confirmation channels to us. /// ///Note: Allowing payments via zero-confirmation channels is potentially insecure if the funding transaction ends up never being confirmed on-chain. Zero-confirmation channels should therefore only be accepted from trusted peers. @@ -1459,7 +1527,17 @@ pub struct Config { pub log_level: LogLevel, #[frb(non_final)] pub anchor_channels_config: Option, + #[frb(non_final)] + /// Configuration options for payment routing and pathfinding. + /// + /// Setting the `SendingParameters` provides flexibility to customize how payments are routed, + /// including setting limits on routing fees, CLTV expiry, and channel utilization. + /// + /// **Note:** If unset, default parameters will be used, and you will be able to override the + /// parameters on a per-payment basis in the corresponding method calls. + pub sending_parameters: Option, } + impl Default for AnchorChannelsConfig { fn default() -> Self { AnchorChannelsConfig { @@ -1476,21 +1554,107 @@ impl Default for Config { log_dir_path: None, network: DEFAULT_NETWORK, listening_addresses: None, - default_cltv_expiry_delta: DEFAULT_CLTV_EXPIRY_DELTA, - onchain_wallet_sync_interval_secs: DEFAULT_BDK_WALLET_SYNC_INTERVAL_SECS, - wallet_sync_interval_secs: DEFAULT_LDK_WALLET_SYNC_INTERVAL_SECS, - fee_rate_cache_update_interval_secs: DEFAULT_FEE_RATE_CACHE_UPDATE_INTERVAL_SECS, trusted_peers_0conf: vec![], probing_liquidity_limit_multiplier: 3, log_level: DEFAULT_LOG_LEVEL, anchor_channels_config: Some(Default::default()), + node_alias: None, + sending_parameters: None, } } } +#[derive(Copy, Clone, Debug, PartialEq, Eq)] +pub enum MaxTotalRoutingFeeLimit { + NoFeeCap, + FeeCap { amount_msat: u64 }, +} +impl From for Option { + fn from(value: MaxTotalRoutingFeeLimit) -> Self { + match value { + MaxTotalRoutingFeeLimit::FeeCap { amount_msat } => Some(amount_msat), + MaxTotalRoutingFeeLimit::NoFeeCap => None, + } + } +} +/// Represents information used to send a payment. +#[derive(Clone, Debug, PartialEq)] +pub struct SendingParameters { + /// The maximum total fees, in millisatoshi, that may accrue during route finding. + /// + /// This limit also applies to the total fees that may arise while retrying failed payment + /// paths. + /// + /// Note that values below a few sats may result in some paths being spuriously ignored. + pub max_total_routing_fee_msat: Option, + /// The maximum total CLTV delta we accept for the route. + /// + /// Defaults to `DEFAULT_MAX_TOTAL_CLTV_EXPIRY_DELTA`. + /// + pub max_total_cltv_expiry_delta: Option, + /// The maximum number of paths that may be used by (MPP) payments. + /// + /// Defaults to `DEFAULT_MAX_PATH_COUNT`. + pub max_path_count: Option, + /// Selects the maximum share of a channel's total capacity which will be sent over a channel, + /// as a power of 1/2. + /// + /// A higher value prefers to send the payment using more MPP parts whereas + /// a lower value prefers to send larger MPP parts, potentially saturating channels and + /// increasing failure probability for those paths. + /// + /// Note that this restriction will be relaxed during pathfinding after paths which meet this + /// restriction have been found. While paths which meet this criteria will be searched for, it + /// is ultimately up to the scorer to select them over other paths. + /// + /// Examples: + /// + /// | Value | Max Proportion of Channel Capacity Used | + /// |-------|-----------------------------------------| + /// | 0 | Up to 100% of the channel’s capacity | + /// | 1 | Up to 50% of the channel’s capacity | + /// | 2 | Up to 25% of the channel’s capacity | + /// | 3 | Up to 12.5% of the channel’s capacity | + /// + /// Default value: 2 + pub max_channel_saturation_power_of_half: Option, +} + +impl From for SendingParameters { + fn from(value: ldk_node::payment::SendingParameters) -> Self { + SendingParameters { + max_total_routing_fee_msat: value.max_total_routing_fee_msat.map(|e| match e { + Some(e) => MaxTotalRoutingFeeLimit::FeeCap { amount_msat: e }, + None => MaxTotalRoutingFeeLimit::NoFeeCap, + }), + max_total_cltv_expiry_delta: value.max_total_cltv_expiry_delta, + max_path_count: value.max_path_count, + max_channel_saturation_power_of_half: value.max_channel_saturation_power_of_half, + } + } +} +impl From for ldk_node::payment::SendingParameters { + fn from(value: SendingParameters) -> Self { + ldk_node::payment::SendingParameters { + max_total_routing_fee_msat: value.max_total_routing_fee_msat.map(|e| e.into()), + max_total_cltv_expiry_delta: value.max_total_cltv_expiry_delta, + max_path_count: value.max_path_count, + max_channel_saturation_power_of_half: value.max_channel_saturation_power_of_half, + } + } +} #[derive(Debug, Clone)] pub enum ChainDataSourceConfig { - Esplora(String), + Esplora { + server_url: String, + sync_config: Option, + }, + BitcoindRpc { + rpc_host: String, + rpc_port: u16, + rpc_user: String, + rpc_password: String, + }, } #[derive(Debug, Clone)] @@ -1498,7 +1662,7 @@ pub enum EntropySourceConfig { SeedFile(String), SeedBytes([u8; 64]), Bip39Mnemonic { - mnemonic: LdkMnemonic, + mnemonic: FfiMnemonic, passphrase: Option, }, } @@ -1575,6 +1739,40 @@ pub enum LightningBalance { /// The amount available to claim, in satoshis, excluding the on-chain fees which will be /// required to do so. amount_satoshis: u64, + /// The transaction fee we pay for the closing commitment transaction. This amount is not + /// included in the `amount_satoshis` value. + /// + /// Note that if this channel is inbound (and thus our counterparty pays the commitment + /// transaction fee) this value will be zero. For channels created prior to LDK Node 0.4 + /// the channel is always treated as outbound (and thus this value is never zero). + transaction_fee_satoshis: u64, + /// The amount of millisatoshis which has been burned to fees from HTLCs which are outbound + /// from us and are related to a payment which was sent by us. This is the sum of the + /// millisatoshis part of all HTLCs which are otherwise represented by + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + outbound_payment_htlc_rounded_msat: u64, + /// The amount of millisatoshis which has been burned to fees from HTLCs which are outbound + /// from us and are related to a forwarded HTLC. This is the sum of the millisatoshis part + /// of all HTLCs which are otherwise represented by + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + outbound_forwarded_htlc_rounded_msat: u64, + /// The amount of millisatoshis which has been burned to fees from HTLCs which are inbound + /// to us and for which we know the preimage. This is the sum of the millisatoshis part of + /// all HTLCs which would be represented by `lightningBalance.ContentiousClaimable` on + /// channel close, but whose current value is included in `amountSatoshis`, as well as any + /// dust HTLCs which would otherwise be represented the same. + /// + /// This amount (rounded up to a whole satoshi value) will not be included in `amountSatoshis`. + inbound_claiming_htlc_rounded_msat: u64, + /// The amount of millisatoshis which has been burned to fees from HTLCs which are inbound + /// to us and for which we do not know the preimage. This is the sum of the millisatoshis + /// part of all HTLCs which would be represented by + /// `lightningBalance.MaybePreimageClaimableHTLC` on channel close, as well as any dust + /// HTLCs which would otherwise be represented the same. + /// + /// This amount (rounded up to a whole satoshi value) will not be included in the + /// counterparty's `amountSatoshis`. + inbound_htlc_rounded_msat: u64, }, /// The channel has been closed, and the given balance is ours but awaiting confirmations until /// we consider it spendable. @@ -1586,11 +1784,12 @@ pub enum LightningBalance { /// The amount available to claim, in satoshis, possibly excluding the on-chain fees which /// were spent in broadcasting the transaction. amount_satoshis: u64, - /// The height at which an [`Event::SpendableOutputs`] event will be generated for this + /// The height at which an `event.SpendableOutputs` event will be generated for this /// amount. /// - /// [`Event::SpendableOutputs`]: lightning::events::Event::SpendableOutputs confirmation_height: u32, + /// Whether this balance is a result of cooperative close, a force-close, or an HTLC. + source: BalanceSource, }, /// The channel has been closed, and the given balance should be ours but awaiting spending /// transaction confirmation. If the spending transaction does not confirm in time, it is @@ -1631,6 +1830,8 @@ pub enum LightningBalance { claimable_height: u32, /// The payment hash whose preimage our counterparty needs to claim this HTLC. payment_hash: PaymentHash, + /// + outbound_payment: bool, }, /// HTLCs which we received from our counterparty which are claimable with a preimage which we /// do not currently have. This will only be claimable if we receive the preimage from the node @@ -1670,21 +1871,33 @@ impl From for LightningBalance { channel_id, counterparty_node_id, amount_satoshis, + transaction_fee_satoshis, + outbound_payment_htlc_rounded_msat, + outbound_forwarded_htlc_rounded_msat, + inbound_claiming_htlc_rounded_msat, + inbound_htlc_rounded_msat, } => LightningBalance::ClaimableOnChannelClose { channel_id: channel_id.into(), counterparty_node_id: counterparty_node_id.into(), amount_satoshis, + transaction_fee_satoshis, + outbound_payment_htlc_rounded_msat, + outbound_forwarded_htlc_rounded_msat, + inbound_claiming_htlc_rounded_msat, + inbound_htlc_rounded_msat, }, ldk_node::LightningBalance::ClaimableAwaitingConfirmations { channel_id, counterparty_node_id, amount_satoshis, confirmation_height, + source, } => LightningBalance::ClaimableAwaitingConfirmations { channel_id: channel_id.into(), counterparty_node_id: counterparty_node_id.into(), amount_satoshis, confirmation_height, + source: source.into(), }, ldk_node::LightningBalance::ContentiousClaimable { channel_id, @@ -1707,12 +1920,14 @@ impl From for LightningBalance { amount_satoshis, claimable_height, payment_hash, + outbound_payment, } => LightningBalance::MaybeTimeoutClaimableHTLC { channel_id: channel_id.into(), counterparty_node_id: counterparty_node_id.into(), amount_satoshis, claimable_height, payment_hash: payment_hash.into(), + outbound_payment, }, ldk_node::LightningBalance::MaybePreimageClaimableHTLC { channel_id, @@ -1836,41 +2051,74 @@ impl From for BestBlock { } } } -/// Represents the status of the [Node]. + +/// Indicates whether the balance is derived from a cooperative close, a force-close +/// (for holder or counterparty), or whether it is for an HTLC. +#[derive(Clone, Debug, PartialEq, Eq)] +pub enum BalanceSource { + /// The channel was force closed by the holder. + HolderForceClosed, + /// The channel was force closed by the counterparty. + CounterpartyForceClosed, + /// The channel was cooperatively closed. + CoopClose, + /// This balance is the result of an HTLC. + Htlc, +} +impl From for BalanceSource { + fn from(value: ldk_node::lightning::chain::channelmonitor::BalanceSource) -> Self { + match value { + ldk_node::lightning::chain::channelmonitor::BalanceSource::HolderForceClosed => { + BalanceSource::HolderForceClosed + } + ldk_node::lightning::chain::channelmonitor::BalanceSource::CounterpartyForceClosed => { + BalanceSource::CounterpartyForceClosed + } + ldk_node::lightning::chain::channelmonitor::BalanceSource::CoopClose => { + BalanceSource::CoopClose + } + ldk_node::lightning::chain::channelmonitor::BalanceSource::Htlc => BalanceSource::Htlc, + } + } +} +/// Represents the status of the [`Node`]. #[derive(Clone, Debug, PartialEq, Eq)] pub struct NodeStatus { - /// Indicates whether the [Node] is running. + /// Indicates whether the `Node` is running. pub is_running: bool, - /// Indicates whether the [Node] is listening for incoming connections on the addresses - /// configured via `config.listeningAddresses`. + /// Indicates whether the `Node` is listening for incoming connections on the addresses pub is_listening: bool, /// The best block to which our Lightning wallet is currently synced. pub current_best_block: BestBlock, /// The timestamp, in seconds since start of the UNIX epoch, when we last successfully synced /// our Lightning wallet to the chain tip. /// - /// Will be `None` if the wallet hasn't been synced since the [Node] was initialized. - pub latest_wallet_sync_timestamp: Option, + /// Will be `None` if the wallet hasn't been synced yet. + pub latest_lightning_wallet_sync_timestamp: Option, /// The timestamp, in seconds since start of the UNIX epoch, when we last successfully synced /// our on-chain wallet to the chain tip. /// - /// Will be `None` if the wallet hasn't been synced since the [Node] was initialized. + /// Will be `None` if the wallet hasn't been synced yet. pub latest_onchain_wallet_sync_timestamp: Option, /// The timestamp, in seconds since start of the UNIX epoch, when we last successfully update /// our fee rate cache. /// - /// Will be `None` if the cache hasn't been updated since the [Node] was initialized. + /// Will be `None` if the cache hasn't been updated yet. pub latest_fee_rate_cache_update_timestamp: Option, /// The timestamp, in seconds since start of the UNIX epoch, when the last rapid gossip sync /// (RGS) snapshot we successfully applied was generated. /// - /// Will be `None` if RGS isn't configured or the snapshot hasn't been updated since the [Node] was initialized. + /// Will be `None` if RGS isn't configured or the snapshot hasn't been updated yet. pub latest_rgs_snapshot_timestamp: Option, /// The timestamp, in seconds since start of the UNIX epoch, when we last broadcasted a node /// announcement. /// - /// Will be `None` if we have no public channels or we haven't broadcasted since the [Node] was initialized. + /// Will be `None` if we have no public channels or we haven't broadcasted yet. pub latest_node_announcement_broadcast_timestamp: Option, + /// The block height when we last archived closed channel monitor data. + /// + /// Will be `None` if we haven't archived any monitors of closed channels yet. + pub latest_channel_monitor_archival_height: Option, } impl From for NodeStatus { fn from(value: ldk_node::NodeStatus) -> Self { @@ -1878,20 +2126,43 @@ impl From for NodeStatus { is_running: value.is_running, is_listening: value.is_listening, current_best_block: value.current_best_block.into(), - latest_wallet_sync_timestamp: value.latest_wallet_sync_timestamp, latest_onchain_wallet_sync_timestamp: value.latest_onchain_wallet_sync_timestamp, latest_fee_rate_cache_update_timestamp: value.latest_fee_rate_cache_update_timestamp, latest_rgs_snapshot_timestamp: value.latest_rgs_snapshot_timestamp, latest_node_announcement_broadcast_timestamp: value .latest_node_announcement_broadcast_timestamp, + latest_lightning_wallet_sync_timestamp: value.latest_lightning_wallet_sync_timestamp, + latest_channel_monitor_archival_height: value.latest_channel_monitor_archival_height, } } } + +#[derive(Debug, Clone)] +pub struct EsploraSyncConfig { + /// The time in-between background sync attempts of the onchain wallet, in seconds. + /// + /// **Note:** A minimum of 10 seconds is always enforced. + pub onchain_wallet_sync_interval_secs: u64, + /// The time in-between background sync attempts of the LDK wallet, in seconds. + /// + /// **Note:** A minimum of 10 seconds is always enforced. + pub lightning_wallet_sync_interval_secs: u64, + /// The time in-between background update attempts to our fee rate cache, in seconds. + /// + /// **Note:** A minimum of 10 seconds is always enforced. + pub fee_rate_cache_update_interval_secs: u64, +} +impl From for ldk_node::config::EsploraSyncConfig { + fn from(value: EsploraSyncConfig) -> Self { + ldk_node::config::EsploraSyncConfig { + onchain_wallet_sync_interval_secs: value.onchain_wallet_sync_interval_secs, + lightning_wallet_sync_interval_secs: value.lightning_wallet_sync_interval_secs, + fee_rate_cache_update_interval_secs: value.fee_rate_cache_update_interval_secs, + } + } +} + // Config defaults const DEFAULT_STORAGE_DIR_PATH: &str = "/tmp/ldk_node/"; const DEFAULT_NETWORK: Network = Network::Testnet; -const DEFAULT_CLTV_EXPIRY_DELTA: u32 = 144; -const DEFAULT_BDK_WALLET_SYNC_INTERVAL_SECS: u64 = 60; -const DEFAULT_LDK_WALLET_SYNC_INTERVAL_SECS: u64 = 20; -const DEFAULT_FEE_RATE_CACHE_UPDATE_INTERVAL_SECS: u64 = 60; const DEFAULT_LOG_LEVEL: LogLevel = LogLevel::Debug; diff --git a/rust/src/api/unified_qr.rs b/rust/src/api/unified_qr.rs new file mode 100644 index 0000000..c8a186b --- /dev/null +++ b/rust/src/api/unified_qr.rs @@ -0,0 +1,97 @@ +use crate::{frb_generated::RustOpaque, utils::error::FfiNodeError}; + +use super::types::{PaymentId, Txid}; + +pub struct FfiUnifiedQrPayment { + pub opaque: RustOpaque, +} +impl From for FfiUnifiedQrPayment { + fn from(value: ldk_node::payment::UnifiedQrPayment) -> Self { + FfiUnifiedQrPayment { + opaque: RustOpaque::new(value), + } + } +} +impl FfiUnifiedQrPayment { + /// can always pay using the provided on-chain address, while newer wallets will + /// typically opt to use the provided BOLT11 invoice or BOLT12 offer. + /// + /// # Parameters + /// - `amount_sats`: The amount to be received, specified in satoshis. + /// - `description`: A description or note associated with the payment. + /// This message is visible to the payer and can provide context or details about the payment. + /// - `expiry_sec`: The expiration time for the payment, specified in seconds. + /// + /// Returns a payable URI that can be used to request and receive a payment of the amount + /// given. In case of an error, the function throws `:WalletOperationFailed`for on-chain + /// address issues, `InvoiceCreationFailed` for BOLT11 invoice issues, or + /// `OfferCreationFailed` for BOLT12 offer issues. + /// + /// The generated URI can then be given to a QR code library. + /// + /// [BOLT 11]: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md + /// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md + pub fn receive( + &self, + amount_sats: u64, + message: String, + expiry_sec: u32, + ) -> anyhow::Result { + self.opaque + .receive(amount_sats, message.as_str(), expiry_sec) + .map_err(|e| e.into()) + } + ///Sends a payment given a BIP 21 URI. + + ///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. + pub fn send(&self, uri_str: String) -> anyhow::Result { + self.opaque + .send(uri_str.as_str()) + .map_err(|e| e.into()) + .map(|e| e.into()) + } +} + +/// Represents the result of a payment made using a [BIP 21] QR code. +/// +/// After a successful on-chain transaction, the transaction ID ([Txid]) is returned. +/// For BOLT11 and BOLT12 payments, the corresponding [PaymentId] is returned. +/// +/// [BIP 21]: https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki +pub enum QrPaymentResult { + /// An on-chain payment. + Onchain { + /// The transaction ID (txid) of the on-chain payment. + txid: Txid, + }, + /// A [BOLT 11] payment. + /// + /// [BOLT 11]: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md + Bolt11 { + /// The payment ID for the BOLT11 invoice. + payment_id: PaymentId, + }, + /// A [BOLT 12] offer payment, i.e., a payment for an [Offer]. + /// + /// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md + Bolt12 { + /// The payment ID for the BOLT12 offer. + payment_id: PaymentId, + }, +} +impl From for QrPaymentResult { + fn from(value: ldk_node::payment::QrPaymentResult) -> Self { + match value { + ldk_node::payment::QrPaymentResult::Onchain { txid } => { + QrPaymentResult::Onchain { txid: txid.into() } + } + + ldk_node::payment::QrPaymentResult::Bolt11 { payment_id } => QrPaymentResult::Bolt11 { + payment_id: payment_id.into(), + }, + ldk_node::payment::QrPaymentResult::Bolt12 { payment_id } => QrPaymentResult::Bolt12 { + payment_id: payment_id.into(), + }, + } + } +} diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index c3c8542..7a43177 100644 --- a/rust/src/frb_generated.rs +++ b/rust/src/frb_generated.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0. +// @generated by `flutter_rust_bridge`@ 2.4.0. #![allow( non_camel_case_types, @@ -25,9 +25,7 @@ // Section: imports -use crate::api::bolt12::*; use crate::api::builder::*; -use crate::api::node::*; use crate::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; @@ -40,8 +38,8 @@ 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.0.0"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1761952349; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.4.0"; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 968713453; // Section: executor @@ -49,16 +47,16 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hash_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, payment_hash: impl CstDecode, claimable_amount_msat: impl CstDecode, preimage: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_claim_for_hash", + debug_name: "ffi_bolt_11_payment_claim_for_hash", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -68,8 +66,8 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hash_impl( let api_claimable_amount_msat = claimable_amount_msat.cst_decode(); let api_preimage = preimage.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt11::LdkBolt11Payment::claim_for_hash( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt11::FfiBolt11Payment::claim_for_hash( &api_that, api_payment_hash, api_claimable_amount_msat, @@ -82,14 +80,14 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_claim_for_hash_impl( }, ) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hash_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, payment_hash: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_fail_for_hash", + debug_name: "ffi_bolt_11_payment_fail_for_hash", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -97,8 +95,8 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hash_impl( let api_that = that.cst_decode(); let api_payment_hash = payment_hash.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt11::LdkBolt11Payment::fail_for_hash( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt11::FfiBolt11Payment::fail_for_hash( &api_that, api_payment_hash, )?; @@ -109,16 +107,16 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_fail_for_hash_impl( }, ) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_receive_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, amount_msat: impl CstDecode, description: impl CstDecode, expiry_secs: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_receive", + debug_name: "ffi_bolt_11_payment_receive", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -128,8 +126,8 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_impl( let api_description = description.cst_decode(); let api_expiry_secs = expiry_secs.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt11::LdkBolt11Payment::receive( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt11::FfiBolt11Payment::receive( &api_that, api_amount_msat, api_description, @@ -142,9 +140,9 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_impl( }, ) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, payment_hash: impl CstDecode, amount_msat: impl CstDecode, description: impl CstDecode, @@ -152,7 +150,7 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash_impl( ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_receive_for_hash", + debug_name: "ffi_bolt_11_payment_receive_for_hash", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -163,8 +161,8 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash_impl( let api_description = description.cst_decode(); let api_expiry_secs = expiry_secs.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt11::LdkBolt11Payment::receive_for_hash( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt11::FfiBolt11Payment::receive_for_hash( &api_that, api_payment_hash, api_amount_msat, @@ -178,15 +176,15 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_for_hash_impl( }, ) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, description: impl CstDecode, expiry_secs: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_receive_variable_amount", + debug_name: "ffi_bolt_11_payment_receive_variable_amount", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -195,8 +193,8 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_impl( let api_description = description.cst_decode(); let api_expiry_secs = expiry_secs.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt11::LdkBolt11Payment::receive_variable_amount( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt11::FfiBolt11Payment::receive_variable_amount( &api_that, api_description, api_expiry_secs, @@ -208,16 +206,16 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_impl( }, ) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_hash_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, description: impl CstDecode, expiry_secs: impl CstDecode, payment_hash: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_receive_variable_amount_for_hash", + debug_name: "ffi_bolt_11_payment_receive_variable_amount_for_hash", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -227,9 +225,9 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_has let api_expiry_secs = expiry_secs.cst_decode(); let api_payment_hash = payment_hash.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { let output_ok = - crate::api::bolt11::LdkBolt11Payment::receive_variable_amount_for_hash( + crate::api::bolt11::FfiBolt11Payment::receive_variable_amount_for_hash( &api_that, api_description, api_expiry_secs, @@ -242,22 +240,22 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_for_has }, ) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_variable_amount_via_jit_channel_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, description: impl CstDecode, expiry_secs: impl CstDecode, max_proportional_lsp_fee_limit_ppm_msat: impl CstDecode>, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "ldk_bolt_11_payment_receive_variable_amount_via_jit_channel", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let api_that = that.cst_decode();let api_description = description.cst_decode();let api_expiry_secs = expiry_secs.cst_decode();let api_max_proportional_lsp_fee_limit_ppm_msat = max_proportional_lsp_fee_limit_ppm_msat.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt11::LdkBolt11Payment::receive_variable_amount_via_jit_channel(&api_that, api_description, api_expiry_secs, api_max_proportional_lsp_fee_limit_ppm_msat)?; Ok(output_ok) + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "ffi_bolt_11_payment_receive_variable_amount_via_jit_channel", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let api_that = that.cst_decode();let api_description = description.cst_decode();let api_expiry_secs = expiry_secs.cst_decode();let api_max_proportional_lsp_fee_limit_ppm_msat = max_proportional_lsp_fee_limit_ppm_msat.cst_decode(); move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt11::FfiBolt11Payment::receive_variable_amount_via_jit_channel(&api_that, api_description, api_expiry_secs, api_max_proportional_lsp_fee_limit_ppm_msat)?; Ok(output_ok) })()) } }) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, amount_msat: impl CstDecode, description: impl CstDecode, expiry_secs: impl CstDecode, @@ -265,7 +263,7 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel_impl( ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_receive_via_jit_channel", + debug_name: "ffi_bolt_11_payment_receive_via_jit_channel", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -276,8 +274,8 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel_impl( let api_expiry_secs = expiry_secs.cst_decode(); let api_max_total_lsp_fee_limit_msat = max_total_lsp_fee_limit_msat.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt11::LdkBolt11Payment::receive_via_jit_channel( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt11::FfiBolt11Payment::receive_via_jit_channel( &api_that, api_amount_msat, api_description, @@ -291,24 +289,29 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_receive_via_jit_channel_impl( }, ) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_send_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, invoice: impl CstDecode, + sending_parameters: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_send", + debug_name: "ffi_bolt_11_payment_send", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); let api_invoice = invoice.cst_decode(); + let api_sending_parameters = sending_parameters.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = - crate::api::bolt11::LdkBolt11Payment::send(&api_that, api_invoice)?; + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt11::FfiBolt11Payment::send( + &api_that, + api_invoice, + api_sending_parameters, + )?; Ok(output_ok) })( )) @@ -316,14 +319,14 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_impl( }, ) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, invoice: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_send_probes", + debug_name: "ffi_bolt_11_payment_send_probes", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -331,9 +334,9 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_impl( let api_that = that.cst_decode(); let api_invoice = invoice.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { let output_ok = - crate::api::bolt11::LdkBolt11Payment::send_probes(&api_that, api_invoice)?; + crate::api::bolt11::FfiBolt11Payment::send_probes(&api_that, api_invoice)?; Ok(output_ok) })( )) @@ -341,15 +344,15 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_impl( }, ) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amount_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, invoice: impl CstDecode, amount_msat: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_send_probes_using_amount", + debug_name: "ffi_bolt_11_payment_send_probes_using_amount", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -358,8 +361,8 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amount_impl( let api_invoice = invoice.cst_decode(); let api_amount_msat = amount_msat.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt11::LdkBolt11Payment::send_probes_using_amount( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt11::FfiBolt11Payment::send_probes_using_amount( &api_that, api_invoice, api_amount_msat, @@ -371,15 +374,16 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_probes_using_amount_impl( }, ) } -fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amount_impl( +fn wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, invoice: impl CstDecode, amount_msat: impl CstDecode, + sending_parameters: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_11_payment_send_using_amount", + debug_name: "ffi_bolt_11_payment_send_using_amount", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -387,12 +391,14 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amount_impl( let api_that = that.cst_decode(); let api_invoice = invoice.cst_decode(); let api_amount_msat = amount_msat.cst_decode(); + let api_sending_parameters = sending_parameters.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt11::LdkBolt11Payment::send_using_amount( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt11::FfiBolt11Payment::send_using_amount( &api_that, api_invoice, api_amount_msat, + api_sending_parameters, )?; Ok(output_ok) })( @@ -401,15 +407,17 @@ fn wire__crate__api__bolt11__ldk_bolt_11_payment_send_using_amount_impl( }, ) } -fn wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refund_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, amount_msat: impl CstDecode, expiry_secs: impl CstDecode, + quantity: impl CstDecode>, + payer_note: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_12_payment_initiate_refund", + debug_name: "ffi_bolt_12_payment_initiate_refund", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -417,12 +425,16 @@ fn wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refund_impl( let api_that = that.cst_decode(); let api_amount_msat = amount_msat.cst_decode(); let api_expiry_secs = expiry_secs.cst_decode(); + let api_quantity = quantity.cst_decode(); + let api_payer_note = payer_note.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt12::LdkBolt12Payment::initiate_refund( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::initiate_refund( &api_that, api_amount_msat, api_expiry_secs, + api_quantity, + api_payer_note, )?; Ok(output_ok) })( @@ -431,15 +443,17 @@ fn wire__crate__api__bolt12__ldk_bolt_12_payment_initiate_refund_impl( }, ) } -fn wire__crate__api__bolt12__ldk_bolt_12_payment_receive_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_receive_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, amount_msat: impl CstDecode, description: impl CstDecode, + expiry_secs: impl CstDecode>, + quantity: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_12_payment_receive", + debug_name: "ffi_bolt_12_payment_receive", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -447,12 +461,16 @@ fn wire__crate__api__bolt12__ldk_bolt_12_payment_receive_impl( let api_that = that.cst_decode(); let api_amount_msat = amount_msat.cst_decode(); let api_description = description.cst_decode(); + let api_expiry_secs = expiry_secs.cst_decode(); + let api_quantity = quantity.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt12::LdkBolt12Payment::receive( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::receive( &api_that, api_amount_msat, api_description, + api_expiry_secs, + api_quantity, )?; Ok(output_ok) })( @@ -461,25 +479,28 @@ fn wire__crate__api__bolt12__ldk_bolt_12_payment_receive_impl( }, ) } -fn wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amount_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, description: impl CstDecode, + expiry_secs: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_12_payment_receive_variable_amount", + debug_name: "ffi_bolt_12_payment_receive_variable_amount", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); let api_description = description.cst_decode(); + let api_expiry_secs = expiry_secs.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt12::LdkBolt12Payment::receive_variable_amount( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::receive_variable_amount( &api_that, api_description, + api_expiry_secs, )?; Ok(output_ok) })( @@ -488,14 +509,14 @@ fn wire__crate__api__bolt12__ldk_bolt_12_payment_receive_variable_amount_impl( }, ) } -fn wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_payment_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, refund: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_12_payment_request_refund_payment", + debug_name: "ffi_bolt_12_payment_request_refund_payment", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -503,8 +524,8 @@ fn wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_payment_impl( let api_that = that.cst_decode(); let api_refund = refund.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt12::LdkBolt12Payment::request_refund_payment( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::request_refund_payment( &api_that, api_refund, )?; Ok(output_ok) @@ -514,27 +535,30 @@ fn wire__crate__api__bolt12__ldk_bolt_12_payment_request_refund_payment_impl( }, ) } -fn wire__crate__api__bolt12__ldk_bolt_12_payment_send_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_send_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, offer: impl CstDecode, + quantity: impl CstDecode>, payer_note: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_12_payment_send", + debug_name: "ffi_bolt_12_payment_send", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); let api_offer = offer.cst_decode(); + let api_quantity = quantity.cst_decode(); let api_payer_note = payer_note.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt12::LdkBolt12Payment::send( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::send( &api_that, api_offer, + api_quantity, api_payer_note, )?; Ok(output_ok) @@ -544,31 +568,34 @@ fn wire__crate__api__bolt12__ldk_bolt_12_payment_send_impl( }, ) } -fn wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amount_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, offer: impl CstDecode, - payer_note: impl CstDecode>, amount_msat: impl CstDecode, + quantity: impl CstDecode>, + payer_note: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_bolt_12_payment_send_using_amount", + debug_name: "ffi_bolt_12_payment_send_using_amount", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); let api_offer = offer.cst_decode(); - let api_payer_note = payer_note.cst_decode(); let api_amount_msat = amount_msat.cst_decode(); + let api_quantity = quantity.cst_decode(); + let api_payer_note = payer_note.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::bolt12::LdkBolt12Payment::send_using_amount( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::send_using_amount( &api_that, api_offer, - api_payer_note, api_amount_msat, + api_quantity, + api_payer_note, )?; Ok(output_ok) })( @@ -577,14 +604,14 @@ fn wire__crate__api__bolt12__ldk_bolt_12_payment_send_using_amount_impl( }, ) } -fn wire__crate__api__builder__NodeBuilder_auto_accessor_get_builder_impl( +fn wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "NodeBuilder_auto_accessor_get_builder", + debug_name: "FfiBuilder_auto_accessor_get_opaque", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, @@ -605,27 +632,27 @@ fn wire__crate__api__builder__NodeBuilder_auto_accessor_get_builder_impl( } } let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok(api_that_guard.builder.clone())?; + let output_ok = Result::<_, ()>::Ok(api_that_guard.opaque.clone())?; Ok(output_ok) })()) }, ) } -fn wire__crate__api__builder__NodeBuilder_auto_accessor_set_builder_impl( +fn wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque_impl( that: impl CstDecode< - RustOpaqueNom>, + RustOpaqueNom>, >, - builder: impl CstDecode>, + opaque: impl CstDecode>, ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "NodeBuilder_auto_accessor_set_builder", + debug_name: "FfiBuilder_auto_accessor_set_opaque", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); - let api_builder = builder.cst_decode(); + let api_opaque = opaque.cst_decode(); transform_result_dco::<_, _, ()>((move || { let mut api_that_guard = None; let decode_indices_ = @@ -643,7 +670,7 @@ fn wire__crate__api__builder__NodeBuilder_auto_accessor_set_builder_impl( let mut api_that_guard = api_that_guard.unwrap(); let output_ok = Result::<_, ()>::Ok({ { - api_that_guard.builder = api_builder; + api_that_guard.opaque = api_opaque; }; })?; Ok(output_ok) @@ -651,21 +678,95 @@ fn wire__crate__api__builder__NodeBuilder_auto_accessor_set_builder_impl( }, ) } -fn wire__crate__api__builder__NodeBuilder_build_impl( +fn wire__crate__api__builder__FfiBuilder_build_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "FfiBuilder_build", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let output_ok = crate::api::builder::FfiBuilder::build(api_that)?; + Ok(output_ok) + })( + )) + } + }, + ) +} +fn wire__crate__api__builder__FfiBuilder_build_with_fs_store_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "FfiBuilder_build_with_fs_store", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let output_ok = crate::api::builder::FfiBuilder::build_with_fs_store(api_that)?; + Ok(output_ok) + })( + )) + } + }, + ) +} +fn wire__crate__api__builder__FfiBuilder_build_with_vss_store_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode< + RustOpaqueNom>, + >, + vss_url: impl CstDecode, + store_id: impl CstDecode, + lnurl_auth_server_url: impl CstDecode, + fixed_headers: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "NodeBuilder_build", + debug_name: "FfiBuilder_build_with_vss_store", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); + let api_vss_url = vss_url.cst_decode(); + let api_store_id = store_id.cst_decode(); + let api_lnurl_auth_server_url = lnurl_auth_server_url.cst_decode(); + let api_fixed_headers = fixed_headers.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkBuilderError>((move || { - let output_ok = crate::api::builder::NodeBuilder::build(api_that)?; + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::builder::FfiBuilder::build_with_vss_store( + &*api_that_guard, + api_vss_url, + api_store_id, + api_lnurl_auth_server_url, + api_fixed_headers, + )?; Ok(output_ok) })( )) @@ -673,22 +774,49 @@ fn wire__crate__api__builder__NodeBuilder_build_impl( }, ) } -fn wire__crate__api__builder__NodeBuilder_build_with_fs_store_impl( +fn wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode< + RustOpaqueNom>, + >, + vss_url: impl CstDecode, + store_id: impl CstDecode, + fixed_headers: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "NodeBuilder_build_with_fs_store", + debug_name: "FfiBuilder_build_with_vss_store_and_fixed_headers", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); + let api_vss_url = vss_url.cst_decode(); + let api_store_id = store_id.cst_decode(); + let api_fixed_headers = fixed_headers.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkBuilderError>((move || { + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); let output_ok = - crate::api::builder::NodeBuilder::build_with_fs_store(api_that)?; + crate::api::builder::FfiBuilder::build_with_vss_store_and_fixed_headers( + &*api_that_guard, + api_vss_url, + api_store_id, + api_fixed_headers, + )?; Ok(output_ok) })( )) @@ -696,7 +824,7 @@ fn wire__crate__api__builder__NodeBuilder_build_with_fs_store_impl( }, ) } -fn wire__crate__api__builder__NodeBuilder_create_builder_impl( +fn wire__crate__api__builder__FfiBuilder_create_builder_impl( port_: flutter_rust_bridge::for_generated::MessagePort, config: impl CstDecode, chain_data_source_config: impl CstDecode>, @@ -706,7 +834,7 @@ fn wire__crate__api__builder__NodeBuilder_create_builder_impl( ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "NodeBuilder_create_builder", + debug_name: "FfiBuilder_create_builder", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -717,8 +845,8 @@ fn wire__crate__api__builder__NodeBuilder_create_builder_impl( let api_gossip_source_config = gossip_source_config.cst_decode(); let api_liquidity_source_config = liquidity_source_config.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkBuilderError>((move || { - let output_ok = crate::api::builder::NodeBuilder::create_builder( + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let output_ok = crate::api::builder::FfiBuilder::create_builder( api_config, api_chain_data_source_config, api_entropy_source_config, @@ -732,12 +860,12 @@ fn wire__crate__api__builder__NodeBuilder_create_builder_impl( }, ) } -fn wire__crate__api__builder__ldk_mnemonic_generate_impl( +fn wire__crate__api__builder__ffi_mnemonic_generate_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_mnemonic_generate", + debug_name: "ffi_mnemonic_generate", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -745,21 +873,21 @@ fn wire__crate__api__builder__ldk_mnemonic_generate_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::builder::LdkMnemonic::generate())?; + Result::<_, ()>::Ok(crate::api::builder::FfiMnemonic::generate())?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__graph__ldk_network_graph_channel_impl( +fn wire__crate__api__graph__ffi_network_graph_channel_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, short_channel_id: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_network_graph_channel", + debug_name: "ffi_network_graph_channel", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -769,7 +897,7 @@ fn wire__crate__api__graph__ldk_network_graph_channel_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::graph::LdkNetworkGraph::channel( + Result::<_, ()>::Ok(crate::api::graph::FfiNetworkGraph::channel( &api_that, api_short_channel_id, ))?; @@ -779,13 +907,13 @@ fn wire__crate__api__graph__ldk_network_graph_channel_impl( }, ) } -fn wire__crate__api__graph__ldk_network_graph_list_channels_impl( +fn wire__crate__api__graph__ffi_network_graph_list_channels_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_network_graph_list_channels", + debug_name: "ffi_network_graph_list_channels", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -794,7 +922,7 @@ fn wire__crate__api__graph__ldk_network_graph_list_channels_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = Result::<_, ()>::Ok( - crate::api::graph::LdkNetworkGraph::list_channels(&api_that), + crate::api::graph::FfiNetworkGraph::list_channels(&api_that), )?; Ok(output_ok) })()) @@ -802,13 +930,13 @@ fn wire__crate__api__graph__ldk_network_graph_list_channels_impl( }, ) } -fn wire__crate__api__graph__ldk_network_graph_list_nodes_impl( +fn wire__crate__api__graph__ffi_network_graph_list_nodes_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_network_graph_list_nodes", + debug_name: "ffi_network_graph_list_nodes", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -817,7 +945,7 @@ fn wire__crate__api__graph__ldk_network_graph_list_nodes_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = Result::<_, ()>::Ok( - crate::api::graph::LdkNetworkGraph::list_nodes(&api_that), + crate::api::graph::FfiNetworkGraph::list_nodes(&api_that), )?; Ok(output_ok) })()) @@ -825,14 +953,14 @@ fn wire__crate__api__graph__ldk_network_graph_list_nodes_impl( }, ) } -fn wire__crate__api__graph__ldk_network_graph_node_impl( +fn wire__crate__api__graph__ffi_network_graph_node_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, node_id: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_network_graph_node", + debug_name: "ffi_network_graph_node", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -840,9 +968,9 @@ fn wire__crate__api__graph__ldk_network_graph_node_impl( let api_that = that.cst_decode(); let api_node_id = node_id.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { let output_ok = - crate::api::graph::LdkNetworkGraph::node(&api_that, api_node_id)?; + crate::api::graph::FfiNetworkGraph::node(&api_that, api_node_id)?; Ok(output_ok) })( )) @@ -850,13 +978,13 @@ fn wire__crate__api__graph__ldk_network_graph_node_impl( }, ) } -fn wire__crate__api__node__ldk_node_bolt11_payment_impl( +fn wire__crate__api__node__ffi_node_bolt11_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_bolt11_payment", + debug_name: "ffi_node_bolt11_payment", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -865,20 +993,20 @@ fn wire__crate__api__node__ldk_node_bolt11_payment_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::bolt11_payment(api_ptr))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::bolt11_payment(api_ptr))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_bolt12_payment_impl( +fn wire__crate__api__node__ffi_node_bolt12_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_bolt12_payment", + debug_name: "ffi_node_bolt12_payment", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -887,22 +1015,22 @@ fn wire__crate__api__node__ldk_node_bolt12_payment_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::bolt12_payment(api_ptr))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::bolt12_payment(api_ptr))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_close_channel_impl( +fn wire__crate__api__node__ffi_node_close_channel_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, user_channel_id: impl CstDecode, counterparty_node_id: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_close_channel", + debug_name: "ffi_node_close_channel", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -911,8 +1039,8 @@ fn wire__crate__api__node__ldk_node_close_channel_impl( let api_user_channel_id = user_channel_id.cst_decode(); let api_counterparty_node_id = counterparty_node_id.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::close_channel( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::close_channel( &api_that, api_user_channel_id, api_counterparty_node_id, @@ -924,13 +1052,13 @@ fn wire__crate__api__node__ldk_node_close_channel_impl( }, ) } -fn wire__crate__api__node__ldk_node_config_impl( +fn wire__crate__api__node__ffi_node_config_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_config", + debug_name: "ffi_node_config", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -939,23 +1067,23 @@ fn wire__crate__api__node__ldk_node_config_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::config(&api_that))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::config(&api_that))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_connect_impl( +fn wire__crate__api__node__ffi_node_connect_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, node_id: impl CstDecode, address: impl CstDecode, persist: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_connect", + debug_name: "ffi_node_connect", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -965,8 +1093,8 @@ fn wire__crate__api__node__ldk_node_connect_impl( let api_address = address.cst_decode(); let api_persist = persist.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::connect( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::connect( &api_that, api_node_id, api_address, @@ -979,56 +1107,14 @@ fn wire__crate__api__node__ldk_node_connect_impl( }, ) } -fn wire__crate__api__node__ldk_node_connect_open_channel_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - socket_address: impl CstDecode, - node_id: impl CstDecode, - channel_amount_sats: impl CstDecode, - push_to_counterparty_msat: impl CstDecode>, - announce_channel: impl CstDecode, - channel_config: impl CstDecode>, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_connect_open_channel", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_that = that.cst_decode(); - let api_socket_address = socket_address.cst_decode(); - let api_node_id = node_id.cst_decode(); - let api_channel_amount_sats = channel_amount_sats.cst_decode(); - let api_push_to_counterparty_msat = push_to_counterparty_msat.cst_decode(); - let api_announce_channel = announce_channel.cst_decode(); - let api_channel_config = channel_config.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::connect_open_channel( - &api_that, - api_socket_address, - api_node_id, - api_channel_amount_sats, - api_push_to_counterparty_msat, - api_announce_channel, - api_channel_config, - )?; - Ok(output_ok) - })( - )) - } - }, - ) -} -fn wire__crate__api__node__ldk_node_disconnect_impl( +fn wire__crate__api__node__ffi_node_disconnect_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, counterparty_node_id: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_disconnect", + debug_name: "ffi_node_disconnect", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1036,9 +1122,9 @@ fn wire__crate__api__node__ldk_node_disconnect_impl( let api_that = that.cst_decode(); let api_counterparty_node_id = counterparty_node_id.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { let output_ok = - crate::api::node::LdkNode::disconnect(&api_that, api_counterparty_node_id)?; + crate::api::node::FfiNode::disconnect(&api_that, api_counterparty_node_id)?; Ok(output_ok) })( )) @@ -1046,13 +1132,13 @@ fn wire__crate__api__node__ldk_node_disconnect_impl( }, ) } -fn wire__crate__api__node__ldk_node_event_handled_impl( +fn wire__crate__api__node__ffi_node_event_handled_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_event_handled", + debug_name: "ffi_node_event_handled", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1061,7 +1147,7 @@ fn wire__crate__api__node__ldk_node_event_handled_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = Result::<_, ()>::Ok({ - crate::api::node::LdkNode::event_handled(&api_that); + crate::api::node::FfiNode::event_handled(&api_that); })?; Ok(output_ok) })()) @@ -1069,15 +1155,15 @@ fn wire__crate__api__node__ldk_node_event_handled_impl( }, ) } -fn wire__crate__api__node__ldk_node_force_close_channel_impl( +fn wire__crate__api__node__ffi_node_force_close_channel_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, user_channel_id: impl CstDecode, counterparty_node_id: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_force_close_channel", + debug_name: "ffi_node_force_close_channel", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1086,8 +1172,8 @@ fn wire__crate__api__node__ldk_node_force_close_channel_impl( let api_user_channel_id = user_channel_id.cst_decode(); let api_counterparty_node_id = counterparty_node_id.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::force_close_channel( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::force_close_channel( &api_that, api_user_channel_id, api_counterparty_node_id, @@ -1099,21 +1185,21 @@ fn wire__crate__api__node__ldk_node_force_close_channel_impl( }, ) } -fn wire__crate__api__node__ldk_node_list_balances_impl( +fn wire__crate__api__node__ffi_node_list_balances_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_list_balances", + debug_name: "ffi_node_list_balances", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::list_balances(&api_that)?; + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::list_balances(&api_that)?; Ok(output_ok) })( )) @@ -1121,13 +1207,13 @@ fn wire__crate__api__node__ldk_node_list_balances_impl( }, ) } -fn wire__crate__api__node__ldk_node_list_channels_impl( +fn wire__crate__api__node__ffi_node_list_channels_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_list_channels", + debug_name: "ffi_node_list_channels", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1136,20 +1222,20 @@ fn wire__crate__api__node__ldk_node_list_channels_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::list_channels(&api_that))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::list_channels(&api_that))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_list_payments_impl( +fn wire__crate__api__node__ffi_node_list_payments_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_list_payments", + debug_name: "ffi_node_list_payments", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1158,21 +1244,21 @@ fn wire__crate__api__node__ldk_node_list_payments_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::list_payments(&api_that))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::list_payments(&api_that))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_list_payments_with_filter_impl( +fn wire__crate__api__node__ffi_node_list_payments_with_filter_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, payment_direction: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_list_payments_with_filter", + debug_name: "ffi_node_list_payments_with_filter", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1182,7 +1268,7 @@ fn wire__crate__api__node__ldk_node_list_payments_with_filter_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::list_payments_with_filter( + Result::<_, ()>::Ok(crate::api::node::FfiNode::list_payments_with_filter( &api_that, api_payment_direction, ))?; @@ -1192,13 +1278,13 @@ fn wire__crate__api__node__ldk_node_list_payments_with_filter_impl( }, ) } -fn wire__crate__api__node__ldk_node_list_peers_impl( +fn wire__crate__api__node__ffi_node_list_peers_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_list_peers", + debug_name: "ffi_node_list_peers", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1207,20 +1293,20 @@ fn wire__crate__api__node__ldk_node_list_peers_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::list_peers(&api_that))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::list_peers(&api_that))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_listening_addresses_impl( +fn wire__crate__api__node__ffi_node_listening_addresses_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_listening_addresses", + debug_name: "ffi_node_listening_addresses", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1229,7 +1315,7 @@ fn wire__crate__api__node__ldk_node_listening_addresses_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = Result::<_, ()>::Ok( - crate::api::node::LdkNode::listening_addresses(&api_that), + crate::api::node::FfiNode::listening_addresses(&api_that), )?; Ok(output_ok) })()) @@ -1237,13 +1323,13 @@ fn wire__crate__api__node__ldk_node_listening_addresses_impl( }, ) } -fn wire__crate__api__node__ldk_node_network_graph_impl( +fn wire__crate__api__node__ffi_node_network_graph_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_network_graph", + debug_name: "ffi_node_network_graph", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1252,20 +1338,20 @@ fn wire__crate__api__node__ldk_node_network_graph_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::network_graph(api_ptr))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::network_graph(api_ptr))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_next_event_impl( +fn wire__crate__api__node__ffi_node_next_event_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_next_event", + debug_name: "ffi_node_next_event", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1274,20 +1360,20 @@ fn wire__crate__api__node__ldk_node_next_event_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::next_event(&api_that))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::next_event(&api_that))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_next_event_async_impl( +fn wire__crate__api__node__ffi_node_next_event_async_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_next_event_async", + debug_name: "ffi_node_next_event_async", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1297,7 +1383,7 @@ fn wire__crate__api__node__ldk_node_next_event_async_impl( transform_result_dco::<_, _, ()>( (move || async move { let output_ok = Result::<_, ()>::Ok( - crate::api::node::LdkNode::next_event_async(&api_that).await, + crate::api::node::FfiNode::next_event_async(&api_that).await, )?; Ok(output_ok) })() @@ -1307,13 +1393,13 @@ fn wire__crate__api__node__ldk_node_next_event_async_impl( }, ) } -fn wire__crate__api__node__ldk_node_node_id_impl( +fn wire__crate__api__node__ffi_node_node_id_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_node_id", + debug_name: "ffi_node_node_id", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1322,20 +1408,20 @@ fn wire__crate__api__node__ldk_node_node_id_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::node_id(&api_that))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::node_id(&api_that))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_on_chain_payment_impl( +fn wire__crate__api__node__ffi_node_on_chain_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_on_chain_payment", + debug_name: "ffi_node_on_chain_payment", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1344,21 +1430,99 @@ fn wire__crate__api__node__ldk_node_on_chain_payment_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::on_chain_payment(api_ptr))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::on_chain_payment(api_ptr))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_payment_impl( +fn wire__crate__api__node__ffi_node_open_announced_channel_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + socket_address: impl CstDecode, + node_id: impl CstDecode, + channel_amount_sats: impl CstDecode, + push_to_counterparty_msat: impl CstDecode>, + channel_config: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_node_open_announced_channel", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_socket_address = socket_address.cst_decode(); + let api_node_id = node_id.cst_decode(); + let api_channel_amount_sats = channel_amount_sats.cst_decode(); + let api_push_to_counterparty_msat = push_to_counterparty_msat.cst_decode(); + let api_channel_config = channel_config.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::open_announced_channel( + &api_that, + api_socket_address, + api_node_id, + api_channel_amount_sats, + api_push_to_counterparty_msat, + api_channel_config, + )?; + Ok(output_ok) + })( + )) + } + }, + ) +} +fn wire__crate__api__node__ffi_node_open_channel_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + socket_address: impl CstDecode, + node_id: impl CstDecode, + channel_amount_sats: impl CstDecode, + push_to_counterparty_msat: impl CstDecode>, + channel_config: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_node_open_channel", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_socket_address = socket_address.cst_decode(); + let api_node_id = node_id.cst_decode(); + let api_channel_amount_sats = channel_amount_sats.cst_decode(); + let api_push_to_counterparty_msat = push_to_counterparty_msat.cst_decode(); + let api_channel_config = channel_config.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::open_channel( + &api_that, + api_socket_address, + api_node_id, + api_channel_amount_sats, + api_push_to_counterparty_msat, + api_channel_config, + )?; + Ok(output_ok) + })( + )) + } + }, + ) +} +fn wire__crate__api__node__ffi_node_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, payment_id: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_payment", + debug_name: "ffi_node_payment", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1367,7 +1531,7 @@ fn wire__crate__api__node__ldk_node_payment_impl( let api_payment_id = payment_id.cst_decode(); move |context| { transform_result_dco::<_, _, ()>((move || { - let output_ok = Result::<_, ()>::Ok(crate::api::node::LdkNode::payment( + let output_ok = Result::<_, ()>::Ok(crate::api::node::FfiNode::payment( &api_that, api_payment_id, ))?; @@ -1377,14 +1541,14 @@ fn wire__crate__api__node__ldk_node_payment_impl( }, ) } -fn wire__crate__api__node__ldk_node_remove_payment_impl( +fn wire__crate__api__node__ffi_node_remove_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, payment_id: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_remove_payment", + debug_name: "ffi_node_remove_payment", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1392,9 +1556,9 @@ fn wire__crate__api__node__ldk_node_remove_payment_impl( let api_that = that.cst_decode(); let api_payment_id = payment_id.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { let output_ok = - crate::api::node::LdkNode::remove_payment(&api_that, api_payment_id)?; + crate::api::node::FfiNode::remove_payment(&api_that, api_payment_id)?; Ok(output_ok) })( )) @@ -1402,14 +1566,14 @@ fn wire__crate__api__node__ldk_node_remove_payment_impl( }, ) } -fn wire__crate__api__node__ldk_node_sign_message_impl( +fn wire__crate__api__node__ffi_node_sign_message_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, msg: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_sign_message", + debug_name: "ffi_node_sign_message", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1417,22 +1581,23 @@ fn wire__crate__api__node__ldk_node_sign_message_impl( let api_that = that.cst_decode(); let api_msg = msg.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::sign_message(&api_that, api_msg)?; + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::node::FfiNode::sign_message( + &api_that, api_msg, + ))?; Ok(output_ok) - })( - )) + })()) } }, ) } -fn wire__crate__api__node__ldk_node_spontaneous_payment_impl( +fn wire__crate__api__node__ffi_node_spontaneous_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_spontaneous_payment", + debug_name: "ffi_node_spontaneous_payment", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1441,7 +1606,7 @@ fn wire__crate__api__node__ldk_node_spontaneous_payment_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = Result::<_, ()>::Ok( - crate::api::node::LdkNode::spontaneous_payment(api_ptr), + crate::api::node::FfiNode::spontaneous_payment(api_ptr), )?; Ok(output_ok) })()) @@ -1449,21 +1614,21 @@ fn wire__crate__api__node__ldk_node_spontaneous_payment_impl( }, ) } -fn wire__crate__api__node__ldk_node_start_impl( +fn wire__crate__api__node__ffi_node_start_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_start", + debug_name: "ffi_node_start", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::start(&api_that)?; + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::start(&api_that)?; Ok(output_ok) })( )) @@ -1471,13 +1636,13 @@ fn wire__crate__api__node__ldk_node_start_impl( }, ) } -fn wire__crate__api__node__ldk_node_status_impl( +fn wire__crate__api__node__ffi_node_status_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_status", + debug_name: "ffi_node_status", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1486,28 +1651,28 @@ fn wire__crate__api__node__ldk_node_status_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::status(&api_that))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::status(&api_that))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__node__ldk_node_stop_impl( +fn wire__crate__api__node__ffi_node_stop_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_stop", + debug_name: "ffi_node_stop", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::stop(&api_that)?; + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::stop(&api_that)?; Ok(output_ok) })( )) @@ -1515,21 +1680,21 @@ fn wire__crate__api__node__ldk_node_stop_impl( }, ) } -fn wire__crate__api__node__ldk_node_sync_wallets_impl( +fn wire__crate__api__node__ffi_node_sync_wallets_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_sync_wallets", + debug_name: "ffi_node_sync_wallets", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::sync_wallets(&api_that)?; + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::sync_wallets(&api_that)?; Ok(output_ok) })( )) @@ -1537,16 +1702,39 @@ fn wire__crate__api__node__ldk_node_sync_wallets_impl( }, ) } -fn wire__crate__api__node__ldk_node_update_channel_config_impl( +fn wire__crate__api__node__ffi_node_unified_qr_payment_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_node_unified_qr_payment", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_ptr = ptr.cst_decode(); + move |context| { + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::node::FfiNode::unified_qr_payment(api_ptr), + )?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__node__ffi_node_update_channel_config_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, user_channel_id: impl CstDecode, counterparty_node_id: impl CstDecode, channel_config: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_update_channel_config", + debug_name: "ffi_node_update_channel_config", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1556,8 +1744,8 @@ fn wire__crate__api__node__ldk_node_update_channel_config_impl( let api_counterparty_node_id = counterparty_node_id.cst_decode(); let api_channel_config = channel_config.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::update_channel_config( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::update_channel_config( &api_that, api_user_channel_id, api_counterparty_node_id, @@ -1570,16 +1758,16 @@ fn wire__crate__api__node__ldk_node_update_channel_config_impl( }, ) } -fn wire__crate__api__node__ldk_node_verify_signature_impl( +fn wire__crate__api__node__ffi_node_verify_signature_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, msg: impl CstDecode>, sig: impl CstDecode, public_key: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_verify_signature", + debug_name: "ffi_node_verify_signature", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1589,8 +1777,8 @@ fn wire__crate__api__node__ldk_node_verify_signature_impl( let api_sig = sig.cst_decode(); let api_public_key = public_key.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::node::LdkNode::verify_signature( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::node::FfiNode::verify_signature( &api_that, api_msg, api_sig, @@ -1603,13 +1791,13 @@ fn wire__crate__api__node__ldk_node_verify_signature_impl( }, ) } -fn wire__crate__api__node__ldk_node_wait_next_event_impl( +fn wire__crate__api__node__ffi_node_wait_next_event_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_node_wait_next_event", + debug_name: "ffi_node_wait_next_event", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1618,29 +1806,29 @@ fn wire__crate__api__node__ldk_node_wait_next_event_impl( move |context| { transform_result_dco::<_, _, ()>((move || { let output_ok = - Result::<_, ()>::Ok(crate::api::node::LdkNode::wait_next_event(&api_that))?; + Result::<_, ()>::Ok(crate::api::node::FfiNode::wait_next_event(&api_that))?; Ok(output_ok) })()) } }, ) } -fn wire__crate__api__on_chain__ldk_on_chain_payment_new_address_impl( +fn wire__crate__api__on_chain__ffi_on_chain_payment_new_address_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_on_chain_payment_new_address", + debug_name: "ffi_on_chain_payment_new_address", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { let output_ok = - crate::api::on_chain::LdkOnChainPayment::new_address(&api_that)?; + crate::api::on_chain::FfiOnChainPayment::new_address(&api_that)?; Ok(output_ok) })( )) @@ -1648,14 +1836,14 @@ fn wire__crate__api__on_chain__ldk_on_chain_payment_new_address_impl( }, ) } -fn wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_address_impl( +fn wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, address: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_on_chain_payment_send_all_to_address", + debug_name: "ffi_on_chain_payment_send_all_to_address", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1663,8 +1851,8 @@ fn wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_address_impl( let api_that = that.cst_decode(); let api_address = address.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::on_chain::LdkOnChainPayment::send_all_to_address( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::on_chain::FfiOnChainPayment::send_all_to_address( &api_that, api_address, )?; @@ -1675,15 +1863,15 @@ fn wire__crate__api__on_chain__ldk_on_chain_payment_send_all_to_address_impl( }, ) } -fn wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address_impl( +fn wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, address: impl CstDecode, amount_sats: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_on_chain_payment_send_to_address", + debug_name: "ffi_on_chain_payment_send_to_address", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1692,8 +1880,8 @@ fn wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address_impl( let api_address = address.cst_decode(); let api_amount_sats = amount_sats.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::on_chain::LdkOnChainPayment::send_to_address( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::on_chain::FfiOnChainPayment::send_to_address( &api_that, api_address, api_amount_sats, @@ -1705,15 +1893,16 @@ fn wire__crate__api__on_chain__ldk_on_chain_payment_send_to_address_impl( }, ) } -fn wire__crate__api__spontaneous__ldk_spontaneous_payment_send_impl( +fn wire__crate__api__spontaneous__ffi_spontaneous_payment_send_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, amount_msat: impl CstDecode, node_id: impl CstDecode, + sending_parameters: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_spontaneous_payment_send", + debug_name: "ffi_spontaneous_payment_send", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1721,12 +1910,14 @@ fn wire__crate__api__spontaneous__ldk_spontaneous_payment_send_impl( let api_that = that.cst_decode(); let api_amount_msat = amount_msat.cst_decode(); let api_node_id = node_id.cst_decode(); + let api_sending_parameters = sending_parameters.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::spontaneous::LdkSpontaneousPayment::send( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::spontaneous::FfiSpontaneousPayment::send( &api_that, api_amount_msat, api_node_id, + api_sending_parameters, )?; Ok(output_ok) })( @@ -1735,15 +1926,15 @@ fn wire__crate__api__spontaneous__ldk_spontaneous_payment_send_impl( }, ) } -fn wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes_impl( +fn wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, amount_msat: impl CstDecode, node_id: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ldk_spontaneous_payment_send_probes", + debug_name: "ffi_spontaneous_payment_send_probes", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1752,8 +1943,8 @@ fn wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes_impl( let api_amount_msat = amount_msat.cst_decode(); let api_node_id = node_id.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::LdkNodeError>((move || { - let output_ok = crate::api::spontaneous::LdkSpontaneousPayment::send_probes( + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::spontaneous::FfiSpontaneousPayment::send_probes( &api_that, api_amount_msat, api_node_id, @@ -1765,44 +1956,154 @@ fn wire__crate__api__spontaneous__ldk_spontaneous_payment_send_probes_impl( }, ) } - -// Section: dart2rust - -impl CstDecode for bool { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> bool { - self - } +fn wire__crate__api__types__anchor_channels_config_default_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "anchor_channels_config_default", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + move |context| { + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::AnchorChannelsConfig::default())?; + Ok(output_ok) + })()) + } + }, + ) } -impl CstDecode for i32 { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> i32 { - self - } +fn wire__crate__api__types__config_default_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "config_default", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + move |context| { + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::types::Config::default())?; + Ok(output_ok) + })()) + } + }, + ) } -impl CstDecode for i32 { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::utils::error::LdkBuilderError { - match self { - 0 => crate::utils::error::LdkBuilderError::SocketAddressParseError, - 1 => crate::utils::error::LdkBuilderError::InvalidSeedBytes, - 2 => crate::utils::error::LdkBuilderError::InvalidSeedFile, - 3 => crate::utils::error::LdkBuilderError::InvalidSystemTime, - 4 => crate::utils::error::LdkBuilderError::InvalidChannelMonitor, - 5 => crate::utils::error::LdkBuilderError::InvalidListeningAddress, - 6 => crate::utils::error::LdkBuilderError::ReadFailed, - 7 => crate::utils::error::LdkBuilderError::WriteFailed, - 8 => crate::utils::error::LdkBuilderError::StoragePathAccessFailed, - 9 => crate::utils::error::LdkBuilderError::KVStoreSetupFailed, - 10 => crate::utils::error::LdkBuilderError::WalletSetupFailed, - 11 => crate::utils::error::LdkBuilderError::LoggerSetupFailed, - 12 => crate::utils::error::LdkBuilderError::InvalidPublicKey, - _ => unreachable!("Invalid variant for LdkBuilderError: {}", self), - } - } +fn wire__crate__api__unified_qr__ffi_unified_qr_payment_receive_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + amount_sats: impl CstDecode, + message: impl CstDecode, + expiry_sec: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_unified_qr_payment_receive", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_amount_sats = amount_sats.cst_decode(); + let api_message = message.cst_decode(); + let api_expiry_sec = expiry_sec.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::unified_qr::FfiUnifiedQrPayment::receive( + &api_that, + api_amount_sats, + api_message, + api_expiry_sec, + )?; + Ok(output_ok) + })( + )) + } + }, + ) } -impl CstDecode for i32 { - // Codec=Cst (C-struct based), see doc to use other codecs +fn wire__crate__api__unified_qr__ffi_unified_qr_payment_send_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + uri_str: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_unified_qr_payment_send", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_uri_str = uri_str.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = + crate::api::unified_qr::FfiUnifiedQrPayment::send(&api_that, api_uri_str)?; + Ok(output_ok) + })( + )) + } + }, + ) +} + +// Section: dart2rust + +impl CstDecode for i32 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::BalanceSource { + match self { + 0 => crate::api::types::BalanceSource::HolderForceClosed, + 1 => crate::api::types::BalanceSource::CounterpartyForceClosed, + 2 => crate::api::types::BalanceSource::CoopClose, + 3 => crate::api::types::BalanceSource::Htlc, + _ => unreachable!("Invalid variant for BalanceSource: {}", self), + } + } +} +impl CstDecode for bool { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> bool { + self + } +} +impl CstDecode for i32 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::utils::error::FfiBuilderError { + match self { + 0 => crate::utils::error::FfiBuilderError::InvalidNodeAlias, + 1 => crate::utils::error::FfiBuilderError::SocketAddressParseError, + 2 => crate::utils::error::FfiBuilderError::InvalidSeedBytes, + 3 => crate::utils::error::FfiBuilderError::InvalidSeedFile, + 4 => crate::utils::error::FfiBuilderError::InvalidSystemTime, + 5 => crate::utils::error::FfiBuilderError::InvalidChannelMonitor, + 6 => crate::utils::error::FfiBuilderError::InvalidListeningAddress, + 7 => crate::utils::error::FfiBuilderError::ReadFailed, + 8 => crate::utils::error::FfiBuilderError::WriteFailed, + 9 => crate::utils::error::FfiBuilderError::StoragePathAccessFailed, + 10 => crate::utils::error::FfiBuilderError::KVStoreSetupFailed, + 11 => crate::utils::error::FfiBuilderError::WalletSetupFailed, + 12 => crate::utils::error::FfiBuilderError::LoggerSetupFailed, + 13 => crate::utils::error::FfiBuilderError::InvalidPublicKey, + _ => unreachable!("Invalid variant for FfiBuilderError: {}", self), + } + } +} +impl CstDecode for i32 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> i32 { + self + } +} +impl CstDecode for i32 { + // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::types::LogLevel { match self { 0 => crate::api::types::LogLevel::Gossip, @@ -1847,6 +2148,9 @@ impl CstDecode for i32 { 3 => crate::api::types::PaymentFailureReason::PaymentExpired, 4 => crate::api::types::PaymentFailureReason::RouteNotFound, 5 => crate::api::types::PaymentFailureReason::UnexpectedError, + 6 => crate::api::types::PaymentFailureReason::UnknownRequiredFeatures, + 7 => crate::api::types::PaymentFailureReason::InvoiceRequestExpired, + 8 => crate::api::types::PaymentFailureReason::InvoiceRequestRejected, _ => unreachable!("Invalid variant for PaymentFailureReason: {}", self), } } @@ -1892,25 +2196,27 @@ impl CstDecode for usize { self } } -impl SseDecode for NodeBuilder { +impl SseDecode for FfiBuilder { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = , + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(deserializer); return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for std::collections::HashMap { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return unsafe { decode_rust_opaque_nom(inner) }; + let mut inner = >::sse_decode(deserializer); + return inner.into_iter().collect(); } } -impl SseDecode for RustOpaqueNom { +impl SseDecode + for RustOpaqueNom> +{ // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1918,9 +2224,7 @@ impl SseDecode for RustOpaqueNom { } } -impl SseDecode - for RustOpaqueNom> -{ +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1928,7 +2232,7 @@ impl SseDecode } } -impl SseDecode for RustOpaqueNom { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1952,6 +2256,14 @@ impl SseDecode for RustOpaqueNom { } } +impl SseDecode for RustOpaqueNom { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -1968,6 +2280,14 @@ impl SseDecode for RustOpaqueNom { } } +impl SseDecode for RustOpaqueNom { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for String { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2017,6 +2337,20 @@ impl SseDecode for crate::api::types::BalanceDetails { } } +impl SseDecode for crate::api::types::BalanceSource { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return match inner { + 0 => crate::api::types::BalanceSource::HolderForceClosed, + 1 => crate::api::types::BalanceSource::CounterpartyForceClosed, + 2 => crate::api::types::BalanceSource::CoopClose, + 3 => crate::api::types::BalanceSource::Htlc, + _ => unreachable!("Invalid variant for BalanceSource: {}", inner), + }; + } +} + impl SseDecode for crate::api::types::BestBlock { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2094,8 +2428,25 @@ impl SseDecode for crate::api::types::ChainDataSourceConfig { let mut tag_ = ::sse_decode(deserializer); match tag_ { 0 => { - let mut var_field0 = ::sse_decode(deserializer); - return crate::api::types::ChainDataSourceConfig::Esplora(var_field0); + let mut var_serverUrl = ::sse_decode(deserializer); + let mut var_syncConfig = + >::sse_decode(deserializer); + return crate::api::types::ChainDataSourceConfig::Esplora { + server_url: var_serverUrl, + sync_config: var_syncConfig, + }; + } + 1 => { + let mut var_rpcHost = ::sse_decode(deserializer); + let mut var_rpcPort = ::sse_decode(deserializer); + let mut var_rpcUser = ::sse_decode(deserializer); + let mut var_rpcPassword = ::sse_decode(deserializer); + return crate::api::types::ChainDataSourceConfig::BitcoindRpc { + rpc_host: var_rpcHost, + rpc_port: var_rpcPort, + rpc_user: var_rpcUser, + rpc_password: var_rpcPassword, + }; } _ => { unimplemented!(""); @@ -2111,7 +2462,7 @@ impl SseDecode for crate::api::types::ChannelConfig { let mut var_forwardingFeeBaseMsat = ::sse_decode(deserializer); let mut var_cltvExpiryDelta = ::sse_decode(deserializer); let mut var_maxDustHtlcExposure = - >::sse_decode(deserializer); + ::sse_decode(deserializer); let mut var_forceCloseAvoidanceMaxFeeSatoshis = ::sse_decode(deserializer); let mut var_acceptUnderpayingHtlcs = ::sse_decode(deserializer); return crate::api::types::ChannelConfig { @@ -2142,7 +2493,6 @@ impl SseDecode for crate::api::types::ChannelDetails { let mut var_isOutbound = ::sse_decode(deserializer); let mut var_isChannelReady = ::sse_decode(deserializer); let mut var_isUsable = ::sse_decode(deserializer); - let mut var_isPublic = ::sse_decode(deserializer); let mut var_cltvExpiryDelta = >::sse_decode(deserializer); let mut var_counterpartyUnspendablePunishmentReserve = ::sse_decode(deserializer); let mut var_counterpartyOutboundHtlcMinimumMsat = >::sse_decode(deserializer); @@ -2173,7 +2523,6 @@ impl SseDecode for crate::api::types::ChannelDetails { is_outbound: var_isOutbound, is_channel_ready: var_isChannelReady, is_usable: var_isUsable, - is_public: var_isPublic, cltv_expiry_delta: var_cltvExpiryDelta, counterparty_unspendable_punishment_reserve: var_counterpartyUnspendablePunishmentReserve, @@ -2248,46 +2597,57 @@ impl SseDecode for crate::api::types::ClosureReason { let mut tag_ = ::sse_decode(deserializer); match tag_ { 0 => { + let mut var_peerFeerateSatPerKw = ::sse_decode(deserializer); + let mut var_requiredFeerateSatPerKw = ::sse_decode(deserializer); + return crate::api::types::ClosureReason::PeerFeerateTooLow { + peer_feerate_sat_per_kw: var_peerFeerateSatPerKw, + required_feerate_sat_per_kw: var_requiredFeerateSatPerKw, + }; + } + 1 => { let mut var_peerMsg = ::sse_decode(deserializer); return crate::api::types::ClosureReason::CounterpartyForceClosed { peer_msg: var_peerMsg, }; } - 1 => { - return crate::api::types::ClosureReason::HolderForceClosed; - } 2 => { - return crate::api::types::ClosureReason::LegacyCooperativeClosure; + let mut var_broadcastedLatestTxn = >::sse_decode(deserializer); + return crate::api::types::ClosureReason::HolderForceClosed { + broadcasted_latest_txn: var_broadcastedLatestTxn, + }; } 3 => { - return crate::api::types::ClosureReason::CounterpartyInitiatedCooperativeClosure; + return crate::api::types::ClosureReason::LegacyCooperativeClosure; } 4 => { - return crate::api::types::ClosureReason::LocallyInitiatedCooperativeClosure; + return crate::api::types::ClosureReason::CounterpartyInitiatedCooperativeClosure; } 5 => { - return crate::api::types::ClosureReason::CommitmentTxConfirmed; + return crate::api::types::ClosureReason::LocallyInitiatedCooperativeClosure; } 6 => { - return crate::api::types::ClosureReason::FundingTimedOut; + return crate::api::types::ClosureReason::CommitmentTxConfirmed; } 7 => { + return crate::api::types::ClosureReason::FundingTimedOut; + } + 8 => { let mut var_err = ::sse_decode(deserializer); return crate::api::types::ClosureReason::ProcessingError { err: var_err }; } - 8 => { + 9 => { return crate::api::types::ClosureReason::DisconnectedPeer; } - 9 => { + 10 => { return crate::api::types::ClosureReason::OutdatedChannelManager; } - 10 => { + 11 => { return crate::api::types::ClosureReason::CounterpartyCoopClosedUnfundedChannel; } - 11 => { + 12 => { return crate::api::types::ClosureReason::FundingBatchClosure; } - 12 => { + 13 => { return crate::api::types::ClosureReason::HTLCsTimedOut; } _ => { @@ -2305,29 +2665,26 @@ impl SseDecode for crate::api::types::Config { let mut var_network = ::sse_decode(deserializer); let mut var_listeningAddresses = >>::sse_decode(deserializer); - let mut var_defaultCltvExpiryDelta = ::sse_decode(deserializer); - let mut var_onchainWalletSyncIntervalSecs = ::sse_decode(deserializer); - let mut var_walletSyncIntervalSecs = ::sse_decode(deserializer); - let mut var_feeRateCacheUpdateIntervalSecs = ::sse_decode(deserializer); + let mut var_nodeAlias = >::sse_decode(deserializer); let mut var_trustedPeers0Conf = >::sse_decode(deserializer); let mut var_probingLiquidityLimitMultiplier = ::sse_decode(deserializer); let mut var_logLevel = ::sse_decode(deserializer); let mut var_anchorChannelsConfig = >::sse_decode(deserializer); + let mut var_sendingParameters = + >::sse_decode(deserializer); return crate::api::types::Config { storage_dir_path: var_storageDirPath, log_dir_path: var_logDirPath, network: var_network, listening_addresses: var_listeningAddresses, - default_cltv_expiry_delta: var_defaultCltvExpiryDelta, - onchain_wallet_sync_interval_secs: var_onchainWalletSyncIntervalSecs, - wallet_sync_interval_secs: var_walletSyncIntervalSecs, - fee_rate_cache_update_interval_secs: var_feeRateCacheUpdateIntervalSecs, + node_alias: var_nodeAlias, trusted_peers_0conf: var_trustedPeers0Conf, probing_liquidity_limit_multiplier: var_probingLiquidityLimitMultiplier, log_level: var_logLevel, anchor_channels_config: var_anchorChannelsConfig, + sending_parameters: var_sendingParameters, }; } } @@ -2383,7 +2740,7 @@ impl SseDecode for crate::api::types::EntropySourceConfig { return crate::api::types::EntropySourceConfig::SeedBytes(var_field0); } 2 => { - let mut var_mnemonic = ::sse_decode(deserializer); + let mut var_mnemonic = ::sse_decode(deserializer); let mut var_passphrase = >::sse_decode(deserializer); return crate::api::types::EntropySourceConfig::Bip39Mnemonic { mnemonic: var_mnemonic, @@ -2397,6 +2754,20 @@ impl SseDecode for crate::api::types::EntropySourceConfig { } } +impl SseDecode for crate::api::types::EsploraSyncConfig { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_onchainWalletSyncIntervalSecs = ::sse_decode(deserializer); + let mut var_lightningWalletSyncIntervalSecs = ::sse_decode(deserializer); + let mut var_feeRateCacheUpdateIntervalSecs = ::sse_decode(deserializer); + return crate::api::types::EsploraSyncConfig { + onchain_wallet_sync_interval_secs: var_onchainWalletSyncIntervalSecs, + lightning_wallet_sync_interval_secs: var_lightningWalletSyncIntervalSecs, + fee_rate_cache_update_interval_secs: var_feeRateCacheUpdateIntervalSecs, + }; + } +} + impl SseDecode for crate::api::types::Event { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2431,7 +2802,7 @@ impl SseDecode for crate::api::types::Event { let mut var_paymentId = >::sse_decode(deserializer); let mut var_paymentHash = - ::sse_decode(deserializer); + >::sse_decode(deserializer); let mut var_reason = >::sse_decode(deserializer); return crate::api::types::Event::PaymentFailed { @@ -2503,253 +2874,241 @@ impl SseDecode for crate::api::types::Event { } } -impl SseDecode for crate::api::types::GossipSourceConfig { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut tag_ = ::sse_decode(deserializer); - match tag_ { - 0 => { - return crate::api::types::GossipSourceConfig::P2PNetwork; - } - 1 => { - let mut var_field0 = ::sse_decode(deserializer); - return crate::api::types::GossipSourceConfig::RapidGossipSync(var_field0); - } - _ => { - unimplemented!(""); - } - } - } -} - -impl SseDecode for i32 { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - deserializer.cursor.read_i32::().unwrap() - } -} - -impl SseDecode for crate::api::bolt11::LdkBolt11Payment { +impl SseDecode for crate::api::bolt11::FfiBolt11Payment { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut var_ptr = + let mut var_opaque = >::sse_decode(deserializer); - return crate::api::bolt11::LdkBolt11Payment { ptr: var_ptr }; + return crate::api::bolt11::FfiBolt11Payment { opaque: var_opaque }; } } -impl SseDecode for crate::api::bolt12::LdkBolt12Payment { +impl SseDecode for crate::api::bolt12::FfiBolt12Payment { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut var_ptr = - >>::sse_decode(deserializer); - return crate::api::bolt12::LdkBolt12Payment { ptr: var_ptr }; + let mut var_opaque = + >::sse_decode(deserializer); + return crate::api::bolt12::FfiBolt12Payment { opaque: var_opaque }; } } -impl SseDecode for crate::utils::error::LdkBuilderError { +impl SseDecode for crate::utils::error::FfiBuilderError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); return match inner { - 0 => crate::utils::error::LdkBuilderError::SocketAddressParseError, - 1 => crate::utils::error::LdkBuilderError::InvalidSeedBytes, - 2 => crate::utils::error::LdkBuilderError::InvalidSeedFile, - 3 => crate::utils::error::LdkBuilderError::InvalidSystemTime, - 4 => crate::utils::error::LdkBuilderError::InvalidChannelMonitor, - 5 => crate::utils::error::LdkBuilderError::InvalidListeningAddress, - 6 => crate::utils::error::LdkBuilderError::ReadFailed, - 7 => crate::utils::error::LdkBuilderError::WriteFailed, - 8 => crate::utils::error::LdkBuilderError::StoragePathAccessFailed, - 9 => crate::utils::error::LdkBuilderError::KVStoreSetupFailed, - 10 => crate::utils::error::LdkBuilderError::WalletSetupFailed, - 11 => crate::utils::error::LdkBuilderError::LoggerSetupFailed, - 12 => crate::utils::error::LdkBuilderError::InvalidPublicKey, - _ => unreachable!("Invalid variant for LdkBuilderError: {}", inner), + 0 => crate::utils::error::FfiBuilderError::InvalidNodeAlias, + 1 => crate::utils::error::FfiBuilderError::SocketAddressParseError, + 2 => crate::utils::error::FfiBuilderError::InvalidSeedBytes, + 3 => crate::utils::error::FfiBuilderError::InvalidSeedFile, + 4 => crate::utils::error::FfiBuilderError::InvalidSystemTime, + 5 => crate::utils::error::FfiBuilderError::InvalidChannelMonitor, + 6 => crate::utils::error::FfiBuilderError::InvalidListeningAddress, + 7 => crate::utils::error::FfiBuilderError::ReadFailed, + 8 => crate::utils::error::FfiBuilderError::WriteFailed, + 9 => crate::utils::error::FfiBuilderError::StoragePathAccessFailed, + 10 => crate::utils::error::FfiBuilderError::KVStoreSetupFailed, + 11 => crate::utils::error::FfiBuilderError::WalletSetupFailed, + 12 => crate::utils::error::FfiBuilderError::LoggerSetupFailed, + 13 => crate::utils::error::FfiBuilderError::InvalidPublicKey, + _ => unreachable!("Invalid variant for FfiBuilderError: {}", inner), }; } } -impl SseDecode for crate::api::builder::LdkMnemonic { +impl SseDecode for crate::api::builder::FfiMnemonic { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut var_seedPhrase = ::sse_decode(deserializer); - return crate::api::builder::LdkMnemonic { + return crate::api::builder::FfiMnemonic { seed_phrase: var_seedPhrase, }; } } -impl SseDecode for crate::api::graph::LdkNetworkGraph { +impl SseDecode for crate::api::graph::FfiNetworkGraph { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut var_ptr = >::sse_decode(deserializer); - return crate::api::graph::LdkNetworkGraph { ptr: var_ptr }; + let mut var_opaque = + >::sse_decode(deserializer); + return crate::api::graph::FfiNetworkGraph { opaque: var_opaque }; } } -impl SseDecode for crate::api::node::LdkNode { +impl SseDecode for crate::api::node::FfiNode { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut var_ptr = >::sse_decode(deserializer); - return crate::api::node::LdkNode { ptr: var_ptr }; + let mut var_opaque = >::sse_decode(deserializer); + return crate::api::node::FfiNode { opaque: var_opaque }; } } -impl SseDecode for crate::utils::error::LdkNodeError { +impl SseDecode for crate::utils::error::FfiNodeError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut tag_ = ::sse_decode(deserializer); match tag_ { 0 => { - return crate::utils::error::LdkNodeError::InvalidTxid; + return crate::utils::error::FfiNodeError::InvalidTxid; } 1 => { - return crate::utils::error::LdkNodeError::AlreadyRunning; + return crate::utils::error::FfiNodeError::AlreadyRunning; } 2 => { - return crate::utils::error::LdkNodeError::NotRunning; + return crate::utils::error::FfiNodeError::NotRunning; } 3 => { - return crate::utils::error::LdkNodeError::OnchainTxCreationFailed; + return crate::utils::error::FfiNodeError::OnchainTxCreationFailed; } 4 => { - return crate::utils::error::LdkNodeError::ConnectionFailed; + return crate::utils::error::FfiNodeError::ConnectionFailed; } 5 => { - return crate::utils::error::LdkNodeError::InvoiceCreationFailed; + return crate::utils::error::FfiNodeError::InvoiceCreationFailed; } 6 => { - return crate::utils::error::LdkNodeError::PaymentSendingFailed; + return crate::utils::error::FfiNodeError::PaymentSendingFailed; } 7 => { - return crate::utils::error::LdkNodeError::ProbeSendingFailed; + return crate::utils::error::FfiNodeError::ProbeSendingFailed; } 8 => { - return crate::utils::error::LdkNodeError::ChannelCreationFailed; + return crate::utils::error::FfiNodeError::ChannelCreationFailed; } 9 => { - return crate::utils::error::LdkNodeError::ChannelClosingFailed; + return crate::utils::error::FfiNodeError::ChannelClosingFailed; } 10 => { - return crate::utils::error::LdkNodeError::ChannelConfigUpdateFailed; + return crate::utils::error::FfiNodeError::ChannelConfigUpdateFailed; } 11 => { - return crate::utils::error::LdkNodeError::PersistenceFailed; + return crate::utils::error::FfiNodeError::PersistenceFailed; } 12 => { - return crate::utils::error::LdkNodeError::WalletOperationFailed; + return crate::utils::error::FfiNodeError::WalletOperationFailed; } 13 => { - return crate::utils::error::LdkNodeError::OnchainTxSigningFailed; + return crate::utils::error::FfiNodeError::OnchainTxSigningFailed; } 14 => { - return crate::utils::error::LdkNodeError::MessageSigningFailed; + return crate::utils::error::FfiNodeError::MessageSigningFailed; } 15 => { - return crate::utils::error::LdkNodeError::TxSyncFailed; + return crate::utils::error::FfiNodeError::TxSyncFailed; } 16 => { - return crate::utils::error::LdkNodeError::GossipUpdateFailed; + return crate::utils::error::FfiNodeError::GossipUpdateFailed; } 17 => { - return crate::utils::error::LdkNodeError::InvalidAddress; + return crate::utils::error::FfiNodeError::InvalidAddress; } 18 => { - return crate::utils::error::LdkNodeError::InvalidSocketAddress; + return crate::utils::error::FfiNodeError::InvalidSocketAddress; } 19 => { - return crate::utils::error::LdkNodeError::InvalidPublicKey; + return crate::utils::error::FfiNodeError::InvalidPublicKey; } 20 => { - return crate::utils::error::LdkNodeError::InvalidSecretKey; + return crate::utils::error::FfiNodeError::InvalidSecretKey; } 21 => { - return crate::utils::error::LdkNodeError::InvalidPaymentHash; + return crate::utils::error::FfiNodeError::InvalidPaymentHash; } 22 => { - return crate::utils::error::LdkNodeError::InvalidPaymentPreimage; + return crate::utils::error::FfiNodeError::InvalidPaymentPreimage; } 23 => { - return crate::utils::error::LdkNodeError::InvalidPaymentSecret; + return crate::utils::error::FfiNodeError::InvalidPaymentSecret; } 24 => { - return crate::utils::error::LdkNodeError::InvalidAmount; + return crate::utils::error::FfiNodeError::InvalidAmount; } 25 => { - return crate::utils::error::LdkNodeError::InvalidInvoice; + return crate::utils::error::FfiNodeError::InvalidInvoice; } 26 => { - return crate::utils::error::LdkNodeError::InvalidChannelId; + return crate::utils::error::FfiNodeError::InvalidChannelId; } 27 => { - return crate::utils::error::LdkNodeError::InvalidNetwork; + return crate::utils::error::FfiNodeError::InvalidNetwork; } 28 => { - return crate::utils::error::LdkNodeError::DuplicatePayment; + return crate::utils::error::FfiNodeError::DuplicatePayment; } 29 => { - return crate::utils::error::LdkNodeError::InsufficientFunds; + return crate::utils::error::FfiNodeError::InsufficientFunds; } 30 => { - return crate::utils::error::LdkNodeError::FeerateEstimationUpdateFailed; + return crate::utils::error::FfiNodeError::FeerateEstimationUpdateFailed; } 31 => { - return crate::utils::error::LdkNodeError::LiquidityRequestFailed; + return crate::utils::error::FfiNodeError::LiquidityRequestFailed; } 32 => { - return crate::utils::error::LdkNodeError::LiquiditySourceUnavailable; + return crate::utils::error::FfiNodeError::LiquiditySourceUnavailable; } 33 => { - return crate::utils::error::LdkNodeError::LiquidityFeeTooHigh; + return crate::utils::error::FfiNodeError::LiquidityFeeTooHigh; } 34 => { - return crate::utils::error::LdkNodeError::InvalidPaymentId; + return crate::utils::error::FfiNodeError::InvalidPaymentId; } 35 => { let mut var_field0 = ::sse_decode(deserializer); - return crate::utils::error::LdkNodeError::Decode(var_field0); + return crate::utils::error::FfiNodeError::Decode(var_field0); } 36 => { let mut var_field0 = ::sse_decode(deserializer); - return crate::utils::error::LdkNodeError::Bolt12Parse(var_field0); + return crate::utils::error::FfiNodeError::Bolt12Parse(var_field0); } 37 => { - return crate::utils::error::LdkNodeError::InvoiceRequestCreationFailed; + return crate::utils::error::FfiNodeError::InvoiceRequestCreationFailed; } 38 => { - return crate::utils::error::LdkNodeError::OfferCreationFailed; + return crate::utils::error::FfiNodeError::OfferCreationFailed; } 39 => { - return crate::utils::error::LdkNodeError::RefundCreationFailed; + return crate::utils::error::FfiNodeError::RefundCreationFailed; } 40 => { - return crate::utils::error::LdkNodeError::FeerateEstimationUpdateTimeout; + return crate::utils::error::FfiNodeError::FeerateEstimationUpdateTimeout; } 41 => { - return crate::utils::error::LdkNodeError::WalletOperationTimeout; + return crate::utils::error::FfiNodeError::WalletOperationTimeout; } 42 => { - return crate::utils::error::LdkNodeError::TxSyncTimeout; + return crate::utils::error::FfiNodeError::TxSyncTimeout; } 43 => { - return crate::utils::error::LdkNodeError::GossipUpdateTimeout; + return crate::utils::error::FfiNodeError::GossipUpdateTimeout; } 44 => { - return crate::utils::error::LdkNodeError::InvalidOfferId; + return crate::utils::error::FfiNodeError::InvalidOfferId; } 45 => { - return crate::utils::error::LdkNodeError::InvalidNodeId; + return crate::utils::error::FfiNodeError::InvalidNodeId; } 46 => { - return crate::utils::error::LdkNodeError::InvalidOffer; + return crate::utils::error::FfiNodeError::InvalidOffer; } 47 => { - return crate::utils::error::LdkNodeError::InvalidRefund; + return crate::utils::error::FfiNodeError::InvalidRefund; } 48 => { - return crate::utils::error::LdkNodeError::UnsupportedCurrency; + return crate::utils::error::FfiNodeError::UnsupportedCurrency; + } + 49 => { + return crate::utils::error::FfiNodeError::UriParameterParsingFailed; + } + 50 => { + return crate::utils::error::FfiNodeError::InvalidUri; + } + 51 => { + return crate::utils::error::FfiNodeError::InvalidQuantity; + } + 52 => { + return crate::utils::error::FfiNodeError::InvalidNodeAlias; } _ => { unimplemented!(""); @@ -2758,21 +3117,56 @@ impl SseDecode for crate::utils::error::LdkNodeError { } } -impl SseDecode for crate::api::on_chain::LdkOnChainPayment { +impl SseDecode for crate::api::on_chain::FfiOnChainPayment { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut var_ptr = + let mut var_opaque = >::sse_decode(deserializer); - return crate::api::on_chain::LdkOnChainPayment { ptr: var_ptr }; + return crate::api::on_chain::FfiOnChainPayment { opaque: var_opaque }; } } -impl SseDecode for crate::api::spontaneous::LdkSpontaneousPayment { +impl SseDecode for crate::api::spontaneous::FfiSpontaneousPayment { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut var_ptr = + let mut var_opaque = >::sse_decode(deserializer); - return crate::api::spontaneous::LdkSpontaneousPayment { ptr: var_ptr }; + return crate::api::spontaneous::FfiSpontaneousPayment { opaque: var_opaque }; + } +} + +impl SseDecode for crate::api::unified_qr::FfiUnifiedQrPayment { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_opaque = + >::sse_decode(deserializer); + return crate::api::unified_qr::FfiUnifiedQrPayment { opaque: var_opaque }; + } +} + +impl SseDecode for crate::api::types::GossipSourceConfig { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut tag_ = ::sse_decode(deserializer); + match tag_ { + 0 => { + return crate::api::types::GossipSourceConfig::P2PNetwork; + } + 1 => { + let mut var_field0 = ::sse_decode(deserializer); + return crate::api::types::GossipSourceConfig::RapidGossipSync(var_field0); + } + _ => { + unimplemented!(""); + } + } + } +} + +impl SseDecode for i32 { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + deserializer.cursor.read_i32::().unwrap() } } @@ -2786,10 +3180,20 @@ impl SseDecode for crate::api::types::LightningBalance { let mut var_counterpartyNodeId = ::sse_decode(deserializer); let mut var_amountSatoshis = ::sse_decode(deserializer); + let mut var_transactionFeeSatoshis = ::sse_decode(deserializer); + let mut var_outboundPaymentHtlcRoundedMsat = ::sse_decode(deserializer); + let mut var_outboundForwardedHtlcRoundedMsat = ::sse_decode(deserializer); + let mut var_inboundClaimingHtlcRoundedMsat = ::sse_decode(deserializer); + let mut var_inboundHtlcRoundedMsat = ::sse_decode(deserializer); return crate::api::types::LightningBalance::ClaimableOnChannelClose { channel_id: var_channelId, counterparty_node_id: var_counterpartyNodeId, amount_satoshis: var_amountSatoshis, + transaction_fee_satoshis: var_transactionFeeSatoshis, + outbound_payment_htlc_rounded_msat: var_outboundPaymentHtlcRoundedMsat, + outbound_forwarded_htlc_rounded_msat: var_outboundForwardedHtlcRoundedMsat, + inbound_claiming_htlc_rounded_msat: var_inboundClaimingHtlcRoundedMsat, + inbound_htlc_rounded_msat: var_inboundHtlcRoundedMsat, }; } 1 => { @@ -2798,11 +3202,13 @@ impl SseDecode for crate::api::types::LightningBalance { ::sse_decode(deserializer); let mut var_amountSatoshis = ::sse_decode(deserializer); let mut var_confirmationHeight = ::sse_decode(deserializer); + let mut var_source = ::sse_decode(deserializer); return crate::api::types::LightningBalance::ClaimableAwaitingConfirmations { channel_id: var_channelId, counterparty_node_id: var_counterpartyNodeId, amount_satoshis: var_amountSatoshis, confirmation_height: var_confirmationHeight, + source: var_source, }; } 2 => { @@ -2832,12 +3238,14 @@ impl SseDecode for crate::api::types::LightningBalance { let mut var_claimableHeight = ::sse_decode(deserializer); let mut var_paymentHash = ::sse_decode(deserializer); + let mut var_outboundPayment = ::sse_decode(deserializer); return crate::api::types::LightningBalance::MaybeTimeoutClaimableHTLC { channel_id: var_channelId, counterparty_node_id: var_counterpartyNodeId, amount_satoshis: var_amountSatoshis, claimable_height: var_claimableHeight, payment_hash: var_paymentHash, + outbound_payment: var_outboundPayment, }; } 4 => { @@ -3004,6 +3412,18 @@ impl SseDecode for Vec { } } +impl SseDecode for Vec<(String, String)> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut len_ = ::sse_decode(deserializer); + let mut ans_ = vec![]; + for idx_ in 0..len_ { + ans_.push(<(String, String)>::sse_decode(deserializer)); + } + return ans_; + } +} + impl SseDecode for Vec { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3064,6 +3484,27 @@ impl SseDecode for crate::api::types::MaxDustHTLCExposure { } } +impl SseDecode for crate::api::types::MaxTotalRoutingFeeLimit { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut tag_ = ::sse_decode(deserializer); + match tag_ { + 0 => { + return crate::api::types::MaxTotalRoutingFeeLimit::NoFeeCap; + } + 1 => { + let mut var_amountMsat = ::sse_decode(deserializer); + return crate::api::types::MaxTotalRoutingFeeLimit::FeeCap { + amount_msat: var_amountMsat, + }; + } + _ => { + unimplemented!(""); + } + } + } +} + impl SseDecode for crate::api::types::Network { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3078,6 +3519,14 @@ impl SseDecode for crate::api::types::Network { } } +impl SseDecode for crate::api::types::NodeAlias { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = <[u8; 32]>::sse_decode(deserializer); + return crate::api::types::NodeAlias(var_field0); + } +} + impl SseDecode for crate::api::graph::NodeAnnouncementInfo { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3121,22 +3570,24 @@ impl SseDecode for crate::api::types::NodeStatus { let mut var_isRunning = ::sse_decode(deserializer); let mut var_isListening = ::sse_decode(deserializer); let mut var_currentBestBlock = ::sse_decode(deserializer); - let mut var_latestWalletSyncTimestamp = >::sse_decode(deserializer); + let mut var_latestLightningWalletSyncTimestamp = >::sse_decode(deserializer); let mut var_latestOnchainWalletSyncTimestamp = >::sse_decode(deserializer); let mut var_latestFeeRateCacheUpdateTimestamp = >::sse_decode(deserializer); let mut var_latestRgsSnapshotTimestamp = >::sse_decode(deserializer); let mut var_latestNodeAnnouncementBroadcastTimestamp = >::sse_decode(deserializer); + let mut var_latestChannelMonitorArchivalHeight = >::sse_decode(deserializer); return crate::api::types::NodeStatus { is_running: var_isRunning, is_listening: var_isListening, current_best_block: var_currentBestBlock, - latest_wallet_sync_timestamp: var_latestWalletSyncTimestamp, + latest_lightning_wallet_sync_timestamp: var_latestLightningWalletSyncTimestamp, latest_onchain_wallet_sync_timestamp: var_latestOnchainWalletSyncTimestamp, latest_fee_rate_cache_update_timestamp: var_latestFeeRateCacheUpdateTimestamp, latest_rgs_snapshot_timestamp: var_latestRgsSnapshotTimestamp, latest_node_announcement_broadcast_timestamp: var_latestNodeAnnouncementBroadcastTimestamp, + latest_channel_monitor_archival_height: var_latestChannelMonitorArchivalHeight, }; } } @@ -3181,6 +3632,17 @@ impl SseDecode for Option { } } +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode(deserializer)); + } else { + return None; + } + } +} + impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3264,6 +3726,19 @@ impl SseDecode for Option { } } +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode( + deserializer, + )); + } else { + return None; + } + } +} + impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3301,11 +3776,11 @@ impl SseDecode for Option { } } -impl SseDecode for Option { +impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { if (::sse_decode(deserializer)) { - return Some(::sse_decode( + return Some(::sse_decode( deserializer, )); } else { @@ -3314,6 +3789,17 @@ impl SseDecode for Option { } } +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode(deserializer)); + } else { + return None; + } + } +} + impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3432,22 +3918,35 @@ impl SseDecode for Option { } } -impl SseDecode for Option { +impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { if (::sse_decode(deserializer)) { - return Some(::sse_decode(deserializer)); + return Some(::sse_decode( + deserializer, + )); } else { return None; } } } -impl SseDecode for Option { +impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { if (::sse_decode(deserializer)) { - return Some(::sse_decode(deserializer)); + return Some(::sse_decode(deserializer)); + } else { + return None; + } + } +} + +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode(deserializer)); } else { return None; } @@ -3465,6 +3964,17 @@ impl SseDecode for Option { } } +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode(deserializer)); + } else { + return None; + } + } +} + impl SseDecode for Option> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3533,6 +4043,9 @@ impl SseDecode for crate::api::types::PaymentFailureReason { 3 => crate::api::types::PaymentFailureReason::PaymentExpired, 4 => crate::api::types::PaymentFailureReason::RouteNotFound, 5 => crate::api::types::PaymentFailureReason::UnexpectedError, + 6 => crate::api::types::PaymentFailureReason::UnknownRequiredFeatures, + 7 => crate::api::types::PaymentFailureReason::InvoiceRequestExpired, + 8 => crate::api::types::PaymentFailureReason::InvoiceRequestRejected, _ => unreachable!("Invalid variant for PaymentFailureReason: {}", inner), }; } @@ -3606,11 +4119,15 @@ impl SseDecode for crate::api::types::PaymentKind { let mut var_secret = >::sse_decode(deserializer); let mut var_offerId = ::sse_decode(deserializer); + let mut var_payerNote = >::sse_decode(deserializer); + let mut var_quantity = >::sse_decode(deserializer); return crate::api::types::PaymentKind::Bolt12Offer { hash: var_hash, preimage: var_preimage, secret: var_secret, offer_id: var_offerId, + payer_note: var_payerNote, + quantity: var_quantity, }; } 5 => { @@ -3620,10 +4137,14 @@ impl SseDecode for crate::api::types::PaymentKind { >::sse_decode(deserializer); let mut var_secret = >::sse_decode(deserializer); + let mut var_payerNote = >::sse_decode(deserializer); + let mut var_quantity = >::sse_decode(deserializer); return crate::api::types::PaymentKind::Bolt12Refund { hash: var_hash, preimage: var_preimage, secret: var_secret, + payer_note: var_payerNote, + quantity: var_quantity, }; } _ => { @@ -3735,6 +4256,34 @@ impl SseDecode for crate::api::types::PublicKey { } } +impl SseDecode for crate::api::unified_qr::QrPaymentResult { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut tag_ = ::sse_decode(deserializer); + match tag_ { + 0 => { + let mut var_txid = ::sse_decode(deserializer); + return crate::api::unified_qr::QrPaymentResult::Onchain { txid: var_txid }; + } + 1 => { + let mut var_paymentId = ::sse_decode(deserializer); + return crate::api::unified_qr::QrPaymentResult::Bolt11 { + payment_id: var_paymentId, + }; + } + 2 => { + let mut var_paymentId = ::sse_decode(deserializer); + return crate::api::unified_qr::QrPaymentResult::Bolt12 { + payment_id: var_paymentId, + }; + } + _ => { + unimplemented!(""); + } + } + } +} + impl SseDecode for ( crate::api::types::SocketAddress, @@ -3751,6 +4300,15 @@ impl SseDecode } } +impl SseDecode for (String, String) { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = ::sse_decode(deserializer); + let mut var_field1 = ::sse_decode(deserializer); + return (var_field0, var_field1); + } +} + impl SseDecode for crate::api::bolt12::Refund { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3771,6 +4329,23 @@ impl SseDecode for crate::api::graph::RoutingFees { } } +impl SseDecode for crate::api::types::SendingParameters { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_maxTotalRoutingFeeMsat = + >::sse_decode(deserializer); + let mut var_maxTotalCltvExpiryDelta = >::sse_decode(deserializer); + let mut var_maxPathCount = >::sse_decode(deserializer); + let mut var_maxChannelSaturationPowerOfHalf = >::sse_decode(deserializer); + return crate::api::types::SendingParameters { + max_total_routing_fee_msat: var_maxTotalRoutingFeeMsat, + max_total_cltv_expiry_delta: var_maxTotalCltvExpiryDelta, + max_path_count: var_maxPathCount, + max_channel_saturation_power_of_half: var_maxChannelSaturationPowerOfHalf, + }; + } +} + impl SseDecode for crate::api::types::SocketAddress { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -3947,16 +4522,16 @@ fn pde_ffi_dispatcher_sync_impl( // Section: rust2dart // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for FrbWrapper { +impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self.0) .into_dart() } } -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper {} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper {} -impl flutter_rust_bridge::IntoIntoDart> for NodeBuilder { - fn into_into_dart(self) -> FrbWrapper { +impl flutter_rust_bridge::IntoIntoDart> for FfiBuilder { + fn into_into_dart(self) -> FrbWrapper { self.into() } } @@ -4025,6 +4600,29 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::types::BalanceSource { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + match self { + Self::HolderForceClosed => 0.into_dart(), + Self::CounterpartyForceClosed => 1.into_dart(), + Self::CoopClose => 2.into_dart(), + Self::Htlc => 3.into_dart(), + _ => unreachable!(), + } + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::types::BalanceSource +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::BalanceSource +{ + fn into_into_dart(self) -> crate::api::types::BalanceSource { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::types::BestBlock { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [ @@ -4117,9 +4715,28 @@ impl flutter_rust_bridge::IntoIntoDart impl flutter_rust_bridge::IntoDart for crate::api::types::ChainDataSourceConfig { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { - crate::api::types::ChainDataSourceConfig::Esplora(field0) => { - [0.into_dart(), field0.into_into_dart().into_dart()].into_dart() - } + crate::api::types::ChainDataSourceConfig::Esplora { + server_url, + sync_config, + } => [ + 0.into_dart(), + server_url.into_into_dart().into_dart(), + sync_config.into_into_dart().into_dart(), + ] + .into_dart(), + crate::api::types::ChainDataSourceConfig::BitcoindRpc { + rpc_host, + rpc_port, + rpc_user, + rpc_password, + } => [ + 1.into_dart(), + rpc_host.into_into_dart().into_dart(), + rpc_port.into_into_dart().into_dart(), + rpc_user.into_into_dart().into_dart(), + rpc_password.into_into_dart().into_dart(), + ] + .into_dart(), _ => { unimplemented!(""); } @@ -4188,7 +4805,6 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::ChannelDetails { self.is_outbound.into_into_dart().into_dart(), self.is_channel_ready.into_into_dart().into_dart(), self.is_usable.into_into_dart().into_dart(), - self.is_public.into_into_dart().into_dart(), self.cltv_expiry_delta.into_into_dart().into_dart(), self.counterparty_unspendable_punishment_reserve .into_into_dart() @@ -4300,31 +4916,48 @@ impl flutter_rust_bridge::IntoIntoDart impl flutter_rust_bridge::IntoDart for crate::api::types::ClosureReason { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { + crate::api::types::ClosureReason::PeerFeerateTooLow { + peer_feerate_sat_per_kw, + required_feerate_sat_per_kw, + } => [ + 0.into_dart(), + peer_feerate_sat_per_kw.into_into_dart().into_dart(), + required_feerate_sat_per_kw.into_into_dart().into_dart(), + ] + .into_dart(), crate::api::types::ClosureReason::CounterpartyForceClosed { peer_msg } => { - [0.into_dart(), peer_msg.into_into_dart().into_dart()].into_dart() + [1.into_dart(), peer_msg.into_into_dart().into_dart()].into_dart() } - crate::api::types::ClosureReason::HolderForceClosed => [1.into_dart()].into_dart(), + crate::api::types::ClosureReason::HolderForceClosed { + broadcasted_latest_txn, + } => [ + 2.into_dart(), + broadcasted_latest_txn.into_into_dart().into_dart(), + ] + .into_dart(), crate::api::types::ClosureReason::LegacyCooperativeClosure => { - [2.into_dart()].into_dart() + [3.into_dart()].into_dart() } crate::api::types::ClosureReason::CounterpartyInitiatedCooperativeClosure => { - [3.into_dart()].into_dart() + [4.into_dart()].into_dart() } crate::api::types::ClosureReason::LocallyInitiatedCooperativeClosure => { - [4.into_dart()].into_dart() + [5.into_dart()].into_dart() } - crate::api::types::ClosureReason::CommitmentTxConfirmed => [5.into_dart()].into_dart(), - crate::api::types::ClosureReason::FundingTimedOut => [6.into_dart()].into_dart(), + crate::api::types::ClosureReason::CommitmentTxConfirmed => [6.into_dart()].into_dart(), + crate::api::types::ClosureReason::FundingTimedOut => [7.into_dart()].into_dart(), crate::api::types::ClosureReason::ProcessingError { err } => { - [7.into_dart(), err.into_into_dart().into_dart()].into_dart() + [8.into_dart(), err.into_into_dart().into_dart()].into_dart() } - crate::api::types::ClosureReason::DisconnectedPeer => [8.into_dart()].into_dart(), - crate::api::types::ClosureReason::OutdatedChannelManager => [9.into_dart()].into_dart(), - crate::api::types::ClosureReason::CounterpartyCoopClosedUnfundedChannel => { + crate::api::types::ClosureReason::DisconnectedPeer => [9.into_dart()].into_dart(), + crate::api::types::ClosureReason::OutdatedChannelManager => { [10.into_dart()].into_dart() } - crate::api::types::ClosureReason::FundingBatchClosure => [11.into_dart()].into_dart(), - crate::api::types::ClosureReason::HTLCsTimedOut => [12.into_dart()].into_dart(), + crate::api::types::ClosureReason::CounterpartyCoopClosedUnfundedChannel => { + [11.into_dart()].into_dart() + } + crate::api::types::ClosureReason::FundingBatchClosure => [12.into_dart()].into_dart(), + crate::api::types::ClosureReason::HTLCsTimedOut => [13.into_dart()].into_dart(), _ => { unimplemented!(""); } @@ -4350,20 +4983,14 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::Config { self.log_dir_path.into_into_dart().into_dart(), self.network.into_into_dart().into_dart(), self.listening_addresses.into_into_dart().into_dart(), - self.default_cltv_expiry_delta.into_into_dart().into_dart(), - self.onchain_wallet_sync_interval_secs - .into_into_dart() - .into_dart(), - self.wallet_sync_interval_secs.into_into_dart().into_dart(), - self.fee_rate_cache_update_interval_secs - .into_into_dart() - .into_dart(), + self.node_alias.into_into_dart().into_dart(), self.trusted_peers_0conf.into_into_dart().into_dart(), self.probing_liquidity_limit_multiplier .into_into_dart() .into_dart(), self.log_level.into_into_dart().into_dart(), self.anchor_channels_config.into_into_dart().into_dart(), + self.sending_parameters.into_into_dart().into_dart(), ] .into_dart() } @@ -4442,6 +5069,34 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::types::EsploraSyncConfig { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [ + self.onchain_wallet_sync_interval_secs + .into_into_dart() + .into_dart(), + self.lightning_wallet_sync_interval_secs + .into_into_dart() + .into_dart(), + self.fee_rate_cache_update_interval_secs + .into_into_dart() + .into_dart(), + ] + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::types::EsploraSyncConfig +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::EsploraSyncConfig +{ + fn into_into_dart(self) -> crate::api::types::EsploraSyncConfig { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::types::Event { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { @@ -4543,221 +5198,203 @@ impl flutter_rust_bridge::IntoIntoDart for crate::api: } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::types::GossipSourceConfig { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - match self { - crate::api::types::GossipSourceConfig::P2PNetwork => [0.into_dart()].into_dart(), - crate::api::types::GossipSourceConfig::RapidGossipSync(field0) => { - [1.into_dart(), field0.into_into_dart().into_dart()].into_dart() - } - _ => { - unimplemented!(""); - } - } - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::types::GossipSourceConfig -{ -} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::types::GossipSourceConfig -{ - fn into_into_dart(self) -> crate::api::types::GossipSourceConfig { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::bolt11::LdkBolt11Payment { +impl flutter_rust_bridge::IntoDart for crate::api::bolt11::FfiBolt11Payment { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() + [self.opaque.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::bolt11::LdkBolt11Payment + for crate::api::bolt11::FfiBolt11Payment { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::bolt11::LdkBolt11Payment +impl flutter_rust_bridge::IntoIntoDart + for crate::api::bolt11::FfiBolt11Payment { - fn into_into_dart(self) -> crate::api::bolt11::LdkBolt11Payment { + fn into_into_dart(self) -> crate::api::bolt11::FfiBolt11Payment { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::bolt12::LdkBolt12Payment { +impl flutter_rust_bridge::IntoDart for crate::api::bolt12::FfiBolt12Payment { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() + [self.opaque.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::bolt12::LdkBolt12Payment + for crate::api::bolt12::FfiBolt12Payment { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::bolt12::LdkBolt12Payment +impl flutter_rust_bridge::IntoIntoDart + for crate::api::bolt12::FfiBolt12Payment { - fn into_into_dart(self) -> crate::api::bolt12::LdkBolt12Payment { + fn into_into_dart(self) -> crate::api::bolt12::FfiBolt12Payment { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::utils::error::LdkBuilderError { +impl flutter_rust_bridge::IntoDart for crate::utils::error::FfiBuilderError { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { - Self::SocketAddressParseError => 0.into_dart(), - Self::InvalidSeedBytes => 1.into_dart(), - Self::InvalidSeedFile => 2.into_dart(), - Self::InvalidSystemTime => 3.into_dart(), - Self::InvalidChannelMonitor => 4.into_dart(), - Self::InvalidListeningAddress => 5.into_dart(), - Self::ReadFailed => 6.into_dart(), - Self::WriteFailed => 7.into_dart(), - Self::StoragePathAccessFailed => 8.into_dart(), - Self::KVStoreSetupFailed => 9.into_dart(), - Self::WalletSetupFailed => 10.into_dart(), - Self::LoggerSetupFailed => 11.into_dart(), - Self::InvalidPublicKey => 12.into_dart(), + Self::InvalidNodeAlias => 0.into_dart(), + Self::SocketAddressParseError => 1.into_dart(), + Self::InvalidSeedBytes => 2.into_dart(), + Self::InvalidSeedFile => 3.into_dart(), + Self::InvalidSystemTime => 4.into_dart(), + Self::InvalidChannelMonitor => 5.into_dart(), + Self::InvalidListeningAddress => 6.into_dart(), + Self::ReadFailed => 7.into_dart(), + Self::WriteFailed => 8.into_dart(), + Self::StoragePathAccessFailed => 9.into_dart(), + Self::KVStoreSetupFailed => 10.into_dart(), + Self::WalletSetupFailed => 11.into_dart(), + Self::LoggerSetupFailed => 12.into_dart(), + Self::InvalidPublicKey => 13.into_dart(), _ => unreachable!(), } } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::utils::error::LdkBuilderError + for crate::utils::error::FfiBuilderError { } -impl flutter_rust_bridge::IntoIntoDart - for crate::utils::error::LdkBuilderError +impl flutter_rust_bridge::IntoIntoDart + for crate::utils::error::FfiBuilderError { - fn into_into_dart(self) -> crate::utils::error::LdkBuilderError { + fn into_into_dart(self) -> crate::utils::error::FfiBuilderError { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::builder::LdkMnemonic { +impl flutter_rust_bridge::IntoDart for crate::api::builder::FfiMnemonic { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [self.seed_phrase.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::builder::LdkMnemonic + for crate::api::builder::FfiMnemonic { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::builder::LdkMnemonic +impl flutter_rust_bridge::IntoIntoDart + for crate::api::builder::FfiMnemonic { - fn into_into_dart(self) -> crate::api::builder::LdkMnemonic { + fn into_into_dart(self) -> crate::api::builder::FfiMnemonic { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::graph::LdkNetworkGraph { +impl flutter_rust_bridge::IntoDart for crate::api::graph::FfiNetworkGraph { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() + [self.opaque.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::graph::LdkNetworkGraph + for crate::api::graph::FfiNetworkGraph { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::graph::LdkNetworkGraph +impl flutter_rust_bridge::IntoIntoDart + for crate::api::graph::FfiNetworkGraph { - fn into_into_dart(self) -> crate::api::graph::LdkNetworkGraph { + fn into_into_dart(self) -> crate::api::graph::FfiNetworkGraph { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::node::LdkNode { +impl flutter_rust_bridge::IntoDart for crate::api::node::FfiNode { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() + [self.opaque.into_into_dart().into_dart()].into_dart() } } -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::node::LdkNode {} -impl flutter_rust_bridge::IntoIntoDart for crate::api::node::LdkNode { - fn into_into_dart(self) -> crate::api::node::LdkNode { +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::node::FfiNode {} +impl flutter_rust_bridge::IntoIntoDart for crate::api::node::FfiNode { + fn into_into_dart(self) -> crate::api::node::FfiNode { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::utils::error::LdkNodeError { +impl flutter_rust_bridge::IntoDart for crate::utils::error::FfiNodeError { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { - crate::utils::error::LdkNodeError::InvalidTxid => [0.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::AlreadyRunning => [1.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::NotRunning => [2.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::OnchainTxCreationFailed => { + crate::utils::error::FfiNodeError::InvalidTxid => [0.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::AlreadyRunning => [1.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::NotRunning => [2.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::OnchainTxCreationFailed => { [3.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::ConnectionFailed => [4.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvoiceCreationFailed => [5.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::PaymentSendingFailed => [6.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::ProbeSendingFailed => [7.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::ChannelCreationFailed => [8.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::ChannelClosingFailed => [9.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::ChannelConfigUpdateFailed => { + crate::utils::error::FfiNodeError::ConnectionFailed => [4.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvoiceCreationFailed => [5.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::PaymentSendingFailed => [6.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::ProbeSendingFailed => [7.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::ChannelCreationFailed => [8.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::ChannelClosingFailed => [9.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::ChannelConfigUpdateFailed => { [10.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::PersistenceFailed => [11.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::WalletOperationFailed => { + crate::utils::error::FfiNodeError::PersistenceFailed => [11.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::WalletOperationFailed => { [12.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::OnchainTxSigningFailed => { + crate::utils::error::FfiNodeError::OnchainTxSigningFailed => { [13.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::MessageSigningFailed => [14.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::TxSyncFailed => [15.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::GossipUpdateFailed => [16.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidAddress => [17.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidSocketAddress => [18.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidPublicKey => [19.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidSecretKey => [20.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidPaymentHash => [21.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidPaymentPreimage => { + crate::utils::error::FfiNodeError::MessageSigningFailed => [14.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::TxSyncFailed => [15.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::GossipUpdateFailed => [16.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidAddress => [17.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidSocketAddress => [18.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidPublicKey => [19.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidSecretKey => [20.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidPaymentHash => [21.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidPaymentPreimage => { [22.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::InvalidPaymentSecret => [23.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidAmount => [24.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidInvoice => [25.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidChannelId => [26.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidNetwork => [27.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::DuplicatePayment => [28.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InsufficientFunds => [29.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::FeerateEstimationUpdateFailed => { + crate::utils::error::FfiNodeError::InvalidPaymentSecret => [23.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidAmount => [24.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidInvoice => [25.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidChannelId => [26.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidNetwork => [27.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::DuplicatePayment => [28.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InsufficientFunds => [29.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::FeerateEstimationUpdateFailed => { [30.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::LiquidityRequestFailed => { + crate::utils::error::FfiNodeError::LiquidityRequestFailed => { [31.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::LiquiditySourceUnavailable => { + crate::utils::error::FfiNodeError::LiquiditySourceUnavailable => { [32.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::LiquidityFeeTooHigh => [33.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidPaymentId => [34.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::Decode(field0) => { + crate::utils::error::FfiNodeError::LiquidityFeeTooHigh => [33.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidPaymentId => [34.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::Decode(field0) => { [35.into_dart(), field0.into_into_dart().into_dart()].into_dart() } - crate::utils::error::LdkNodeError::Bolt12Parse(field0) => { + crate::utils::error::FfiNodeError::Bolt12Parse(field0) => { [36.into_dart(), field0.into_into_dart().into_dart()].into_dart() } - crate::utils::error::LdkNodeError::InvoiceRequestCreationFailed => { + crate::utils::error::FfiNodeError::InvoiceRequestCreationFailed => { [37.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::OfferCreationFailed => [38.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::RefundCreationFailed => [39.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::FeerateEstimationUpdateTimeout => { + crate::utils::error::FfiNodeError::OfferCreationFailed => [38.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::RefundCreationFailed => [39.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::FeerateEstimationUpdateTimeout => { [40.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::WalletOperationTimeout => { + crate::utils::error::FfiNodeError::WalletOperationTimeout => { [41.into_dart()].into_dart() } - crate::utils::error::LdkNodeError::TxSyncTimeout => [42.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::GossipUpdateTimeout => [43.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidOfferId => [44.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidNodeId => [45.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidOffer => [46.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::InvalidRefund => [47.into_dart()].into_dart(), - crate::utils::error::LdkNodeError::UnsupportedCurrency => [48.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::TxSyncTimeout => [42.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::GossipUpdateTimeout => [43.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidOfferId => [44.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidNodeId => [45.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidOffer => [46.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidRefund => [47.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::UnsupportedCurrency => [48.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::UriParameterParsingFailed => { + [49.into_dart()].into_dart() + } + crate::utils::error::FfiNodeError::InvalidUri => [50.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidQuantity => [51.into_dart()].into_dart(), + crate::utils::error::FfiNodeError::InvalidNodeAlias => [52.into_dart()].into_dart(), _ => { unimplemented!(""); } @@ -4765,47 +5402,89 @@ impl flutter_rust_bridge::IntoDart for crate::utils::error::LdkNodeError { } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::utils::error::LdkNodeError + for crate::utils::error::FfiNodeError +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::utils::error::FfiNodeError +{ + fn into_into_dart(self) -> crate::utils::error::FfiNodeError { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::on_chain::FfiOnChainPayment { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.opaque.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::on_chain::FfiOnChainPayment +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::on_chain::FfiOnChainPayment +{ + fn into_into_dart(self) -> crate::api::on_chain::FfiOnChainPayment { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::spontaneous::FfiSpontaneousPayment { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.opaque.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::spontaneous::FfiSpontaneousPayment { } -impl flutter_rust_bridge::IntoIntoDart - for crate::utils::error::LdkNodeError +impl flutter_rust_bridge::IntoIntoDart + for crate::api::spontaneous::FfiSpontaneousPayment { - fn into_into_dart(self) -> crate::utils::error::LdkNodeError { + fn into_into_dart(self) -> crate::api::spontaneous::FfiSpontaneousPayment { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::on_chain::LdkOnChainPayment { +impl flutter_rust_bridge::IntoDart for crate::api::unified_qr::FfiUnifiedQrPayment { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() + [self.opaque.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::on_chain::LdkOnChainPayment + for crate::api::unified_qr::FfiUnifiedQrPayment { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::on_chain::LdkOnChainPayment +impl flutter_rust_bridge::IntoIntoDart + for crate::api::unified_qr::FfiUnifiedQrPayment { - fn into_into_dart(self) -> crate::api::on_chain::LdkOnChainPayment { + fn into_into_dart(self) -> crate::api::unified_qr::FfiUnifiedQrPayment { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::spontaneous::LdkSpontaneousPayment { +impl flutter_rust_bridge::IntoDart for crate::api::types::GossipSourceConfig { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.ptr.into_into_dart().into_dart()].into_dart() + match self { + crate::api::types::GossipSourceConfig::P2PNetwork => [0.into_dart()].into_dart(), + crate::api::types::GossipSourceConfig::RapidGossipSync(field0) => { + [1.into_dart(), field0.into_into_dart().into_dart()].into_dart() + } + _ => { + unimplemented!(""); + } + } } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::spontaneous::LdkSpontaneousPayment + for crate::api::types::GossipSourceConfig { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::spontaneous::LdkSpontaneousPayment +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::GossipSourceConfig { - fn into_into_dart(self) -> crate::api::spontaneous::LdkSpontaneousPayment { + fn into_into_dart(self) -> crate::api::types::GossipSourceConfig { self } } @@ -4817,11 +5496,27 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::LightningBalance { channel_id, counterparty_node_id, amount_satoshis, + transaction_fee_satoshis, + outbound_payment_htlc_rounded_msat, + outbound_forwarded_htlc_rounded_msat, + inbound_claiming_htlc_rounded_msat, + inbound_htlc_rounded_msat, } => [ 0.into_dart(), channel_id.into_into_dart().into_dart(), counterparty_node_id.into_into_dart().into_dart(), amount_satoshis.into_into_dart().into_dart(), + transaction_fee_satoshis.into_into_dart().into_dart(), + outbound_payment_htlc_rounded_msat + .into_into_dart() + .into_dart(), + outbound_forwarded_htlc_rounded_msat + .into_into_dart() + .into_dart(), + inbound_claiming_htlc_rounded_msat + .into_into_dart() + .into_dart(), + inbound_htlc_rounded_msat.into_into_dart().into_dart(), ] .into_dart(), crate::api::types::LightningBalance::ClaimableAwaitingConfirmations { @@ -4829,12 +5524,14 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::LightningBalance { counterparty_node_id, amount_satoshis, confirmation_height, + source, } => [ 1.into_dart(), channel_id.into_into_dart().into_dart(), counterparty_node_id.into_into_dart().into_dart(), amount_satoshis.into_into_dart().into_dart(), confirmation_height.into_into_dart().into_dart(), + source.into_into_dart().into_dart(), ] .into_dart(), crate::api::types::LightningBalance::ContentiousClaimable { @@ -4860,6 +5557,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::LightningBalance { amount_satoshis, claimable_height, payment_hash, + outbound_payment, } => [ 3.into_dart(), channel_id.into_into_dart().into_dart(), @@ -4867,6 +5565,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::LightningBalance { amount_satoshis.into_into_dart().into_dart(), claimable_height.into_into_dart().into_dart(), payment_hash.into_into_dart().into_dart(), + outbound_payment.into_into_dart().into_dart(), ] .into_dart(), crate::api::types::LightningBalance::MaybePreimageClaimableHTLC { @@ -5002,6 +5701,31 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::types::MaxTotalRoutingFeeLimit { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + match self { + crate::api::types::MaxTotalRoutingFeeLimit::NoFeeCap => [0.into_dart()].into_dart(), + crate::api::types::MaxTotalRoutingFeeLimit::FeeCap { amount_msat } => { + [1.into_dart(), amount_msat.into_into_dart().into_dart()].into_dart() + } + _ => { + unimplemented!(""); + } + } + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::types::MaxTotalRoutingFeeLimit +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::MaxTotalRoutingFeeLimit +{ + fn into_into_dart(self) -> crate::api::types::MaxTotalRoutingFeeLimit { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::types::Network { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { @@ -5020,6 +5744,20 @@ impl flutter_rust_bridge::IntoIntoDart for crate::ap } } // Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::types::NodeAlias { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::types::NodeAlias {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::NodeAlias +{ + fn into_into_dart(self) -> crate::api::types::NodeAlias { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::graph::NodeAnnouncementInfo { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [ @@ -5078,7 +5816,7 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::NodeStatus { self.is_running.into_into_dart().into_dart(), self.is_listening.into_into_dart().into_dart(), self.current_best_block.into_into_dart().into_dart(), - self.latest_wallet_sync_timestamp + self.latest_lightning_wallet_sync_timestamp .into_into_dart() .into_dart(), self.latest_onchain_wallet_sync_timestamp @@ -5093,6 +5831,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::NodeStatus { self.latest_node_announcement_broadcast_timestamp .into_into_dart() .into_dart(), + self.latest_channel_monitor_archival_height + .into_into_dart() + .into_dart(), ] .into_dart() } @@ -5203,6 +5944,9 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::PaymentFailureReason { Self::PaymentExpired => 3.into_dart(), Self::RouteNotFound => 4.into_dart(), Self::UnexpectedError => 5.into_dart(), + Self::UnknownRequiredFeatures => 6.into_dart(), + Self::InvoiceRequestExpired => 7.into_dart(), + Self::InvoiceRequestRejected => 8.into_dart(), _ => unreachable!(), } } @@ -5289,23 +6033,31 @@ impl flutter_rust_bridge::IntoDart for crate::api::types::PaymentKind { preimage, secret, offer_id, + payer_note, + quantity, } => [ 4.into_dart(), hash.into_into_dart().into_dart(), preimage.into_into_dart().into_dart(), secret.into_into_dart().into_dart(), offer_id.into_into_dart().into_dart(), + payer_note.into_into_dart().into_dart(), + quantity.into_into_dart().into_dart(), ] .into_dart(), crate::api::types::PaymentKind::Bolt12Refund { hash, preimage, secret, + payer_note, + quantity, } => [ 5.into_dart(), hash.into_into_dart().into_dart(), preimage.into_into_dart().into_dart(), secret.into_into_dart().into_dart(), + payer_note.into_into_dart().into_dart(), + quantity.into_into_dart().into_dart(), ] .into_dart(), _ => { @@ -5476,6 +6228,36 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::unified_qr::QrPaymentResult { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + match self { + crate::api::unified_qr::QrPaymentResult::Onchain { txid } => { + [0.into_dart(), txid.into_into_dart().into_dart()].into_dart() + } + crate::api::unified_qr::QrPaymentResult::Bolt11 { payment_id } => { + [1.into_dart(), payment_id.into_into_dart().into_dart()].into_dart() + } + crate::api::unified_qr::QrPaymentResult::Bolt12 { payment_id } => { + [2.into_dart(), payment_id.into_into_dart().into_dart()].into_dart() + } + _ => { + unimplemented!(""); + } + } + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::unified_qr::QrPaymentResult +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::unified_qr::QrPaymentResult +{ + fn into_into_dart(self) -> crate::api::unified_qr::QrPaymentResult { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::bolt12::Refund { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [self.s.into_into_dart().into_dart()].into_dart() @@ -5509,6 +6291,33 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::types::SendingParameters { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [ + self.max_total_routing_fee_msat.into_into_dart().into_dart(), + self.max_total_cltv_expiry_delta + .into_into_dart() + .into_dart(), + self.max_path_count.into_into_dart().into_dart(), + self.max_channel_saturation_power_of_half + .into_into_dart() + .into_dart(), + ] + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::types::SendingParameters +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::types::SendingParameters +{ + fn into_into_dart(self) -> crate::api::types::SendingParameters { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::types::SocketAddress { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { match self { @@ -5593,23 +6402,23 @@ impl flutter_rust_bridge::IntoIntoDart } } -impl SseEncode for NodeBuilder { +impl SseEncode for FfiBuilder { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for std::collections::HashMap { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.into_iter().collect(), serializer); } } -impl SseEncode for RustOpaqueNom { +impl SseEncode + for RustOpaqueNom> +{ // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -5618,9 +6427,7 @@ impl SseEncode for RustOpaqueNom { } } -impl SseEncode - for RustOpaqueNom> -{ +impl SseEncode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -5629,7 +6436,7 @@ impl SseEncode } } -impl SseEncode for RustOpaqueNom { +impl SseEncode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -5656,6 +6463,15 @@ impl SseEncode for RustOpaqueNom { } } +impl SseEncode for RustOpaqueNom { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -5674,6 +6490,15 @@ impl SseEncode for RustOpaqueNom { } } +impl SseEncode for RustOpaqueNom { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for String { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -5710,6 +6535,24 @@ impl SseEncode for crate::api::types::BalanceDetails { } } +impl SseEncode for crate::api::types::BalanceSource { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode( + match self { + crate::api::types::BalanceSource::HolderForceClosed => 0, + crate::api::types::BalanceSource::CounterpartyForceClosed => 1, + crate::api::types::BalanceSource::CoopClose => 2, + crate::api::types::BalanceSource::Htlc => 3, + _ => { + unimplemented!(""); + } + }, + serializer, + ); + } +} + impl SseEncode for crate::api::types::BestBlock { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -5776,9 +6619,25 @@ impl SseEncode for crate::api::types::ChainDataSourceConfig { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { match self { - crate::api::types::ChainDataSourceConfig::Esplora(field0) => { + crate::api::types::ChainDataSourceConfig::Esplora { + server_url, + sync_config, + } => { ::sse_encode(0, serializer); - ::sse_encode(field0, serializer); + ::sse_encode(server_url, serializer); + >::sse_encode(sync_config, serializer); + } + crate::api::types::ChainDataSourceConfig::BitcoindRpc { + rpc_host, + rpc_port, + rpc_user, + rpc_password, + } => { + ::sse_encode(1, serializer); + ::sse_encode(rpc_host, serializer); + ::sse_encode(rpc_port, serializer); + ::sse_encode(rpc_user, serializer); + ::sse_encode(rpc_password, serializer); } _ => { unimplemented!(""); @@ -5793,7 +6652,7 @@ impl SseEncode for crate::api::types::ChannelConfig { ::sse_encode(self.forwarding_fee_proportional_millionths, serializer); ::sse_encode(self.forwarding_fee_base_msat, serializer); ::sse_encode(self.cltv_expiry_delta, serializer); - >::sse_encode( + ::sse_encode( self.max_dust_htlc_exposure, serializer, ); @@ -5819,7 +6678,6 @@ impl SseEncode for crate::api::types::ChannelDetails { ::sse_encode(self.is_outbound, serializer); ::sse_encode(self.is_channel_ready, serializer); ::sse_encode(self.is_usable, serializer); - ::sse_encode(self.is_public, serializer); >::sse_encode(self.cltv_expiry_delta, serializer); ::sse_encode(self.counterparty_unspendable_punishment_reserve, serializer); >::sse_encode(self.counterparty_outbound_htlc_minimum_msat, serializer); @@ -5876,46 +6734,57 @@ impl SseEncode for crate::api::types::ClosureReason { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { match self { - crate::api::types::ClosureReason::CounterpartyForceClosed { peer_msg } => { + crate::api::types::ClosureReason::PeerFeerateTooLow { + peer_feerate_sat_per_kw, + required_feerate_sat_per_kw, + } => { ::sse_encode(0, serializer); - ::sse_encode(peer_msg, serializer); + ::sse_encode(peer_feerate_sat_per_kw, serializer); + ::sse_encode(required_feerate_sat_per_kw, serializer); } - crate::api::types::ClosureReason::HolderForceClosed => { + crate::api::types::ClosureReason::CounterpartyForceClosed { peer_msg } => { ::sse_encode(1, serializer); + ::sse_encode(peer_msg, serializer); } - crate::api::types::ClosureReason::LegacyCooperativeClosure => { + crate::api::types::ClosureReason::HolderForceClosed { + broadcasted_latest_txn, + } => { ::sse_encode(2, serializer); + >::sse_encode(broadcasted_latest_txn, serializer); } - crate::api::types::ClosureReason::CounterpartyInitiatedCooperativeClosure => { + crate::api::types::ClosureReason::LegacyCooperativeClosure => { ::sse_encode(3, serializer); } - crate::api::types::ClosureReason::LocallyInitiatedCooperativeClosure => { + crate::api::types::ClosureReason::CounterpartyInitiatedCooperativeClosure => { ::sse_encode(4, serializer); } - crate::api::types::ClosureReason::CommitmentTxConfirmed => { + crate::api::types::ClosureReason::LocallyInitiatedCooperativeClosure => { ::sse_encode(5, serializer); } - crate::api::types::ClosureReason::FundingTimedOut => { + crate::api::types::ClosureReason::CommitmentTxConfirmed => { ::sse_encode(6, serializer); } - crate::api::types::ClosureReason::ProcessingError { err } => { + crate::api::types::ClosureReason::FundingTimedOut => { ::sse_encode(7, serializer); + } + crate::api::types::ClosureReason::ProcessingError { err } => { + ::sse_encode(8, serializer); ::sse_encode(err, serializer); } crate::api::types::ClosureReason::DisconnectedPeer => { - ::sse_encode(8, serializer); + ::sse_encode(9, serializer); } crate::api::types::ClosureReason::OutdatedChannelManager => { - ::sse_encode(9, serializer); + ::sse_encode(10, serializer); } crate::api::types::ClosureReason::CounterpartyCoopClosedUnfundedChannel => { - ::sse_encode(10, serializer); + ::sse_encode(11, serializer); } crate::api::types::ClosureReason::FundingBatchClosure => { - ::sse_encode(11, serializer); + ::sse_encode(12, serializer); } crate::api::types::ClosureReason::HTLCsTimedOut => { - ::sse_encode(12, serializer); + ::sse_encode(13, serializer); } _ => { unimplemented!(""); @@ -5934,10 +6803,7 @@ impl SseEncode for crate::api::types::Config { self.listening_addresses, serializer, ); - ::sse_encode(self.default_cltv_expiry_delta, serializer); - ::sse_encode(self.onchain_wallet_sync_interval_secs, serializer); - ::sse_encode(self.wallet_sync_interval_secs, serializer); - ::sse_encode(self.fee_rate_cache_update_interval_secs, serializer); + >::sse_encode(self.node_alias, serializer); >::sse_encode(self.trusted_peers_0conf, serializer); ::sse_encode(self.probing_liquidity_limit_multiplier, serializer); ::sse_encode(self.log_level, serializer); @@ -5945,6 +6811,10 @@ impl SseEncode for crate::api::types::Config { self.anchor_channels_config, serializer, ); + >::sse_encode( + self.sending_parameters, + serializer, + ); } } @@ -6001,7 +6871,7 @@ impl SseEncode for crate::api::types::EntropySourceConfig { passphrase, } => { ::sse_encode(2, serializer); - ::sse_encode(mnemonic, serializer); + ::sse_encode(mnemonic, serializer); >::sse_encode(passphrase, serializer); } _ => { @@ -6011,6 +6881,15 @@ impl SseEncode for crate::api::types::EntropySourceConfig { } } +impl SseEncode for crate::api::types::EsploraSyncConfig { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.onchain_wallet_sync_interval_secs, serializer); + ::sse_encode(self.lightning_wallet_sync_interval_secs, serializer); + ::sse_encode(self.fee_rate_cache_update_interval_secs, serializer); + } +} + impl SseEncode for crate::api::types::Event { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -6044,7 +6923,7 @@ impl SseEncode for crate::api::types::Event { } => { ::sse_encode(2, serializer); >::sse_encode(payment_id, serializer); - ::sse_encode(payment_hash, serializer); + >::sse_encode(payment_hash, serializer); >::sse_encode(reason, serializer); } crate::api::types::Event::PaymentReceived { @@ -6106,63 +6985,39 @@ impl SseEncode for crate::api::types::Event { } } -impl SseEncode for crate::api::types::GossipSourceConfig { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - match self { - crate::api::types::GossipSourceConfig::P2PNetwork => { - ::sse_encode(0, serializer); - } - crate::api::types::GossipSourceConfig::RapidGossipSync(field0) => { - ::sse_encode(1, serializer); - ::sse_encode(field0, serializer); - } - _ => { - unimplemented!(""); - } - } - } -} - -impl SseEncode for i32 { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - serializer.cursor.write_i32::(self).unwrap(); - } -} - -impl SseEncode for crate::api::bolt11::LdkBolt11Payment { +impl SseEncode for crate::api::bolt11::FfiBolt11Payment { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >::sse_encode(self.ptr, serializer); + >::sse_encode(self.opaque, serializer); } } -impl SseEncode for crate::api::bolt12::LdkBolt12Payment { +impl SseEncode for crate::api::bolt12::FfiBolt12Payment { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(self.ptr, serializer); + >::sse_encode(self.opaque, serializer); } } -impl SseEncode for crate::utils::error::LdkBuilderError { +impl SseEncode for crate::utils::error::FfiBuilderError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode( match self { - crate::utils::error::LdkBuilderError::SocketAddressParseError => 0, - crate::utils::error::LdkBuilderError::InvalidSeedBytes => 1, - crate::utils::error::LdkBuilderError::InvalidSeedFile => 2, - crate::utils::error::LdkBuilderError::InvalidSystemTime => 3, - crate::utils::error::LdkBuilderError::InvalidChannelMonitor => 4, - crate::utils::error::LdkBuilderError::InvalidListeningAddress => 5, - crate::utils::error::LdkBuilderError::ReadFailed => 6, - crate::utils::error::LdkBuilderError::WriteFailed => 7, - crate::utils::error::LdkBuilderError::StoragePathAccessFailed => 8, - crate::utils::error::LdkBuilderError::KVStoreSetupFailed => 9, - crate::utils::error::LdkBuilderError::WalletSetupFailed => 10, - crate::utils::error::LdkBuilderError::LoggerSetupFailed => 11, - crate::utils::error::LdkBuilderError::InvalidPublicKey => 12, + crate::utils::error::FfiBuilderError::InvalidNodeAlias => 0, + crate::utils::error::FfiBuilderError::SocketAddressParseError => 1, + crate::utils::error::FfiBuilderError::InvalidSeedBytes => 2, + crate::utils::error::FfiBuilderError::InvalidSeedFile => 3, + crate::utils::error::FfiBuilderError::InvalidSystemTime => 4, + crate::utils::error::FfiBuilderError::InvalidChannelMonitor => 5, + crate::utils::error::FfiBuilderError::InvalidListeningAddress => 6, + crate::utils::error::FfiBuilderError::ReadFailed => 7, + crate::utils::error::FfiBuilderError::WriteFailed => 8, + crate::utils::error::FfiBuilderError::StoragePathAccessFailed => 9, + crate::utils::error::FfiBuilderError::KVStoreSetupFailed => 10, + crate::utils::error::FfiBuilderError::WalletSetupFailed => 11, + crate::utils::error::FfiBuilderError::LoggerSetupFailed => 12, + crate::utils::error::FfiBuilderError::InvalidPublicKey => 13, _ => { unimplemented!(""); } @@ -6172,180 +7027,192 @@ impl SseEncode for crate::utils::error::LdkBuilderError { } } -impl SseEncode for crate::api::builder::LdkMnemonic { +impl SseEncode for crate::api::builder::FfiMnemonic { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.seed_phrase, serializer); } } -impl SseEncode for crate::api::graph::LdkNetworkGraph { +impl SseEncode for crate::api::graph::FfiNetworkGraph { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >::sse_encode(self.ptr, serializer); + >::sse_encode(self.opaque, serializer); } } -impl SseEncode for crate::api::node::LdkNode { +impl SseEncode for crate::api::node::FfiNode { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >::sse_encode(self.ptr, serializer); + >::sse_encode(self.opaque, serializer); } } -impl SseEncode for crate::utils::error::LdkNodeError { +impl SseEncode for crate::utils::error::FfiNodeError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { match self { - crate::utils::error::LdkNodeError::InvalidTxid => { + crate::utils::error::FfiNodeError::InvalidTxid => { ::sse_encode(0, serializer); } - crate::utils::error::LdkNodeError::AlreadyRunning => { + crate::utils::error::FfiNodeError::AlreadyRunning => { ::sse_encode(1, serializer); } - crate::utils::error::LdkNodeError::NotRunning => { + crate::utils::error::FfiNodeError::NotRunning => { ::sse_encode(2, serializer); } - crate::utils::error::LdkNodeError::OnchainTxCreationFailed => { + crate::utils::error::FfiNodeError::OnchainTxCreationFailed => { ::sse_encode(3, serializer); } - crate::utils::error::LdkNodeError::ConnectionFailed => { + crate::utils::error::FfiNodeError::ConnectionFailed => { ::sse_encode(4, serializer); } - crate::utils::error::LdkNodeError::InvoiceCreationFailed => { + crate::utils::error::FfiNodeError::InvoiceCreationFailed => { ::sse_encode(5, serializer); } - crate::utils::error::LdkNodeError::PaymentSendingFailed => { + crate::utils::error::FfiNodeError::PaymentSendingFailed => { ::sse_encode(6, serializer); } - crate::utils::error::LdkNodeError::ProbeSendingFailed => { + crate::utils::error::FfiNodeError::ProbeSendingFailed => { ::sse_encode(7, serializer); } - crate::utils::error::LdkNodeError::ChannelCreationFailed => { + crate::utils::error::FfiNodeError::ChannelCreationFailed => { ::sse_encode(8, serializer); } - crate::utils::error::LdkNodeError::ChannelClosingFailed => { + crate::utils::error::FfiNodeError::ChannelClosingFailed => { ::sse_encode(9, serializer); } - crate::utils::error::LdkNodeError::ChannelConfigUpdateFailed => { + crate::utils::error::FfiNodeError::ChannelConfigUpdateFailed => { ::sse_encode(10, serializer); } - crate::utils::error::LdkNodeError::PersistenceFailed => { + crate::utils::error::FfiNodeError::PersistenceFailed => { ::sse_encode(11, serializer); } - crate::utils::error::LdkNodeError::WalletOperationFailed => { + crate::utils::error::FfiNodeError::WalletOperationFailed => { ::sse_encode(12, serializer); } - crate::utils::error::LdkNodeError::OnchainTxSigningFailed => { + crate::utils::error::FfiNodeError::OnchainTxSigningFailed => { ::sse_encode(13, serializer); } - crate::utils::error::LdkNodeError::MessageSigningFailed => { + crate::utils::error::FfiNodeError::MessageSigningFailed => { ::sse_encode(14, serializer); } - crate::utils::error::LdkNodeError::TxSyncFailed => { + crate::utils::error::FfiNodeError::TxSyncFailed => { ::sse_encode(15, serializer); } - crate::utils::error::LdkNodeError::GossipUpdateFailed => { + crate::utils::error::FfiNodeError::GossipUpdateFailed => { ::sse_encode(16, serializer); } - crate::utils::error::LdkNodeError::InvalidAddress => { + crate::utils::error::FfiNodeError::InvalidAddress => { ::sse_encode(17, serializer); } - crate::utils::error::LdkNodeError::InvalidSocketAddress => { + crate::utils::error::FfiNodeError::InvalidSocketAddress => { ::sse_encode(18, serializer); } - crate::utils::error::LdkNodeError::InvalidPublicKey => { + crate::utils::error::FfiNodeError::InvalidPublicKey => { ::sse_encode(19, serializer); } - crate::utils::error::LdkNodeError::InvalidSecretKey => { + crate::utils::error::FfiNodeError::InvalidSecretKey => { ::sse_encode(20, serializer); } - crate::utils::error::LdkNodeError::InvalidPaymentHash => { + crate::utils::error::FfiNodeError::InvalidPaymentHash => { ::sse_encode(21, serializer); } - crate::utils::error::LdkNodeError::InvalidPaymentPreimage => { + crate::utils::error::FfiNodeError::InvalidPaymentPreimage => { ::sse_encode(22, serializer); } - crate::utils::error::LdkNodeError::InvalidPaymentSecret => { + crate::utils::error::FfiNodeError::InvalidPaymentSecret => { ::sse_encode(23, serializer); } - crate::utils::error::LdkNodeError::InvalidAmount => { + crate::utils::error::FfiNodeError::InvalidAmount => { ::sse_encode(24, serializer); } - crate::utils::error::LdkNodeError::InvalidInvoice => { + crate::utils::error::FfiNodeError::InvalidInvoice => { ::sse_encode(25, serializer); } - crate::utils::error::LdkNodeError::InvalidChannelId => { + crate::utils::error::FfiNodeError::InvalidChannelId => { ::sse_encode(26, serializer); } - crate::utils::error::LdkNodeError::InvalidNetwork => { + crate::utils::error::FfiNodeError::InvalidNetwork => { ::sse_encode(27, serializer); } - crate::utils::error::LdkNodeError::DuplicatePayment => { + crate::utils::error::FfiNodeError::DuplicatePayment => { ::sse_encode(28, serializer); } - crate::utils::error::LdkNodeError::InsufficientFunds => { + crate::utils::error::FfiNodeError::InsufficientFunds => { ::sse_encode(29, serializer); } - crate::utils::error::LdkNodeError::FeerateEstimationUpdateFailed => { + crate::utils::error::FfiNodeError::FeerateEstimationUpdateFailed => { ::sse_encode(30, serializer); } - crate::utils::error::LdkNodeError::LiquidityRequestFailed => { + crate::utils::error::FfiNodeError::LiquidityRequestFailed => { ::sse_encode(31, serializer); } - crate::utils::error::LdkNodeError::LiquiditySourceUnavailable => { + crate::utils::error::FfiNodeError::LiquiditySourceUnavailable => { ::sse_encode(32, serializer); } - crate::utils::error::LdkNodeError::LiquidityFeeTooHigh => { + crate::utils::error::FfiNodeError::LiquidityFeeTooHigh => { ::sse_encode(33, serializer); } - crate::utils::error::LdkNodeError::InvalidPaymentId => { + crate::utils::error::FfiNodeError::InvalidPaymentId => { ::sse_encode(34, serializer); } - crate::utils::error::LdkNodeError::Decode(field0) => { + crate::utils::error::FfiNodeError::Decode(field0) => { ::sse_encode(35, serializer); ::sse_encode(field0, serializer); } - crate::utils::error::LdkNodeError::Bolt12Parse(field0) => { + crate::utils::error::FfiNodeError::Bolt12Parse(field0) => { ::sse_encode(36, serializer); ::sse_encode(field0, serializer); } - crate::utils::error::LdkNodeError::InvoiceRequestCreationFailed => { + crate::utils::error::FfiNodeError::InvoiceRequestCreationFailed => { ::sse_encode(37, serializer); } - crate::utils::error::LdkNodeError::OfferCreationFailed => { + crate::utils::error::FfiNodeError::OfferCreationFailed => { ::sse_encode(38, serializer); } - crate::utils::error::LdkNodeError::RefundCreationFailed => { + crate::utils::error::FfiNodeError::RefundCreationFailed => { ::sse_encode(39, serializer); } - crate::utils::error::LdkNodeError::FeerateEstimationUpdateTimeout => { + crate::utils::error::FfiNodeError::FeerateEstimationUpdateTimeout => { ::sse_encode(40, serializer); } - crate::utils::error::LdkNodeError::WalletOperationTimeout => { + crate::utils::error::FfiNodeError::WalletOperationTimeout => { ::sse_encode(41, serializer); } - crate::utils::error::LdkNodeError::TxSyncTimeout => { + crate::utils::error::FfiNodeError::TxSyncTimeout => { ::sse_encode(42, serializer); } - crate::utils::error::LdkNodeError::GossipUpdateTimeout => { + crate::utils::error::FfiNodeError::GossipUpdateTimeout => { ::sse_encode(43, serializer); } - crate::utils::error::LdkNodeError::InvalidOfferId => { + crate::utils::error::FfiNodeError::InvalidOfferId => { ::sse_encode(44, serializer); } - crate::utils::error::LdkNodeError::InvalidNodeId => { + crate::utils::error::FfiNodeError::InvalidNodeId => { ::sse_encode(45, serializer); } - crate::utils::error::LdkNodeError::InvalidOffer => { + crate::utils::error::FfiNodeError::InvalidOffer => { ::sse_encode(46, serializer); } - crate::utils::error::LdkNodeError::InvalidRefund => { + crate::utils::error::FfiNodeError::InvalidRefund => { ::sse_encode(47, serializer); } - crate::utils::error::LdkNodeError::UnsupportedCurrency => { + crate::utils::error::FfiNodeError::UnsupportedCurrency => { ::sse_encode(48, serializer); } + crate::utils::error::FfiNodeError::UriParameterParsingFailed => { + ::sse_encode(49, serializer); + } + crate::utils::error::FfiNodeError::InvalidUri => { + ::sse_encode(50, serializer); + } + crate::utils::error::FfiNodeError::InvalidQuantity => { + ::sse_encode(51, serializer); + } + crate::utils::error::FfiNodeError::InvalidNodeAlias => { + ::sse_encode(52, serializer); + } _ => { unimplemented!(""); } @@ -6353,17 +7220,49 @@ impl SseEncode for crate::utils::error::LdkNodeError { } } -impl SseEncode for crate::api::on_chain::LdkOnChainPayment { +impl SseEncode for crate::api::on_chain::FfiOnChainPayment { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >::sse_encode(self.opaque, serializer); + } +} + +impl SseEncode for crate::api::spontaneous::FfiSpontaneousPayment { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >::sse_encode(self.opaque, serializer); + } +} + +impl SseEncode for crate::api::unified_qr::FfiUnifiedQrPayment { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >::sse_encode(self.opaque, serializer); + } +} + +impl SseEncode for crate::api::types::GossipSourceConfig { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >::sse_encode(self.ptr, serializer); + match self { + crate::api::types::GossipSourceConfig::P2PNetwork => { + ::sse_encode(0, serializer); + } + crate::api::types::GossipSourceConfig::RapidGossipSync(field0) => { + ::sse_encode(1, serializer); + ::sse_encode(field0, serializer); + } + _ => { + unimplemented!(""); + } + } } } -impl SseEncode for crate::api::spontaneous::LdkSpontaneousPayment { +impl SseEncode for i32 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >::sse_encode(self.ptr, serializer); + serializer.cursor.write_i32::(self).unwrap(); } } @@ -6375,23 +7274,35 @@ impl SseEncode for crate::api::types::LightningBalance { channel_id, counterparty_node_id, amount_satoshis, + transaction_fee_satoshis, + outbound_payment_htlc_rounded_msat, + outbound_forwarded_htlc_rounded_msat, + inbound_claiming_htlc_rounded_msat, + inbound_htlc_rounded_msat, } => { ::sse_encode(0, serializer); ::sse_encode(channel_id, serializer); ::sse_encode(counterparty_node_id, serializer); ::sse_encode(amount_satoshis, serializer); + ::sse_encode(transaction_fee_satoshis, serializer); + ::sse_encode(outbound_payment_htlc_rounded_msat, serializer); + ::sse_encode(outbound_forwarded_htlc_rounded_msat, serializer); + ::sse_encode(inbound_claiming_htlc_rounded_msat, serializer); + ::sse_encode(inbound_htlc_rounded_msat, serializer); } crate::api::types::LightningBalance::ClaimableAwaitingConfirmations { channel_id, counterparty_node_id, amount_satoshis, confirmation_height, + source, } => { ::sse_encode(1, serializer); ::sse_encode(channel_id, serializer); ::sse_encode(counterparty_node_id, serializer); ::sse_encode(amount_satoshis, serializer); ::sse_encode(confirmation_height, serializer); + ::sse_encode(source, serializer); } crate::api::types::LightningBalance::ContentiousClaimable { channel_id, @@ -6415,6 +7326,7 @@ impl SseEncode for crate::api::types::LightningBalance { amount_satoshis, claimable_height, payment_hash, + outbound_payment, } => { ::sse_encode(3, serializer); ::sse_encode(channel_id, serializer); @@ -6422,6 +7334,7 @@ impl SseEncode for crate::api::types::LightningBalance { ::sse_encode(amount_satoshis, serializer); ::sse_encode(claimable_height, serializer); ::sse_encode(payment_hash, serializer); + ::sse_encode(outbound_payment, serializer); } crate::api::types::LightningBalance::MaybePreimageClaimableHTLC { channel_id, @@ -6555,6 +7468,16 @@ impl SseEncode for Vec { } } +impl SseEncode for Vec<(String, String)> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.len() as _, serializer); + for item in self { + <(String, String)>::sse_encode(item, serializer); + } + } +} + impl SseEncode for Vec { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -6612,6 +7535,24 @@ impl SseEncode for crate::api::types::MaxDustHTLCExposure { } } +impl SseEncode for crate::api::types::MaxTotalRoutingFeeLimit { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + match self { + crate::api::types::MaxTotalRoutingFeeLimit::NoFeeCap => { + ::sse_encode(0, serializer); + } + crate::api::types::MaxTotalRoutingFeeLimit::FeeCap { amount_msat } => { + ::sse_encode(1, serializer); + ::sse_encode(amount_msat, serializer); + } + _ => { + unimplemented!(""); + } + } + } +} + impl SseEncode for crate::api::types::Network { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -6630,6 +7571,13 @@ impl SseEncode for crate::api::types::Network { } } +impl SseEncode for crate::api::types::NodeAlias { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + <[u8; 32]>::sse_encode(self.0, serializer); + } +} + impl SseEncode for crate::api::graph::NodeAnnouncementInfo { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -6663,7 +7611,7 @@ impl SseEncode for crate::api::types::NodeStatus { ::sse_encode(self.is_running, serializer); ::sse_encode(self.is_listening, serializer); ::sse_encode(self.current_best_block, serializer); - >::sse_encode(self.latest_wallet_sync_timestamp, serializer); + >::sse_encode(self.latest_lightning_wallet_sync_timestamp, serializer); >::sse_encode(self.latest_onchain_wallet_sync_timestamp, serializer); >::sse_encode(self.latest_fee_rate_cache_update_timestamp, serializer); >::sse_encode(self.latest_rgs_snapshot_timestamp, serializer); @@ -6671,6 +7619,7 @@ impl SseEncode for crate::api::types::NodeStatus { self.latest_node_announcement_broadcast_timestamp, serializer, ); + >::sse_encode(self.latest_channel_monitor_archival_height, serializer); } } @@ -6708,6 +7657,16 @@ impl SseEncode for Option { } } +impl SseEncode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.is_some(), serializer); + if let Some(value) = self { + ::sse_encode(value, serializer); + } + } +} + impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -6778,6 +7737,16 @@ impl SseEncode for Option { } } +impl SseEncode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.is_some(), serializer); + if let Some(value) = self { + ::sse_encode(value, serializer); + } + } +} + impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -6808,12 +7777,22 @@ impl SseEncode for Option { } } -impl SseEncode for Option { +impl SseEncode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.is_some(), serializer); + if let Some(value) = self { + ::sse_encode(value, serializer); + } + } +} + +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } @@ -6918,6 +7897,16 @@ impl SseEncode for Option { } } +impl SseEncode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.is_some(), serializer); + if let Some(value) = self { + ::sse_encode(value, serializer); + } + } +} + impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -6948,6 +7937,16 @@ impl SseEncode for Option { } } +impl SseEncode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.is_some(), serializer); + if let Some(value) = self { + ::sse_encode(value, serializer); + } + } +} + impl SseEncode for Option> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -7005,6 +8004,9 @@ impl SseEncode for crate::api::types::PaymentFailureReason { crate::api::types::PaymentFailureReason::PaymentExpired => 3, crate::api::types::PaymentFailureReason::RouteNotFound => 4, crate::api::types::PaymentFailureReason::UnexpectedError => 5, + crate::api::types::PaymentFailureReason::UnknownRequiredFeatures => 6, + crate::api::types::PaymentFailureReason::InvoiceRequestExpired => 7, + crate::api::types::PaymentFailureReason::InvoiceRequestRejected => 8, _ => { unimplemented!(""); } @@ -7067,22 +8069,30 @@ impl SseEncode for crate::api::types::PaymentKind { preimage, secret, offer_id, + payer_note, + quantity, } => { ::sse_encode(4, serializer); >::sse_encode(hash, serializer); >::sse_encode(preimage, serializer); >::sse_encode(secret, serializer); ::sse_encode(offer_id, serializer); + >::sse_encode(payer_note, serializer); + >::sse_encode(quantity, serializer); } crate::api::types::PaymentKind::Bolt12Refund { hash, preimage, secret, + payer_note, + quantity, } => { ::sse_encode(5, serializer); >::sse_encode(hash, serializer); >::sse_encode(preimage, serializer); >::sse_encode(secret, serializer); + >::sse_encode(payer_note, serializer); + >::sse_encode(quantity, serializer); } _ => { unimplemented!(""); @@ -7183,6 +8193,29 @@ impl SseEncode for crate::api::types::PublicKey { } } +impl SseEncode for crate::api::unified_qr::QrPaymentResult { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + match self { + crate::api::unified_qr::QrPaymentResult::Onchain { txid } => { + ::sse_encode(0, serializer); + ::sse_encode(txid, serializer); + } + crate::api::unified_qr::QrPaymentResult::Bolt11 { payment_id } => { + ::sse_encode(1, serializer); + ::sse_encode(payment_id, serializer); + } + crate::api::unified_qr::QrPaymentResult::Bolt12 { payment_id } => { + ::sse_encode(2, serializer); + ::sse_encode(payment_id, serializer); + } + _ => { + unimplemented!(""); + } + } + } +} + impl SseEncode for ( crate::api::types::SocketAddress, @@ -7198,6 +8231,14 @@ impl SseEncode } } +impl SseEncode for (String, String) { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.0, serializer); + ::sse_encode(self.1, serializer); + } +} + impl SseEncode for crate::api::bolt12::Refund { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -7213,6 +8254,19 @@ impl SseEncode for crate::api::graph::RoutingFees { } } +impl SseEncode for crate::api::types::SendingParameters { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >::sse_encode( + self.max_total_routing_fee_msat, + serializer, + ); + >::sse_encode(self.max_total_cltv_expiry_delta, serializer); + >::sse_encode(self.max_path_count, serializer); + >::sse_encode(self.max_channel_saturation_power_of_half, serializer); + } +} + impl SseEncode for crate::api::types::SocketAddress { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -7378,7 +8432,4922 @@ impl SseEncode for usize { } #[cfg(not(target_family = "wasm"))] -#[path = "frb_generated.io.rs"] -mod io; +mod io { + // This file is automatically generated, so please do not edit it. + // @generated by `flutter_rust_bridge`@ 2.4.0. + + // Section: imports + + use super::*; + use crate::api::builder::*; + use crate::*; + use flutter_rust_bridge::for_generated::byteorder::{ + NativeEndian, ReadBytesExt, WriteBytesExt, + }; + use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; + use flutter_rust_bridge::{Handler, IntoIntoDart}; + + // Section: boilerplate + + flutter_rust_bridge::frb_generated_boilerplate_io!(); + + // Section: dart2rust + + impl CstDecode for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> FfiBuilder { + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) + } + } + impl CstDecode> + for *mut wire_cst_list_record_string_string + { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> std::collections::HashMap { + let vec: Vec<(String, String)> = self.cst_decode(); + vec.into_iter().collect() + } + } + impl + CstDecode< + RustOpaqueNom>, + > for usize + { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode( + self, + ) -> RustOpaqueNom> + { + unsafe { decode_rust_opaque_nom(self as _) } + } + } + impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + unsafe { decode_rust_opaque_nom(self as _) } + } + } + impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + unsafe { decode_rust_opaque_nom(self as _) } + } + } + impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + unsafe { decode_rust_opaque_nom(self as _) } + } + } + impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + unsafe { decode_rust_opaque_nom(self as _) } + } + } + impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + unsafe { decode_rust_opaque_nom(self as _) } + } + } + impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + unsafe { decode_rust_opaque_nom(self as _) } + } + } + impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + unsafe { decode_rust_opaque_nom(self as _) } + } + } + impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + unsafe { decode_rust_opaque_nom(self as _) } + } + } + impl CstDecode for *mut wire_cst_list_prim_u_8_strict { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> String { + let vec: Vec = self.cst_decode(); + String::from_utf8(vec).unwrap() + } + } + impl CstDecode for wire_cst_address { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::Address { + crate::api::types::Address { + s: self.s.cst_decode(), + } + } + } + impl CstDecode for wire_cst_anchor_channels_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::AnchorChannelsConfig { + crate::api::types::AnchorChannelsConfig { + trusted_peers_no_reserve: self.trusted_peers_no_reserve.cst_decode(), + per_channel_reserve_sats: self.per_channel_reserve_sats.cst_decode(), + } + } + } + impl CstDecode for wire_cst_balance_details { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::BalanceDetails { + crate::api::types::BalanceDetails { + total_onchain_balance_sats: self.total_onchain_balance_sats.cst_decode(), + spendable_onchain_balance_sats: self.spendable_onchain_balance_sats.cst_decode(), + total_lightning_balance_sats: self.total_lightning_balance_sats.cst_decode(), + lightning_balances: self.lightning_balances.cst_decode(), + pending_balances_from_channel_closures: self + .pending_balances_from_channel_closures + .cst_decode(), + } + } + } + impl CstDecode for wire_cst_best_block { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::BestBlock { + crate::api::types::BestBlock { + block_hash: self.block_hash.cst_decode(), + height: self.height.cst_decode(), + } + } + } + impl CstDecode for wire_cst_bolt_11_invoice { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt11::Bolt11Invoice { + crate::api::bolt11::Bolt11Invoice { + signed_raw_invoice: self.signed_raw_invoice.cst_decode(), + } + } + } + impl CstDecode for wire_cst_bolt_12_invoice { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt12::Bolt12Invoice { + crate::api::bolt12::Bolt12Invoice { + data: self.data.cst_decode(), + } + } + } + impl CstDecode for wire_cst_bolt_12_parse_error { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::utils::error::Bolt12ParseError { + match self.tag { + 0 => crate::utils::error::Bolt12ParseError::InvalidContinuation, + 1 => crate::utils::error::Bolt12ParseError::InvalidBech32Hrp, + 2 => { + let ans = unsafe { self.kind.Bech32 }; + crate::utils::error::Bolt12ParseError::Bech32(ans.field0.cst_decode()) + } + 3 => { + let ans = unsafe { self.kind.Decode }; + crate::utils::error::Bolt12ParseError::Decode(ans.field0.cst_decode()) + } + 4 => { + let ans = unsafe { self.kind.InvalidSemantics }; + crate::utils::error::Bolt12ParseError::InvalidSemantics(ans.field0.cst_decode()) + } + 5 => { + let ans = unsafe { self.kind.InvalidSignature }; + crate::utils::error::Bolt12ParseError::InvalidSignature(ans.field0.cst_decode()) + } + _ => unreachable!(), + } + } + } + impl CstDecode for *mut wire_cst_address { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::Address { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_anchor_channels_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::AnchorChannelsConfig { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_bolt_11_invoice { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt11::Bolt11Invoice { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_bolt_12_parse_error { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::utils::error::Bolt12ParseError { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut bool { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> bool { + unsafe { *flutter_rust_bridge::for_generated::box_from_leak_ptr(self) } + } + } + impl CstDecode + for *mut wire_cst_chain_data_source_config + { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::ChainDataSourceConfig { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_channel_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::ChannelConfig { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_channel_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::ChannelId { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_channel_info { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::ChannelInfo { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_channel_update_info { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::ChannelUpdateInfo { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_closure_reason { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::ClosureReason { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::Config { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_decode_error { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::utils::error::DecodeError { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_entropy_source_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::EntropySourceConfig { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_esplora_sync_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::EsploraSyncConfig { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_event { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::Event { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_ffi_bolt_11_payment { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt11::FfiBolt11Payment { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_ffi_bolt_12_payment { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt12::FfiBolt12Payment { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_ffi_mnemonic { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::builder::FfiMnemonic { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_ffi_network_graph { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::FfiNetworkGraph { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_ffi_node { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::node::FfiNode { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_ffi_on_chain_payment { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::on_chain::FfiOnChainPayment { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode + for *mut wire_cst_ffi_spontaneous_payment + { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::spontaneous::FfiSpontaneousPayment { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode + for *mut wire_cst_ffi_unified_qr_payment + { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::unified_qr::FfiUnifiedQrPayment { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_gossip_source_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::GossipSourceConfig { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_liquidity_source_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::LiquiditySourceConfig { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_lsp_fee_limits { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::LSPFeeLimits { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode + for *mut wire_cst_max_total_routing_fee_limit + { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::MaxTotalRoutingFeeLimit { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_node_alias { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::NodeAlias { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_node_announcement_info { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::NodeAnnouncementInfo { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_node_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::NodeId { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_node_info { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::NodeInfo { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_offer { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt12::Offer { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_offer_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::OfferId { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_out_point { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::OutPoint { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_payment_details { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentDetails { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut i32 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentFailureReason { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_payment_hash { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentHash { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_payment_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentId { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_payment_preimage { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentPreimage { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_payment_secret { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentSecret { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_public_key { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PublicKey { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_refund { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt12::Refund { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_sending_parameters { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::SendingParameters { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_socket_address { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::SocketAddress { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut wire_cst_txid { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::Txid { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for *mut u16 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> u16 { + unsafe { *flutter_rust_bridge::for_generated::box_from_leak_ptr(self) } + } + } + impl CstDecode for *mut u32 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> u32 { + unsafe { *flutter_rust_bridge::for_generated::box_from_leak_ptr(self) } + } + } + impl CstDecode for *mut u64 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> u64 { + unsafe { *flutter_rust_bridge::for_generated::box_from_leak_ptr(self) } + } + } + impl CstDecode for *mut u8 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> u8 { + unsafe { *flutter_rust_bridge::for_generated::box_from_leak_ptr(self) } + } + } + impl CstDecode for *mut wire_cst_user_channel_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::UserChannelId { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } + } + impl CstDecode for wire_cst_chain_data_source_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::ChainDataSourceConfig { + match self.tag { + 0 => { + let ans = unsafe { self.kind.Esplora }; + crate::api::types::ChainDataSourceConfig::Esplora { + server_url: ans.server_url.cst_decode(), + sync_config: ans.sync_config.cst_decode(), + } + } + 1 => { + let ans = unsafe { self.kind.BitcoindRpc }; + crate::api::types::ChainDataSourceConfig::BitcoindRpc { + rpc_host: ans.rpc_host.cst_decode(), + rpc_port: ans.rpc_port.cst_decode(), + rpc_user: ans.rpc_user.cst_decode(), + rpc_password: ans.rpc_password.cst_decode(), + } + } + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_channel_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::ChannelConfig { + crate::api::types::ChannelConfig { + forwarding_fee_proportional_millionths: self + .forwarding_fee_proportional_millionths + .cst_decode(), + forwarding_fee_base_msat: self.forwarding_fee_base_msat.cst_decode(), + cltv_expiry_delta: self.cltv_expiry_delta.cst_decode(), + max_dust_htlc_exposure: self.max_dust_htlc_exposure.cst_decode(), + force_close_avoidance_max_fee_satoshis: self + .force_close_avoidance_max_fee_satoshis + .cst_decode(), + accept_underpaying_htlcs: self.accept_underpaying_htlcs.cst_decode(), + } + } + } + impl CstDecode for wire_cst_channel_details { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::ChannelDetails { + crate::api::types::ChannelDetails { + channel_id: self.channel_id.cst_decode(), + counterparty_node_id: self.counterparty_node_id.cst_decode(), + funding_txo: self.funding_txo.cst_decode(), + channel_value_sats: self.channel_value_sats.cst_decode(), + unspendable_punishment_reserve: self.unspendable_punishment_reserve.cst_decode(), + user_channel_id: self.user_channel_id.cst_decode(), + feerate_sat_per_1000_weight: self.feerate_sat_per_1000_weight.cst_decode(), + outbound_capacity_msat: self.outbound_capacity_msat.cst_decode(), + inbound_capacity_msat: self.inbound_capacity_msat.cst_decode(), + confirmations_required: self.confirmations_required.cst_decode(), + confirmations: self.confirmations.cst_decode(), + is_outbound: self.is_outbound.cst_decode(), + is_channel_ready: self.is_channel_ready.cst_decode(), + is_usable: self.is_usable.cst_decode(), + cltv_expiry_delta: self.cltv_expiry_delta.cst_decode(), + counterparty_unspendable_punishment_reserve: self + .counterparty_unspendable_punishment_reserve + .cst_decode(), + counterparty_outbound_htlc_minimum_msat: self + .counterparty_outbound_htlc_minimum_msat + .cst_decode(), + counterparty_outbound_htlc_maximum_msat: self + .counterparty_outbound_htlc_maximum_msat + .cst_decode(), + counterparty_forwarding_info_fee_base_msat: self + .counterparty_forwarding_info_fee_base_msat + .cst_decode(), + counterparty_forwarding_info_fee_proportional_millionths: self + .counterparty_forwarding_info_fee_proportional_millionths + .cst_decode(), + counterparty_forwarding_info_cltv_expiry_delta: self + .counterparty_forwarding_info_cltv_expiry_delta + .cst_decode(), + next_outbound_htlc_limit_msat: self.next_outbound_htlc_limit_msat.cst_decode(), + next_outbound_htlc_minimum_msat: self.next_outbound_htlc_minimum_msat.cst_decode(), + force_close_spend_delay: self.force_close_spend_delay.cst_decode(), + inbound_htlc_minimum_msat: self.inbound_htlc_minimum_msat.cst_decode(), + inbound_htlc_maximum_msat: self.inbound_htlc_maximum_msat.cst_decode(), + config: self.config.cst_decode(), + } + } + } + impl CstDecode for wire_cst_channel_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::ChannelId { + crate::api::types::ChannelId { + data: self.data.cst_decode(), + } + } + } + impl CstDecode for wire_cst_channel_info { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::ChannelInfo { + crate::api::graph::ChannelInfo { + node_one: self.node_one.cst_decode(), + one_to_two: self.one_to_two.cst_decode(), + node_two: self.node_two.cst_decode(), + two_to_one: self.two_to_one.cst_decode(), + capacity_sats: self.capacity_sats.cst_decode(), + } + } + } + impl CstDecode for wire_cst_channel_update_info { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::ChannelUpdateInfo { + crate::api::graph::ChannelUpdateInfo { + last_update: self.last_update.cst_decode(), + enabled: self.enabled.cst_decode(), + cltv_expiry_delta: self.cltv_expiry_delta.cst_decode(), + htlc_minimum_msat: self.htlc_minimum_msat.cst_decode(), + htlc_maximum_msat: self.htlc_maximum_msat.cst_decode(), + fees: self.fees.cst_decode(), + } + } + } + impl CstDecode for wire_cst_closure_reason { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::ClosureReason { + match self.tag { + 0 => { + let ans = unsafe { self.kind.PeerFeerateTooLow }; + crate::api::types::ClosureReason::PeerFeerateTooLow { + peer_feerate_sat_per_kw: ans.peer_feerate_sat_per_kw.cst_decode(), + required_feerate_sat_per_kw: ans.required_feerate_sat_per_kw.cst_decode(), + } + } + 1 => { + let ans = unsafe { self.kind.CounterpartyForceClosed }; + crate::api::types::ClosureReason::CounterpartyForceClosed { + peer_msg: ans.peer_msg.cst_decode(), + } + } + 2 => { + let ans = unsafe { self.kind.HolderForceClosed }; + crate::api::types::ClosureReason::HolderForceClosed { + broadcasted_latest_txn: ans.broadcasted_latest_txn.cst_decode(), + } + } + 3 => crate::api::types::ClosureReason::LegacyCooperativeClosure, + 4 => crate::api::types::ClosureReason::CounterpartyInitiatedCooperativeClosure, + 5 => crate::api::types::ClosureReason::LocallyInitiatedCooperativeClosure, + 6 => crate::api::types::ClosureReason::CommitmentTxConfirmed, + 7 => crate::api::types::ClosureReason::FundingTimedOut, + 8 => { + let ans = unsafe { self.kind.ProcessingError }; + crate::api::types::ClosureReason::ProcessingError { + err: ans.err.cst_decode(), + } + } + 9 => crate::api::types::ClosureReason::DisconnectedPeer, + 10 => crate::api::types::ClosureReason::OutdatedChannelManager, + 11 => crate::api::types::ClosureReason::CounterpartyCoopClosedUnfundedChannel, + 12 => crate::api::types::ClosureReason::FundingBatchClosure, + 13 => crate::api::types::ClosureReason::HTLCsTimedOut, + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::Config { + crate::api::types::Config { + storage_dir_path: self.storage_dir_path.cst_decode(), + log_dir_path: self.log_dir_path.cst_decode(), + network: self.network.cst_decode(), + listening_addresses: self.listening_addresses.cst_decode(), + node_alias: self.node_alias.cst_decode(), + trusted_peers_0conf: self.trusted_peers_0conf.cst_decode(), + probing_liquidity_limit_multiplier: self + .probing_liquidity_limit_multiplier + .cst_decode(), + log_level: self.log_level.cst_decode(), + anchor_channels_config: self.anchor_channels_config.cst_decode(), + sending_parameters: self.sending_parameters.cst_decode(), + } + } + } + impl CstDecode for wire_cst_decode_error { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::utils::error::DecodeError { + match self.tag { + 0 => crate::utils::error::DecodeError::UnknownVersion, + 1 => crate::utils::error::DecodeError::UnknownRequiredFeature, + 2 => crate::utils::error::DecodeError::InvalidValue, + 3 => crate::utils::error::DecodeError::ShortRead, + 4 => crate::utils::error::DecodeError::BadLengthDescriptor, + 5 => { + let ans = unsafe { self.kind.Io }; + crate::utils::error::DecodeError::Io(ans.field0.cst_decode()) + } + 6 => crate::utils::error::DecodeError::UnsupportedCompression, + 7 => crate::utils::error::DecodeError::DangerousValue, + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_entropy_source_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::EntropySourceConfig { + match self.tag { + 0 => { + let ans = unsafe { self.kind.SeedFile }; + crate::api::types::EntropySourceConfig::SeedFile(ans.field0.cst_decode()) + } + 1 => { + let ans = unsafe { self.kind.SeedBytes }; + crate::api::types::EntropySourceConfig::SeedBytes(ans.field0.cst_decode()) + } + 2 => { + let ans = unsafe { self.kind.Bip39Mnemonic }; + crate::api::types::EntropySourceConfig::Bip39Mnemonic { + mnemonic: ans.mnemonic.cst_decode(), + passphrase: ans.passphrase.cst_decode(), + } + } + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_esplora_sync_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::EsploraSyncConfig { + crate::api::types::EsploraSyncConfig { + onchain_wallet_sync_interval_secs: self + .onchain_wallet_sync_interval_secs + .cst_decode(), + lightning_wallet_sync_interval_secs: self + .lightning_wallet_sync_interval_secs + .cst_decode(), + fee_rate_cache_update_interval_secs: self + .fee_rate_cache_update_interval_secs + .cst_decode(), + } + } + } + impl CstDecode for wire_cst_event { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::Event { + match self.tag { + 0 => { + let ans = unsafe { self.kind.PaymentClaimable }; + crate::api::types::Event::PaymentClaimable { + payment_id: ans.payment_id.cst_decode(), + payment_hash: ans.payment_hash.cst_decode(), + claimable_amount_msat: ans.claimable_amount_msat.cst_decode(), + claim_deadline: ans.claim_deadline.cst_decode(), + } + } + 1 => { + let ans = unsafe { self.kind.PaymentSuccessful }; + crate::api::types::Event::PaymentSuccessful { + payment_id: ans.payment_id.cst_decode(), + payment_hash: ans.payment_hash.cst_decode(), + fee_paid_msat: ans.fee_paid_msat.cst_decode(), + } + } + 2 => { + let ans = unsafe { self.kind.PaymentFailed }; + crate::api::types::Event::PaymentFailed { + payment_id: ans.payment_id.cst_decode(), + payment_hash: ans.payment_hash.cst_decode(), + reason: ans.reason.cst_decode(), + } + } + 3 => { + let ans = unsafe { self.kind.PaymentReceived }; + crate::api::types::Event::PaymentReceived { + payment_id: ans.payment_id.cst_decode(), + payment_hash: ans.payment_hash.cst_decode(), + amount_msat: ans.amount_msat.cst_decode(), + } + } + 4 => { + let ans = unsafe { self.kind.ChannelPending }; + crate::api::types::Event::ChannelPending { + channel_id: ans.channel_id.cst_decode(), + user_channel_id: ans.user_channel_id.cst_decode(), + former_temporary_channel_id: ans.former_temporary_channel_id.cst_decode(), + counterparty_node_id: ans.counterparty_node_id.cst_decode(), + funding_txo: ans.funding_txo.cst_decode(), + } + } + 5 => { + let ans = unsafe { self.kind.ChannelReady }; + crate::api::types::Event::ChannelReady { + channel_id: ans.channel_id.cst_decode(), + user_channel_id: ans.user_channel_id.cst_decode(), + counterparty_node_id: ans.counterparty_node_id.cst_decode(), + } + } + 6 => { + let ans = unsafe { self.kind.ChannelClosed }; + crate::api::types::Event::ChannelClosed { + channel_id: ans.channel_id.cst_decode(), + user_channel_id: ans.user_channel_id.cst_decode(), + counterparty_node_id: ans.counterparty_node_id.cst_decode(), + reason: ans.reason.cst_decode(), + } + } + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_ffi_bolt_11_payment { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt11::FfiBolt11Payment { + crate::api::bolt11::FfiBolt11Payment { + opaque: self.opaque.cst_decode(), + } + } + } + impl CstDecode for wire_cst_ffi_bolt_12_payment { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt12::FfiBolt12Payment { + crate::api::bolt12::FfiBolt12Payment { + opaque: self.opaque.cst_decode(), + } + } + } + impl CstDecode for wire_cst_ffi_mnemonic { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::builder::FfiMnemonic { + crate::api::builder::FfiMnemonic { + seed_phrase: self.seed_phrase.cst_decode(), + } + } + } + impl CstDecode for wire_cst_ffi_network_graph { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::FfiNetworkGraph { + crate::api::graph::FfiNetworkGraph { + opaque: self.opaque.cst_decode(), + } + } + } + impl CstDecode for wire_cst_ffi_node { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::node::FfiNode { + crate::api::node::FfiNode { + opaque: self.opaque.cst_decode(), + } + } + } + impl CstDecode for wire_cst_ffi_node_error { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::utils::error::FfiNodeError { + match self.tag { + 0 => crate::utils::error::FfiNodeError::InvalidTxid, + 1 => crate::utils::error::FfiNodeError::AlreadyRunning, + 2 => crate::utils::error::FfiNodeError::NotRunning, + 3 => crate::utils::error::FfiNodeError::OnchainTxCreationFailed, + 4 => crate::utils::error::FfiNodeError::ConnectionFailed, + 5 => crate::utils::error::FfiNodeError::InvoiceCreationFailed, + 6 => crate::utils::error::FfiNodeError::PaymentSendingFailed, + 7 => crate::utils::error::FfiNodeError::ProbeSendingFailed, + 8 => crate::utils::error::FfiNodeError::ChannelCreationFailed, + 9 => crate::utils::error::FfiNodeError::ChannelClosingFailed, + 10 => crate::utils::error::FfiNodeError::ChannelConfigUpdateFailed, + 11 => crate::utils::error::FfiNodeError::PersistenceFailed, + 12 => crate::utils::error::FfiNodeError::WalletOperationFailed, + 13 => crate::utils::error::FfiNodeError::OnchainTxSigningFailed, + 14 => crate::utils::error::FfiNodeError::MessageSigningFailed, + 15 => crate::utils::error::FfiNodeError::TxSyncFailed, + 16 => crate::utils::error::FfiNodeError::GossipUpdateFailed, + 17 => crate::utils::error::FfiNodeError::InvalidAddress, + 18 => crate::utils::error::FfiNodeError::InvalidSocketAddress, + 19 => crate::utils::error::FfiNodeError::InvalidPublicKey, + 20 => crate::utils::error::FfiNodeError::InvalidSecretKey, + 21 => crate::utils::error::FfiNodeError::InvalidPaymentHash, + 22 => crate::utils::error::FfiNodeError::InvalidPaymentPreimage, + 23 => crate::utils::error::FfiNodeError::InvalidPaymentSecret, + 24 => crate::utils::error::FfiNodeError::InvalidAmount, + 25 => crate::utils::error::FfiNodeError::InvalidInvoice, + 26 => crate::utils::error::FfiNodeError::InvalidChannelId, + 27 => crate::utils::error::FfiNodeError::InvalidNetwork, + 28 => crate::utils::error::FfiNodeError::DuplicatePayment, + 29 => crate::utils::error::FfiNodeError::InsufficientFunds, + 30 => crate::utils::error::FfiNodeError::FeerateEstimationUpdateFailed, + 31 => crate::utils::error::FfiNodeError::LiquidityRequestFailed, + 32 => crate::utils::error::FfiNodeError::LiquiditySourceUnavailable, + 33 => crate::utils::error::FfiNodeError::LiquidityFeeTooHigh, + 34 => crate::utils::error::FfiNodeError::InvalidPaymentId, + 35 => { + let ans = unsafe { self.kind.Decode }; + crate::utils::error::FfiNodeError::Decode(ans.field0.cst_decode()) + } + 36 => { + let ans = unsafe { self.kind.Bolt12Parse }; + crate::utils::error::FfiNodeError::Bolt12Parse(ans.field0.cst_decode()) + } + 37 => crate::utils::error::FfiNodeError::InvoiceRequestCreationFailed, + 38 => crate::utils::error::FfiNodeError::OfferCreationFailed, + 39 => crate::utils::error::FfiNodeError::RefundCreationFailed, + 40 => crate::utils::error::FfiNodeError::FeerateEstimationUpdateTimeout, + 41 => crate::utils::error::FfiNodeError::WalletOperationTimeout, + 42 => crate::utils::error::FfiNodeError::TxSyncTimeout, + 43 => crate::utils::error::FfiNodeError::GossipUpdateTimeout, + 44 => crate::utils::error::FfiNodeError::InvalidOfferId, + 45 => crate::utils::error::FfiNodeError::InvalidNodeId, + 46 => crate::utils::error::FfiNodeError::InvalidOffer, + 47 => crate::utils::error::FfiNodeError::InvalidRefund, + 48 => crate::utils::error::FfiNodeError::UnsupportedCurrency, + 49 => crate::utils::error::FfiNodeError::UriParameterParsingFailed, + 50 => crate::utils::error::FfiNodeError::InvalidUri, + 51 => crate::utils::error::FfiNodeError::InvalidQuantity, + 52 => crate::utils::error::FfiNodeError::InvalidNodeAlias, + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_ffi_on_chain_payment { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::on_chain::FfiOnChainPayment { + crate::api::on_chain::FfiOnChainPayment { + opaque: self.opaque.cst_decode(), + } + } + } + impl CstDecode + for wire_cst_ffi_spontaneous_payment + { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::spontaneous::FfiSpontaneousPayment { + crate::api::spontaneous::FfiSpontaneousPayment { + opaque: self.opaque.cst_decode(), + } + } + } + impl CstDecode for wire_cst_ffi_unified_qr_payment { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::unified_qr::FfiUnifiedQrPayment { + crate::api::unified_qr::FfiUnifiedQrPayment { + opaque: self.opaque.cst_decode(), + } + } + } + impl CstDecode for wire_cst_gossip_source_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::GossipSourceConfig { + match self.tag { + 0 => crate::api::types::GossipSourceConfig::P2PNetwork, + 1 => { + let ans = unsafe { self.kind.RapidGossipSync }; + crate::api::types::GossipSourceConfig::RapidGossipSync(ans.field0.cst_decode()) + } + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_lightning_balance { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::LightningBalance { + match self.tag { + 0 => { + let ans = unsafe { self.kind.ClaimableOnChannelClose }; + crate::api::types::LightningBalance::ClaimableOnChannelClose { + channel_id: ans.channel_id.cst_decode(), + counterparty_node_id: ans.counterparty_node_id.cst_decode(), + amount_satoshis: ans.amount_satoshis.cst_decode(), + transaction_fee_satoshis: ans.transaction_fee_satoshis.cst_decode(), + outbound_payment_htlc_rounded_msat: ans + .outbound_payment_htlc_rounded_msat + .cst_decode(), + outbound_forwarded_htlc_rounded_msat: ans + .outbound_forwarded_htlc_rounded_msat + .cst_decode(), + inbound_claiming_htlc_rounded_msat: ans + .inbound_claiming_htlc_rounded_msat + .cst_decode(), + inbound_htlc_rounded_msat: ans.inbound_htlc_rounded_msat.cst_decode(), + } + } + 1 => { + let ans = unsafe { self.kind.ClaimableAwaitingConfirmations }; + crate::api::types::LightningBalance::ClaimableAwaitingConfirmations { + channel_id: ans.channel_id.cst_decode(), + counterparty_node_id: ans.counterparty_node_id.cst_decode(), + amount_satoshis: ans.amount_satoshis.cst_decode(), + confirmation_height: ans.confirmation_height.cst_decode(), + source: ans.source.cst_decode(), + } + } + 2 => { + let ans = unsafe { self.kind.ContentiousClaimable }; + crate::api::types::LightningBalance::ContentiousClaimable { + channel_id: ans.channel_id.cst_decode(), + counterparty_node_id: ans.counterparty_node_id.cst_decode(), + amount_satoshis: ans.amount_satoshis.cst_decode(), + timeout_height: ans.timeout_height.cst_decode(), + payment_hash: ans.payment_hash.cst_decode(), + payment_preimage: ans.payment_preimage.cst_decode(), + } + } + 3 => { + let ans = unsafe { self.kind.MaybeTimeoutClaimableHTLC }; + crate::api::types::LightningBalance::MaybeTimeoutClaimableHTLC { + channel_id: ans.channel_id.cst_decode(), + counterparty_node_id: ans.counterparty_node_id.cst_decode(), + amount_satoshis: ans.amount_satoshis.cst_decode(), + claimable_height: ans.claimable_height.cst_decode(), + payment_hash: ans.payment_hash.cst_decode(), + outbound_payment: ans.outbound_payment.cst_decode(), + } + } + 4 => { + let ans = unsafe { self.kind.MaybePreimageClaimableHTLC }; + crate::api::types::LightningBalance::MaybePreimageClaimableHTLC { + channel_id: ans.channel_id.cst_decode(), + counterparty_node_id: ans.counterparty_node_id.cst_decode(), + amount_satoshis: ans.amount_satoshis.cst_decode(), + expiry_height: ans.expiry_height.cst_decode(), + payment_hash: ans.payment_hash.cst_decode(), + } + } + 5 => { + let ans = unsafe { self.kind.CounterpartyRevokedOutputClaimable }; + crate::api::types::LightningBalance::CounterpartyRevokedOutputClaimable { + channel_id: ans.channel_id.cst_decode(), + counterparty_node_id: ans.counterparty_node_id.cst_decode(), + amount_satoshis: ans.amount_satoshis.cst_decode(), + } + } + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_liquidity_source_config { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::LiquiditySourceConfig { + crate::api::types::LiquiditySourceConfig { + lsps2_service: self.lsps2_service.cst_decode(), + } + } + } + impl CstDecode> for *mut wire_cst_list_channel_details { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } + } + impl CstDecode> for *mut wire_cst_list_lightning_balance { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } + } + impl CstDecode> for *mut wire_cst_list_node_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } + } + impl CstDecode> for *mut wire_cst_list_payment_details { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } + } + impl CstDecode> for *mut wire_cst_list_peer_details { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } + } + impl CstDecode> + for *mut wire_cst_list_pending_sweep_balance + { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } + } + impl CstDecode> for *mut wire_cst_list_prim_u_64_strict { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + } + } + } + impl CstDecode> for *mut wire_cst_list_prim_u_8_loose { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + } + } + } + impl CstDecode> for *mut wire_cst_list_prim_u_8_strict { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + } + } + } + impl CstDecode> for *mut wire_cst_list_public_key { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } + } + impl CstDecode> for *mut wire_cst_list_record_string_string { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec<(String, String)> { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } + } + impl CstDecode> for *mut wire_cst_list_socket_address { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } + } + impl CstDecode for wire_cst_lsp_fee_limits { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::LSPFeeLimits { + crate::api::types::LSPFeeLimits { + max_total_opening_fee_msat: self.max_total_opening_fee_msat.cst_decode(), + max_proportional_opening_fee_ppm_msat: self + .max_proportional_opening_fee_ppm_msat + .cst_decode(), + } + } + } + impl CstDecode for wire_cst_max_dust_htlc_exposure { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::MaxDustHTLCExposure { + match self.tag { + 0 => { + let ans = unsafe { self.kind.FixedLimitMsat }; + crate::api::types::MaxDustHTLCExposure::FixedLimitMsat(ans.field0.cst_decode()) + } + 1 => { + let ans = unsafe { self.kind.FeeRateMultiplier }; + crate::api::types::MaxDustHTLCExposure::FeeRateMultiplier( + ans.field0.cst_decode(), + ) + } + _ => unreachable!(), + } + } + } + impl CstDecode + for wire_cst_max_total_routing_fee_limit + { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::MaxTotalRoutingFeeLimit { + match self.tag { + 0 => crate::api::types::MaxTotalRoutingFeeLimit::NoFeeCap, + 1 => { + let ans = unsafe { self.kind.FeeCap }; + crate::api::types::MaxTotalRoutingFeeLimit::FeeCap { + amount_msat: ans.amount_msat.cst_decode(), + } + } + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_node_alias { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::NodeAlias { + crate::api::types::NodeAlias(self.field0.cst_decode()) + } + } + impl CstDecode for wire_cst_node_announcement_info { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::NodeAnnouncementInfo { + crate::api::graph::NodeAnnouncementInfo { + last_update: self.last_update.cst_decode(), + alias: self.alias.cst_decode(), + addresses: self.addresses.cst_decode(), + } + } + } + impl CstDecode for wire_cst_node_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::NodeId { + crate::api::graph::NodeId { + compressed: self.compressed.cst_decode(), + } + } + } + impl CstDecode for wire_cst_node_info { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::NodeInfo { + crate::api::graph::NodeInfo { + channels: self.channels.cst_decode(), + announcement_info: self.announcement_info.cst_decode(), + } + } + } + impl CstDecode for wire_cst_node_status { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::NodeStatus { + crate::api::types::NodeStatus { + is_running: self.is_running.cst_decode(), + is_listening: self.is_listening.cst_decode(), + current_best_block: self.current_best_block.cst_decode(), + latest_lightning_wallet_sync_timestamp: self + .latest_lightning_wallet_sync_timestamp + .cst_decode(), + latest_onchain_wallet_sync_timestamp: self + .latest_onchain_wallet_sync_timestamp + .cst_decode(), + latest_fee_rate_cache_update_timestamp: self + .latest_fee_rate_cache_update_timestamp + .cst_decode(), + latest_rgs_snapshot_timestamp: self.latest_rgs_snapshot_timestamp.cst_decode(), + latest_node_announcement_broadcast_timestamp: self + .latest_node_announcement_broadcast_timestamp + .cst_decode(), + latest_channel_monitor_archival_height: self + .latest_channel_monitor_archival_height + .cst_decode(), + } + } + } + impl CstDecode for wire_cst_offer { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt12::Offer { + crate::api::bolt12::Offer { + s: self.s.cst_decode(), + } + } + } + impl CstDecode for wire_cst_offer_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::OfferId { + crate::api::types::OfferId(self.field0.cst_decode()) + } + } + impl CstDecode for wire_cst_out_point { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::OutPoint { + crate::api::types::OutPoint { + txid: self.txid.cst_decode(), + vout: self.vout.cst_decode(), + } + } + } + impl CstDecode for wire_cst_payment_details { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentDetails { + crate::api::types::PaymentDetails { + id: self.id.cst_decode(), + kind: self.kind.cst_decode(), + amount_msat: self.amount_msat.cst_decode(), + direction: self.direction.cst_decode(), + status: self.status.cst_decode(), + latest_update_timestamp: self.latest_update_timestamp.cst_decode(), + } + } + } + impl CstDecode for wire_cst_payment_hash { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentHash { + crate::api::types::PaymentHash { + data: self.data.cst_decode(), + } + } + } + impl CstDecode for wire_cst_payment_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentId { + crate::api::types::PaymentId(self.field0.cst_decode()) + } + } + impl CstDecode for wire_cst_payment_kind { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentKind { + match self.tag { + 0 => crate::api::types::PaymentKind::Onchain, + 1 => { + let ans = unsafe { self.kind.Bolt11 }; + crate::api::types::PaymentKind::Bolt11 { + hash: ans.hash.cst_decode(), + preimage: ans.preimage.cst_decode(), + secret: ans.secret.cst_decode(), + } + } + 2 => { + let ans = unsafe { self.kind.Bolt11Jit }; + crate::api::types::PaymentKind::Bolt11Jit { + hash: ans.hash.cst_decode(), + preimage: ans.preimage.cst_decode(), + secret: ans.secret.cst_decode(), + lsp_fee_limits: ans.lsp_fee_limits.cst_decode(), + } + } + 3 => { + let ans = unsafe { self.kind.Spontaneous }; + crate::api::types::PaymentKind::Spontaneous { + hash: ans.hash.cst_decode(), + preimage: ans.preimage.cst_decode(), + } + } + 4 => { + let ans = unsafe { self.kind.Bolt12Offer }; + crate::api::types::PaymentKind::Bolt12Offer { + hash: ans.hash.cst_decode(), + preimage: ans.preimage.cst_decode(), + secret: ans.secret.cst_decode(), + offer_id: ans.offer_id.cst_decode(), + payer_note: ans.payer_note.cst_decode(), + quantity: ans.quantity.cst_decode(), + } + } + 5 => { + let ans = unsafe { self.kind.Bolt12Refund }; + crate::api::types::PaymentKind::Bolt12Refund { + hash: ans.hash.cst_decode(), + preimage: ans.preimage.cst_decode(), + secret: ans.secret.cst_decode(), + payer_note: ans.payer_note.cst_decode(), + quantity: ans.quantity.cst_decode(), + } + } + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_payment_preimage { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentPreimage { + crate::api::types::PaymentPreimage { + data: self.data.cst_decode(), + } + } + } + impl CstDecode for wire_cst_payment_secret { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PaymentSecret { + crate::api::types::PaymentSecret { + data: self.data.cst_decode(), + } + } + } + impl CstDecode for wire_cst_peer_details { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PeerDetails { + crate::api::types::PeerDetails { + node_id: self.node_id.cst_decode(), + address: self.address.cst_decode(), + is_connected: self.is_connected.cst_decode(), + } + } + } + impl CstDecode for wire_cst_pending_sweep_balance { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PendingSweepBalance { + match self.tag { + 0 => { + let ans = unsafe { self.kind.PendingBroadcast }; + crate::api::types::PendingSweepBalance::PendingBroadcast { + channel_id: ans.channel_id.cst_decode(), + amount_satoshis: ans.amount_satoshis.cst_decode(), + } + } + 1 => { + let ans = unsafe { self.kind.BroadcastAwaitingConfirmation }; + crate::api::types::PendingSweepBalance::BroadcastAwaitingConfirmation { + channel_id: ans.channel_id.cst_decode(), + latest_broadcast_height: ans.latest_broadcast_height.cst_decode(), + latest_spending_txid: ans.latest_spending_txid.cst_decode(), + amount_satoshis: ans.amount_satoshis.cst_decode(), + } + } + 2 => { + let ans = unsafe { self.kind.AwaitingThresholdConfirmations }; + crate::api::types::PendingSweepBalance::AwaitingThresholdConfirmations { + channel_id: ans.channel_id.cst_decode(), + latest_spending_txid: ans.latest_spending_txid.cst_decode(), + confirmation_hash: ans.confirmation_hash.cst_decode(), + confirmation_height: ans.confirmation_height.cst_decode(), + amount_satoshis: ans.amount_satoshis.cst_decode(), + } + } + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_public_key { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::PublicKey { + crate::api::types::PublicKey { + hex: self.hex.cst_decode(), + } + } + } + impl CstDecode for wire_cst_qr_payment_result { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::unified_qr::QrPaymentResult { + match self.tag { + 0 => { + let ans = unsafe { self.kind.Onchain }; + crate::api::unified_qr::QrPaymentResult::Onchain { + txid: ans.txid.cst_decode(), + } + } + 1 => { + let ans = unsafe { self.kind.Bolt11 }; + crate::api::unified_qr::QrPaymentResult::Bolt11 { + payment_id: ans.payment_id.cst_decode(), + } + } + 2 => { + let ans = unsafe { self.kind.Bolt12 }; + crate::api::unified_qr::QrPaymentResult::Bolt12 { + payment_id: ans.payment_id.cst_decode(), + } + } + _ => unreachable!(), + } + } + } + impl + CstDecode<( + crate::api::types::SocketAddress, + crate::api::types::PublicKey, + Option, + )> for wire_cst_record_socket_address_public_key_opt_string + { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode( + self, + ) -> ( + crate::api::types::SocketAddress, + crate::api::types::PublicKey, + Option, + ) { + ( + self.field0.cst_decode(), + self.field1.cst_decode(), + self.field2.cst_decode(), + ) + } + } + impl CstDecode<(String, String)> for wire_cst_record_string_string { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> (String, String) { + (self.field0.cst_decode(), self.field1.cst_decode()) + } + } + impl CstDecode for wire_cst_refund { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::bolt12::Refund { + crate::api::bolt12::Refund { + s: self.s.cst_decode(), + } + } + } + impl CstDecode for wire_cst_routing_fees { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::graph::RoutingFees { + crate::api::graph::RoutingFees { + base_msat: self.base_msat.cst_decode(), + proportional_millionths: self.proportional_millionths.cst_decode(), + } + } + } + impl CstDecode for wire_cst_sending_parameters { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::SendingParameters { + crate::api::types::SendingParameters { + max_total_routing_fee_msat: self.max_total_routing_fee_msat.cst_decode(), + max_total_cltv_expiry_delta: self.max_total_cltv_expiry_delta.cst_decode(), + max_path_count: self.max_path_count.cst_decode(), + max_channel_saturation_power_of_half: self + .max_channel_saturation_power_of_half + .cst_decode(), + } + } + } + impl CstDecode for wire_cst_socket_address { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::SocketAddress { + match self.tag { + 0 => { + let ans = unsafe { self.kind.TcpIpV4 }; + crate::api::types::SocketAddress::TcpIpV4 { + addr: ans.addr.cst_decode(), + port: ans.port.cst_decode(), + } + } + 1 => { + let ans = unsafe { self.kind.TcpIpV6 }; + crate::api::types::SocketAddress::TcpIpV6 { + addr: ans.addr.cst_decode(), + port: ans.port.cst_decode(), + } + } + 2 => { + let ans = unsafe { self.kind.OnionV2 }; + crate::api::types::SocketAddress::OnionV2(ans.field0.cst_decode()) + } + 3 => { + let ans = unsafe { self.kind.OnionV3 }; + crate::api::types::SocketAddress::OnionV3 { + ed25519_pubkey: ans.ed25519_pubkey.cst_decode(), + checksum: ans.checksum.cst_decode(), + version: ans.version.cst_decode(), + port: ans.port.cst_decode(), + } + } + 4 => { + let ans = unsafe { self.kind.Hostname }; + crate::api::types::SocketAddress::Hostname { + addr: ans.addr.cst_decode(), + port: ans.port.cst_decode(), + } + } + _ => unreachable!(), + } + } + } + impl CstDecode for wire_cst_txid { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::Txid { + crate::api::types::Txid { + hash: self.hash.cst_decode(), + } + } + } + impl CstDecode<[u8; 12]> for *mut wire_cst_list_prim_u_8_strict { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> [u8; 12] { + let vec: Vec = self.cst_decode(); + flutter_rust_bridge::for_generated::from_vec_to_array(vec) + } + } + impl CstDecode<[u8; 16]> for *mut wire_cst_list_prim_u_8_strict { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> [u8; 16] { + let vec: Vec = self.cst_decode(); + flutter_rust_bridge::for_generated::from_vec_to_array(vec) + } + } + impl CstDecode<[u8; 32]> for *mut wire_cst_list_prim_u_8_strict { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> [u8; 32] { + let vec: Vec = self.cst_decode(); + flutter_rust_bridge::for_generated::from_vec_to_array(vec) + } + } + impl CstDecode<[u8; 4]> for *mut wire_cst_list_prim_u_8_strict { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> [u8; 4] { + let vec: Vec = self.cst_decode(); + flutter_rust_bridge::for_generated::from_vec_to_array(vec) + } + } + impl CstDecode<[u8; 64]> for *mut wire_cst_list_prim_u_8_strict { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> [u8; 64] { + let vec: Vec = self.cst_decode(); + flutter_rust_bridge::for_generated::from_vec_to_array(vec) + } + } + impl CstDecode for wire_cst_user_channel_id { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::types::UserChannelId { + crate::api::types::UserChannelId { + data: self.data.cst_decode(), + } + } + } + impl NewWithNullPtr for wire_cst_address { + fn new_with_null_ptr() -> Self { + Self { + s: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_address { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_anchor_channels_config { + fn new_with_null_ptr() -> Self { + Self { + trusted_peers_no_reserve: core::ptr::null_mut(), + per_channel_reserve_sats: Default::default(), + } + } + } + impl Default for wire_cst_anchor_channels_config { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_balance_details { + fn new_with_null_ptr() -> Self { + Self { + total_onchain_balance_sats: Default::default(), + spendable_onchain_balance_sats: Default::default(), + total_lightning_balance_sats: Default::default(), + lightning_balances: core::ptr::null_mut(), + pending_balances_from_channel_closures: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_balance_details { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_best_block { + fn new_with_null_ptr() -> Self { + Self { + block_hash: core::ptr::null_mut(), + height: Default::default(), + } + } + } + impl Default for wire_cst_best_block { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_bolt_11_invoice { + fn new_with_null_ptr() -> Self { + Self { + signed_raw_invoice: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_bolt_11_invoice { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_bolt_12_invoice { + fn new_with_null_ptr() -> Self { + Self { + data: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_bolt_12_invoice { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_bolt_12_parse_error { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: Bolt12ParseErrorKind { nil__: () }, + } + } + } + impl Default for wire_cst_bolt_12_parse_error { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_chain_data_source_config { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: ChainDataSourceConfigKind { nil__: () }, + } + } + } + impl Default for wire_cst_chain_data_source_config { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_channel_config { + fn new_with_null_ptr() -> Self { + Self { + forwarding_fee_proportional_millionths: Default::default(), + forwarding_fee_base_msat: Default::default(), + cltv_expiry_delta: Default::default(), + max_dust_htlc_exposure: Default::default(), + force_close_avoidance_max_fee_satoshis: Default::default(), + accept_underpaying_htlcs: Default::default(), + } + } + } + impl Default for wire_cst_channel_config { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_channel_details { + fn new_with_null_ptr() -> Self { + Self { + channel_id: Default::default(), + counterparty_node_id: Default::default(), + funding_txo: core::ptr::null_mut(), + channel_value_sats: Default::default(), + unspendable_punishment_reserve: core::ptr::null_mut(), + user_channel_id: Default::default(), + feerate_sat_per_1000_weight: Default::default(), + outbound_capacity_msat: Default::default(), + inbound_capacity_msat: Default::default(), + confirmations_required: core::ptr::null_mut(), + confirmations: core::ptr::null_mut(), + is_outbound: Default::default(), + is_channel_ready: Default::default(), + is_usable: Default::default(), + cltv_expiry_delta: core::ptr::null_mut(), + counterparty_unspendable_punishment_reserve: Default::default(), + counterparty_outbound_htlc_minimum_msat: core::ptr::null_mut(), + counterparty_outbound_htlc_maximum_msat: core::ptr::null_mut(), + counterparty_forwarding_info_fee_base_msat: core::ptr::null_mut(), + counterparty_forwarding_info_fee_proportional_millionths: core::ptr::null_mut(), + counterparty_forwarding_info_cltv_expiry_delta: core::ptr::null_mut(), + next_outbound_htlc_limit_msat: Default::default(), + next_outbound_htlc_minimum_msat: Default::default(), + force_close_spend_delay: core::ptr::null_mut(), + inbound_htlc_minimum_msat: Default::default(), + inbound_htlc_maximum_msat: core::ptr::null_mut(), + config: Default::default(), + } + } + } + impl Default for wire_cst_channel_details { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_channel_id { + fn new_with_null_ptr() -> Self { + Self { + data: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_channel_id { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_channel_info { + fn new_with_null_ptr() -> Self { + Self { + node_one: Default::default(), + one_to_two: core::ptr::null_mut(), + node_two: Default::default(), + two_to_one: core::ptr::null_mut(), + capacity_sats: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_channel_info { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_channel_update_info { + fn new_with_null_ptr() -> Self { + Self { + last_update: Default::default(), + enabled: Default::default(), + cltv_expiry_delta: Default::default(), + htlc_minimum_msat: Default::default(), + htlc_maximum_msat: Default::default(), + fees: Default::default(), + } + } + } + impl Default for wire_cst_channel_update_info { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_closure_reason { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: ClosureReasonKind { nil__: () }, + } + } + } + impl Default for wire_cst_closure_reason { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_config { + fn new_with_null_ptr() -> Self { + Self { + storage_dir_path: core::ptr::null_mut(), + log_dir_path: core::ptr::null_mut(), + network: Default::default(), + listening_addresses: core::ptr::null_mut(), + node_alias: core::ptr::null_mut(), + trusted_peers_0conf: core::ptr::null_mut(), + probing_liquidity_limit_multiplier: Default::default(), + log_level: Default::default(), + anchor_channels_config: core::ptr::null_mut(), + sending_parameters: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_config { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_decode_error { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: DecodeErrorKind { nil__: () }, + } + } + } + impl Default for wire_cst_decode_error { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_entropy_source_config { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: EntropySourceConfigKind { nil__: () }, + } + } + } + impl Default for wire_cst_entropy_source_config { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_esplora_sync_config { + fn new_with_null_ptr() -> Self { + Self { + onchain_wallet_sync_interval_secs: Default::default(), + lightning_wallet_sync_interval_secs: Default::default(), + fee_rate_cache_update_interval_secs: Default::default(), + } + } + } + impl Default for wire_cst_esplora_sync_config { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_event { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: EventKind { nil__: () }, + } + } + } + impl Default for wire_cst_event { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_ffi_bolt_11_payment { + fn new_with_null_ptr() -> Self { + Self { + opaque: Default::default(), + } + } + } + impl Default for wire_cst_ffi_bolt_11_payment { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_ffi_bolt_12_payment { + fn new_with_null_ptr() -> Self { + Self { + opaque: Default::default(), + } + } + } + impl Default for wire_cst_ffi_bolt_12_payment { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_ffi_mnemonic { + fn new_with_null_ptr() -> Self { + Self { + seed_phrase: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_ffi_mnemonic { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_ffi_network_graph { + fn new_with_null_ptr() -> Self { + Self { + opaque: Default::default(), + } + } + } + impl Default for wire_cst_ffi_network_graph { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_ffi_node { + fn new_with_null_ptr() -> Self { + Self { + opaque: Default::default(), + } + } + } + impl Default for wire_cst_ffi_node { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_ffi_node_error { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: FfiNodeErrorKind { nil__: () }, + } + } + } + impl Default for wire_cst_ffi_node_error { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_ffi_on_chain_payment { + fn new_with_null_ptr() -> Self { + Self { + opaque: Default::default(), + } + } + } + impl Default for wire_cst_ffi_on_chain_payment { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_ffi_spontaneous_payment { + fn new_with_null_ptr() -> Self { + Self { + opaque: Default::default(), + } + } + } + impl Default for wire_cst_ffi_spontaneous_payment { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_ffi_unified_qr_payment { + fn new_with_null_ptr() -> Self { + Self { + opaque: Default::default(), + } + } + } + impl Default for wire_cst_ffi_unified_qr_payment { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_gossip_source_config { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: GossipSourceConfigKind { nil__: () }, + } + } + } + impl Default for wire_cst_gossip_source_config { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_lightning_balance { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: LightningBalanceKind { nil__: () }, + } + } + } + impl Default for wire_cst_lightning_balance { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_liquidity_source_config { + fn new_with_null_ptr() -> Self { + Self { + lsps2_service: Default::default(), + } + } + } + impl Default for wire_cst_liquidity_source_config { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_lsp_fee_limits { + fn new_with_null_ptr() -> Self { + Self { + max_total_opening_fee_msat: core::ptr::null_mut(), + max_proportional_opening_fee_ppm_msat: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_lsp_fee_limits { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_max_dust_htlc_exposure { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: MaxDustHTLCExposureKind { nil__: () }, + } + } + } + impl Default for wire_cst_max_dust_htlc_exposure { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_max_total_routing_fee_limit { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: MaxTotalRoutingFeeLimitKind { nil__: () }, + } + } + } + impl Default for wire_cst_max_total_routing_fee_limit { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_node_alias { + fn new_with_null_ptr() -> Self { + Self { + field0: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_node_alias { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_node_announcement_info { + fn new_with_null_ptr() -> Self { + Self { + last_update: Default::default(), + alias: core::ptr::null_mut(), + addresses: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_node_announcement_info { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_node_id { + fn new_with_null_ptr() -> Self { + Self { + compressed: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_node_id { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_node_info { + fn new_with_null_ptr() -> Self { + Self { + channels: core::ptr::null_mut(), + announcement_info: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_node_info { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_node_status { + fn new_with_null_ptr() -> Self { + Self { + is_running: Default::default(), + is_listening: Default::default(), + current_best_block: Default::default(), + latest_lightning_wallet_sync_timestamp: core::ptr::null_mut(), + latest_onchain_wallet_sync_timestamp: core::ptr::null_mut(), + latest_fee_rate_cache_update_timestamp: core::ptr::null_mut(), + latest_rgs_snapshot_timestamp: core::ptr::null_mut(), + latest_node_announcement_broadcast_timestamp: core::ptr::null_mut(), + latest_channel_monitor_archival_height: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_node_status { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_offer { + fn new_with_null_ptr() -> Self { + Self { + s: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_offer { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_offer_id { + fn new_with_null_ptr() -> Self { + Self { + field0: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_offer_id { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_out_point { + fn new_with_null_ptr() -> Self { + Self { + txid: Default::default(), + vout: Default::default(), + } + } + } + impl Default for wire_cst_out_point { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_payment_details { + fn new_with_null_ptr() -> Self { + Self { + id: Default::default(), + kind: Default::default(), + amount_msat: core::ptr::null_mut(), + direction: Default::default(), + status: Default::default(), + latest_update_timestamp: Default::default(), + } + } + } + impl Default for wire_cst_payment_details { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_payment_hash { + fn new_with_null_ptr() -> Self { + Self { + data: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_payment_hash { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_payment_id { + fn new_with_null_ptr() -> Self { + Self { + field0: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_payment_id { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_payment_kind { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: PaymentKindKind { nil__: () }, + } + } + } + impl Default for wire_cst_payment_kind { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_payment_preimage { + fn new_with_null_ptr() -> Self { + Self { + data: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_payment_preimage { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_payment_secret { + fn new_with_null_ptr() -> Self { + Self { + data: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_payment_secret { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_peer_details { + fn new_with_null_ptr() -> Self { + Self { + node_id: Default::default(), + address: Default::default(), + is_connected: Default::default(), + } + } + } + impl Default for wire_cst_peer_details { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_pending_sweep_balance { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: PendingSweepBalanceKind { nil__: () }, + } + } + } + impl Default for wire_cst_pending_sweep_balance { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_public_key { + fn new_with_null_ptr() -> Self { + Self { + hex: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_public_key { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_qr_payment_result { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: QrPaymentResultKind { nil__: () }, + } + } + } + impl Default for wire_cst_qr_payment_result { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_record_socket_address_public_key_opt_string { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + field1: Default::default(), + field2: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_record_socket_address_public_key_opt_string { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_record_string_string { + fn new_with_null_ptr() -> Self { + Self { + field0: core::ptr::null_mut(), + field1: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_record_string_string { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_refund { + fn new_with_null_ptr() -> Self { + Self { + s: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_refund { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_routing_fees { + fn new_with_null_ptr() -> Self { + Self { + base_msat: Default::default(), + proportional_millionths: Default::default(), + } + } + } + impl Default for wire_cst_routing_fees { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_sending_parameters { + fn new_with_null_ptr() -> Self { + Self { + max_total_routing_fee_msat: core::ptr::null_mut(), + max_total_cltv_expiry_delta: core::ptr::null_mut(), + max_path_count: core::ptr::null_mut(), + max_channel_saturation_power_of_half: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_sending_parameters { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_socket_address { + fn new_with_null_ptr() -> Self { + Self { + tag: -1, + kind: SocketAddressKind { nil__: () }, + } + } + } + impl Default for wire_cst_socket_address { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_txid { + fn new_with_null_ptr() -> Self { + Self { + hash: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_txid { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + impl NewWithNullPtr for wire_cst_user_channel_id { + fn new_with_null_ptr() -> Self { + Self { + data: core::ptr::null_mut(), + } + } + } + impl Default for wire_cst_user_channel_id { + fn default() -> Self { + Self::new_with_null_ptr() + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + payment_hash: *mut wire_cst_payment_hash, + claimable_amount_msat: u64, + preimage: *mut wire_cst_payment_preimage, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash_impl( + port_, + that, + payment_hash, + claimable_amount_msat, + preimage, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + payment_hash: *mut wire_cst_payment_hash, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_fail_for_hash_impl(port_, that, payment_hash) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + amount_msat: u64, + description: *mut wire_cst_list_prim_u_8_strict, + expiry_secs: u32, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_receive_impl( + port_, + that, + amount_msat, + description, + expiry_secs, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + payment_hash: *mut wire_cst_payment_hash, + amount_msat: u64, + description: *mut wire_cst_list_prim_u_8_strict, + expiry_secs: u32, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_receive_for_hash_impl( + port_, + that, + payment_hash, + amount_msat, + description, + expiry_secs, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + description: *mut wire_cst_list_prim_u_8_strict, + expiry_secs: u32, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_impl( + port_, + that, + description, + expiry_secs, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + description: *mut wire_cst_list_prim_u_8_strict, + expiry_secs: u32, + payment_hash: *mut wire_cst_payment_hash, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_for_hash_impl( + port_, + that, + description, + expiry_secs, + payment_hash, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + description: *mut wire_cst_list_prim_u_8_strict, + expiry_secs: u32, + max_proportional_lsp_fee_limit_ppm_msat: *mut u64, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_receive_variable_amount_via_jit_channel_impl( + port_, + that, + description, + expiry_secs, + max_proportional_lsp_fee_limit_ppm_msat, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + amount_msat: u64, + description: *mut wire_cst_list_prim_u_8_strict, + expiry_secs: u32, + max_total_lsp_fee_limit_msat: *mut u64, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_receive_via_jit_channel_impl( + port_, + that, + amount_msat, + description, + expiry_secs, + max_total_lsp_fee_limit_msat, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + invoice: *mut wire_cst_bolt_11_invoice, + sending_parameters: *mut wire_cst_sending_parameters, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_send_impl( + port_, + that, + invoice, + sending_parameters, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + invoice: *mut wire_cst_bolt_11_invoice, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_impl(port_, that, invoice) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + invoice: *mut wire_cst_bolt_11_invoice, + amount_msat: u64, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_send_probes_using_amount_impl( + port_, + that, + invoice, + amount_msat, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount( + port_: i64, + that: *mut wire_cst_ffi_bolt_11_payment, + invoice: *mut wire_cst_bolt_11_invoice, + amount_msat: u64, + sending_parameters: *mut wire_cst_sending_parameters, + ) { + wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount_impl( + port_, + that, + invoice, + amount_msat, + sending_parameters, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund( + port_: i64, + that: *mut wire_cst_ffi_bolt_12_payment, + amount_msat: u64, + expiry_secs: u32, + quantity: *mut u64, + payer_note: *mut wire_cst_list_prim_u_8_strict, + ) { + wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund_impl( + port_, + that, + amount_msat, + expiry_secs, + quantity, + payer_note, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive( + port_: i64, + that: *mut wire_cst_ffi_bolt_12_payment, + amount_msat: u64, + description: *mut wire_cst_list_prim_u_8_strict, + expiry_secs: *mut u32, + quantity: *mut u64, + ) { + wire__crate__api__bolt12__ffi_bolt_12_payment_receive_impl( + port_, + that, + amount_msat, + description, + expiry_secs, + quantity, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount( + port_: i64, + that: *mut wire_cst_ffi_bolt_12_payment, + description: *mut wire_cst_list_prim_u_8_strict, + expiry_secs: *mut u32, + ) { + wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount_impl( + port_, + that, + description, + expiry_secs, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment( + port_: i64, + that: *mut wire_cst_ffi_bolt_12_payment, + refund: *mut wire_cst_refund, + ) { + wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment_impl( + port_, that, refund, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send( + port_: i64, + that: *mut wire_cst_ffi_bolt_12_payment, + offer: *mut wire_cst_offer, + quantity: *mut u64, + payer_note: *mut wire_cst_list_prim_u_8_strict, + ) { + wire__crate__api__bolt12__ffi_bolt_12_payment_send_impl( + port_, that, offer, quantity, payer_note, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount( + port_: i64, + that: *mut wire_cst_ffi_bolt_12_payment, + offer: *mut wire_cst_offer, + amount_msat: u64, + quantity: *mut u64, + payer_note: *mut wire_cst_list_prim_u_8_strict, + ) { + wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount_impl( + port_, + that, + offer, + amount_msat, + quantity, + payer_note, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( + that: usize, + ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque_impl(that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( + that: usize, + opaque: usize, + ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque_impl(that, opaque) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build( + port_: i64, + that: usize, + ) { + wire__crate__api__builder__FfiBuilder_build_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store( + port_: i64, + that: usize, + ) { + wire__crate__api__builder__FfiBuilder_build_with_fs_store_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store( + port_: i64, + that: usize, + vss_url: *mut wire_cst_list_prim_u_8_strict, + store_id: *mut wire_cst_list_prim_u_8_strict, + lnurl_auth_server_url: *mut wire_cst_list_prim_u_8_strict, + fixed_headers: *mut wire_cst_list_record_string_string, + ) { + wire__crate__api__builder__FfiBuilder_build_with_vss_store_impl( + port_, + that, + vss_url, + store_id, + lnurl_auth_server_url, + fixed_headers, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( + port_: i64, + that: usize, + vss_url: *mut wire_cst_list_prim_u_8_strict, + store_id: *mut wire_cst_list_prim_u_8_strict, + fixed_headers: *mut wire_cst_list_record_string_string, + ) { + wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers_impl( + port_, + that, + vss_url, + store_id, + fixed_headers, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder( + port_: i64, + config: *mut wire_cst_config, + chain_data_source_config: *mut wire_cst_chain_data_source_config, + entropy_source_config: *mut wire_cst_entropy_source_config, + gossip_source_config: *mut wire_cst_gossip_source_config, + liquidity_source_config: *mut wire_cst_liquidity_source_config, + ) { + wire__crate__api__builder__FfiBuilder_create_builder_impl( + port_, + config, + chain_data_source_config, + entropy_source_config, + gossip_source_config, + liquidity_source_config, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate(port_: i64) { + wire__crate__api__builder__ffi_mnemonic_generate_impl(port_) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_channel( + port_: i64, + that: *mut wire_cst_ffi_network_graph, + short_channel_id: u64, + ) { + wire__crate__api__graph__ffi_network_graph_channel_impl(port_, that, short_channel_id) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_channels( + port_: i64, + that: *mut wire_cst_ffi_network_graph, + ) { + wire__crate__api__graph__ffi_network_graph_list_channels_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_list_nodes( + port_: i64, + that: *mut wire_cst_ffi_network_graph, + ) { + wire__crate__api__graph__ffi_network_graph_list_nodes_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_node( + port_: i64, + that: *mut wire_cst_ffi_network_graph, + node_id: *mut wire_cst_node_id, + ) { + wire__crate__api__graph__ffi_network_graph_node_impl(port_, that, node_id) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt11_payment( + port_: i64, + ptr: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_bolt11_payment_impl(port_, ptr) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_bolt12_payment( + port_: i64, + ptr: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_bolt12_payment_impl(port_, ptr) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_close_channel( + port_: i64, + that: *mut wire_cst_ffi_node, + user_channel_id: *mut wire_cst_user_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + ) { + wire__crate__api__node__ffi_node_close_channel_impl( + port_, + that, + user_channel_id, + counterparty_node_id, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_config( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_config_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_connect( + port_: i64, + that: *mut wire_cst_ffi_node, + node_id: *mut wire_cst_public_key, + address: *mut wire_cst_socket_address, + persist: bool, + ) { + wire__crate__api__node__ffi_node_connect_impl(port_, that, node_id, address, persist) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_disconnect( + port_: i64, + that: *mut wire_cst_ffi_node, + counterparty_node_id: *mut wire_cst_public_key, + ) { + wire__crate__api__node__ffi_node_disconnect_impl(port_, that, counterparty_node_id) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_event_handled( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_event_handled_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_force_close_channel( + port_: i64, + that: *mut wire_cst_ffi_node, + user_channel_id: *mut wire_cst_user_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + ) { + wire__crate__api__node__ffi_node_force_close_channel_impl( + port_, + that, + user_channel_id, + counterparty_node_id, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_list_balances( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_list_balances_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_list_channels( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_list_channels_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_list_payments_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_list_payments_with_filter( + port_: i64, + that: *mut wire_cst_ffi_node, + payment_direction: i32, + ) { + wire__crate__api__node__ffi_node_list_payments_with_filter_impl( + port_, + that, + payment_direction, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_list_peers( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_list_peers_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_listening_addresses( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_listening_addresses_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_network_graph( + port_: i64, + ptr: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_network_graph_impl(port_, ptr) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_next_event_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_next_event_async( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_next_event_async_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_node_id( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_node_id_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_on_chain_payment( + port_: i64, + ptr: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_on_chain_payment_impl(port_, ptr) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_open_announced_channel( + port_: i64, + that: *mut wire_cst_ffi_node, + socket_address: *mut wire_cst_socket_address, + node_id: *mut wire_cst_public_key, + channel_amount_sats: u64, + push_to_counterparty_msat: *mut u64, + channel_config: *mut wire_cst_channel_config, + ) { + wire__crate__api__node__ffi_node_open_announced_channel_impl( + port_, + that, + socket_address, + node_id, + channel_amount_sats, + push_to_counterparty_msat, + channel_config, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_open_channel( + port_: i64, + that: *mut wire_cst_ffi_node, + socket_address: *mut wire_cst_socket_address, + node_id: *mut wire_cst_public_key, + channel_amount_sats: u64, + push_to_counterparty_msat: *mut u64, + channel_config: *mut wire_cst_channel_config, + ) { + wire__crate__api__node__ffi_node_open_channel_impl( + port_, + that, + socket_address, + node_id, + channel_amount_sats, + push_to_counterparty_msat, + channel_config, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_payment( + port_: i64, + that: *mut wire_cst_ffi_node, + payment_id: *mut wire_cst_payment_id, + ) { + wire__crate__api__node__ffi_node_payment_impl(port_, that, payment_id) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_remove_payment( + port_: i64, + that: *mut wire_cst_ffi_node, + payment_id: *mut wire_cst_payment_id, + ) { + wire__crate__api__node__ffi_node_remove_payment_impl(port_, that, payment_id) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_sign_message( + port_: i64, + that: *mut wire_cst_ffi_node, + msg: *mut wire_cst_list_prim_u_8_loose, + ) { + wire__crate__api__node__ffi_node_sign_message_impl(port_, that, msg) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_spontaneous_payment( + port_: i64, + ptr: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_spontaneous_payment_impl(port_, ptr) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_start( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_start_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_status( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_status_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_stop( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_stop_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_sync_wallets( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_sync_wallets_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_unified_qr_payment( + port_: i64, + ptr: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_unified_qr_payment_impl(port_, ptr) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_update_channel_config( + port_: i64, + that: *mut wire_cst_ffi_node, + user_channel_id: *mut wire_cst_user_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + channel_config: *mut wire_cst_channel_config, + ) { + wire__crate__api__node__ffi_node_update_channel_config_impl( + port_, + that, + user_channel_id, + counterparty_node_id, + channel_config, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_verify_signature( + port_: i64, + that: *mut wire_cst_ffi_node, + msg: *mut wire_cst_list_prim_u_8_loose, + sig: *mut wire_cst_list_prim_u_8_strict, + public_key: *mut wire_cst_public_key, + ) { + wire__crate__api__node__ffi_node_verify_signature_impl(port_, that, msg, sig, public_key) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__node__ffi_node_wait_next_event( + port_: i64, + that: *mut wire_cst_ffi_node, + ) { + wire__crate__api__node__ffi_node_wait_next_event_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_new_address( + port_: i64, + that: *mut wire_cst_ffi_on_chain_payment, + ) { + wire__crate__api__on_chain__ffi_on_chain_payment_new_address_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address( + port_: i64, + that: *mut wire_cst_ffi_on_chain_payment, + address: *mut wire_cst_address, + ) { + wire__crate__api__on_chain__ffi_on_chain_payment_send_all_to_address_impl( + port_, that, address, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address( + port_: i64, + that: *mut wire_cst_ffi_on_chain_payment, + address: *mut wire_cst_address, + amount_sats: u64, + ) { + wire__crate__api__on_chain__ffi_on_chain_payment_send_to_address_impl( + port_, + that, + address, + amount_sats, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send( + port_: i64, + that: *mut wire_cst_ffi_spontaneous_payment, + amount_msat: u64, + node_id: *mut wire_cst_public_key, + sending_parameters: *mut wire_cst_sending_parameters, + ) { + wire__crate__api__spontaneous__ffi_spontaneous_payment_send_impl( + port_, + that, + amount_msat, + node_id, + sending_parameters, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes( + port_: i64, + that: *mut wire_cst_ffi_spontaneous_payment, + amount_msat: u64, + node_id: *mut wire_cst_public_key, + ) { + wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes_impl( + port_, + that, + amount_msat, + node_id, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default( + port_: i64, + ) { + wire__crate__api__types__anchor_channels_config_default_impl(port_) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__types__config_default(port_: i64) { + wire__crate__api__types__config_default_impl(port_) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_receive( + port_: i64, + that: *mut wire_cst_ffi_unified_qr_payment, + amount_sats: u64, + message: *mut wire_cst_list_prim_u_8_strict, + expiry_sec: u32, + ) { + wire__crate__api__unified_qr__ffi_unified_qr_payment_receive_impl( + port_, + that, + amount_sats, + message, + expiry_sec, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_send( + port_: i64, + that: *mut wire_cst_ffi_unified_qr_payment, + uri_str: *mut wire_cst_list_prim_u_8_strict, + ) { + wire__crate__api__unified_qr__ffi_unified_qr_payment_send_impl(port_, that, uri_str) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeBuilder( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::increment_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeBuilder( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::decrement_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodeNode( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::increment_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodeNode( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::decrement_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodegraphNetworkGraph( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::increment_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodegraphNetworkGraph( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::decrement_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt11Payment( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::increment_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt11Payment( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::decrement_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::increment_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentBolt12Payment( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::decrement_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::increment_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentOnchainPayment( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::decrement_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPayment( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::increment_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentSpontaneousPayment( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::decrement_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_increment_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::increment_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_rust_arc_decrement_strong_count_RustOpaque_ldk_nodepaymentUnifiedQrPayment( + ptr: *const std::ffi::c_void, + ) { + unsafe { + StdArc::::decrement_strong_count(ptr as _); + } + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_address() -> *mut wire_cst_address { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_address::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_anchor_channels_config( + ) -> *mut wire_cst_anchor_channels_config { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_anchor_channels_config::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_bolt_11_invoice( + ) -> *mut wire_cst_bolt_11_invoice { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_bolt_11_invoice::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_bolt_12_parse_error( + ) -> *mut wire_cst_bolt_12_parse_error { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_bolt_12_parse_error::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_bool(value: bool) -> *mut bool { + flutter_rust_bridge::for_generated::new_leak_box_ptr(value) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_chain_data_source_config( + ) -> *mut wire_cst_chain_data_source_config { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_chain_data_source_config::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_channel_config( + ) -> *mut wire_cst_channel_config { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_channel_config::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_channel_id() -> *mut wire_cst_channel_id { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_channel_id::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_channel_info( + ) -> *mut wire_cst_channel_info { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_channel_info::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_channel_update_info( + ) -> *mut wire_cst_channel_update_info { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_channel_update_info::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_closure_reason( + ) -> *mut wire_cst_closure_reason { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_closure_reason::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_config() -> *mut wire_cst_config { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_config::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_decode_error( + ) -> *mut wire_cst_decode_error { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_decode_error::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_entropy_source_config( + ) -> *mut wire_cst_entropy_source_config { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_entropy_source_config::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_esplora_sync_config( + ) -> *mut wire_cst_esplora_sync_config { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_esplora_sync_config::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_event() -> *mut wire_cst_event { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_event::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_11_payment( + ) -> *mut wire_cst_ffi_bolt_11_payment { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_bolt_11_payment::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_ffi_bolt_12_payment( + ) -> *mut wire_cst_ffi_bolt_12_payment { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_bolt_12_payment::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_ffi_mnemonic( + ) -> *mut wire_cst_ffi_mnemonic { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_mnemonic::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_ffi_network_graph( + ) -> *mut wire_cst_ffi_network_graph { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_network_graph::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_ffi_node() -> *mut wire_cst_ffi_node { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_ffi_node::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_ffi_on_chain_payment( + ) -> *mut wire_cst_ffi_on_chain_payment { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_on_chain_payment::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_ffi_spontaneous_payment( + ) -> *mut wire_cst_ffi_spontaneous_payment { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_spontaneous_payment::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_ffi_unified_qr_payment( + ) -> *mut wire_cst_ffi_unified_qr_payment { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_unified_qr_payment::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_gossip_source_config( + ) -> *mut wire_cst_gossip_source_config { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_gossip_source_config::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_liquidity_source_config( + ) -> *mut wire_cst_liquidity_source_config { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_liquidity_source_config::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_lsp_fee_limits( + ) -> *mut wire_cst_lsp_fee_limits { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_lsp_fee_limits::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_max_total_routing_fee_limit( + ) -> *mut wire_cst_max_total_routing_fee_limit { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_max_total_routing_fee_limit::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_node_alias() -> *mut wire_cst_node_alias { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_node_alias::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_node_announcement_info( + ) -> *mut wire_cst_node_announcement_info { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_node_announcement_info::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_node_id() -> *mut wire_cst_node_id { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_node_id::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_node_info() -> *mut wire_cst_node_info { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_node_info::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_offer() -> *mut wire_cst_offer { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_offer::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_offer_id() -> *mut wire_cst_offer_id { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_offer_id::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_out_point() -> *mut wire_cst_out_point { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_out_point::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_payment_details( + ) -> *mut wire_cst_payment_details { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_payment_details::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_payment_failure_reason( + value: i32, + ) -> *mut i32 { + flutter_rust_bridge::for_generated::new_leak_box_ptr(value) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_payment_hash( + ) -> *mut wire_cst_payment_hash { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_payment_hash::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_payment_id() -> *mut wire_cst_payment_id { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_payment_id::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_payment_preimage( + ) -> *mut wire_cst_payment_preimage { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_payment_preimage::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_payment_secret( + ) -> *mut wire_cst_payment_secret { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_payment_secret::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_public_key() -> *mut wire_cst_public_key { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_public_key::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_refund() -> *mut wire_cst_refund { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_refund::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_sending_parameters( + ) -> *mut wire_cst_sending_parameters { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_sending_parameters::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_socket_address( + ) -> *mut wire_cst_socket_address { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_socket_address::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_txid() -> *mut wire_cst_txid { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_txid::new_with_null_ptr()) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_u_16(value: u16) -> *mut u16 { + flutter_rust_bridge::for_generated::new_leak_box_ptr(value) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_u_32(value: u32) -> *mut u32 { + flutter_rust_bridge::for_generated::new_leak_box_ptr(value) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_u_64(value: u64) -> *mut u64 { + flutter_rust_bridge::for_generated::new_leak_box_ptr(value) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_u_8(value: u8) -> *mut u8 { + flutter_rust_bridge::for_generated::new_leak_box_ptr(value) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_box_autoadd_user_channel_id( + ) -> *mut wire_cst_user_channel_id { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_user_channel_id::new_with_null_ptr(), + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_channel_details( + len: i32, + ) -> *mut wire_cst_list_channel_details { + let wrap = wire_cst_list_channel_details { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_lightning_balance( + len: i32, + ) -> *mut wire_cst_list_lightning_balance { + let wrap = wire_cst_list_lightning_balance { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_node_id(len: i32) -> *mut wire_cst_list_node_id { + let wrap = wire_cst_list_node_id { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_payment_details( + len: i32, + ) -> *mut wire_cst_list_payment_details { + let wrap = wire_cst_list_payment_details { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_peer_details( + len: i32, + ) -> *mut wire_cst_list_peer_details { + let wrap = wire_cst_list_peer_details { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_pending_sweep_balance( + len: i32, + ) -> *mut wire_cst_list_pending_sweep_balance { + let wrap = wire_cst_list_pending_sweep_balance { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_prim_u_64_strict( + len: i32, + ) -> *mut wire_cst_list_prim_u_64_strict { + let ans = wire_cst_list_prim_u_64_strict { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(ans) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_prim_u_8_loose( + len: i32, + ) -> *mut wire_cst_list_prim_u_8_loose { + let ans = wire_cst_list_prim_u_8_loose { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(ans) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_prim_u_8_strict( + len: i32, + ) -> *mut wire_cst_list_prim_u_8_strict { + let ans = wire_cst_list_prim_u_8_strict { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(ans) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_public_key( + len: i32, + ) -> *mut wire_cst_list_public_key { + let wrap = wire_cst_list_public_key { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_record_string_string( + len: i32, + ) -> *mut wire_cst_list_record_string_string { + let wrap = wire_cst_list_record_string_string { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_cst_new_list_socket_address( + len: i32, + ) -> *mut wire_cst_list_socket_address { + let wrap = wire_cst_list_socket_address { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) + } + + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_address { + s: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_anchor_channels_config { + trusted_peers_no_reserve: *mut wire_cst_list_public_key, + per_channel_reserve_sats: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_balance_details { + total_onchain_balance_sats: u64, + spendable_onchain_balance_sats: u64, + total_lightning_balance_sats: u64, + lightning_balances: *mut wire_cst_list_lightning_balance, + pending_balances_from_channel_closures: *mut wire_cst_list_pending_sweep_balance, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_best_block { + block_hash: *mut wire_cst_list_prim_u_8_strict, + height: u32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_bolt_11_invoice { + signed_raw_invoice: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_bolt_12_invoice { + data: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_bolt_12_parse_error { + tag: i32, + kind: Bolt12ParseErrorKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union Bolt12ParseErrorKind { + Bech32: wire_cst_Bolt12ParseError_Bech32, + Decode: wire_cst_Bolt12ParseError_Decode, + InvalidSemantics: wire_cst_Bolt12ParseError_InvalidSemantics, + InvalidSignature: wire_cst_Bolt12ParseError_InvalidSignature, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Bolt12ParseError_Bech32 { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Bolt12ParseError_Decode { + field0: *mut wire_cst_decode_error, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Bolt12ParseError_InvalidSemantics { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Bolt12ParseError_InvalidSignature { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_chain_data_source_config { + tag: i32, + kind: ChainDataSourceConfigKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union ChainDataSourceConfigKind { + Esplora: wire_cst_ChainDataSourceConfig_Esplora, + BitcoindRpc: wire_cst_ChainDataSourceConfig_BitcoindRpc, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ChainDataSourceConfig_Esplora { + server_url: *mut wire_cst_list_prim_u_8_strict, + sync_config: *mut wire_cst_esplora_sync_config, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ChainDataSourceConfig_BitcoindRpc { + rpc_host: *mut wire_cst_list_prim_u_8_strict, + rpc_port: u16, + rpc_user: *mut wire_cst_list_prim_u_8_strict, + rpc_password: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_channel_config { + forwarding_fee_proportional_millionths: u32, + forwarding_fee_base_msat: u32, + cltv_expiry_delta: u16, + max_dust_htlc_exposure: wire_cst_max_dust_htlc_exposure, + force_close_avoidance_max_fee_satoshis: u64, + accept_underpaying_htlcs: bool, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_channel_details { + channel_id: wire_cst_channel_id, + counterparty_node_id: wire_cst_public_key, + funding_txo: *mut wire_cst_out_point, + channel_value_sats: u64, + unspendable_punishment_reserve: *mut u64, + user_channel_id: wire_cst_user_channel_id, + feerate_sat_per_1000_weight: u32, + outbound_capacity_msat: u64, + inbound_capacity_msat: u64, + confirmations_required: *mut u32, + confirmations: *mut u32, + is_outbound: bool, + is_channel_ready: bool, + is_usable: bool, + cltv_expiry_delta: *mut u16, + counterparty_unspendable_punishment_reserve: u64, + counterparty_outbound_htlc_minimum_msat: *mut u64, + counterparty_outbound_htlc_maximum_msat: *mut u64, + counterparty_forwarding_info_fee_base_msat: *mut u32, + counterparty_forwarding_info_fee_proportional_millionths: *mut u32, + counterparty_forwarding_info_cltv_expiry_delta: *mut u16, + next_outbound_htlc_limit_msat: u64, + next_outbound_htlc_minimum_msat: u64, + force_close_spend_delay: *mut u16, + inbound_htlc_minimum_msat: u64, + inbound_htlc_maximum_msat: *mut u64, + config: wire_cst_channel_config, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_channel_id { + data: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_channel_info { + node_one: wire_cst_node_id, + one_to_two: *mut wire_cst_channel_update_info, + node_two: wire_cst_node_id, + two_to_one: *mut wire_cst_channel_update_info, + capacity_sats: *mut u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_channel_update_info { + last_update: u32, + enabled: bool, + cltv_expiry_delta: u16, + htlc_minimum_msat: u64, + htlc_maximum_msat: u64, + fees: wire_cst_routing_fees, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_closure_reason { + tag: i32, + kind: ClosureReasonKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union ClosureReasonKind { + PeerFeerateTooLow: wire_cst_ClosureReason_PeerFeerateTooLow, + CounterpartyForceClosed: wire_cst_ClosureReason_CounterpartyForceClosed, + HolderForceClosed: wire_cst_ClosureReason_HolderForceClosed, + ProcessingError: wire_cst_ClosureReason_ProcessingError, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ClosureReason_PeerFeerateTooLow { + peer_feerate_sat_per_kw: u32, + required_feerate_sat_per_kw: u32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ClosureReason_CounterpartyForceClosed { + peer_msg: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ClosureReason_HolderForceClosed { + broadcasted_latest_txn: *mut bool, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ClosureReason_ProcessingError { + err: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_config { + storage_dir_path: *mut wire_cst_list_prim_u_8_strict, + log_dir_path: *mut wire_cst_list_prim_u_8_strict, + network: i32, + listening_addresses: *mut wire_cst_list_socket_address, + node_alias: *mut wire_cst_node_alias, + trusted_peers_0conf: *mut wire_cst_list_public_key, + probing_liquidity_limit_multiplier: u64, + log_level: i32, + anchor_channels_config: *mut wire_cst_anchor_channels_config, + sending_parameters: *mut wire_cst_sending_parameters, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_decode_error { + tag: i32, + kind: DecodeErrorKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union DecodeErrorKind { + Io: wire_cst_DecodeError_Io, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_DecodeError_Io { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_entropy_source_config { + tag: i32, + kind: EntropySourceConfigKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union EntropySourceConfigKind { + SeedFile: wire_cst_EntropySourceConfig_SeedFile, + SeedBytes: wire_cst_EntropySourceConfig_SeedBytes, + Bip39Mnemonic: wire_cst_EntropySourceConfig_Bip39Mnemonic, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_EntropySourceConfig_SeedFile { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_EntropySourceConfig_SeedBytes { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_EntropySourceConfig_Bip39Mnemonic { + mnemonic: *mut wire_cst_ffi_mnemonic, + passphrase: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_esplora_sync_config { + onchain_wallet_sync_interval_secs: u64, + lightning_wallet_sync_interval_secs: u64, + fee_rate_cache_update_interval_secs: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_event { + tag: i32, + kind: EventKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union EventKind { + PaymentClaimable: wire_cst_Event_PaymentClaimable, + PaymentSuccessful: wire_cst_Event_PaymentSuccessful, + PaymentFailed: wire_cst_Event_PaymentFailed, + PaymentReceived: wire_cst_Event_PaymentReceived, + ChannelPending: wire_cst_Event_ChannelPending, + ChannelReady: wire_cst_Event_ChannelReady, + ChannelClosed: wire_cst_Event_ChannelClosed, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Event_PaymentClaimable { + payment_id: *mut wire_cst_payment_id, + payment_hash: *mut wire_cst_payment_hash, + claimable_amount_msat: u64, + claim_deadline: *mut u32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Event_PaymentSuccessful { + payment_id: *mut wire_cst_payment_id, + payment_hash: *mut wire_cst_payment_hash, + fee_paid_msat: *mut u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Event_PaymentFailed { + payment_id: *mut wire_cst_payment_id, + payment_hash: *mut wire_cst_payment_hash, + reason: *mut i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Event_PaymentReceived { + payment_id: *mut wire_cst_payment_id, + payment_hash: *mut wire_cst_payment_hash, + amount_msat: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Event_ChannelPending { + channel_id: *mut wire_cst_channel_id, + user_channel_id: *mut wire_cst_user_channel_id, + former_temporary_channel_id: *mut wire_cst_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + funding_txo: *mut wire_cst_out_point, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Event_ChannelReady { + channel_id: *mut wire_cst_channel_id, + user_channel_id: *mut wire_cst_user_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_Event_ChannelClosed { + channel_id: *mut wire_cst_channel_id, + user_channel_id: *mut wire_cst_user_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + reason: *mut wire_cst_closure_reason, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ffi_bolt_11_payment { + opaque: usize, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ffi_bolt_12_payment { + opaque: usize, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ffi_mnemonic { + seed_phrase: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ffi_network_graph { + opaque: usize, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ffi_node { + opaque: usize, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ffi_node_error { + tag: i32, + kind: FfiNodeErrorKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union FfiNodeErrorKind { + Decode: wire_cst_FfiNodeError_Decode, + Bolt12Parse: wire_cst_FfiNodeError_Bolt12Parse, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_FfiNodeError_Decode { + field0: *mut wire_cst_decode_error, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_FfiNodeError_Bolt12Parse { + field0: *mut wire_cst_bolt_12_parse_error, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ffi_on_chain_payment { + opaque: usize, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ffi_spontaneous_payment { + opaque: usize, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_ffi_unified_qr_payment { + opaque: usize, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_gossip_source_config { + tag: i32, + kind: GossipSourceConfigKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union GossipSourceConfigKind { + RapidGossipSync: wire_cst_GossipSourceConfig_RapidGossipSync, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_GossipSourceConfig_RapidGossipSync { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_lightning_balance { + tag: i32, + kind: LightningBalanceKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union LightningBalanceKind { + ClaimableOnChannelClose: wire_cst_LightningBalance_ClaimableOnChannelClose, + ClaimableAwaitingConfirmations: wire_cst_LightningBalance_ClaimableAwaitingConfirmations, + ContentiousClaimable: wire_cst_LightningBalance_ContentiousClaimable, + MaybeTimeoutClaimableHTLC: wire_cst_LightningBalance_MaybeTimeoutClaimableHTLC, + MaybePreimageClaimableHTLC: wire_cst_LightningBalance_MaybePreimageClaimableHTLC, + CounterpartyRevokedOutputClaimable: + wire_cst_LightningBalance_CounterpartyRevokedOutputClaimable, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_LightningBalance_ClaimableOnChannelClose { + channel_id: *mut wire_cst_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + amount_satoshis: u64, + transaction_fee_satoshis: u64, + outbound_payment_htlc_rounded_msat: u64, + outbound_forwarded_htlc_rounded_msat: u64, + inbound_claiming_htlc_rounded_msat: u64, + inbound_htlc_rounded_msat: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_LightningBalance_ClaimableAwaitingConfirmations { + channel_id: *mut wire_cst_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + amount_satoshis: u64, + confirmation_height: u32, + source: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_LightningBalance_ContentiousClaimable { + channel_id: *mut wire_cst_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + amount_satoshis: u64, + timeout_height: u32, + payment_hash: *mut wire_cst_payment_hash, + payment_preimage: *mut wire_cst_payment_preimage, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_LightningBalance_MaybeTimeoutClaimableHTLC { + channel_id: *mut wire_cst_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + amount_satoshis: u64, + claimable_height: u32, + payment_hash: *mut wire_cst_payment_hash, + outbound_payment: bool, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_LightningBalance_MaybePreimageClaimableHTLC { + channel_id: *mut wire_cst_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + amount_satoshis: u64, + expiry_height: u32, + payment_hash: *mut wire_cst_payment_hash, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_LightningBalance_CounterpartyRevokedOutputClaimable { + channel_id: *mut wire_cst_channel_id, + counterparty_node_id: *mut wire_cst_public_key, + amount_satoshis: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_liquidity_source_config { + lsps2_service: wire_cst_record_socket_address_public_key_opt_string, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_channel_details { + ptr: *mut wire_cst_channel_details, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_lightning_balance { + ptr: *mut wire_cst_lightning_balance, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_node_id { + ptr: *mut wire_cst_node_id, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_payment_details { + ptr: *mut wire_cst_payment_details, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_peer_details { + ptr: *mut wire_cst_peer_details, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_pending_sweep_balance { + ptr: *mut wire_cst_pending_sweep_balance, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_prim_u_64_strict { + ptr: *mut u64, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_prim_u_8_loose { + ptr: *mut u8, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_prim_u_8_strict { + ptr: *mut u8, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_public_key { + ptr: *mut wire_cst_public_key, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_record_string_string { + ptr: *mut wire_cst_record_string_string, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_list_socket_address { + ptr: *mut wire_cst_socket_address, + len: i32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_lsp_fee_limits { + max_total_opening_fee_msat: *mut u64, + max_proportional_opening_fee_ppm_msat: *mut u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_max_dust_htlc_exposure { + tag: i32, + kind: MaxDustHTLCExposureKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union MaxDustHTLCExposureKind { + FixedLimitMsat: wire_cst_MaxDustHTLCExposure_FixedLimitMsat, + FeeRateMultiplier: wire_cst_MaxDustHTLCExposure_FeeRateMultiplier, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_MaxDustHTLCExposure_FixedLimitMsat { + field0: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_MaxDustHTLCExposure_FeeRateMultiplier { + field0: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_max_total_routing_fee_limit { + tag: i32, + kind: MaxTotalRoutingFeeLimitKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union MaxTotalRoutingFeeLimitKind { + FeeCap: wire_cst_MaxTotalRoutingFeeLimit_FeeCap, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap { + amount_msat: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_node_alias { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_node_announcement_info { + last_update: u32, + alias: *mut wire_cst_list_prim_u_8_strict, + addresses: *mut wire_cst_list_socket_address, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_node_id { + compressed: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_node_info { + channels: *mut wire_cst_list_prim_u_64_strict, + announcement_info: *mut wire_cst_node_announcement_info, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_node_status { + is_running: bool, + is_listening: bool, + current_best_block: wire_cst_best_block, + latest_lightning_wallet_sync_timestamp: *mut u64, + latest_onchain_wallet_sync_timestamp: *mut u64, + latest_fee_rate_cache_update_timestamp: *mut u64, + latest_rgs_snapshot_timestamp: *mut u64, + latest_node_announcement_broadcast_timestamp: *mut u64, + latest_channel_monitor_archival_height: *mut u32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_offer { + s: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_offer_id { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_out_point { + txid: wire_cst_txid, + vout: u32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_payment_details { + id: wire_cst_payment_id, + kind: wire_cst_payment_kind, + amount_msat: *mut u64, + direction: i32, + status: i32, + latest_update_timestamp: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_payment_hash { + data: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_payment_id { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_payment_kind { + tag: i32, + kind: PaymentKindKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union PaymentKindKind { + Bolt11: wire_cst_PaymentKind_Bolt11, + Bolt11Jit: wire_cst_PaymentKind_Bolt11Jit, + Spontaneous: wire_cst_PaymentKind_Spontaneous, + Bolt12Offer: wire_cst_PaymentKind_Bolt12Offer, + Bolt12Refund: wire_cst_PaymentKind_Bolt12Refund, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_PaymentKind_Bolt11 { + hash: *mut wire_cst_payment_hash, + preimage: *mut wire_cst_payment_preimage, + secret: *mut wire_cst_payment_secret, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_PaymentKind_Bolt11Jit { + hash: *mut wire_cst_payment_hash, + preimage: *mut wire_cst_payment_preimage, + secret: *mut wire_cst_payment_secret, + lsp_fee_limits: *mut wire_cst_lsp_fee_limits, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_PaymentKind_Spontaneous { + hash: *mut wire_cst_payment_hash, + preimage: *mut wire_cst_payment_preimage, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_PaymentKind_Bolt12Offer { + hash: *mut wire_cst_payment_hash, + preimage: *mut wire_cst_payment_preimage, + secret: *mut wire_cst_payment_secret, + offer_id: *mut wire_cst_offer_id, + payer_note: *mut wire_cst_list_prim_u_8_strict, + quantity: *mut u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_PaymentKind_Bolt12Refund { + hash: *mut wire_cst_payment_hash, + preimage: *mut wire_cst_payment_preimage, + secret: *mut wire_cst_payment_secret, + payer_note: *mut wire_cst_list_prim_u_8_strict, + quantity: *mut u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_payment_preimage { + data: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_payment_secret { + data: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_peer_details { + node_id: wire_cst_public_key, + address: wire_cst_socket_address, + is_connected: bool, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_pending_sweep_balance { + tag: i32, + kind: PendingSweepBalanceKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union PendingSweepBalanceKind { + PendingBroadcast: wire_cst_PendingSweepBalance_PendingBroadcast, + BroadcastAwaitingConfirmation: wire_cst_PendingSweepBalance_BroadcastAwaitingConfirmation, + AwaitingThresholdConfirmations: wire_cst_PendingSweepBalance_AwaitingThresholdConfirmations, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_PendingSweepBalance_PendingBroadcast { + channel_id: *mut wire_cst_channel_id, + amount_satoshis: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_PendingSweepBalance_BroadcastAwaitingConfirmation { + channel_id: *mut wire_cst_channel_id, + latest_broadcast_height: u32, + latest_spending_txid: *mut wire_cst_txid, + amount_satoshis: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_PendingSweepBalance_AwaitingThresholdConfirmations { + channel_id: *mut wire_cst_channel_id, + latest_spending_txid: *mut wire_cst_txid, + confirmation_hash: *mut wire_cst_list_prim_u_8_strict, + confirmation_height: u32, + amount_satoshis: u64, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_public_key { + hex: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_qr_payment_result { + tag: i32, + kind: QrPaymentResultKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union QrPaymentResultKind { + Onchain: wire_cst_QrPaymentResult_Onchain, + Bolt11: wire_cst_QrPaymentResult_Bolt11, + Bolt12: wire_cst_QrPaymentResult_Bolt12, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_QrPaymentResult_Onchain { + txid: *mut wire_cst_txid, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_QrPaymentResult_Bolt11 { + payment_id: *mut wire_cst_payment_id, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_QrPaymentResult_Bolt12 { + payment_id: *mut wire_cst_payment_id, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_record_socket_address_public_key_opt_string { + field0: wire_cst_socket_address, + field1: wire_cst_public_key, + field2: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_record_string_string { + field0: *mut wire_cst_list_prim_u_8_strict, + field1: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_refund { + s: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_routing_fees { + base_msat: u32, + proportional_millionths: u32, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_sending_parameters { + max_total_routing_fee_msat: *mut wire_cst_max_total_routing_fee_limit, + max_total_cltv_expiry_delta: *mut u32, + max_path_count: *mut u8, + max_channel_saturation_power_of_half: *mut u8, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_socket_address { + tag: i32, + kind: SocketAddressKind, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub union SocketAddressKind { + TcpIpV4: wire_cst_SocketAddress_TcpIpV4, + TcpIpV6: wire_cst_SocketAddress_TcpIpV6, + OnionV2: wire_cst_SocketAddress_OnionV2, + OnionV3: wire_cst_SocketAddress_OnionV3, + Hostname: wire_cst_SocketAddress_Hostname, + nil__: (), + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_SocketAddress_TcpIpV4 { + addr: *mut wire_cst_list_prim_u_8_strict, + port: u16, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_SocketAddress_TcpIpV6 { + addr: *mut wire_cst_list_prim_u_8_strict, + port: u16, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_SocketAddress_OnionV2 { + field0: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_SocketAddress_OnionV3 { + ed25519_pubkey: *mut wire_cst_list_prim_u_8_strict, + checksum: u16, + version: u8, + port: u16, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_SocketAddress_Hostname { + addr: *mut wire_cst_list_prim_u_8_strict, + port: u16, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_txid { + hash: *mut wire_cst_list_prim_u_8_strict, + } + #[repr(C)] + #[derive(Clone, Copy)] + pub struct wire_cst_user_channel_id { + data: *mut wire_cst_list_prim_u_8_strict, + } +} #[cfg(not(target_family = "wasm"))] pub use io::*; diff --git a/rust/src/utils/error.rs b/rust/src/utils/error.rs index a988553..93d613d 100644 --- a/rust/src/utils/error.rs +++ b/rust/src/utils/error.rs @@ -1,7 +1,7 @@ use ldk_node::{BuildError, NodeError}; #[derive(Debug, PartialEq)] -pub enum LdkNodeError { +pub enum FfiNodeError { InvalidTxid, /// Returned when trying to start [Node] while it is already running. AlreadyRunning, @@ -99,10 +99,15 @@ pub enum LdkNodeError { InvalidRefund, ///The provided offer was denominated in an unsupported currency. UnsupportedCurrency, + UriParameterParsingFailed, + InvalidUri, + InvalidQuantity, + InvalidNodeAlias, } #[allow(dead_code)] #[derive(Debug)] -pub enum LdkBuilderError { +pub enum FfiBuilderError { + InvalidNodeAlias, SocketAddressParseError, /// The given seed bytes are invalid, e.g., have invalid length. InvalidSeedBytes, @@ -130,92 +135,96 @@ pub enum LdkBuilderError { InvalidPublicKey, } -impl From for LdkNodeError { +impl From for FfiNodeError { fn from(value: NodeError) -> Self { match value { - NodeError::AlreadyRunning => LdkNodeError::AlreadyRunning, - NodeError::NotRunning => LdkNodeError::NotRunning, - NodeError::OnchainTxCreationFailed => LdkNodeError::OnchainTxCreationFailed, - NodeError::ConnectionFailed => LdkNodeError::ConnectionFailed, - NodeError::InvoiceCreationFailed => LdkNodeError::InvoiceCreationFailed, - NodeError::PaymentSendingFailed => LdkNodeError::PaymentSendingFailed, - NodeError::ProbeSendingFailed => LdkNodeError::ProbeSendingFailed, - NodeError::ChannelCreationFailed => LdkNodeError::ChannelCreationFailed, - NodeError::ChannelClosingFailed => LdkNodeError::ChannelClosingFailed, - NodeError::ChannelConfigUpdateFailed => LdkNodeError::ChannelConfigUpdateFailed, - NodeError::PersistenceFailed => LdkNodeError::PersistenceFailed, - NodeError::WalletOperationFailed => LdkNodeError::WalletOperationFailed, - NodeError::OnchainTxSigningFailed => LdkNodeError::OnchainTxSigningFailed, - NodeError::MessageSigningFailed => LdkNodeError::MessageSigningFailed, - NodeError::TxSyncFailed => LdkNodeError::TxSyncFailed, - NodeError::GossipUpdateFailed => LdkNodeError::GossipUpdateFailed, - NodeError::InvalidAddress => LdkNodeError::InvalidAddress, - NodeError::InvalidSocketAddress => LdkNodeError::InvalidSocketAddress, - NodeError::InvalidPublicKey => LdkNodeError::InvalidPublicKey, - NodeError::InvalidSecretKey => LdkNodeError::InvalidSecretKey, - NodeError::InvalidPaymentHash => LdkNodeError::InvalidPaymentHash, - NodeError::InvalidPaymentPreimage => LdkNodeError::InvalidPaymentPreimage, - NodeError::InvalidPaymentSecret => LdkNodeError::InvalidPaymentSecret, - NodeError::InvalidAmount => LdkNodeError::InvalidAmount, - NodeError::InvalidInvoice => LdkNodeError::InvalidInvoice, - NodeError::InvalidChannelId => LdkNodeError::InvalidChannelId, - NodeError::InvalidNetwork => LdkNodeError::InvalidNetwork, - NodeError::DuplicatePayment => LdkNodeError::DuplicatePayment, - NodeError::InsufficientFunds => LdkNodeError::InsufficientFunds, - NodeError::FeerateEstimationUpdateFailed => LdkNodeError::FeerateEstimationUpdateFailed, - NodeError::LiquidityRequestFailed => LdkNodeError::LiquidityRequestFailed, - NodeError::LiquiditySourceUnavailable => LdkNodeError::LiquiditySourceUnavailable, - NodeError::LiquidityFeeTooHigh => LdkNodeError::LiquidityFeeTooHigh, - NodeError::InvalidPaymentId => LdkNodeError::InvalidPaymentId, - NodeError::InvoiceRequestCreationFailed => LdkNodeError::InvoiceRequestCreationFailed, - NodeError::OfferCreationFailed => LdkNodeError::OfferCreationFailed, - NodeError::RefundCreationFailed => LdkNodeError::RefundCreationFailed, + NodeError::AlreadyRunning => FfiNodeError::AlreadyRunning, + NodeError::NotRunning => FfiNodeError::NotRunning, + NodeError::OnchainTxCreationFailed => FfiNodeError::OnchainTxCreationFailed, + NodeError::ConnectionFailed => FfiNodeError::ConnectionFailed, + NodeError::InvoiceCreationFailed => FfiNodeError::InvoiceCreationFailed, + NodeError::PaymentSendingFailed => FfiNodeError::PaymentSendingFailed, + NodeError::ProbeSendingFailed => FfiNodeError::ProbeSendingFailed, + NodeError::ChannelCreationFailed => FfiNodeError::ChannelCreationFailed, + NodeError::ChannelClosingFailed => FfiNodeError::ChannelClosingFailed, + NodeError::ChannelConfigUpdateFailed => FfiNodeError::ChannelConfigUpdateFailed, + NodeError::PersistenceFailed => FfiNodeError::PersistenceFailed, + NodeError::WalletOperationFailed => FfiNodeError::WalletOperationFailed, + NodeError::OnchainTxSigningFailed => FfiNodeError::OnchainTxSigningFailed, + NodeError::TxSyncFailed => FfiNodeError::TxSyncFailed, + NodeError::GossipUpdateFailed => FfiNodeError::GossipUpdateFailed, + NodeError::InvalidAddress => FfiNodeError::InvalidAddress, + NodeError::InvalidSocketAddress => FfiNodeError::InvalidSocketAddress, + NodeError::InvalidPublicKey => FfiNodeError::InvalidPublicKey, + NodeError::InvalidSecretKey => FfiNodeError::InvalidSecretKey, + NodeError::InvalidPaymentHash => FfiNodeError::InvalidPaymentHash, + NodeError::InvalidPaymentPreimage => FfiNodeError::InvalidPaymentPreimage, + NodeError::InvalidPaymentSecret => FfiNodeError::InvalidPaymentSecret, + NodeError::InvalidAmount => FfiNodeError::InvalidAmount, + NodeError::InvalidInvoice => FfiNodeError::InvalidInvoice, + NodeError::InvalidChannelId => FfiNodeError::InvalidChannelId, + NodeError::InvalidNetwork => FfiNodeError::InvalidNetwork, + NodeError::DuplicatePayment => FfiNodeError::DuplicatePayment, + NodeError::InsufficientFunds => FfiNodeError::InsufficientFunds, + NodeError::FeerateEstimationUpdateFailed => FfiNodeError::FeerateEstimationUpdateFailed, + NodeError::LiquidityRequestFailed => FfiNodeError::LiquidityRequestFailed, + NodeError::LiquiditySourceUnavailable => FfiNodeError::LiquiditySourceUnavailable, + NodeError::LiquidityFeeTooHigh => FfiNodeError::LiquidityFeeTooHigh, + NodeError::InvalidPaymentId => FfiNodeError::InvalidPaymentId, + NodeError::InvoiceRequestCreationFailed => FfiNodeError::InvoiceRequestCreationFailed, + NodeError::OfferCreationFailed => FfiNodeError::OfferCreationFailed, + NodeError::RefundCreationFailed => FfiNodeError::RefundCreationFailed, NodeError::FeerateEstimationUpdateTimeout => { - LdkNodeError::FeerateEstimationUpdateTimeout + FfiNodeError::FeerateEstimationUpdateTimeout } - NodeError::WalletOperationTimeout => LdkNodeError::WalletOperationTimeout, - NodeError::TxSyncTimeout => LdkNodeError::TxSyncTimeout, - NodeError::GossipUpdateTimeout => LdkNodeError::GossipUpdateTimeout, - NodeError::InvalidOfferId => LdkNodeError::InvalidOfferId, - NodeError::InvalidNodeId => LdkNodeError::InvalidNodeId, - NodeError::InvalidOffer => LdkNodeError::InvalidOffer, - NodeError::InvalidRefund => LdkNodeError::InvalidRefund, - NodeError::UnsupportedCurrency => LdkNodeError::UnsupportedCurrency, + NodeError::WalletOperationTimeout => FfiNodeError::WalletOperationTimeout, + NodeError::TxSyncTimeout => FfiNodeError::TxSyncTimeout, + NodeError::GossipUpdateTimeout => FfiNodeError::GossipUpdateTimeout, + NodeError::InvalidOfferId => FfiNodeError::InvalidOfferId, + NodeError::InvalidNodeId => FfiNodeError::InvalidNodeId, + NodeError::InvalidOffer => FfiNodeError::InvalidOffer, + NodeError::InvalidRefund => FfiNodeError::InvalidRefund, + NodeError::UnsupportedCurrency => FfiNodeError::UnsupportedCurrency, + NodeError::UriParameterParsingFailed => FfiNodeError::UriParameterParsingFailed, + NodeError::InvalidUri => FfiNodeError::InvalidUri, + NodeError::InvalidQuantity => FfiNodeError::InvalidQuantity, + NodeError::InvalidNodeAlias => FfiNodeError::InvalidNodeAlias, } } } -impl From for LdkBuilderError { +impl From for FfiBuilderError { fn from(value: BuildError) -> Self { match value { - BuildError::InvalidSeedBytes => LdkBuilderError::InvalidSeedBytes, - BuildError::InvalidSeedFile => LdkBuilderError::InvalidSeedFile, - BuildError::InvalidSystemTime => LdkBuilderError::InvalidSystemTime, - BuildError::ReadFailed => LdkBuilderError::ReadFailed, - BuildError::WriteFailed => LdkBuilderError::WriteFailed, - BuildError::StoragePathAccessFailed => LdkBuilderError::StoragePathAccessFailed, - BuildError::WalletSetupFailed => LdkBuilderError::WalletSetupFailed, - BuildError::LoggerSetupFailed => LdkBuilderError::LoggerSetupFailed, - BuildError::InvalidChannelMonitor => LdkBuilderError::InvalidChannelMonitor, - BuildError::KVStoreSetupFailed => LdkBuilderError::KVStoreSetupFailed, - BuildError::InvalidListeningAddresses => LdkBuilderError::InvalidListeningAddress, + BuildError::InvalidSeedBytes => FfiBuilderError::InvalidSeedBytes, + BuildError::InvalidSeedFile => FfiBuilderError::InvalidSeedFile, + BuildError::InvalidSystemTime => FfiBuilderError::InvalidSystemTime, + BuildError::ReadFailed => FfiBuilderError::ReadFailed, + BuildError::WriteFailed => FfiBuilderError::WriteFailed, + BuildError::StoragePathAccessFailed => FfiBuilderError::StoragePathAccessFailed, + BuildError::WalletSetupFailed => FfiBuilderError::WalletSetupFailed, + BuildError::LoggerSetupFailed => FfiBuilderError::LoggerSetupFailed, + BuildError::InvalidChannelMonitor => FfiBuilderError::InvalidChannelMonitor, + BuildError::KVStoreSetupFailed => FfiBuilderError::KVStoreSetupFailed, + BuildError::InvalidListeningAddresses => FfiBuilderError::InvalidListeningAddress, + BuildError::InvalidNodeAlias => FfiBuilderError::InvalidNodeAlias, } } } -impl From for LdkBuilderError { +impl From for FfiBuilderError { fn from(value: ldk_node::bip39::Error) -> Self { match value { - ldk_node::bip39::Error::BadWordCount(_) => LdkBuilderError::InvalidSeedBytes, - ldk_node::bip39::Error::UnknownWord(_) => LdkBuilderError::InvalidSeedBytes, - ldk_node::bip39::Error::BadEntropyBitCount(_) => LdkBuilderError::InvalidSeedBytes, - ldk_node::bip39::Error::InvalidChecksum => LdkBuilderError::InvalidSeedBytes, - ldk_node::bip39::Error::AmbiguousLanguages(_) => LdkBuilderError::InvalidSeedBytes, + ldk_node::bip39::Error::BadWordCount(_) => FfiBuilderError::InvalidSeedBytes, + ldk_node::bip39::Error::UnknownWord(_) => FfiBuilderError::InvalidSeedBytes, + ldk_node::bip39::Error::BadEntropyBitCount(_) => FfiBuilderError::InvalidSeedBytes, + ldk_node::bip39::Error::InvalidChecksum => FfiBuilderError::InvalidSeedBytes, + ldk_node::bip39::Error::AmbiguousLanguages(_) => FfiBuilderError::InvalidSeedBytes, } } } -impl From for LdkNodeError { +impl From for FfiNodeError { fn from(value: ldk_node::lightning::ln::msgs::DecodeError) -> Self { - LdkNodeError::Decode(value.into()) + FfiNodeError::Decode(value.into()) } } impl From for DecodeError { @@ -232,7 +241,45 @@ impl From for DecodeError { ldk_node::lightning::ln::msgs::DecodeError::BadLengthDescriptor => { DecodeError::BadLengthDescriptor } - ldk_node::lightning::ln::msgs::DecodeError::Io(e) => DecodeError::Io(e.to_string()), + ldk_node::lightning::ln::msgs::DecodeError::Io(e) => + DecodeError::Io(match e { + ldk_node::bitcoin::io::ErrorKind::NotFound => + "An entity was not found.".to_string(), + ldk_node::bitcoin::io::ErrorKind::PermissionDenied => + "operation lacked the necessary privileges to complete.".to_string(), + ldk_node::bitcoin::io::ErrorKind::ConnectionRefused => + " connection was refused by the remote server..".to_string(), + ldk_node::bitcoin::io::ErrorKind::ConnectionReset => + "connection was reset by the remote server.".to_string(), + ldk_node::bitcoin::io::ErrorKind::ConnectionAborted => + " connection was aborted (terminated) by the remote server.".to_string(), + ldk_node::bitcoin::io::ErrorKind::NotConnected => + "network operation failed because it was not connected yet.".to_string(), + ldk_node::bitcoin::io::ErrorKind::AddrInUse => + "socket address could not be bound because the address is already in use elsewhere.".to_string(), + ldk_node::bitcoin::io::ErrorKind::AddrNotAvailable => + "nonexistent interface was requested or the requested address was not local.".to_string(), + ldk_node::bitcoin::io::ErrorKind::BrokenPipe => + "operation failed because a pipe was closed.".to_string(), + ldk_node::bitcoin::io::ErrorKind::AlreadyExists => + "entity already exists.".to_string(), + ldk_node::bitcoin::io::ErrorKind::WouldBlock => + "operation needs to block to complete, but the blocking operation was requested to not occur.".to_string(), + ldk_node::bitcoin::io::ErrorKind::InvalidInput => + "parameter was incorrect.".to_string(), + ldk_node::bitcoin::io::ErrorKind::InvalidData => + "data not valid for the operation were encountered.".to_string(), + ldk_node::bitcoin::io::ErrorKind::TimedOut => + " I/O operation’s timeout expired, causing it to be canceled.".to_string(), + ldk_node::bitcoin::io::ErrorKind::WriteZero => + "error returned when an operation could not be completed because a call to write".to_string(), + ldk_node::bitcoin::io::ErrorKind::Interrupted => + " operation was interrupted.".to_string(), + ldk_node::bitcoin::io::ErrorKind::UnexpectedEof => + "error returned when an operation could not be completed because an “end of file” was reached prematurely.".to_string(), + ldk_node::bitcoin::io::ErrorKind::Other => + "custom error that does not fall under any other I/O error kind".to_string(), + }), ldk_node::lightning::ln::msgs::DecodeError::UnsupportedCompression => { DecodeError::UnsupportedCompression } @@ -263,26 +310,26 @@ pub enum Bolt12ParseError { InvalidSemantics(String), InvalidSignature(String), } -impl From for LdkNodeError { +impl From for FfiNodeError { fn from(value: ldk_node::lightning::offers::parse::Bolt12ParseError) -> Self { match value { ldk_node::lightning::offers::parse::Bolt12ParseError::InvalidContinuation => { - LdkNodeError::Bolt12Parse(Bolt12ParseError::InvalidContinuation) + FfiNodeError::Bolt12Parse(Bolt12ParseError::InvalidContinuation) } ldk_node::lightning::offers::parse::Bolt12ParseError::InvalidBech32Hrp => { - LdkNodeError::Bolt12Parse(Bolt12ParseError::InvalidBech32Hrp) + FfiNodeError::Bolt12Parse(Bolt12ParseError::InvalidBech32Hrp) } ldk_node::lightning::offers::parse::Bolt12ParseError::Bech32(e) => { - LdkNodeError::Bolt12Parse(Bolt12ParseError::Bech32(e.to_string())) + FfiNodeError::Bolt12Parse(Bolt12ParseError::Bech32(e.to_string())) } ldk_node::lightning::offers::parse::Bolt12ParseError::Decode(e) => { - LdkNodeError::Bolt12Parse(Bolt12ParseError::Decode(e.into())) + FfiNodeError::Bolt12Parse(Bolt12ParseError::Decode(e.into())) } ldk_node::lightning::offers::parse::Bolt12ParseError::InvalidSemantics(e) => { - LdkNodeError::Bolt12Parse(Bolt12ParseError::InvalidSemantics(format!("{:?}", e))) + FfiNodeError::Bolt12Parse(Bolt12ParseError::InvalidSemantics(format!("{:?}", e))) } ldk_node::lightning::offers::parse::Bolt12ParseError::InvalidSignature(e) => { - LdkNodeError::Bolt12Parse(Bolt12ParseError::InvalidSignature(e.to_string())) + FfiNodeError::Bolt12Parse(Bolt12ParseError::InvalidSignature(e.to_string())) } } } From e799c9dca378cb8a233694758ed099359aeecae8 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Mon, 12 May 2025 00:58:00 -0400 Subject: [PATCH 02/24] set ListeningAddress for alice and bob --- example/integration_test/bolt11_test.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/example/integration_test/bolt11_test.dart b/example/integration_test/bolt11_test.dart index 9d1d7cc..bf4f434 100644 --- a/example/integration_test/bolt11_test.dart +++ b/example/integration_test/bolt11_test.dart @@ -20,7 +20,9 @@ void main() { mnemonic: ldk.Mnemonic( seedPhrase: "replace force spring cruise nothing select glass erupt medal raise consider pull")) - .setStorageDirPath(aliceStoragePath); + .setStorageDirPath(aliceStoragePath) + .setListeningAddresses( + [const ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3080)]); final aliceNode = await aliceBuilder.build(); await aliceNode.start(); final bobStoragePath = "$ldkCache/integration/bob"; @@ -29,7 +31,9 @@ void main() { mnemonic: ldk.Mnemonic( seedPhrase: "skin hospital fee risk health theory actor kiwi solution desert unhappy hello")) - .setStorageDirPath(bobStoragePath); + .setStorageDirPath(bobStoragePath) + .setListeningAddresses( + [const ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3084)]); debugPrint('Bob Storage Path: $bobStoragePath'); final bobNode = await bobBuilder.build(); await bobNode.start(); @@ -39,7 +43,6 @@ void main() { final aliceBalance = (await aliceNode.listBalances()).spendableOnchainBalanceSats; await bobNode.syncWallets(); - expect(aliceBalance, 0); debugPrint("Alice's onChain balance ${aliceBalance.toString()}"); final bobBalance = (await bobNode.listBalances()).spendableOnchainBalanceSats; @@ -47,14 +50,14 @@ void main() { final bobBolt11PaymentHandler = await bobNode.bolt11Payment(); await bobBolt11PaymentHandler.receiveViaJitChannel( - amountMsat: satsToMsats(10000), + amountMsat: satsToMsats(100000), description: 'test', expirySecs: 9000, ); debugPrint("Bob's onChain balance ${bobBalance.toString()}"); final aliceBolt11PaymentHandler = await aliceNode.bolt11Payment(); await aliceBolt11PaymentHandler.receiveViaJitChannel( - amountMsat: satsToMsats(10000), + amountMsat: satsToMsats(100000), description: 'test', expirySecs: 9000, ); From 6a2ddde821c9cbc8e86779b989cfadd95b1b894d Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 13 May 2025 20:00:00 -0400 Subject: [PATCH 03/24] fix(buildWithVssStoreAndFixedHeaders): renamed store_id param to storeId --- example/lib/main.dart | 58 +++++++++++++++++++++++++++---------------- lib/src/root.dart | 6 ++--- 2 files changed, 40 insertions(+), 24 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 57cf8b4..394ff11 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -26,11 +26,6 @@ class _MyAppState extends State { ldk.Bolt11Invoice? invoice; ldk.UserChannelId? userChannelId; - String esploraUrl = "https://mutinynet.ltbl.io/api"; - final esploraConfig = ldk.EsploraSyncConfig( - onchainWalletSyncIntervalSecs: BigInt.from(60), - lightningWalletSyncIntervalSecs: BigInt.from(60), - feeRateCacheUpdateIntervalSecs: BigInt.from(600)); /* // For local esplora server @@ -54,8 +49,6 @@ class _MyAppState extends State { // For a node on the mutiny network with default config and service ldk.Builder builder = ldk.Builder.mutinynet() .setEntropyBip39Mnemonic(mnemonic: ldk.Mnemonic(seedPhrase: mnemonic)) - .setChainSourceEsplora( - syncConfig: esploraConfig, esploraServerUrl: esploraUrl) .setStorageDirPath(nodeStorageDir) .setListeningAddresses([address]); return builder; @@ -66,7 +59,11 @@ class _MyAppState extends State { 'alice_mutinynet', const ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3003), "cart super leaf clinic pistol plug replace close super tooth wealth usage")) - .build(); + .buildWithVssStoreAndFixedHeaders( + vssUrl: "https://mutinynet.ltbl.io/vss/", + storeId: "alice_mutinynet_store", + fixedHeaders: {}); + await startNode(aliceNode); final res = await aliceNode.nodeId(); setState(() { @@ -91,7 +88,7 @@ class _MyAppState extends State { startNode(ldk.Node node) async { try { - node.start(); + await node.start(); } on ldk.NodeException catch (e) { debugPrint(e.toString()); } @@ -102,9 +99,9 @@ class _MyAppState extends State { final bob = await bobNode.listBalances(); if (kDebugMode) { print("alice's balance: ${alice.totalOnchainBalanceSats}"); - print("alice's spendable balance: ${alice.spendableOnchainBalanceSats}"); + print("alice's lightning balance: ${alice.totalLightningBalanceSats}"); print("bob's balance: ${bob.totalOnchainBalanceSats}"); - print("bob's spendable balance: ${bob.spendableOnchainBalanceSats}"); + print("bob's lightning balance: ${bob.totalLightningBalanceSats}"); } setState(() { aliceBalance = alice.spendableOnchainBalanceSats.toInt(); @@ -120,12 +117,24 @@ class _MyAppState extends State { } listChannels() async { - final res = await aliceNode.listChannels(); + final aliceChannnels = await aliceNode.listChannels(); + final bobChannels = await bobNode.listChannels(); if (kDebugMode) { - if (res.isNotEmpty) { - print("======Channels========"); - for (var e in res) { - print("nodeId: ${aliceNodeId!.hex}"); + if (aliceChannnels.isNotEmpty) { + print("======Alice Channels========"); + for (var e in aliceChannnels) { + print("counterparty nodeId: ${e.counterpartyNodeId.hex}"); + print("userChannelId: ${e.userChannelId.data}"); + print("confirmations required: ${e.confirmationsRequired}"); + print("isChannelReady: ${e.isChannelReady}"); + print("isUsable: ${e.isUsable}"); + print("outboundCapacityMsat: ${e.outboundCapacityMsat}"); + } + } + if (bobChannels.isNotEmpty) { + print("======Bob Channels========"); + for (var e in bobChannels) { + print("counterparty nodeId: ${e.counterpartyNodeId.hex}"); print("userChannelId: ${e.userChannelId.data}"); print("confirmations required: ${e.confirmationsRequired}"); print("isChannelReady: ${e.isChannelReady}"); @@ -223,15 +232,22 @@ class _MyAppState extends State { // Bob doesn't have a channel yet, so he can't receive normal payments, // but he can receive payments via JIT channels through an LSP configured // in its node. - invoice = await bobBolt11Handler.receiveViaJitChannel( - amountMsat: BigInt.from(25000 * 1000), + final bobInvoice = await bobBolt11Handler.receive( + amountMsat: BigInt.from(5000000), description: 'asdf', expirySecs: 9217); - debugPrint(invoice!.signedRawInvoice); + final aliceLBalance = + (await aliceNode.listBalances()).totalLightningBalanceSats; + debugPrint("Alice's Lightning balance ${aliceLBalance.toString()}"); + final bobLBalance = + (await bobNode.listBalances()).totalLightningBalanceSats; + debugPrint("Bob's Lightning balance ${bobLBalance.toString()}"); + print(bobInvoice.signedRawInvoice); setState(() { - displayText = invoice!.signedRawInvoice; + displayText = bobInvoice.signedRawInvoice; }); - final paymentId = await aliceBolt11Handler.send(invoice: invoice!); + final paymentId = await aliceBolt11Handler.send(invoice: bobInvoice); + debugPrint("Alice's payment id ${paymentId.field0.toString()}"); final res = await aliceNode.payment(paymentId: paymentId); setState(() { displayText = diff --git a/lib/src/root.dart b/lib/src/root.dart index df1d027..5d36bb4 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -1248,9 +1248,9 @@ class Builder { } } - Future buildWithvssStoreAndFixedHeaders( + Future buildWithVssStoreAndFixedHeaders( {required String vssUrl, - required String store_id, + required String storeId, required Map fixedHeaders}) async { try { await Frb.verifyInit(); @@ -1266,7 +1266,7 @@ class Builder { liquiditySourceConfig: _liquiditySourceConfig, gossipSourceConfig: _gossipSourceConfig)) .buildWithVssStoreAndFixedHeaders( - vssUrl: vssUrl, storeId: store_id, fixedHeaders: fixedHeaders); + vssUrl: vssUrl, storeId: storeId, fixedHeaders: fixedHeaders); return Node._(opaque: res.opaque); } on error.FfiBuilderError catch (e) { throw mapFfiBuilderError(e); From 132022fcd2a9c81f6e2a3e421a0c6e0cd4e2cdbb Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Fri, 16 May 2025 03:28:00 -0400 Subject: [PATCH 04/24] replaced build with buildWithVssStoreAndFixedHeaders --- example/lib/main.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 394ff11..e47ce71 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -77,7 +77,10 @@ class _MyAppState extends State { 'bob_mutinynet', const ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3004), "puppy interest whip tonight dad never sudden response push zone pig patch")) - .build(); + .buildWithVssStoreAndFixedHeaders( + vssUrl: "https://mutinynet.ltbl.io/vss/", + storeId: "bob_mutinynet_store", + fixedHeaders: {}); await startNode(bobNode); final res = await bobNode.nodeId(); setState(() { From 782ea8cd3cbeb5103fc145d2b9f19111b098d5cc Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sat, 17 May 2025 05:32:00 -0400 Subject: [PATCH 05/24] made create_builder synchronous --- ios/Classes/frb_generated.h | 11 ++++---- lib/src/generated/api/builder.dart | 2 +- lib/src/generated/frb_generated.dart | 10 +++---- lib/src/generated/frb_generated.io.dart | 10 +++---- lib/src/root.dart | 16 +++++------ macos/Classes/frb_generated.h | 11 ++++---- rust/src/api/builder.rs | 1 + rust/src/frb_generated.rs | 36 +++++++++++-------------- 8 files changed, 43 insertions(+), 54 deletions(-) diff --git a/ios/Classes/frb_generated.h b/ios/Classes/frb_generated.h index 131795e..85af7ae 100644 --- a/ios/Classes/frb_generated.h +++ b/ios/Classes/frb_generated.h @@ -909,12 +909,11 @@ void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_ struct wire_cst_list_prim_u_8_strict *store_id, struct wire_cst_list_record_string_string *fixed_headers); -void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder(int64_t port_, - struct wire_cst_config *config, - struct wire_cst_chain_data_source_config *chain_data_source_config, - struct wire_cst_entropy_source_config *entropy_source_config, - struct wire_cst_gossip_source_config *gossip_source_config, - struct wire_cst_liquidity_source_config *liquidity_source_config); +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder(struct wire_cst_config *config, + struct wire_cst_chain_data_source_config *chain_data_source_config, + struct wire_cst_entropy_source_config *entropy_source_config, + struct wire_cst_gossip_source_config *gossip_source_config, + struct wire_cst_liquidity_source_config *liquidity_source_config); void frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate(int64_t port_); diff --git a/lib/src/generated/api/builder.dart b/lib/src/generated/api/builder.dart index e57f5a0..9897ff1 100644 --- a/lib/src/generated/api/builder.dart +++ b/lib/src/generated/api/builder.dart @@ -33,7 +33,7 @@ abstract class FfiBuilder implements RustOpaqueInterface { required String storeId, required Map fixedHeaders}); - static Future createBuilder( + static FfiBuilder createBuilder( {required Config config, ChainDataSourceConfig? chainDataSourceConfig, EntropySourceConfig? entropySourceConfig, diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index 42d3d01..5a8a339 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -212,7 +212,7 @@ abstract class coreApi extends BaseApi { required String storeId, required Map fixedHeaders}); - Future crateApiBuilderFfiBuilderCreateBuilder( + FfiBuilder crateApiBuilderFfiBuilderCreateBuilder( {required Config config, ChainDataSourceConfig? chainDataSourceConfig, EntropySourceConfig? entropySourceConfig, @@ -1255,14 +1255,14 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { ); @override - Future crateApiBuilderFfiBuilderCreateBuilder( + FfiBuilder crateApiBuilderFfiBuilderCreateBuilder( {required Config config, ChainDataSourceConfig? chainDataSourceConfig, EntropySourceConfig? entropySourceConfig, GossipSourceConfig? gossipSourceConfig, LiquiditySourceConfig? liquiditySourceConfig}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + return handler.executeSync(SyncTask( + callFfi: () { var arg0 = cst_encode_box_autoadd_config(config); var arg1 = cst_encode_opt_box_autoadd_chain_data_source_config( chainDataSourceConfig); @@ -1273,7 +1273,7 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var arg4 = cst_encode_opt_box_autoadd_liquidity_source_config( liquiditySourceConfig); return wire.wire__crate__api__builder__FfiBuilder_create_builder( - port_, arg0, arg1, arg2, arg3, arg4); + arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( decodeSuccessData: diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index 3fabdec..8df0825 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -5386,8 +5386,7 @@ class coreWire implements BaseWire { ffi.Pointer, ffi.Pointer)>(); - void wire__crate__api__builder__FfiBuilder_create_builder( - int port_, + WireSyncRust2DartDco wire__crate__api__builder__FfiBuilder_create_builder( ffi.Pointer config, ffi.Pointer chain_data_source_config, ffi.Pointer entropy_source_config, @@ -5395,7 +5394,6 @@ class coreWire implements BaseWire { ffi.Pointer liquidity_source_config, ) { return _wire__crate__api__builder__FfiBuilder_create_builder( - port_, config, chain_data_source_config, entropy_source_config, @@ -5406,8 +5404,7 @@ class coreWire implements BaseWire { late final _wire__crate__api__builder__FfiBuilder_create_builderPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, + WireSyncRust2DartDco Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, @@ -5416,8 +5413,7 @@ class coreWire implements BaseWire { 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder'); late final _wire__crate__api__builder__FfiBuilder_create_builder = _wire__crate__api__builder__FfiBuilder_create_builderPtr.asFunction< - void Function( - int, + WireSyncRust2DartDco Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, diff --git a/lib/src/root.dart b/lib/src/root.dart index 5d36bb4..0b8bb16 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -1184,12 +1184,12 @@ class Builder { final nodePath = "${directory.path}/ldk_cache/"; _config!.storageDirPath = nodePath; } - final res = await (await builder.FfiBuilder.createBuilder( + final res = await builder.FfiBuilder.createBuilder( config: _config ?? Builder()._config!, chainDataSourceConfig: _chainDataSourceConfig, entropySourceConfig: _entropySource, liquiditySourceConfig: _liquiditySourceConfig, - gossipSourceConfig: _gossipSourceConfig)) + gossipSourceConfig: _gossipSourceConfig) .build(); return Node._(opaque: res.opaque); } on error.FfiBuilderError catch (e) { @@ -1206,12 +1206,12 @@ class Builder { final nodePath = "${directory.path}/ldk_cache/"; _config!.storageDirPath = nodePath; } - final res = await (await builder.FfiBuilder.createBuilder( + final res = await builder.FfiBuilder.createBuilder( config: _config ?? Builder()._config!, chainDataSourceConfig: _chainDataSourceConfig, entropySourceConfig: _entropySource, liquiditySourceConfig: _liquiditySourceConfig, - gossipSourceConfig: _gossipSourceConfig)) + gossipSourceConfig: _gossipSourceConfig) .buildWithFsStore(); return Node._(opaque: res.opaque); } on error.FfiBuilderError catch (e) { @@ -1231,12 +1231,12 @@ class Builder { final nodePath = "${directory.path}/ldk_cache/"; _config!.storageDirPath = nodePath; } - final res = await (await builder.FfiBuilder.createBuilder( + final res = await builder.FfiBuilder.createBuilder( config: _config ?? Builder()._config!, chainDataSourceConfig: _chainDataSourceConfig, entropySourceConfig: _entropySource, liquiditySourceConfig: _liquiditySourceConfig, - gossipSourceConfig: _gossipSourceConfig)) + gossipSourceConfig: _gossipSourceConfig) .buildWithVssStore( vssUrl: vssUrl, storeId: storeId, @@ -1259,12 +1259,12 @@ class Builder { final nodePath = "${directory.path}/ldk_cache/"; _config!.storageDirPath = nodePath; } - final res = await (await builder.FfiBuilder.createBuilder( + final res = await builder.FfiBuilder.createBuilder( config: _config ?? Builder()._config!, chainDataSourceConfig: _chainDataSourceConfig, entropySourceConfig: _entropySource, liquiditySourceConfig: _liquiditySourceConfig, - gossipSourceConfig: _gossipSourceConfig)) + gossipSourceConfig: _gossipSourceConfig) .buildWithVssStoreAndFixedHeaders( vssUrl: vssUrl, storeId: storeId, fixedHeaders: fixedHeaders); return Node._(opaque: res.opaque); diff --git a/macos/Classes/frb_generated.h b/macos/Classes/frb_generated.h index 131795e..85af7ae 100644 --- a/macos/Classes/frb_generated.h +++ b/macos/Classes/frb_generated.h @@ -909,12 +909,11 @@ void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_ struct wire_cst_list_prim_u_8_strict *store_id, struct wire_cst_list_record_string_string *fixed_headers); -void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder(int64_t port_, - struct wire_cst_config *config, - struct wire_cst_chain_data_source_config *chain_data_source_config, - struct wire_cst_entropy_source_config *entropy_source_config, - struct wire_cst_gossip_source_config *gossip_source_config, - struct wire_cst_liquidity_source_config *liquidity_source_config); +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder(struct wire_cst_config *config, + struct wire_cst_chain_data_source_config *chain_data_source_config, + struct wire_cst_entropy_source_config *entropy_source_config, + struct wire_cst_gossip_source_config *gossip_source_config, + struct wire_cst_liquidity_source_config *liquidity_source_config); void frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate(int64_t port_); diff --git a/rust/src/api/builder.rs b/rust/src/api/builder.rs index 7dd9d12..d89a9a0 100644 --- a/rust/src/api/builder.rs +++ b/rust/src/api/builder.rs @@ -40,6 +40,7 @@ pub struct FfiBuilder { } impl FfiBuilder { + #[frb(sync)] pub fn create_builder( config: Config, chain_data_source_config: Option, diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index 7a43177..22056a8 100644 --- a/rust/src/frb_generated.rs +++ b/rust/src/frb_generated.rs @@ -825,18 +825,17 @@ fn wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers_ ) } fn wire__crate__api__builder__FfiBuilder_create_builder_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, config: impl CstDecode, chain_data_source_config: impl CstDecode>, entropy_source_config: impl CstDecode>, gossip_source_config: impl CstDecode>, liquidity_source_config: impl CstDecode>, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "FfiBuilder_create_builder", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_config = config.cst_decode(); @@ -844,19 +843,16 @@ fn wire__crate__api__builder__FfiBuilder_create_builder_impl( let api_entropy_source_config = entropy_source_config.cst_decode(); let api_gossip_source_config = gossip_source_config.cst_decode(); let api_liquidity_source_config = liquidity_source_config.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { - let output_ok = crate::api::builder::FfiBuilder::create_builder( - api_config, - api_chain_data_source_config, - api_entropy_source_config, - api_gossip_source_config, - api_liquidity_source_config, - )?; - Ok(output_ok) - })( - )) - } + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let output_ok = crate::api::builder::FfiBuilder::create_builder( + api_config, + api_chain_data_source_config, + api_entropy_source_config, + api_gossip_source_config, + api_liquidity_source_config, + )?; + Ok(output_ok) + })()) }, ) } @@ -11265,15 +11261,13 @@ mod io { #[no_mangle] pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder( - port_: i64, config: *mut wire_cst_config, chain_data_source_config: *mut wire_cst_chain_data_source_config, entropy_source_config: *mut wire_cst_entropy_source_config, gossip_source_config: *mut wire_cst_gossip_source_config, liquidity_source_config: *mut wire_cst_liquidity_source_config, - ) { + ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { wire__crate__api__builder__FfiBuilder_create_builder_impl( - port_, config, chain_data_source_config, entropy_source_config, From 3bf12d94e7f52f98807b38ab0f72db6f08da22f4 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sun, 18 May 2025 10:30:00 -0400 Subject: [PATCH 06/24] resolved ReadFailed exception on buildWithVssStoreAndFixedHeaders --- example/lib/main.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index e47ce71..a847a75 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -59,8 +59,9 @@ class _MyAppState extends State { 'alice_mutinynet', const ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3003), "cart super leaf clinic pistol plug replace close super tooth wealth usage")) + .setNodeAlias("alice_mutinynet_node") .buildWithVssStoreAndFixedHeaders( - vssUrl: "https://mutinynet.ltbl.io/vss/", + vssUrl: "https://mutinynet.ltbl.io/vss", storeId: "alice_mutinynet_store", fixedHeaders: {}); @@ -77,8 +78,9 @@ class _MyAppState extends State { 'bob_mutinynet', const ldk.SocketAddress.hostname(addr: "0.0.0.0", port: 3004), "puppy interest whip tonight dad never sudden response push zone pig patch")) + .setNodeAlias("bob_mutinynet_node") .buildWithVssStoreAndFixedHeaders( - vssUrl: "https://mutinynet.ltbl.io/vss/", + vssUrl: "https://mutinynet.ltbl.io/vss", storeId: "bob_mutinynet_store", fixedHeaders: {}); await startNode(bobNode); From 97425e0e7abebf14572b3e47c19626aef2591267 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Wed, 21 May 2025 03:12:00 -0400 Subject: [PATCH 07/24] flutter analyze issue resolved --- example/lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index a847a75..05d47e6 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -247,7 +247,7 @@ class _MyAppState extends State { final bobLBalance = (await bobNode.listBalances()).totalLightningBalanceSats; debugPrint("Bob's Lightning balance ${bobLBalance.toString()}"); - print(bobInvoice.signedRawInvoice); + debugPrint(bobInvoice.signedRawInvoice); setState(() { displayText = bobInvoice.signedRawInvoice; }); From 8495f0dc7789cf8e230aeb87bb74b493132be0f8 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Thu, 22 May 2025 18:38:00 -0400 Subject: [PATCH 08/24] flutter_rust_bridge upgraded to 2.6.0 --- example/pubspec.lock | 4 +- ios/Classes/frb_generated.h | 162 ++-- lib/src/generated/api/bolt11.dart | 2 +- lib/src/generated/api/bolt12.dart | 2 +- lib/src/generated/api/builder.dart | 2 +- lib/src/generated/api/graph.dart | 2 +- lib/src/generated/api/node.dart | 2 +- lib/src/generated/api/on_chain.dart | 2 +- lib/src/generated/api/spontaneous.dart | 2 +- lib/src/generated/api/types.dart | 2 +- lib/src/generated/api/unified_qr.dart | 2 +- lib/src/generated/frb_generated.dart | 848 ++++++++++----------- lib/src/generated/frb_generated.io.dart | 614 +++++++-------- lib/src/generated/lib.dart | 2 +- lib/src/generated/utils/error.dart | 2 +- macos/Classes/frb_generated.h | 162 ++-- makefile | 2 +- pubspec.yaml | 2 +- rust/Cargo.lock | 19 +- rust/Cargo.toml | 2 +- rust/src/frb_generated.rs | 970 ++++++++++++------------ 21 files changed, 1407 insertions(+), 1400 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index e32a9f1..0342918 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -143,10 +143,10 @@ packages: dependency: transitive description: name: flutter_rust_bridge - sha256: a43a6649385b853bc836ef2bc1b056c264d476c35e131d2d69c38219b5e799f1 + sha256: fb9d3c9395eae3c71d4fe3ec343b9f30636c9988150c8bb33b60047549b34e3d url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.6.0" flutter_test: dependency: "direct dev" description: flutter diff --git a/ios/Classes/frb_generated.h b/ios/Classes/frb_generated.h index 85af7ae..671a7fd 100644 --- a/ios/Classes/frb_generated.h +++ b/ios/Classes/frb_generated.h @@ -14,59 +14,11 @@ void store_dart_post_cobject(DartPostCObjectFnType ptr); // EXTRA END typedef struct _Dart_Handle* Dart_Handle; -typedef struct wire_cst_ffi_bolt_11_payment { - uintptr_t opaque; -} wire_cst_ffi_bolt_11_payment; - typedef struct wire_cst_list_prim_u_8_strict { uint8_t *ptr; int32_t len; } wire_cst_list_prim_u_8_strict; -typedef struct wire_cst_payment_hash { - struct wire_cst_list_prim_u_8_strict *data; -} wire_cst_payment_hash; - -typedef struct wire_cst_payment_preimage { - struct wire_cst_list_prim_u_8_strict *data; -} wire_cst_payment_preimage; - -typedef struct wire_cst_bolt_11_invoice { - struct wire_cst_list_prim_u_8_strict *signed_raw_invoice; -} wire_cst_bolt_11_invoice; - -typedef struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap { - uint64_t amount_msat; -} wire_cst_MaxTotalRoutingFeeLimit_FeeCap; - -typedef union MaxTotalRoutingFeeLimitKind { - struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap FeeCap; -} MaxTotalRoutingFeeLimitKind; - -typedef struct wire_cst_max_total_routing_fee_limit { - int32_t tag; - union MaxTotalRoutingFeeLimitKind kind; -} wire_cst_max_total_routing_fee_limit; - -typedef struct wire_cst_sending_parameters { - struct wire_cst_max_total_routing_fee_limit *max_total_routing_fee_msat; - uint32_t *max_total_cltv_expiry_delta; - uint8_t *max_path_count; - uint8_t *max_channel_saturation_power_of_half; -} wire_cst_sending_parameters; - -typedef struct wire_cst_ffi_bolt_12_payment { - uintptr_t opaque; -} wire_cst_ffi_bolt_12_payment; - -typedef struct wire_cst_refund { - struct wire_cst_list_prim_u_8_strict *s; -} wire_cst_refund; - -typedef struct wire_cst_offer { - struct wire_cst_list_prim_u_8_strict *s; -} wire_cst_offer; - typedef struct wire_cst_record_string_string { struct wire_cst_list_prim_u_8_strict *field0; struct wire_cst_list_prim_u_8_strict *field1; @@ -139,6 +91,26 @@ typedef struct wire_cst_anchor_channels_config { uint64_t per_channel_reserve_sats; } wire_cst_anchor_channels_config; +typedef struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap { + uint64_t amount_msat; +} wire_cst_MaxTotalRoutingFeeLimit_FeeCap; + +typedef union MaxTotalRoutingFeeLimitKind { + struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap FeeCap; +} MaxTotalRoutingFeeLimitKind; + +typedef struct wire_cst_max_total_routing_fee_limit { + int32_t tag; + union MaxTotalRoutingFeeLimitKind kind; +} wire_cst_max_total_routing_fee_limit; + +typedef struct wire_cst_sending_parameters { + struct wire_cst_max_total_routing_fee_limit *max_total_routing_fee_msat; + uint32_t *max_total_cltv_expiry_delta; + uint8_t *max_path_count; + uint8_t *max_channel_saturation_power_of_half; +} wire_cst_sending_parameters; + typedef struct wire_cst_config { struct wire_cst_list_prim_u_8_strict *storage_dir_path; struct wire_cst_list_prim_u_8_strict *log_dir_path; @@ -231,6 +203,34 @@ typedef struct wire_cst_liquidity_source_config { struct wire_cst_record_socket_address_public_key_opt_string lsps2_service; } wire_cst_liquidity_source_config; +typedef struct wire_cst_ffi_bolt_11_payment { + uintptr_t opaque; +} wire_cst_ffi_bolt_11_payment; + +typedef struct wire_cst_payment_hash { + struct wire_cst_list_prim_u_8_strict *data; +} wire_cst_payment_hash; + +typedef struct wire_cst_payment_preimage { + struct wire_cst_list_prim_u_8_strict *data; +} wire_cst_payment_preimage; + +typedef struct wire_cst_bolt_11_invoice { + struct wire_cst_list_prim_u_8_strict *signed_raw_invoice; +} wire_cst_bolt_11_invoice; + +typedef struct wire_cst_ffi_bolt_12_payment { + uintptr_t opaque; +} wire_cst_ffi_bolt_12_payment; + +typedef struct wire_cst_refund { + struct wire_cst_list_prim_u_8_strict *s; +} wire_cst_refund; + +typedef struct wire_cst_offer { + struct wire_cst_list_prim_u_8_strict *s; +} wire_cst_offer; + typedef struct wire_cst_ffi_network_graph { uintptr_t opaque; } wire_cst_ffi_network_graph; @@ -783,6 +783,39 @@ typedef struct wire_cst_qr_payment_result { union QrPaymentResultKind kind; } wire_cst_qr_payment_result; +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque(uintptr_t that); + +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque(uintptr_t that, + uintptr_t opaque); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build(int64_t port_, uintptr_t that); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store(int64_t port_, + uintptr_t that); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store(int64_t port_, + uintptr_t that, + struct wire_cst_list_prim_u_8_strict *vss_url, + struct wire_cst_list_prim_u_8_strict *store_id, + struct wire_cst_list_prim_u_8_strict *lnurl_auth_server_url, + struct wire_cst_list_record_string_string *fixed_headers); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers(int64_t port_, + uintptr_t that, + struct wire_cst_list_prim_u_8_strict *vss_url, + struct wire_cst_list_prim_u_8_strict *store_id, + struct wire_cst_list_record_string_string *fixed_headers); + +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder(struct wire_cst_config *config, + struct wire_cst_chain_data_source_config *chain_data_source_config, + struct wire_cst_entropy_source_config *entropy_source_config, + struct wire_cst_gossip_source_config *gossip_source_config, + struct wire_cst_liquidity_source_config *liquidity_source_config); + +void frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default(int64_t port_); + +void frbgen_ldk_node_wire__crate__api__types__config_default(int64_t port_); + void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash(int64_t port_, struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_payment_hash *payment_hash, @@ -886,35 +919,6 @@ void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_am uint64_t *quantity, struct wire_cst_list_prim_u_8_strict *payer_note); -WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque(uintptr_t that); - -WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque(uintptr_t that, - uintptr_t opaque); - -void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build(int64_t port_, uintptr_t that); - -void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store(int64_t port_, - uintptr_t that); - -void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store(int64_t port_, - uintptr_t that, - struct wire_cst_list_prim_u_8_strict *vss_url, - struct wire_cst_list_prim_u_8_strict *store_id, - struct wire_cst_list_prim_u_8_strict *lnurl_auth_server_url, - struct wire_cst_list_record_string_string *fixed_headers); - -void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers(int64_t port_, - uintptr_t that, - struct wire_cst_list_prim_u_8_strict *vss_url, - struct wire_cst_list_prim_u_8_strict *store_id, - struct wire_cst_list_record_string_string *fixed_headers); - -WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder(struct wire_cst_config *config, - struct wire_cst_chain_data_source_config *chain_data_source_config, - struct wire_cst_entropy_source_config *entropy_source_config, - struct wire_cst_gossip_source_config *gossip_source_config, - struct wire_cst_liquidity_source_config *liquidity_source_config); - void frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate(int64_t port_); void frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_channel(int64_t port_, @@ -1081,10 +1085,6 @@ void frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send uint64_t amount_msat, struct wire_cst_public_key *node_id); -void frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default(int64_t port_); - -void frbgen_ldk_node_wire__crate__api__types__config_default(int64_t port_); - void frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_receive(int64_t port_, struct wire_cst_ffi_unified_qr_payment *that, uint64_t amount_sats, diff --git a/lib/src/generated/api/bolt11.dart b/lib/src/generated/api/bolt11.dart index 98f4030..28070f9 100644 --- a/lib/src/generated/api/bolt11.dart +++ b/lib/src/generated/api/bolt11.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/api/bolt12.dart b/lib/src/generated/api/bolt12.dart index f23efeb..c310d33 100644 --- a/lib/src/generated/api/bolt12.dart +++ b/lib/src/generated/api/bolt12.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/api/builder.dart b/lib/src/generated/api/builder.dart index 9897ff1..4a8468c 100644 --- a/lib/src/generated/api/builder.dart +++ b/lib/src/generated/api/builder.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/api/graph.dart b/lib/src/generated/api/graph.dart index 4d300f1..3da9626 100644 --- a/lib/src/generated/api/graph.dart +++ b/lib/src/generated/api/graph.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/api/node.dart b/lib/src/generated/api/node.dart index 7d6921c..5a6cd80 100644 --- a/lib/src/generated/api/node.dart +++ b/lib/src/generated/api/node.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/api/on_chain.dart b/lib/src/generated/api/on_chain.dart index dd284f3..db0881a 100644 --- a/lib/src/generated/api/on_chain.dart +++ b/lib/src/generated/api/on_chain.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/api/spontaneous.dart b/lib/src/generated/api/spontaneous.dart index 7dd355d..2f222f3 100644 --- a/lib/src/generated/api/spontaneous.dart +++ b/lib/src/generated/api/spontaneous.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/api/types.dart b/lib/src/generated/api/types.dart index 061c9b1..7b1ab6c 100644 --- a/lib/src/generated/api/types.dart +++ b/lib/src/generated/api/types.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/api/unified_qr.dart b/lib/src/generated/api/unified_qr.dart index 742223c..6b75307 100644 --- a/lib/src/generated/api/unified_qr.dart +++ b/lib/src/generated/api/unified_qr.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index 5a8a339..2be8be7 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -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.6.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 @@ -72,7 +72,7 @@ class core extends BaseEntrypoint { kDefaultExternalLibraryLoaderConfig; @override - String get codegenVersion => '2.4.0'; + String get codegenVersion => '2.6.0'; @override int get rustContentHash => 968713453; @@ -86,6 +86,41 @@ class core extends BaseEntrypoint { } abstract class coreApi extends BaseApi { + Builder crateApiBuilderFfiBuilderAutoAccessorGetOpaque( + {required FfiBuilder that}); + + void crateApiBuilderFfiBuilderAutoAccessorSetOpaque( + {required FfiBuilder that, required Builder opaque}); + + Future crateApiBuilderFfiBuilderBuild({required FfiBuilder that}); + + Future crateApiBuilderFfiBuilderBuildWithFsStore( + {required FfiBuilder that}); + + Future crateApiBuilderFfiBuilderBuildWithVssStore( + {required FfiBuilder that, + required String vssUrl, + required String storeId, + required String lnurlAuthServerUrl, + required Map fixedHeaders}); + + Future crateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeaders( + {required FfiBuilder that, + required String vssUrl, + required String storeId, + required Map fixedHeaders}); + + FfiBuilder crateApiBuilderFfiBuilderCreateBuilder( + {required Config config, + ChainDataSourceConfig? chainDataSourceConfig, + EntropySourceConfig? entropySourceConfig, + GossipSourceConfig? gossipSourceConfig, + LiquiditySourceConfig? liquiditySourceConfig}); + + Future crateApiTypesAnchorChannelsConfigDefault(); + + Future crateApiTypesConfigDefault(); + Future crateApiBolt11FfiBolt11PaymentClaimForHash( {required FfiBolt11Payment that, required PaymentHash paymentHash, @@ -188,37 +223,6 @@ abstract class coreApi extends BaseApi { BigInt? quantity, String? payerNote}); - Builder crateApiBuilderFfiBuilderAutoAccessorGetOpaque( - {required FfiBuilder that}); - - void crateApiBuilderFfiBuilderAutoAccessorSetOpaque( - {required FfiBuilder that, required Builder opaque}); - - Future crateApiBuilderFfiBuilderBuild({required FfiBuilder that}); - - Future crateApiBuilderFfiBuilderBuildWithFsStore( - {required FfiBuilder that}); - - Future crateApiBuilderFfiBuilderBuildWithVssStore( - {required FfiBuilder that, - required String vssUrl, - required String storeId, - required String lnurlAuthServerUrl, - required Map fixedHeaders}); - - Future crateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeaders( - {required FfiBuilder that, - required String vssUrl, - required String storeId, - required Map fixedHeaders}); - - FfiBuilder crateApiBuilderFfiBuilderCreateBuilder( - {required Config config, - ChainDataSourceConfig? chainDataSourceConfig, - EntropySourceConfig? entropySourceConfig, - GossipSourceConfig? gossipSourceConfig, - LiquiditySourceConfig? liquiditySourceConfig}); - Future crateApiBuilderFfiMnemonicGenerate(); Future crateApiGraphFfiNetworkGraphChannel( @@ -367,10 +371,6 @@ abstract class coreApi extends BaseApi { required BigInt amountMsat, required PublicKey nodeId}); - Future crateApiTypesAnchorChannelsConfigDefault(); - - Future crateApiTypesConfigDefault(); - Future crateApiUnifiedQrFfiUnifiedQrPaymentReceive( {required FfiUnifiedQrPayment that, required BigInt amountSats, @@ -447,20 +447,300 @@ abstract class coreApi extends BaseApi { RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_UnifiedQrPayment; - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_UnifiedQrPayment; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_UnifiedQrPayment; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_UnifiedQrPaymentPtr; +} + +class coreApiImpl extends coreApiImplPlatform implements coreApi { + coreApiImpl({ + required super.handler, + required super.wire, + required super.generalizedFrbRustBinding, + required super.portManager, + }); + + @override + Builder crateApiBuilderFfiBuilderAutoAccessorGetOpaque( + {required FfiBuilder that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + that); + return wire + .wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( + arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_RustOpaque_ldk_nodeBuilder, + decodeErrorData: null, + ), + constMeta: kCrateApiBuilderFfiBuilderAutoAccessorGetOpaqueConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiBuilderFfiBuilderAutoAccessorGetOpaqueConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_auto_accessor_get_opaque", + argNames: ["that"], + ); + + @override + void crateApiBuilderFfiBuilderAutoAccessorSetOpaque( + {required FfiBuilder that, required Builder opaque}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = + cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + that); + var arg1 = cst_encode_RustOpaque_ldk_nodeBuilder(opaque); + return wire + .wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( + arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unit, + decodeErrorData: null, + ), + constMeta: kCrateApiBuilderFfiBuilderAutoAccessorSetOpaqueConstMeta, + argValues: [that, opaque], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiBuilderFfiBuilderAutoAccessorSetOpaqueConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_auto_accessor_set_opaque", + argNames: ["that", "opaque"], + ); + + @override + Future crateApiBuilderFfiBuilderBuild({required FfiBuilder that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + that); + return wire.wire__crate__api__builder__FfiBuilder_build(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_node, + decodeErrorData: dco_decode_ffi_builder_error, + ), + constMeta: kCrateApiBuilderFfiBuilderBuildConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiBuilderFfiBuilderBuildConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_build", + argNames: ["that"], + ); + + @override + Future crateApiBuilderFfiBuilderBuildWithFsStore( + {required FfiBuilder that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = + cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + that); + return wire.wire__crate__api__builder__FfiBuilder_build_with_fs_store( + port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_node, + decodeErrorData: dco_decode_ffi_builder_error, + ), + constMeta: kCrateApiBuilderFfiBuilderBuildWithFsStoreConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiBuilderFfiBuilderBuildWithFsStoreConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_build_with_fs_store", + argNames: ["that"], + ); + + @override + Future crateApiBuilderFfiBuilderBuildWithVssStore( + {required FfiBuilder that, + required String vssUrl, + required String storeId, + required String lnurlAuthServerUrl, + required Map fixedHeaders}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + that); + var arg1 = cst_encode_String(vssUrl); + var arg2 = cst_encode_String(storeId); + var arg3 = cst_encode_String(lnurlAuthServerUrl); + var arg4 = cst_encode_Map_String_String(fixedHeaders); + return wire.wire__crate__api__builder__FfiBuilder_build_with_vss_store( + port_, arg0, arg1, arg2, arg3, arg4); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_node, + decodeErrorData: dco_decode_ffi_builder_error, + ), + constMeta: kCrateApiBuilderFfiBuilderBuildWithVssStoreConstMeta, + argValues: [that, vssUrl, storeId, lnurlAuthServerUrl, fixedHeaders], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiBuilderFfiBuilderBuildWithVssStoreConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_build_with_vss_store", + argNames: [ + "that", + "vssUrl", + "storeId", + "lnurlAuthServerUrl", + "fixedHeaders" + ], + ); + + @override + Future crateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeaders( + {required FfiBuilder that, + required String vssUrl, + required String storeId, + required Map fixedHeaders}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( + that); + var arg1 = cst_encode_String(vssUrl); + var arg2 = cst_encode_String(storeId); + var arg3 = cst_encode_Map_String_String(fixedHeaders); + return wire + .wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( + port_, arg0, arg1, arg2, arg3); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_node, + decodeErrorData: dco_decode_ffi_builder_error, + ), + constMeta: + kCrateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeadersConstMeta, + argValues: [that, vssUrl, storeId, fixedHeaders], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeadersConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_build_with_vss_store_and_fixed_headers", + argNames: ["that", "vssUrl", "storeId", "fixedHeaders"], + ); + + @override + FfiBuilder crateApiBuilderFfiBuilderCreateBuilder( + {required Config config, + ChainDataSourceConfig? chainDataSourceConfig, + EntropySourceConfig? entropySourceConfig, + GossipSourceConfig? gossipSourceConfig, + LiquiditySourceConfig? liquiditySourceConfig}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_config(config); + var arg1 = cst_encode_opt_box_autoadd_chain_data_source_config( + chainDataSourceConfig); + var arg2 = cst_encode_opt_box_autoadd_entropy_source_config( + entropySourceConfig); + var arg3 = + cst_encode_opt_box_autoadd_gossip_source_config(gossipSourceConfig); + var arg4 = cst_encode_opt_box_autoadd_liquidity_source_config( + liquiditySourceConfig); + return wire.wire__crate__api__builder__FfiBuilder_create_builder( + arg0, arg1, arg2, arg3, arg4); + }, + codec: DcoCodec( + decodeSuccessData: + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder, + decodeErrorData: dco_decode_ffi_builder_error, + ), + constMeta: kCrateApiBuilderFfiBuilderCreateBuilderConstMeta, + argValues: [ + config, + chainDataSourceConfig, + entropySourceConfig, + gossipSourceConfig, + liquiditySourceConfig + ], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiBuilderFfiBuilderCreateBuilderConstMeta => + const TaskConstMeta( + debugName: "FfiBuilder_create_builder", + argNames: [ + "config", + "chainDataSourceConfig", + "entropySourceConfig", + "gossipSourceConfig", + "liquiditySourceConfig" + ], + ); + + @override + Future crateApiTypesAnchorChannelsConfigDefault() { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + return wire + .wire__crate__api__types__anchor_channels_config_default(port_); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_anchor_channels_config, + decodeErrorData: null, + ), + constMeta: kCrateApiTypesAnchorChannelsConfigDefaultConstMeta, + argValues: [], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiTypesAnchorChannelsConfigDefaultConstMeta => + const TaskConstMeta( + debugName: "anchor_channels_config_default", + argNames: [], + ); - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_UnifiedQrPaymentPtr; -} + @override + Future crateApiTypesConfigDefault() { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + return wire.wire__crate__api__types__config_default(port_); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_config, + decodeErrorData: null, + ), + constMeta: kCrateApiTypesConfigDefaultConstMeta, + argValues: [], + apiImpl: this, + )); + } -class coreApiImpl extends coreApiImplPlatform implements coreApi { - coreApiImpl({ - required super.handler, - required super.wire, - required super.generalizedFrbRustBinding, - required super.portManager, - }); + TaskConstMeta get kCrateApiTypesConfigDefaultConstMeta => const TaskConstMeta( + debugName: "config_default", + argNames: [], + ); @override Future crateApiBolt11FfiBolt11PaymentClaimForHash( @@ -919,389 +1199,153 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { var arg2 = cst_encode_String(description); var arg3 = cst_encode_opt_box_autoadd_u_32(expirySecs); var arg4 = cst_encode_opt_box_autoadd_u_64(quantity); - return wire.wire__crate__api__bolt12__ffi_bolt_12_payment_receive( - port_, arg0, arg1, arg2, arg3, arg4); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_offer, - decodeErrorData: dco_decode_ffi_node_error, - ), - constMeta: kCrateApiBolt12FfiBolt12PaymentReceiveConstMeta, - argValues: [that, amountMsat, description, expirySecs, quantity], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiBolt12FfiBolt12PaymentReceiveConstMeta => - const TaskConstMeta( - debugName: "ffi_bolt_12_payment_receive", - argNames: [ - "that", - "amountMsat", - "description", - "expirySecs", - "quantity" - ], - ); - - @override - Future crateApiBolt12FfiBolt12PaymentReceiveVariableAmount( - {required FfiBolt12Payment that, - required String description, - int? expirySecs}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); - var arg1 = cst_encode_String(description); - var arg2 = cst_encode_opt_box_autoadd_u_32(expirySecs); - return wire - .wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount( - port_, arg0, arg1, arg2); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_offer, - decodeErrorData: dco_decode_ffi_node_error, - ), - constMeta: kCrateApiBolt12FfiBolt12PaymentReceiveVariableAmountConstMeta, - argValues: [that, description, expirySecs], - apiImpl: this, - )); - } - - TaskConstMeta - get kCrateApiBolt12FfiBolt12PaymentReceiveVariableAmountConstMeta => - const TaskConstMeta( - debugName: "ffi_bolt_12_payment_receive_variable_amount", - argNames: ["that", "description", "expirySecs"], - ); - - @override - Future crateApiBolt12FfiBolt12PaymentRequestRefundPayment( - {required FfiBolt12Payment that, required Refund refund}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); - var arg1 = cst_encode_box_autoadd_refund(refund); - return wire - .wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment( - port_, arg0, arg1); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_bolt_12_invoice, - decodeErrorData: dco_decode_ffi_node_error, - ), - constMeta: kCrateApiBolt12FfiBolt12PaymentRequestRefundPaymentConstMeta, - argValues: [that, refund], - apiImpl: this, - )); - } - - TaskConstMeta - get kCrateApiBolt12FfiBolt12PaymentRequestRefundPaymentConstMeta => - const TaskConstMeta( - debugName: "ffi_bolt_12_payment_request_refund_payment", - argNames: ["that", "refund"], - ); - - @override - Future crateApiBolt12FfiBolt12PaymentSend( - {required FfiBolt12Payment that, - required Offer offer, - BigInt? quantity, - String? payerNote}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); - var arg1 = cst_encode_box_autoadd_offer(offer); - var arg2 = cst_encode_opt_box_autoadd_u_64(quantity); - var arg3 = cst_encode_opt_String(payerNote); - return wire.wire__crate__api__bolt12__ffi_bolt_12_payment_send( - port_, arg0, arg1, arg2, arg3); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_payment_id, - decodeErrorData: dco_decode_ffi_node_error, - ), - constMeta: kCrateApiBolt12FfiBolt12PaymentSendConstMeta, - argValues: [that, offer, quantity, payerNote], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiBolt12FfiBolt12PaymentSendConstMeta => - const TaskConstMeta( - debugName: "ffi_bolt_12_payment_send", - argNames: ["that", "offer", "quantity", "payerNote"], - ); - - @override - Future crateApiBolt12FfiBolt12PaymentSendUsingAmount( - {required FfiBolt12Payment that, - required Offer offer, - required BigInt amountMsat, - BigInt? quantity, - String? payerNote}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); - var arg1 = cst_encode_box_autoadd_offer(offer); - var arg2 = cst_encode_u_64(amountMsat); - var arg3 = cst_encode_opt_box_autoadd_u_64(quantity); - var arg4 = cst_encode_opt_String(payerNote); - return wire - .wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount( - port_, arg0, arg1, arg2, arg3, arg4); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_payment_id, - decodeErrorData: dco_decode_ffi_node_error, - ), - constMeta: kCrateApiBolt12FfiBolt12PaymentSendUsingAmountConstMeta, - argValues: [that, offer, amountMsat, quantity, payerNote], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiBolt12FfiBolt12PaymentSendUsingAmountConstMeta => - const TaskConstMeta( - debugName: "ffi_bolt_12_payment_send_using_amount", - argNames: ["that", "offer", "amountMsat", "quantity", "payerNote"], - ); - - @override - Builder crateApiBuilderFfiBuilderAutoAccessorGetOpaque( - {required FfiBuilder that}) { - return handler.executeSync(SyncTask( - callFfi: () { - var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( - that); - return wire - .wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( - arg0); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_RustOpaque_ldk_nodeBuilder, - decodeErrorData: null, - ), - constMeta: kCrateApiBuilderFfiBuilderAutoAccessorGetOpaqueConstMeta, - argValues: [that], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiBuilderFfiBuilderAutoAccessorGetOpaqueConstMeta => - const TaskConstMeta( - debugName: "FfiBuilder_auto_accessor_get_opaque", - argNames: ["that"], - ); - - @override - void crateApiBuilderFfiBuilderAutoAccessorSetOpaque( - {required FfiBuilder that, required Builder opaque}) { - return handler.executeSync(SyncTask( - callFfi: () { - var arg0 = - cst_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( - that); - var arg1 = cst_encode_RustOpaque_ldk_nodeBuilder(opaque); - return wire - .wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( - arg0, arg1); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_unit, - decodeErrorData: null, - ), - constMeta: kCrateApiBuilderFfiBuilderAutoAccessorSetOpaqueConstMeta, - argValues: [that, opaque], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiBuilderFfiBuilderAutoAccessorSetOpaqueConstMeta => - const TaskConstMeta( - debugName: "FfiBuilder_auto_accessor_set_opaque", - argNames: ["that", "opaque"], - ); - - @override - Future crateApiBuilderFfiBuilderBuild({required FfiBuilder that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( - that); - return wire.wire__crate__api__builder__FfiBuilder_build(port_, arg0); + return wire.wire__crate__api__bolt12__ffi_bolt_12_payment_receive( + port_, arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ffi_node, - decodeErrorData: dco_decode_ffi_builder_error, + decodeSuccessData: dco_decode_offer, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBuilderFfiBuilderBuildConstMeta, - argValues: [that], + constMeta: kCrateApiBolt12FfiBolt12PaymentReceiveConstMeta, + argValues: [that, amountMsat, description, expirySecs, quantity], apiImpl: this, )); } - TaskConstMeta get kCrateApiBuilderFfiBuilderBuildConstMeta => + TaskConstMeta get kCrateApiBolt12FfiBolt12PaymentReceiveConstMeta => const TaskConstMeta( - debugName: "FfiBuilder_build", - argNames: ["that"], + debugName: "ffi_bolt_12_payment_receive", + argNames: [ + "that", + "amountMsat", + "description", + "expirySecs", + "quantity" + ], ); @override - Future crateApiBuilderFfiBuilderBuildWithFsStore( - {required FfiBuilder that}) { + Future crateApiBolt12FfiBolt12PaymentReceiveVariableAmount( + {required FfiBolt12Payment that, + required String description, + int? expirySecs}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = - cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( - that); - return wire.wire__crate__api__builder__FfiBuilder_build_with_fs_store( - port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); + var arg1 = cst_encode_String(description); + var arg2 = cst_encode_opt_box_autoadd_u_32(expirySecs); + return wire + .wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ffi_node, - decodeErrorData: dco_decode_ffi_builder_error, + decodeSuccessData: dco_decode_offer, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBuilderFfiBuilderBuildWithFsStoreConstMeta, - argValues: [that], + constMeta: kCrateApiBolt12FfiBolt12PaymentReceiveVariableAmountConstMeta, + argValues: [that, description, expirySecs], apiImpl: this, )); } - TaskConstMeta get kCrateApiBuilderFfiBuilderBuildWithFsStoreConstMeta => - const TaskConstMeta( - debugName: "FfiBuilder_build_with_fs_store", - argNames: ["that"], - ); + TaskConstMeta + get kCrateApiBolt12FfiBolt12PaymentReceiveVariableAmountConstMeta => + const TaskConstMeta( + debugName: "ffi_bolt_12_payment_receive_variable_amount", + argNames: ["that", "description", "expirySecs"], + ); @override - Future crateApiBuilderFfiBuilderBuildWithVssStore( - {required FfiBuilder that, - required String vssUrl, - required String storeId, - required String lnurlAuthServerUrl, - required Map fixedHeaders}) { + Future crateApiBolt12FfiBolt12PaymentRequestRefundPayment( + {required FfiBolt12Payment that, required Refund refund}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( - that); - var arg1 = cst_encode_String(vssUrl); - var arg2 = cst_encode_String(storeId); - var arg3 = cst_encode_String(lnurlAuthServerUrl); - var arg4 = cst_encode_Map_String_String(fixedHeaders); - return wire.wire__crate__api__builder__FfiBuilder_build_with_vss_store( - port_, arg0, arg1, arg2, arg3, arg4); + var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); + var arg1 = cst_encode_box_autoadd_refund(refund); + return wire + .wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ffi_node, - decodeErrorData: dco_decode_ffi_builder_error, + decodeSuccessData: dco_decode_bolt_12_invoice, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBuilderFfiBuilderBuildWithVssStoreConstMeta, - argValues: [that, vssUrl, storeId, lnurlAuthServerUrl, fixedHeaders], + constMeta: kCrateApiBolt12FfiBolt12PaymentRequestRefundPaymentConstMeta, + argValues: [that, refund], apiImpl: this, )); } - TaskConstMeta get kCrateApiBuilderFfiBuilderBuildWithVssStoreConstMeta => - const TaskConstMeta( - debugName: "FfiBuilder_build_with_vss_store", - argNames: [ - "that", - "vssUrl", - "storeId", - "lnurlAuthServerUrl", - "fixedHeaders" - ], - ); + TaskConstMeta + get kCrateApiBolt12FfiBolt12PaymentRequestRefundPaymentConstMeta => + const TaskConstMeta( + debugName: "ffi_bolt_12_payment_request_refund_payment", + argNames: ["that", "refund"], + ); @override - Future crateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeaders( - {required FfiBuilder that, - required String vssUrl, - required String storeId, - required Map fixedHeaders}) { + Future crateApiBolt12FfiBolt12PaymentSend( + {required FfiBolt12Payment that, + required Offer offer, + BigInt? quantity, + String? payerNote}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = - cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder( - that); - var arg1 = cst_encode_String(vssUrl); - var arg2 = cst_encode_String(storeId); - var arg3 = cst_encode_Map_String_String(fixedHeaders); - return wire - .wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( - port_, arg0, arg1, arg2, arg3); + var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); + var arg1 = cst_encode_box_autoadd_offer(offer); + var arg2 = cst_encode_opt_box_autoadd_u_64(quantity); + var arg3 = cst_encode_opt_String(payerNote); + return wire.wire__crate__api__bolt12__ffi_bolt_12_payment_send( + port_, arg0, arg1, arg2, arg3); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ffi_node, - decodeErrorData: dco_decode_ffi_builder_error, + decodeSuccessData: dco_decode_payment_id, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: - kCrateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeadersConstMeta, - argValues: [that, vssUrl, storeId, fixedHeaders], + constMeta: kCrateApiBolt12FfiBolt12PaymentSendConstMeta, + argValues: [that, offer, quantity, payerNote], apiImpl: this, )); } - TaskConstMeta - get kCrateApiBuilderFfiBuilderBuildWithVssStoreAndFixedHeadersConstMeta => - const TaskConstMeta( - debugName: "FfiBuilder_build_with_vss_store_and_fixed_headers", - argNames: ["that", "vssUrl", "storeId", "fixedHeaders"], - ); + TaskConstMeta get kCrateApiBolt12FfiBolt12PaymentSendConstMeta => + const TaskConstMeta( + debugName: "ffi_bolt_12_payment_send", + argNames: ["that", "offer", "quantity", "payerNote"], + ); @override - FfiBuilder crateApiBuilderFfiBuilderCreateBuilder( - {required Config config, - ChainDataSourceConfig? chainDataSourceConfig, - EntropySourceConfig? entropySourceConfig, - GossipSourceConfig? gossipSourceConfig, - LiquiditySourceConfig? liquiditySourceConfig}) { - return handler.executeSync(SyncTask( - callFfi: () { - var arg0 = cst_encode_box_autoadd_config(config); - var arg1 = cst_encode_opt_box_autoadd_chain_data_source_config( - chainDataSourceConfig); - var arg2 = cst_encode_opt_box_autoadd_entropy_source_config( - entropySourceConfig); - var arg3 = - cst_encode_opt_box_autoadd_gossip_source_config(gossipSourceConfig); - var arg4 = cst_encode_opt_box_autoadd_liquidity_source_config( - liquiditySourceConfig); - return wire.wire__crate__api__builder__FfiBuilder_create_builder( - arg0, arg1, arg2, arg3, arg4); + Future crateApiBolt12FfiBolt12PaymentSendUsingAmount( + {required FfiBolt12Payment that, + required Offer offer, + required BigInt amountMsat, + BigInt? quantity, + String? payerNote}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_ffi_bolt_12_payment(that); + var arg1 = cst_encode_box_autoadd_offer(offer); + var arg2 = cst_encode_u_64(amountMsat); + var arg3 = cst_encode_opt_box_autoadd_u_64(quantity); + var arg4 = cst_encode_opt_String(payerNote); + return wire + .wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount( + port_, arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( - decodeSuccessData: - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFfiBuilder, - decodeErrorData: dco_decode_ffi_builder_error, + decodeSuccessData: dco_decode_payment_id, + decodeErrorData: dco_decode_ffi_node_error, ), - constMeta: kCrateApiBuilderFfiBuilderCreateBuilderConstMeta, - argValues: [ - config, - chainDataSourceConfig, - entropySourceConfig, - gossipSourceConfig, - liquiditySourceConfig - ], + constMeta: kCrateApiBolt12FfiBolt12PaymentSendUsingAmountConstMeta, + argValues: [that, offer, amountMsat, quantity, payerNote], apiImpl: this, )); } - TaskConstMeta get kCrateApiBuilderFfiBuilderCreateBuilderConstMeta => + TaskConstMeta get kCrateApiBolt12FfiBolt12PaymentSendUsingAmountConstMeta => const TaskConstMeta( - debugName: "FfiBuilder_create_builder", - argNames: [ - "config", - "chainDataSourceConfig", - "entropySourceConfig", - "gossipSourceConfig", - "liquiditySourceConfig" - ], + debugName: "ffi_bolt_12_payment_send_using_amount", + argNames: ["that", "offer", "amountMsat", "quantity", "payerNote"], ); @override @@ -2453,50 +2497,6 @@ class coreApiImpl extends coreApiImplPlatform implements coreApi { argNames: ["that", "amountMsat", "nodeId"], ); - @override - Future crateApiTypesAnchorChannelsConfigDefault() { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - return wire - .wire__crate__api__types__anchor_channels_config_default(port_); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_anchor_channels_config, - decodeErrorData: null, - ), - constMeta: kCrateApiTypesAnchorChannelsConfigDefaultConstMeta, - argValues: [], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiTypesAnchorChannelsConfigDefaultConstMeta => - const TaskConstMeta( - debugName: "anchor_channels_config_default", - argNames: [], - ); - - @override - Future crateApiTypesConfigDefault() { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - return wire.wire__crate__api__types__config_default(port_); - }, - codec: DcoCodec( - decodeSuccessData: dco_decode_config, - decodeErrorData: null, - ), - constMeta: kCrateApiTypesConfigDefaultConstMeta, - argValues: [], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiTypesConfigDefaultConstMeta => const TaskConstMeta( - debugName: "config_default", - argNames: [], - ); - @override Future crateApiUnifiedQrFfiUnifiedQrPaymentReceive( {required FfiUnifiedQrPayment that, diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index 8df0825..3d31543 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -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.6.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 @@ -4635,6 +4635,216 @@ class coreWire implements BaseWire { late final _store_dart_post_cobject = _store_dart_post_cobjectPtr .asFunction(); + WireSyncRust2DartDco + wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( + int that, + ) { + return _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( + that, + ); + } + + late final _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaquePtr = + _lookup>( + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque'); + late final _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque = + _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaquePtr + .asFunction(); + + WireSyncRust2DartDco + wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( + int that, + int opaque, + ) { + return _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( + that, + opaque, + ); + } + + late final _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaquePtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque'); + late final _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque = + _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaquePtr + .asFunction(); + + void wire__crate__api__builder__FfiBuilder_build( + int port_, + int that, + ) { + return _wire__crate__api__builder__FfiBuilder_build( + port_, + that, + ); + } + + late final _wire__crate__api__builder__FfiBuilder_buildPtr = + _lookup>( + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build'); + late final _wire__crate__api__builder__FfiBuilder_build = + _wire__crate__api__builder__FfiBuilder_buildPtr + .asFunction(); + + void wire__crate__api__builder__FfiBuilder_build_with_fs_store( + int port_, + int that, + ) { + return _wire__crate__api__builder__FfiBuilder_build_with_fs_store( + port_, + that, + ); + } + + late final _wire__crate__api__builder__FfiBuilder_build_with_fs_storePtr = + _lookup>( + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store'); + late final _wire__crate__api__builder__FfiBuilder_build_with_fs_store = + _wire__crate__api__builder__FfiBuilder_build_with_fs_storePtr + .asFunction(); + + void wire__crate__api__builder__FfiBuilder_build_with_vss_store( + int port_, + int that, + ffi.Pointer vss_url, + ffi.Pointer store_id, + ffi.Pointer lnurl_auth_server_url, + ffi.Pointer fixed_headers, + ) { + return _wire__crate__api__builder__FfiBuilder_build_with_vss_store( + port_, + that, + vss_url, + store_id, + lnurl_auth_server_url, + fixed_headers, + ); + } + + late final _wire__crate__api__builder__FfiBuilder_build_with_vss_storePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.UintPtr, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store'); + late final _wire__crate__api__builder__FfiBuilder_build_with_vss_store = + _wire__crate__api__builder__FfiBuilder_build_with_vss_storePtr.asFunction< + void Function( + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void + wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( + int port_, + int that, + ffi.Pointer vss_url, + ffi.Pointer store_id, + ffi.Pointer fixed_headers, + ) { + return _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( + port_, + that, + vss_url, + store_id, + fixed_headers, + ); + } + + late final _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headersPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.UintPtr, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers'); + late final _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers = + _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headersPtr + .asFunction< + void Function( + int, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__builder__FfiBuilder_create_builder( + ffi.Pointer config, + ffi.Pointer chain_data_source_config, + ffi.Pointer entropy_source_config, + ffi.Pointer gossip_source_config, + ffi.Pointer liquidity_source_config, + ) { + return _wire__crate__api__builder__FfiBuilder_create_builder( + config, + chain_data_source_config, + entropy_source_config, + gossip_source_config, + liquidity_source_config, + ); + } + + late final _wire__crate__api__builder__FfiBuilder_create_builderPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder'); + late final _wire__crate__api__builder__FfiBuilder_create_builder = + _wire__crate__api__builder__FfiBuilder_create_builderPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__types__anchor_channels_config_default( + int port_, + ) { + return _wire__crate__api__types__anchor_channels_config_default( + port_, + ); + } + + late final _wire__crate__api__types__anchor_channels_config_defaultPtr = _lookup< + ffi.NativeFunction>( + 'frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default'); + late final _wire__crate__api__types__anchor_channels_config_default = + _wire__crate__api__types__anchor_channels_config_defaultPtr + .asFunction(); + + void wire__crate__api__types__config_default( + int port_, + ) { + return _wire__crate__api__types__config_default( + port_, + ); + } + + late final _wire__crate__api__types__config_defaultPtr = + _lookup>( + 'frbgen_ldk_node_wire__crate__api__types__config_default'); + late final _wire__crate__api__types__config_default = + _wire__crate__api__types__config_defaultPtr + .asFunction(); + void wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash( int port_, ffi.Pointer that, @@ -5182,243 +5392,63 @@ class coreWire implements BaseWire { ); } - late final _wire__crate__api__bolt12__ffi_bolt_12_payment_sendPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send'); - late final _wire__crate__api__bolt12__ffi_bolt_12_payment_send = - _wire__crate__api__bolt12__ffi_bolt_12_payment_sendPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - void wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount( - int port_, - ffi.Pointer that, - ffi.Pointer offer, - int amount_msat, - ffi.Pointer quantity, - ffi.Pointer payer_note, - ) { - return _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount( - port_, - that, - offer, - amount_msat, - quantity, - payer_note, - ); - } - - late final _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amountPtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount'); - late final _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount = - _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amountPtr - .asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer)>(); - - WireSyncRust2DartDco - wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( - int that, - ) { - return _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( - that, - ); - } - - late final _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaquePtr = - _lookup>( - 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque'); - late final _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque = - _wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaquePtr - .asFunction(); - - WireSyncRust2DartDco - wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( - int that, - int opaque, - ) { - return _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( - that, - opaque, - ); - } - - late final _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaquePtr = - _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function(ffi.UintPtr, ffi.UintPtr)>>( - 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque'); - late final _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque = - _wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaquePtr - .asFunction(); - - void wire__crate__api__builder__FfiBuilder_build( - int port_, - int that, - ) { - return _wire__crate__api__builder__FfiBuilder_build( - port_, - that, - ); - } - - late final _wire__crate__api__builder__FfiBuilder_buildPtr = - _lookup>( - 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build'); - late final _wire__crate__api__builder__FfiBuilder_build = - _wire__crate__api__builder__FfiBuilder_buildPtr - .asFunction(); - - void wire__crate__api__builder__FfiBuilder_build_with_fs_store( - int port_, - int that, - ) { - return _wire__crate__api__builder__FfiBuilder_build_with_fs_store( - port_, - that, - ); - } - - late final _wire__crate__api__builder__FfiBuilder_build_with_fs_storePtr = - _lookup>( - 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store'); - late final _wire__crate__api__builder__FfiBuilder_build_with_fs_store = - _wire__crate__api__builder__FfiBuilder_build_with_fs_storePtr - .asFunction(); - - void wire__crate__api__builder__FfiBuilder_build_with_vss_store( - int port_, - int that, - ffi.Pointer vss_url, - ffi.Pointer store_id, - ffi.Pointer lnurl_auth_server_url, - ffi.Pointer fixed_headers, - ) { - return _wire__crate__api__builder__FfiBuilder_build_with_vss_store( - port_, - that, - vss_url, - store_id, - lnurl_auth_server_url, - fixed_headers, - ); - } - - late final _wire__crate__api__builder__FfiBuilder_build_with_vss_storePtr = - _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.UintPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store'); - late final _wire__crate__api__builder__FfiBuilder_build_with_vss_store = - _wire__crate__api__builder__FfiBuilder_build_with_vss_storePtr.asFunction< + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_sendPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send'); + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_send = + _wire__crate__api__bolt12__ffi_bolt_12_payment_sendPtr.asFunction< void Function( int, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void - wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( + void wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount( int port_, - int that, - ffi.Pointer vss_url, - ffi.Pointer store_id, - ffi.Pointer fixed_headers, + ffi.Pointer that, + ffi.Pointer offer, + int amount_msat, + ffi.Pointer quantity, + ffi.Pointer payer_note, ) { - return _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( + return _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount( port_, that, - vss_url, - store_id, - fixed_headers, + offer, + amount_msat, + quantity, + payer_note, ); } - late final _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headersPtr = + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amountPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.UintPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers'); - late final _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers = - _wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headersPtr + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount'); + late final _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount = + _wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amountPtr .asFunction< void Function( int, + ffi.Pointer, + ffi.Pointer, int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - WireSyncRust2DartDco wire__crate__api__builder__FfiBuilder_create_builder( - ffi.Pointer config, - ffi.Pointer chain_data_source_config, - ffi.Pointer entropy_source_config, - ffi.Pointer gossip_source_config, - ffi.Pointer liquidity_source_config, - ) { - return _wire__crate__api__builder__FfiBuilder_create_builder( - config, - chain_data_source_config, - entropy_source_config, - gossip_source_config, - liquidity_source_config, - ); - } - - late final _wire__crate__api__builder__FfiBuilder_create_builderPtr = _lookup< - ffi.NativeFunction< - WireSyncRust2DartDco Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder'); - late final _wire__crate__api__builder__FfiBuilder_create_builder = - _wire__crate__api__builder__FfiBuilder_create_builderPtr.asFunction< - WireSyncRust2DartDco Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer)>(); void wire__crate__api__builder__ffi_mnemonic_generate( int port_, @@ -6393,36 +6423,6 @@ class coreWire implements BaseWire { void Function(int, ffi.Pointer, int, ffi.Pointer)>(); - void wire__crate__api__types__anchor_channels_config_default( - int port_, - ) { - return _wire__crate__api__types__anchor_channels_config_default( - port_, - ); - } - - late final _wire__crate__api__types__anchor_channels_config_defaultPtr = _lookup< - ffi.NativeFunction>( - 'frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default'); - late final _wire__crate__api__types__anchor_channels_config_default = - _wire__crate__api__types__anchor_channels_config_defaultPtr - .asFunction(); - - void wire__crate__api__types__config_default( - int port_, - ) { - return _wire__crate__api__types__config_default( - port_, - ); - } - - late final _wire__crate__api__types__config_defaultPtr = - _lookup>( - 'frbgen_ldk_node_wire__crate__api__types__config_default'); - late final _wire__crate__api__types__config_default = - _wire__crate__api__types__config_defaultPtr - .asFunction(); - void wire__crate__api__unified_qr__ffi_unified_qr_payment_receive( int port_, ffi.Pointer that, @@ -7567,11 +7567,6 @@ typedef DartDartPostCObjectFnTypeFunction = bool Function( typedef DartPort = ffi.Int64; typedef DartDartPort = int; -final class wire_cst_ffi_bolt_11_payment extends ffi.Struct { - @ffi.UintPtr() - external int opaque; -} - final class wire_cst_list_prim_u_8_strict extends ffi.Struct { external ffi.Pointer ptr; @@ -7579,58 +7574,6 @@ final class wire_cst_list_prim_u_8_strict extends ffi.Struct { external int len; } -final class wire_cst_payment_hash extends ffi.Struct { - external ffi.Pointer data; -} - -final class wire_cst_payment_preimage extends ffi.Struct { - external ffi.Pointer data; -} - -final class wire_cst_bolt_11_invoice extends ffi.Struct { - external ffi.Pointer signed_raw_invoice; -} - -final class wire_cst_MaxTotalRoutingFeeLimit_FeeCap extends ffi.Struct { - @ffi.Uint64() - external int amount_msat; -} - -final class MaxTotalRoutingFeeLimitKind extends ffi.Union { - external wire_cst_MaxTotalRoutingFeeLimit_FeeCap FeeCap; -} - -final class wire_cst_max_total_routing_fee_limit extends ffi.Struct { - @ffi.Int32() - external int tag; - - external MaxTotalRoutingFeeLimitKind kind; -} - -final class wire_cst_sending_parameters extends ffi.Struct { - external ffi.Pointer - max_total_routing_fee_msat; - - external ffi.Pointer max_total_cltv_expiry_delta; - - external ffi.Pointer max_path_count; - - external ffi.Pointer max_channel_saturation_power_of_half; -} - -final class wire_cst_ffi_bolt_12_payment extends ffi.Struct { - @ffi.UintPtr() - external int opaque; -} - -final class wire_cst_refund extends ffi.Struct { - external ffi.Pointer s; -} - -final class wire_cst_offer extends ffi.Struct { - external ffi.Pointer s; -} - final class wire_cst_record_string_string extends ffi.Struct { external ffi.Pointer field0; @@ -7730,6 +7673,33 @@ final class wire_cst_anchor_channels_config extends ffi.Struct { external int per_channel_reserve_sats; } +final class wire_cst_MaxTotalRoutingFeeLimit_FeeCap extends ffi.Struct { + @ffi.Uint64() + external int amount_msat; +} + +final class MaxTotalRoutingFeeLimitKind extends ffi.Union { + external wire_cst_MaxTotalRoutingFeeLimit_FeeCap FeeCap; +} + +final class wire_cst_max_total_routing_fee_limit extends ffi.Struct { + @ffi.Int32() + external int tag; + + external MaxTotalRoutingFeeLimitKind kind; +} + +final class wire_cst_sending_parameters extends ffi.Struct { + external ffi.Pointer + max_total_routing_fee_msat; + + external ffi.Pointer max_total_cltv_expiry_delta; + + external ffi.Pointer max_path_count; + + external ffi.Pointer max_channel_saturation_power_of_half; +} + final class wire_cst_config extends ffi.Struct { external ffi.Pointer storage_dir_path; @@ -7857,6 +7827,36 @@ final class wire_cst_liquidity_source_config extends ffi.Struct { external wire_cst_record_socket_address_public_key_opt_string lsps2_service; } +final class wire_cst_ffi_bolt_11_payment extends ffi.Struct { + @ffi.UintPtr() + external int opaque; +} + +final class wire_cst_payment_hash extends ffi.Struct { + external ffi.Pointer data; +} + +final class wire_cst_payment_preimage extends ffi.Struct { + external ffi.Pointer data; +} + +final class wire_cst_bolt_11_invoice extends ffi.Struct { + external ffi.Pointer signed_raw_invoice; +} + +final class wire_cst_ffi_bolt_12_payment extends ffi.Struct { + @ffi.UintPtr() + external int opaque; +} + +final class wire_cst_refund extends ffi.Struct { + external ffi.Pointer s; +} + +final class wire_cst_offer extends ffi.Struct { + external ffi.Pointer s; +} + final class wire_cst_ffi_network_graph extends ffi.Struct { @ffi.UintPtr() external int opaque; diff --git a/lib/src/generated/lib.dart b/lib/src/generated/lib.dart index e72dddb..bcdd057 100644 --- a/lib/src/generated/lib.dart +++ b/lib/src/generated/lib.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/utils/error.dart b/lib/src/generated/utils/error.dart index 5027a4b..3794249 100644 --- a/lib/src/generated/utils/error.dart +++ b/lib/src/generated/utils/error.dart @@ -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.6.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/macos/Classes/frb_generated.h b/macos/Classes/frb_generated.h index 85af7ae..671a7fd 100644 --- a/macos/Classes/frb_generated.h +++ b/macos/Classes/frb_generated.h @@ -14,59 +14,11 @@ void store_dart_post_cobject(DartPostCObjectFnType ptr); // EXTRA END typedef struct _Dart_Handle* Dart_Handle; -typedef struct wire_cst_ffi_bolt_11_payment { - uintptr_t opaque; -} wire_cst_ffi_bolt_11_payment; - typedef struct wire_cst_list_prim_u_8_strict { uint8_t *ptr; int32_t len; } wire_cst_list_prim_u_8_strict; -typedef struct wire_cst_payment_hash { - struct wire_cst_list_prim_u_8_strict *data; -} wire_cst_payment_hash; - -typedef struct wire_cst_payment_preimage { - struct wire_cst_list_prim_u_8_strict *data; -} wire_cst_payment_preimage; - -typedef struct wire_cst_bolt_11_invoice { - struct wire_cst_list_prim_u_8_strict *signed_raw_invoice; -} wire_cst_bolt_11_invoice; - -typedef struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap { - uint64_t amount_msat; -} wire_cst_MaxTotalRoutingFeeLimit_FeeCap; - -typedef union MaxTotalRoutingFeeLimitKind { - struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap FeeCap; -} MaxTotalRoutingFeeLimitKind; - -typedef struct wire_cst_max_total_routing_fee_limit { - int32_t tag; - union MaxTotalRoutingFeeLimitKind kind; -} wire_cst_max_total_routing_fee_limit; - -typedef struct wire_cst_sending_parameters { - struct wire_cst_max_total_routing_fee_limit *max_total_routing_fee_msat; - uint32_t *max_total_cltv_expiry_delta; - uint8_t *max_path_count; - uint8_t *max_channel_saturation_power_of_half; -} wire_cst_sending_parameters; - -typedef struct wire_cst_ffi_bolt_12_payment { - uintptr_t opaque; -} wire_cst_ffi_bolt_12_payment; - -typedef struct wire_cst_refund { - struct wire_cst_list_prim_u_8_strict *s; -} wire_cst_refund; - -typedef struct wire_cst_offer { - struct wire_cst_list_prim_u_8_strict *s; -} wire_cst_offer; - typedef struct wire_cst_record_string_string { struct wire_cst_list_prim_u_8_strict *field0; struct wire_cst_list_prim_u_8_strict *field1; @@ -139,6 +91,26 @@ typedef struct wire_cst_anchor_channels_config { uint64_t per_channel_reserve_sats; } wire_cst_anchor_channels_config; +typedef struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap { + uint64_t amount_msat; +} wire_cst_MaxTotalRoutingFeeLimit_FeeCap; + +typedef union MaxTotalRoutingFeeLimitKind { + struct wire_cst_MaxTotalRoutingFeeLimit_FeeCap FeeCap; +} MaxTotalRoutingFeeLimitKind; + +typedef struct wire_cst_max_total_routing_fee_limit { + int32_t tag; + union MaxTotalRoutingFeeLimitKind kind; +} wire_cst_max_total_routing_fee_limit; + +typedef struct wire_cst_sending_parameters { + struct wire_cst_max_total_routing_fee_limit *max_total_routing_fee_msat; + uint32_t *max_total_cltv_expiry_delta; + uint8_t *max_path_count; + uint8_t *max_channel_saturation_power_of_half; +} wire_cst_sending_parameters; + typedef struct wire_cst_config { struct wire_cst_list_prim_u_8_strict *storage_dir_path; struct wire_cst_list_prim_u_8_strict *log_dir_path; @@ -231,6 +203,34 @@ typedef struct wire_cst_liquidity_source_config { struct wire_cst_record_socket_address_public_key_opt_string lsps2_service; } wire_cst_liquidity_source_config; +typedef struct wire_cst_ffi_bolt_11_payment { + uintptr_t opaque; +} wire_cst_ffi_bolt_11_payment; + +typedef struct wire_cst_payment_hash { + struct wire_cst_list_prim_u_8_strict *data; +} wire_cst_payment_hash; + +typedef struct wire_cst_payment_preimage { + struct wire_cst_list_prim_u_8_strict *data; +} wire_cst_payment_preimage; + +typedef struct wire_cst_bolt_11_invoice { + struct wire_cst_list_prim_u_8_strict *signed_raw_invoice; +} wire_cst_bolt_11_invoice; + +typedef struct wire_cst_ffi_bolt_12_payment { + uintptr_t opaque; +} wire_cst_ffi_bolt_12_payment; + +typedef struct wire_cst_refund { + struct wire_cst_list_prim_u_8_strict *s; +} wire_cst_refund; + +typedef struct wire_cst_offer { + struct wire_cst_list_prim_u_8_strict *s; +} wire_cst_offer; + typedef struct wire_cst_ffi_network_graph { uintptr_t opaque; } wire_cst_ffi_network_graph; @@ -783,6 +783,39 @@ typedef struct wire_cst_qr_payment_result { union QrPaymentResultKind kind; } wire_cst_qr_payment_result; +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque(uintptr_t that); + +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque(uintptr_t that, + uintptr_t opaque); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build(int64_t port_, uintptr_t that); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store(int64_t port_, + uintptr_t that); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store(int64_t port_, + uintptr_t that, + struct wire_cst_list_prim_u_8_strict *vss_url, + struct wire_cst_list_prim_u_8_strict *store_id, + struct wire_cst_list_prim_u_8_strict *lnurl_auth_server_url, + struct wire_cst_list_record_string_string *fixed_headers); + +void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers(int64_t port_, + uintptr_t that, + struct wire_cst_list_prim_u_8_strict *vss_url, + struct wire_cst_list_prim_u_8_strict *store_id, + struct wire_cst_list_record_string_string *fixed_headers); + +WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder(struct wire_cst_config *config, + struct wire_cst_chain_data_source_config *chain_data_source_config, + struct wire_cst_entropy_source_config *entropy_source_config, + struct wire_cst_gossip_source_config *gossip_source_config, + struct wire_cst_liquidity_source_config *liquidity_source_config); + +void frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default(int64_t port_); + +void frbgen_ldk_node_wire__crate__api__types__config_default(int64_t port_); + void frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash(int64_t port_, struct wire_cst_ffi_bolt_11_payment *that, struct wire_cst_payment_hash *payment_hash, @@ -886,35 +919,6 @@ void frbgen_ldk_node_wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_am uint64_t *quantity, struct wire_cst_list_prim_u_8_strict *payer_note); -WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque(uintptr_t that); - -WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque(uintptr_t that, - uintptr_t opaque); - -void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build(int64_t port_, uintptr_t that); - -void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store(int64_t port_, - uintptr_t that); - -void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store(int64_t port_, - uintptr_t that, - struct wire_cst_list_prim_u_8_strict *vss_url, - struct wire_cst_list_prim_u_8_strict *store_id, - struct wire_cst_list_prim_u_8_strict *lnurl_auth_server_url, - struct wire_cst_list_record_string_string *fixed_headers); - -void frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers(int64_t port_, - uintptr_t that, - struct wire_cst_list_prim_u_8_strict *vss_url, - struct wire_cst_list_prim_u_8_strict *store_id, - struct wire_cst_list_record_string_string *fixed_headers); - -WireSyncRust2DartDco frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder(struct wire_cst_config *config, - struct wire_cst_chain_data_source_config *chain_data_source_config, - struct wire_cst_entropy_source_config *entropy_source_config, - struct wire_cst_gossip_source_config *gossip_source_config, - struct wire_cst_liquidity_source_config *liquidity_source_config); - void frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate(int64_t port_); void frbgen_ldk_node_wire__crate__api__graph__ffi_network_graph_channel(int64_t port_, @@ -1081,10 +1085,6 @@ void frbgen_ldk_node_wire__crate__api__spontaneous__ffi_spontaneous_payment_send uint64_t amount_msat, struct wire_cst_public_key *node_id); -void frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default(int64_t port_); - -void frbgen_ldk_node_wire__crate__api__types__config_default(int64_t port_); - void frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_receive(int64_t port_, struct wire_cst_ffi_unified_qr_payment *that, uint64_t amount_sats, diff --git a/makefile b/makefile index c5c7f4a..0fafa06 100644 --- a/makefile +++ b/makefile @@ -11,7 +11,7 @@ help: makefile ## init: Install missing dependencies. init: - cargo install flutter_rust_bridge_codegen --version 2.4.0 + cargo install flutter_rust_bridge_codegen --version 2.6.0 ## : all: init fmt codegen diff --git a/pubspec.yaml b/pubspec.yaml index 4707014..00eb4c1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: ffi: ^2.1.0 flutter: sdk: flutter - flutter_rust_bridge: "2.4.0" + flutter_rust_bridge: ">2.5.1 <=2.6.0" freezed_annotation: ^2.2.0 meta: ^1.12.0 uuid: ^4.3.3 diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 606ec80..cf74bf4 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -46,9 +46,9 @@ dependencies = [ [[package]] name = "allo-isolate" -version = "0.1.25" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b6d794345b06592d0ebeed8e477e41b71e5a0a49df4fc0e4184d5938b99509" +checksum = "1f67642eb6773fb42a95dd3b348c305ee18dee6642274c6b412d67e985e3befc" dependencies = [ "anyhow", "atomic", @@ -559,9 +559,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flutter_rust_bridge" -version = "2.4.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff967a5893be60d849e4362910762acdc275febe44333153a11dcec1bca2cd2" +checksum = "93b95a1b4f20b8c037535bcda990abf0ae2bd94c93e27ebbbe00633322bc1561" dependencies = [ "allo-isolate", "android_logger", @@ -578,6 +578,7 @@ dependencies = [ "lazy_static", "log", "oslog", + "portable-atomic", "threadpool", "tokio", "wasm-bindgen", @@ -587,9 +588,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_macros" -version = "2.4.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d48b4d3fae9d29377b19134a38386d8792bde70b9448cde49e96391bcfc8fed1" +checksum = "fafd532ccfcce8ef23e858fe07303ff572e8b302be6ec0b0f38ca6eb319206dc" dependencies = [ "hex", "md-5", @@ -1307,6 +1308,12 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" +[[package]] +name = "portable-atomic" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" + [[package]] name = "ppv-lite86" version = "0.2.17" diff --git a/rust/Cargo.toml b/rust/Cargo.toml index c5ef462..fd298df 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["staticlib", "cdylib"] [build-dependencies] anyhow = "1.0.68" [dependencies] -flutter_rust_bridge = "=2.4.0" +flutter_rust_bridge = "=2.6.0" anyhow = { version = "1.0.71"} ldk-node = { version = "= 0.4.2" } # ldk-node = {git = 'https://github.com/lightningdevkit/ldk-node.git', rev = "246775d04dbb2e99528a6a1aa0bc04ad7378e900"} diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index 22056a8..f7c0d5e 100644 --- a/rust/src/frb_generated.rs +++ b/rust/src/frb_generated.rs @@ -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.6.0. #![allow( non_camel_case_types, @@ -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.6.0"; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 968713453; // Section: executor @@ -47,6 +47,297 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs +fn wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque_impl( + that: impl CstDecode< + RustOpaqueNom>, + >, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "FfiBuilder_auto_accessor_get_opaque", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok(api_that_guard.opaque.clone())?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque_impl( + that: impl CstDecode< + RustOpaqueNom>, + >, + opaque: impl CstDecode>, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "FfiBuilder_auto_accessor_set_opaque", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + let api_opaque = opaque.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, true, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok({ + { + api_that_guard.opaque = api_opaque; + }; + })?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__builder__FfiBuilder_build_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "FfiBuilder_build", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let output_ok = crate::api::builder::FfiBuilder::build(api_that)?; + Ok(output_ok) + })( + )) + } + }, + ) +} +fn wire__crate__api__builder__FfiBuilder_build_with_fs_store_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "FfiBuilder_build_with_fs_store", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let output_ok = crate::api::builder::FfiBuilder::build_with_fs_store(api_that)?; + Ok(output_ok) + })( + )) + } + }, + ) +} +fn wire__crate__api__builder__FfiBuilder_build_with_vss_store_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode< + RustOpaqueNom>, + >, + vss_url: impl CstDecode, + store_id: impl CstDecode, + lnurl_auth_server_url: impl CstDecode, + fixed_headers: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "FfiBuilder_build_with_vss_store", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_vss_url = vss_url.cst_decode(); + let api_store_id = store_id.cst_decode(); + let api_lnurl_auth_server_url = lnurl_auth_server_url.cst_decode(); + let api_fixed_headers = fixed_headers.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = crate::api::builder::FfiBuilder::build_with_vss_store( + &*api_that_guard, + api_vss_url, + api_store_id, + api_lnurl_auth_server_url, + api_fixed_headers, + )?; + Ok(output_ok) + })( + )) + } + }, + ) +} +fn wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode< + RustOpaqueNom>, + >, + vss_url: impl CstDecode, + store_id: impl CstDecode, + fixed_headers: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "FfiBuilder_build_with_vss_store_and_fixed_headers", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_vss_url = vss_url.cst_decode(); + let api_store_id = store_id.cst_decode(); + let api_fixed_headers = fixed_headers.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = + crate::api::builder::FfiBuilder::build_with_vss_store_and_fixed_headers( + &*api_that_guard, + api_vss_url, + api_store_id, + api_fixed_headers, + )?; + Ok(output_ok) + })( + )) + } + }, + ) +} +fn wire__crate__api__builder__FfiBuilder_create_builder_impl( + config: impl CstDecode, + chain_data_source_config: impl CstDecode>, + entropy_source_config: impl CstDecode>, + gossip_source_config: impl CstDecode>, + liquidity_source_config: impl CstDecode>, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "FfiBuilder_create_builder", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_config = config.cst_decode(); + let api_chain_data_source_config = chain_data_source_config.cst_decode(); + let api_entropy_source_config = entropy_source_config.cst_decode(); + let api_gossip_source_config = gossip_source_config.cst_decode(); + let api_liquidity_source_config = liquidity_source_config.cst_decode(); + transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { + let output_ok = crate::api::builder::FfiBuilder::create_builder( + api_config, + api_chain_data_source_config, + api_entropy_source_config, + api_gossip_source_config, + api_liquidity_source_config, + )?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__types__anchor_channels_config_default_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "anchor_channels_config_default", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + move |context| { + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::types::AnchorChannelsConfig::default())?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__types__config_default_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "config_default", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + move |context| { + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::types::Config::default())?; + Ok(output_ok) + })()) + } + }, + ) +} fn wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, @@ -407,193 +698,32 @@ fn wire__crate__api__bolt11__ffi_bolt_11_payment_send_using_amount_impl( }, ) } -fn wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - amount_msat: impl CstDecode, - expiry_secs: impl CstDecode, - quantity: impl CstDecode>, - payer_note: impl CstDecode>, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ffi_bolt_12_payment_initiate_refund", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_that = that.cst_decode(); - let api_amount_msat = amount_msat.cst_decode(); - let api_expiry_secs = expiry_secs.cst_decode(); - let api_quantity = quantity.cst_decode(); - let api_payer_note = payer_note.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { - let output_ok = crate::api::bolt12::FfiBolt12Payment::initiate_refund( - &api_that, - api_amount_msat, - api_expiry_secs, - api_quantity, - api_payer_note, - )?; - Ok(output_ok) - })( - )) - } - }, - ) -} -fn wire__crate__api__bolt12__ffi_bolt_12_payment_receive_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - amount_msat: impl CstDecode, - description: impl CstDecode, - expiry_secs: impl CstDecode>, - quantity: impl CstDecode>, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ffi_bolt_12_payment_receive", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_that = that.cst_decode(); - let api_amount_msat = amount_msat.cst_decode(); - let api_description = description.cst_decode(); - let api_expiry_secs = expiry_secs.cst_decode(); - let api_quantity = quantity.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { - let output_ok = crate::api::bolt12::FfiBolt12Payment::receive( - &api_that, - api_amount_msat, - api_description, - api_expiry_secs, - api_quantity, - )?; - Ok(output_ok) - })( - )) - } - }, - ) -} -fn wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - description: impl CstDecode, - expiry_secs: impl CstDecode>, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ffi_bolt_12_payment_receive_variable_amount", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_that = that.cst_decode(); - let api_description = description.cst_decode(); - let api_expiry_secs = expiry_secs.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { - let output_ok = crate::api::bolt12::FfiBolt12Payment::receive_variable_amount( - &api_that, - api_description, - api_expiry_secs, - )?; - Ok(output_ok) - })( - )) - } - }, - ) -} -fn wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - refund: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ffi_bolt_12_payment_request_refund_payment", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_that = that.cst_decode(); - let api_refund = refund.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { - let output_ok = crate::api::bolt12::FfiBolt12Payment::request_refund_payment( - &api_that, api_refund, - )?; - Ok(output_ok) - })( - )) - } - }, - ) -} -fn wire__crate__api__bolt12__ffi_bolt_12_payment_send_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - offer: impl CstDecode, - quantity: impl CstDecode>, - payer_note: impl CstDecode>, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ffi_bolt_12_payment_send", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_that = that.cst_decode(); - let api_offer = offer.cst_decode(); - let api_quantity = quantity.cst_decode(); - let api_payer_note = payer_note.cst_decode(); - move |context| { - transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { - let output_ok = crate::api::bolt12::FfiBolt12Payment::send( - &api_that, - api_offer, - api_quantity, - api_payer_note, - )?; - Ok(output_ok) - })( - )) - } - }, - ) -} -fn wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_initiate_refund_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, - offer: impl CstDecode, amount_msat: impl CstDecode, + expiry_secs: impl CstDecode, quantity: impl CstDecode>, payer_note: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ffi_bolt_12_payment_send_using_amount", + debug_name: "ffi_bolt_12_payment_initiate_refund", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_offer = offer.cst_decode(); let api_amount_msat = amount_msat.cst_decode(); + let api_expiry_secs = expiry_secs.cst_decode(); let api_quantity = quantity.cst_decode(); let api_payer_note = payer_note.cst_decode(); move |context| { transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { - let output_ok = crate::api::bolt12::FfiBolt12Payment::send_using_amount( + let output_ok = crate::api::bolt12::FfiBolt12Payment::initiate_refund( &api_that, - api_offer, api_amount_msat, + api_expiry_secs, api_quantity, api_payer_note, )?; @@ -604,95 +734,35 @@ fn wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount_impl( }, ) } -fn wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque_impl( - that: impl CstDecode< - RustOpaqueNom>, - >, -) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "FfiBuilder_auto_accessor_get_opaque", - port: None, - mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, - }, - move || { - let api_that = that.cst_decode(); - transform_result_dco::<_, _, ()>((move || { - let mut api_that_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_that, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok(api_that_guard.opaque.clone())?; - Ok(output_ok) - })()) - }, - ) -} -fn wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque_impl( - that: impl CstDecode< - RustOpaqueNom>, - >, - opaque: impl CstDecode>, -) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "FfiBuilder_auto_accessor_set_opaque", - port: None, - mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, - }, - move || { - let api_that = that.cst_decode(); - let api_opaque = opaque.cst_decode(); - transform_result_dco::<_, _, ()>((move || { - let mut api_that_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_that, 0, true, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), - _ => unreachable!(), - } - } - let mut api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok({ - { - api_that_guard.opaque = api_opaque; - }; - })?; - Ok(output_ok) - })()) - }, - ) -} -fn wire__crate__api__builder__FfiBuilder_build_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_receive_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, + amount_msat: impl CstDecode, + description: impl CstDecode, + expiry_secs: impl CstDecode>, + quantity: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "FfiBuilder_build", + debug_name: "ffi_bolt_12_payment_receive", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); + let api_amount_msat = amount_msat.cst_decode(); + let api_description = description.cst_decode(); + let api_expiry_secs = expiry_secs.cst_decode(); + let api_quantity = quantity.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { - let output_ok = crate::api::builder::FfiBuilder::build(api_that)?; + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::receive( + &api_that, + api_amount_msat, + api_description, + api_expiry_secs, + api_quantity, + )?; Ok(output_ok) })( )) @@ -700,21 +770,29 @@ fn wire__crate__api__builder__FfiBuilder_build_impl( }, ) } -fn wire__crate__api__builder__FfiBuilder_build_with_fs_store_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_receive_variable_amount_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, + description: impl CstDecode, + expiry_secs: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "FfiBuilder_build_with_fs_store", + debug_name: "ffi_bolt_12_payment_receive_variable_amount", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); + let api_description = description.cst_decode(); + let api_expiry_secs = expiry_secs.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { - let output_ok = crate::api::builder::FfiBuilder::build_with_fs_store(api_that)?; + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::receive_variable_amount( + &api_that, + api_description, + api_expiry_secs, + )?; Ok(output_ok) })( )) @@ -722,50 +800,24 @@ fn wire__crate__api__builder__FfiBuilder_build_with_fs_store_impl( }, ) } -fn wire__crate__api__builder__FfiBuilder_build_with_vss_store_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_request_refund_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode< - RustOpaqueNom>, - >, - vss_url: impl CstDecode, - store_id: impl CstDecode, - lnurl_auth_server_url: impl CstDecode, - fixed_headers: impl CstDecode>, + that: impl CstDecode, + refund: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "FfiBuilder_build_with_vss_store", + debug_name: "ffi_bolt_12_payment_request_refund_payment", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_vss_url = vss_url.cst_decode(); - let api_store_id = store_id.cst_decode(); - let api_lnurl_auth_server_url = lnurl_auth_server_url.cst_decode(); - let api_fixed_headers = fixed_headers.cst_decode(); + let api_refund = refund.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { - let mut api_that_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_that, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = crate::api::builder::FfiBuilder::build_with_vss_store( - &*api_that_guard, - api_vss_url, - api_store_id, - api_lnurl_auth_server_url, - api_fixed_headers, + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::request_refund_payment( + &api_that, api_refund, )?; Ok(output_ok) })( @@ -774,49 +826,32 @@ fn wire__crate__api__builder__FfiBuilder_build_with_vss_store_impl( }, ) } -fn wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers_impl( +fn wire__crate__api__bolt12__ffi_bolt_12_payment_send_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode< - RustOpaqueNom>, - >, - vss_url: impl CstDecode, - store_id: impl CstDecode, - fixed_headers: impl CstDecode>, + that: impl CstDecode, + offer: impl CstDecode, + quantity: impl CstDecode>, + payer_note: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "FfiBuilder_build_with_vss_store_and_fixed_headers", + debug_name: "ffi_bolt_12_payment_send", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_vss_url = vss_url.cst_decode(); - let api_store_id = store_id.cst_decode(); - let api_fixed_headers = fixed_headers.cst_decode(); + let api_offer = offer.cst_decode(); + let api_quantity = quantity.cst_decode(); + let api_payer_note = payer_note.cst_decode(); move |context| { - transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { - let mut api_that_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_that, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = - crate::api::builder::FfiBuilder::build_with_vss_store_and_fixed_headers( - &*api_that_guard, - api_vss_url, - api_store_id, - api_fixed_headers, - )?; + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::send( + &api_that, + api_offer, + api_quantity, + api_payer_note, + )?; Ok(output_ok) })( )) @@ -824,35 +859,39 @@ fn wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers_ }, ) } -fn wire__crate__api__builder__FfiBuilder_create_builder_impl( - config: impl CstDecode, - chain_data_source_config: impl CstDecode>, - entropy_source_config: impl CstDecode>, - gossip_source_config: impl CstDecode>, - liquidity_source_config: impl CstDecode>, -) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "FfiBuilder_create_builder", - port: None, - mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, - }, - move || { - let api_config = config.cst_decode(); - let api_chain_data_source_config = chain_data_source_config.cst_decode(); - let api_entropy_source_config = entropy_source_config.cst_decode(); - let api_gossip_source_config = gossip_source_config.cst_decode(); - let api_liquidity_source_config = liquidity_source_config.cst_decode(); - transform_result_dco::<_, _, crate::utils::error::FfiBuilderError>((move || { - let output_ok = crate::api::builder::FfiBuilder::create_builder( - api_config, - api_chain_data_source_config, - api_entropy_source_config, - api_gossip_source_config, - api_liquidity_source_config, - )?; - Ok(output_ok) - })()) +fn wire__crate__api__bolt12__ffi_bolt_12_payment_send_using_amount_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + offer: impl CstDecode, + amount_msat: impl CstDecode, + quantity: impl CstDecode>, + payer_note: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_bolt_12_payment_send_using_amount", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_offer = offer.cst_decode(); + let api_amount_msat = amount_msat.cst_decode(); + let api_quantity = quantity.cst_decode(); + let api_payer_note = payer_note.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::FfiNodeError>((move || { + let output_ok = crate::api::bolt12::FfiBolt12Payment::send_using_amount( + &api_that, + api_offer, + api_amount_msat, + api_quantity, + api_payer_note, + )?; + Ok(output_ok) + })( + )) + } }, ) } @@ -1952,45 +1991,6 @@ fn wire__crate__api__spontaneous__ffi_spontaneous_payment_send_probes_impl( }, ) } -fn wire__crate__api__types__anchor_channels_config_default_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "anchor_channels_config_default", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - move |context| { - transform_result_dco::<_, _, ()>((move || { - let output_ok = - Result::<_, ()>::Ok(crate::api::types::AnchorChannelsConfig::default())?; - Ok(output_ok) - })()) - } - }, - ) -} -fn wire__crate__api__types__config_default_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "config_default", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - move |context| { - transform_result_dco::<_, _, ()>((move || { - let output_ok = Result::<_, ()>::Ok(crate::api::types::Config::default())?; - Ok(output_ok) - })()) - } - }, - ) -} fn wire__crate__api__unified_qr__ffi_unified_qr_payment_receive_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode, @@ -8430,7 +8430,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.6.0. // Section: imports @@ -10910,6 +10910,102 @@ mod io { } } + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( + that: usize, + ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque_impl(that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( + that: usize, + opaque: usize, + ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque_impl(that, opaque) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build( + port_: i64, + that: usize, + ) { + wire__crate__api__builder__FfiBuilder_build_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store( + port_: i64, + that: usize, + ) { + wire__crate__api__builder__FfiBuilder_build_with_fs_store_impl(port_, that) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store( + port_: i64, + that: usize, + vss_url: *mut wire_cst_list_prim_u_8_strict, + store_id: *mut wire_cst_list_prim_u_8_strict, + lnurl_auth_server_url: *mut wire_cst_list_prim_u_8_strict, + fixed_headers: *mut wire_cst_list_record_string_string, + ) { + wire__crate__api__builder__FfiBuilder_build_with_vss_store_impl( + port_, + that, + vss_url, + store_id, + lnurl_auth_server_url, + fixed_headers, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( + port_: i64, + that: usize, + vss_url: *mut wire_cst_list_prim_u_8_strict, + store_id: *mut wire_cst_list_prim_u_8_strict, + fixed_headers: *mut wire_cst_list_record_string_string, + ) { + wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers_impl( + port_, + that, + vss_url, + store_id, + fixed_headers, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder( + config: *mut wire_cst_config, + chain_data_source_config: *mut wire_cst_chain_data_source_config, + entropy_source_config: *mut wire_cst_entropy_source_config, + gossip_source_config: *mut wire_cst_gossip_source_config, + liquidity_source_config: *mut wire_cst_liquidity_source_config, + ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__builder__FfiBuilder_create_builder_impl( + config, + chain_data_source_config, + entropy_source_config, + gossip_source_config, + liquidity_source_config, + ) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default( + port_: i64, + ) { + wire__crate__api__types__anchor_channels_config_default_impl(port_) + } + + #[no_mangle] + pub extern "C" fn frbgen_ldk_node_wire__crate__api__types__config_default(port_: i64) { + wire__crate__api__types__config_default_impl(port_) + } + #[no_mangle] pub extern "C" fn frbgen_ldk_node_wire__crate__api__bolt11__ffi_bolt_11_payment_claim_for_hash( port_: i64, @@ -11192,90 +11288,6 @@ mod io { ) } - #[no_mangle] - pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque( - that: usize, - ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire__crate__api__builder__FfiBuilder_auto_accessor_get_opaque_impl(that) - } - - #[no_mangle] - pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque( - that: usize, - opaque: usize, - ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire__crate__api__builder__FfiBuilder_auto_accessor_set_opaque_impl(that, opaque) - } - - #[no_mangle] - pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build( - port_: i64, - that: usize, - ) { - wire__crate__api__builder__FfiBuilder_build_impl(port_, that) - } - - #[no_mangle] - pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_fs_store( - port_: i64, - that: usize, - ) { - wire__crate__api__builder__FfiBuilder_build_with_fs_store_impl(port_, that) - } - - #[no_mangle] - pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store( - port_: i64, - that: usize, - vss_url: *mut wire_cst_list_prim_u_8_strict, - store_id: *mut wire_cst_list_prim_u_8_strict, - lnurl_auth_server_url: *mut wire_cst_list_prim_u_8_strict, - fixed_headers: *mut wire_cst_list_record_string_string, - ) { - wire__crate__api__builder__FfiBuilder_build_with_vss_store_impl( - port_, - that, - vss_url, - store_id, - lnurl_auth_server_url, - fixed_headers, - ) - } - - #[no_mangle] - pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers( - port_: i64, - that: usize, - vss_url: *mut wire_cst_list_prim_u_8_strict, - store_id: *mut wire_cst_list_prim_u_8_strict, - fixed_headers: *mut wire_cst_list_record_string_string, - ) { - wire__crate__api__builder__FfiBuilder_build_with_vss_store_and_fixed_headers_impl( - port_, - that, - vss_url, - store_id, - fixed_headers, - ) - } - - #[no_mangle] - pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__FfiBuilder_create_builder( - config: *mut wire_cst_config, - chain_data_source_config: *mut wire_cst_chain_data_source_config, - entropy_source_config: *mut wire_cst_entropy_source_config, - gossip_source_config: *mut wire_cst_gossip_source_config, - liquidity_source_config: *mut wire_cst_liquidity_source_config, - ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { - wire__crate__api__builder__FfiBuilder_create_builder_impl( - config, - chain_data_source_config, - entropy_source_config, - gossip_source_config, - liquidity_source_config, - ) - } - #[no_mangle] pub extern "C" fn frbgen_ldk_node_wire__crate__api__builder__ffi_mnemonic_generate(port_: i64) { wire__crate__api__builder__ffi_mnemonic_generate_impl(port_) @@ -11709,18 +11721,6 @@ mod io { ) } - #[no_mangle] - pub extern "C" fn frbgen_ldk_node_wire__crate__api__types__anchor_channels_config_default( - port_: i64, - ) { - wire__crate__api__types__anchor_channels_config_default_impl(port_) - } - - #[no_mangle] - pub extern "C" fn frbgen_ldk_node_wire__crate__api__types__config_default(port_: i64) { - wire__crate__api__types__config_default_impl(port_) - } - #[no_mangle] pub extern "C" fn frbgen_ldk_node_wire__crate__api__unified_qr__ffi_unified_qr_payment_receive( port_: i64, From 0d8419696bf904ea7fee9c8e6781ec440d629a4e Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sun, 25 May 2025 00:45:00 -0400 Subject: [PATCH 09/24] CHANGELOG updated --- CHANGELOG.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41f28fb..64889ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,26 @@ ## [0.4.2] +Updated `flutter_rust_bridge` to `2.6.0`. +Updated `ldk-node` to `0.4.2`. +#### APIs added +- Support for multiple chain sources has been added. The `setChainSourceBitcoinRpc` method has been introduced in the Builder class to allow the use of + Bitcoin Core RPC. +- Support for sourcing chain and fee estimation data from a Bitcoin Core RPC backed. +- Initial experimental support for an encrypted VSS remote storage backend has been added using `builder.buildWithVssStore` & + `builder.buildWithVssStoreAndFixedHeaders` methods. + - **Caution**: VSS support is in **alpha** and is considered experimental. Using VSS (or any remote persistence) may cause LDK to throw an exception + if persistence failures are unrecoverable, i.e., if they remain unresolved after internal retries are exhausted. +- Support for setting the `NodeAlias` in public node announcements using `builder.setNodeAlias` has been added. +- Exposed `node.unifiedQrPayment` & `UnifiedQrPayment` handler for generating and paying unified QR codes. +- Support for `quantity` and `payerNote` fields when sending or receiving `BOLT12` payments have been added. +- Support for setting `SendingParameters` when sending `BOLT11` payments has been added. +#### API changed +- `node.connectOpenChannel` was split into `openChannel` and `openAnnouncedChannel`. +- The `setEsploraServer` method has been renamed to `setChainSourceEsplora`, and Esplora-specific configuration options can now be provided using + `EsploraSyncConfig`. +#### Fixed +- The `ChannelConfig` object has been refactored, now allowing to query the currently applied `MaxDustHTLCExposure` limit. +- The `Node` no longer throws an exception when hitting a persistence failure during event handling. Instead, events will be replayed until successful. +- The `Node` is no longer prohibited from using available confirmed on-chain funds to spend/bump Anchor outputs. ## [0.3.0] Updated `flutter_rust_bridge` to `2.0.0`. From 4de459b05e61a31fa2322bd4842d067c8e2d9d2d Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Mon, 26 May 2025 15:12:00 -0400 Subject: [PATCH 10/24] README updated --- README.md | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 340ff8c..f6cb1fd 100644 --- a/README.md +++ b/README.md @@ -60,31 +60,15 @@ import 'package:ldk_node/ldk_node.dart'; // Path to a directory where the application may place data that is user-generated final path = "${directory.path}/alice's_node"; -// Your preferred `Esplora` url -final esploraUrl = "https://mempool.space/testnet/api"; - -// configuration options for the node -final config = Config( - probingLiquidityLimitMultiplier: 3, - trustedPeers0Conf: [], - storageDirPath: path, - network: Network.Testnet, - listeningAddresses: [ - SocketAddress.hostname(addr: "0.0.0.0", port: 3003) - ], - onchainWalletSyncIntervalSecs: 60, - walletSyncIntervalSecs: 20, - feeRateCacheUpdateIntervalSecs: 600, - logLevel: ldk.LogLevel.Debug, - defaultCltvExpiryDelta: 144 - ); -Builder builder = Builder.fromConfig(config); - final node = await builder - .setEntropyBip39Mnemonic( - mnemonic: ldk.Mnemonic( - 'certain sense kiss guide crumble hint transfer crime much stereo warm coral')) - .setEsploraServer(esploraUrl) - .build(); + +// For a node on the testnet network with default config and service +// esploraUrl: "https://mempool.space/testnet/api"; +Builder builder = Builder.testnet() + .setStorageDirPath(path) + .setEntropyBip39Mnemonic( + mnemonic: Mnemonic( + 'certain sense kiss guide crumble hint transfer crime much stereo warm coral')); + final node = await builder.build(); // Starting the node await node.start(); From bb640953f8c2ce16051481aee5492a35ef2308cc Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 27 May 2025 20:26:00 -0400 Subject: [PATCH 11/24] dependencies updated --- pubspec.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 00eb4c1..3ce8fff 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,21 +9,20 @@ environment: dependencies: collection: ^1.18.0 - ffi: ^2.1.0 + ffi: ^2.1.3 flutter: sdk: flutter flutter_rust_bridge: ">2.5.1 <=2.6.0" - freezed_annotation: ^2.2.0 - meta: ^1.12.0 - uuid: ^4.3.3 - path_provider: ^2.1.2 + freezed_annotation: ^2.4.4 + meta: ^1.15.0 + path_provider: ^2.1.5 dev_dependencies: flutter_test: sdk: flutter ffigen: ^12.0.0 freezed: ^2.5.2 build_runner: ^2.4.8 - lints: ^4.0.0 + lints: ^5.0.0 flutter: plugin: From 3bcc823b5746b30eb4870bf7ddc30caa03b0a3e4 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Wed, 28 May 2025 16:16:00 -0400 Subject: [PATCH 12/24] fix: incompatable gradle version error; Java updated to version 17 --- android/build.gradle | 29 +- android/gradlew | 252 ++++++++++++++++++ android/gradlew.bat | 94 +++++++ android/src/main/AndroidManifest.xml | 4 +- example/android/app/build.gradle | 56 ++-- .../android/app/src/debug/AndroidManifest.xml | 3 +- example/android/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- example/android/settings.gradle | 31 ++- 9 files changed, 403 insertions(+), 87 deletions(-) create mode 100755 android/gradlew create mode 100644 android/gradlew.bat diff --git a/android/build.gradle b/android/build.gradle index 22e30b7..5baa0eb 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,16 +1,14 @@ group 'io.ldk.f.ldk_node' -version '1.0-SNAPSHOT' +version '0.4.2' buildscript { - ext.kotlin_version = '1.6.10' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath 'com.android.tools.build:gradle:7.2.1' } } @@ -22,28 +20,27 @@ allprojects { } apply plugin: 'com.android.library' -apply plugin: 'kotlin-android' android { - compileSdkVersion 31 - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + if (project.android.hasProperty("namespace")) { + namespace "io.ldk.f.ldk_node" } - - kotlinOptions { - jvmTarget = '1.8' + compileSdk = 33 + ndkVersion android.ndkVersion + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } - sourceSets { - main.java.srcDirs += 'src/main/kotlin' + defaultConfig { + minSdkVersion 23 } defaultConfig { - minSdkVersion 16 + minSdk = 21 } } + apply from: "../cargokit/gradle/plugin.gradle" cargokit { diff --git a/android/gradlew b/android/gradlew new file mode 100755 index 0000000..f5feea6 --- /dev/null +++ b/android/gradlew @@ -0,0 +1,252 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/android/gradlew.bat b/android/gradlew.bat new file mode 100644 index 0000000..9b42019 --- /dev/null +++ b/android/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index bc71c54..0bfa73b 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,3 +1 @@ - - + diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index b19365e..c758fcf 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -1,56 +1,33 @@ -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { - compileSdkVersion flutter.compileSdkVersion - ndkVersion flutter.ndkVersion - + compileSdk = flutter.compileSdkVersion + ndkVersion = "25.1.8937393" + namespace = "io.ldk.f.ldk_node_example" compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } - kotlinOptions { - jvmTarget = '1.8' - } - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' + jvmTarget = JavaVersion.VERSION_17 } + defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "io.ldk.f.ldk_node_example" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. - minSdkVersion flutter.minSdkVersion - targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName + minSdk = 23 + targetSdk = flutter.targetSdkVersion + versionCode = flutter.versionCode + versionName = flutter.versionName } buildTypes { @@ -66,6 +43,3 @@ flutter { source '../..' } -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml index 680be72..399f698 100644 --- a/example/android/app/src/debug/AndroidManifest.xml +++ b/example/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,4 @@ - +