From 797375da61004d2489d167d254c64217405c7785 Mon Sep 17 00:00:00 2001 From: Erdem Yerebasmaz Date: Mon, 27 May 2024 17:55:58 +0300 Subject: [PATCH] Update flutter_rust_bridge to 2.0.0-dev.36 and generate bindings --- libs/Cargo.lock | 8 +- libs/sdk-bindings/Cargo.toml | 2 +- libs/sdk-core/Cargo.toml | 2 +- libs/sdk-core/src/frb_generated.io.rs | 252 +++--- libs/sdk-core/src/frb_generated.rs | 161 ++-- libs/sdk-flutter/README.md | 2 +- libs/sdk-flutter/ios/Classes/frb_generated.h | 312 +++---- libs/sdk-flutter/lib/generated/binding.dart | 132 +-- .../lib/generated/breez_services.dart | 2 +- .../lib/generated/breez_services.freezed.dart | 139 ++-- libs/sdk-flutter/lib/generated/chain.dart | 12 +- libs/sdk-flutter/lib/generated/fiat.dart | 2 +- .../lib/generated/frb_generated.dart | 671 +++++++-------- .../lib/generated/frb_generated.io.dart | 779 +++++++++--------- .../lib/generated/input_parser.dart | 12 +- .../lib/generated/input_parser.freezed.dart | 143 ++-- libs/sdk-flutter/lib/generated/invoice.dart | 18 +- .../lib/generated/lnurl/pay/model.dart | 2 +- .../generated/lnurl/pay/model.freezed.dart | 247 ++---- libs/sdk-flutter/lib/generated/lsp.dart | 6 +- libs/sdk-flutter/lib/generated/models.dart | 112 +-- .../lib/generated/models.freezed.dart | 260 +++--- libs/sdk-flutter/makefile | 2 +- libs/sdk-flutter/pubspec.lock | 38 +- libs/sdk-flutter/pubspec.yaml | 2 +- tools/sdk-cli/Cargo.lock | 8 +- 26 files changed, 1621 insertions(+), 1705 deletions(-) diff --git a/libs/Cargo.lock b/libs/Cargo.lock index cddd2f542..eb79869fb 100644 --- a/libs/Cargo.lock +++ b/libs/Cargo.lock @@ -1131,9 +1131,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge" -version = "2.0.0-dev.33" +version = "2.0.0-dev.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "293c86d55bf9b6108482f8574517a8e7e032dd1d9260e1f4801c6180fdd2583c" +checksum = "dbafb8df6b5ec843e2b7f19f33f5b682d6bd028bf86aef2c5e02ff3e4ea37b03" dependencies = [ "allo-isolate", "android_logger", @@ -1158,9 +1158,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_macros" -version = "2.0.0-dev.33" +version = "2.0.0-dev.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d852460bc16316c4491a60e1652612f717764d436f3a97f8f1cc7c3b54d9a0dc" +checksum = "04366488e32ac18f07982356d62860e145cc7ae28e16070f240082fe1c8ed5c9" dependencies = [ "hex", "quote", diff --git a/libs/sdk-bindings/Cargo.toml b/libs/sdk-bindings/Cargo.toml index 9958683bc..d4f42adf2 100644 --- a/libs/sdk-bindings/Cargo.toml +++ b/libs/sdk-bindings/Cargo.toml @@ -25,7 +25,7 @@ uniffi-kotlin-multiplatform = { git = "https://gitlab.com/trixnity/uniffi-kotlin camino = "1.1.1" log = "*" once_cell = "*" -flutter_rust_bridge = "2.0.0-dev.33" +flutter_rust_bridge = ">= 2.0.0-dev.34, <= 2.0.0-dev.36" tiny-bip39 = "*" tonic = { version = "^0.8", features = [ "tls", diff --git a/libs/sdk-core/Cargo.toml b/libs/sdk-core/Cargo.toml index 4933308ad..0a31516c7 100644 --- a/libs/sdk-core/Cargo.toml +++ b/libs/sdk-core/Cargo.toml @@ -8,7 +8,7 @@ name = "breez_sdk_core" crate-type = ["staticlib", "cdylib", "lib"] [dependencies] -flutter_rust_bridge = "=2.0.0-dev.33" +flutter_rust_bridge = "=2.0.0-dev.36" aes = "0.8" anyhow = { version = "1.0.79", features = ["backtrace"] } cbc = { version = "0.1", features = ["std"] } diff --git a/libs/sdk-core/src/frb_generated.io.rs b/libs/sdk-core/src/frb_generated.io.rs index 916ca26ec..873db2bd9 100644 --- a/libs/sdk-core/src/frb_generated.io.rs +++ b/libs/sdk-core/src/frb_generated.io.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // Section: imports @@ -3194,422 +3194,428 @@ impl Default for wire_cst_url_success_action_data { } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_backup(port_: i64) { - wire_backup_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__backup(port_: i64) { + wire__crate__binding__backup_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_backup_status(port_: i64) { - wire_backup_status_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__backup_status(port_: i64) { + wire__crate__binding__backup_status_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_breez_events_stream( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__breez_events_stream( port_: i64, s: *mut wire_cst_list_prim_u_8_strict, ) { - wire_breez_events_stream_impl(port_, s) + wire__crate__binding__breez_events_stream_impl(port_, s) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_breez_log_stream( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__breez_log_stream( port_: i64, s: *mut wire_cst_list_prim_u_8_strict, ) { - wire_breez_log_stream_impl(port_, s) + wire__crate__binding__breez_log_stream_impl(port_, s) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_buy_bitcoin( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__buy_bitcoin( port_: i64, req: *mut wire_cst_buy_bitcoin_request, ) { - wire_buy_bitcoin_impl(port_, req) + wire__crate__binding__buy_bitcoin_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_check_message( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__check_message( port_: i64, req: *mut wire_cst_check_message_request, ) { - wire_check_message_impl(port_, req) + wire__crate__binding__check_message_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_close_lsp_channels(port_: i64) { - wire_close_lsp_channels_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__close_lsp_channels(port_: i64) { + wire__crate__binding__close_lsp_channels_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_configure_node( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__configure_node( port_: i64, req: *mut wire_cst_configure_node_request, ) { - wire_configure_node_impl(port_, req) + wire__crate__binding__configure_node_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_connect(port_: i64, req: *mut wire_cst_connect_request) { - wire_connect_impl(port_, req) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__connect( + port_: i64, + req: *mut wire_cst_connect_request, +) { + wire__crate__binding__connect_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_connect_lsp( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__connect_lsp( port_: i64, lsp_id: *mut wire_cst_list_prim_u_8_strict, ) { - wire_connect_lsp_impl(port_, lsp_id) + wire__crate__binding__connect_lsp_impl(port_, lsp_id) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_default_config( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__default_config( port_: i64, env_type: i32, api_key: *mut wire_cst_list_prim_u_8_strict, node_config: *mut wire_cst_node_config, ) { - wire_default_config_impl(port_, env_type, api_key, node_config) + wire__crate__binding__default_config_impl(port_, env_type, api_key, node_config) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_disconnect(port_: i64) { - wire_disconnect_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__disconnect(port_: i64) { + wire__crate__binding__disconnect_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_execute_command( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__execute_command( port_: i64, command: *mut wire_cst_list_prim_u_8_strict, ) { - wire_execute_command_impl(port_, command) + wire__crate__binding__execute_command_impl(port_, command) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_fetch_fiat_rates(port_: i64) { - wire_fetch_fiat_rates_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__fetch_fiat_rates(port_: i64) { + wire__crate__binding__fetch_fiat_rates_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_fetch_lsp_info( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__fetch_lsp_info( port_: i64, id: *mut wire_cst_list_prim_u_8_strict, ) { - wire_fetch_lsp_info_impl(port_, id) + wire__crate__binding__fetch_lsp_info_impl(port_, id) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_fetch_reverse_swap_fees( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__fetch_reverse_swap_fees( port_: i64, req: *mut wire_cst_reverse_swap_fees_request, ) { - wire_fetch_reverse_swap_fees_impl(port_, req) + wire__crate__binding__fetch_reverse_swap_fees_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_generate_diagnostic_data(port_: i64) { - wire_generate_diagnostic_data_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__generate_diagnostic_data(port_: i64) { + wire__crate__binding__generate_diagnostic_data_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_in_progress_onchain_payments(port_: i64) { - wire_in_progress_onchain_payments_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__in_progress_onchain_payments(port_: i64) { + wire__crate__binding__in_progress_onchain_payments_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_in_progress_reverse_swaps(port_: i64) { - wire_in_progress_reverse_swaps_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__in_progress_reverse_swaps(port_: i64) { + wire__crate__binding__in_progress_reverse_swaps_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_in_progress_swap(port_: i64) { - wire_in_progress_swap_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__in_progress_swap(port_: i64) { + wire__crate__binding__in_progress_swap_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_is_initialized(port_: i64) { - wire_is_initialized_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__is_initialized(port_: i64) { + wire__crate__binding__is_initialized_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_list_fiat_currencies(port_: i64) { - wire_list_fiat_currencies_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__list_fiat_currencies(port_: i64) { + wire__crate__binding__list_fiat_currencies_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_list_lsps(port_: i64) { - wire_list_lsps_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__list_lsps(port_: i64) { + wire__crate__binding__list_lsps_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_list_payments( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__list_payments( port_: i64, req: *mut wire_cst_list_payments_request, ) { - wire_list_payments_impl(port_, req) + wire__crate__binding__list_payments_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_list_refundables(port_: i64) { - wire_list_refundables_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__list_refundables(port_: i64) { + wire__crate__binding__list_refundables_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_lnurl_auth( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__lnurl_auth( port_: i64, req_data: *mut wire_cst_ln_url_auth_request_data, ) { - wire_lnurl_auth_impl(port_, req_data) + wire__crate__binding__lnurl_auth_impl(port_, req_data) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_lnurl_pay( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__lnurl_pay( port_: i64, req: *mut wire_cst_ln_url_pay_request, ) { - wire_lnurl_pay_impl(port_, req) + wire__crate__binding__lnurl_pay_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_lnurl_withdraw( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__lnurl_withdraw( port_: i64, req: *mut wire_cst_ln_url_withdraw_request, ) { - wire_lnurl_withdraw_impl(port_, req) + wire__crate__binding__lnurl_withdraw_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_lsp_id(port_: i64) { - wire_lsp_id_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__lsp_id(port_: i64) { + wire__crate__binding__lsp_id_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_lsp_info(port_: i64) { - wire_lsp_info_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__lsp_info(port_: i64) { + wire__crate__binding__lsp_info_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_max_reverse_swap_amount(port_: i64) { - wire_max_reverse_swap_amount_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__max_reverse_swap_amount(port_: i64) { + wire__crate__binding__max_reverse_swap_amount_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_mnemonic_to_seed( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__mnemonic_to_seed( port_: i64, phrase: *mut wire_cst_list_prim_u_8_strict, ) { - wire_mnemonic_to_seed_impl(port_, phrase) + wire__crate__binding__mnemonic_to_seed_impl(port_, phrase) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_node_credentials(port_: i64) { - wire_node_credentials_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__node_credentials(port_: i64) { + wire__crate__binding__node_credentials_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_node_info(port_: i64) { - wire_node_info_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__node_info(port_: i64) { + wire__crate__binding__node_info_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_onchain_payment_limits(port_: i64) { - wire_onchain_payment_limits_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__onchain_payment_limits(port_: i64) { + wire__crate__binding__onchain_payment_limits_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_open_channel_fee( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__open_channel_fee( port_: i64, req: *mut wire_cst_open_channel_fee_request, ) { - wire_open_channel_fee_impl(port_, req) + wire__crate__binding__open_channel_fee_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_parse_input( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__parse_input( port_: i64, input: *mut wire_cst_list_prim_u_8_strict, ) { - wire_parse_input_impl(port_, input) + wire__crate__binding__parse_input_impl(port_, input) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_parse_invoice( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__parse_invoice( port_: i64, invoice: *mut wire_cst_list_prim_u_8_strict, ) { - wire_parse_invoice_impl(port_, invoice) + wire__crate__binding__parse_invoice_impl(port_, invoice) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_pay_onchain( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__pay_onchain( port_: i64, req: *mut wire_cst_pay_onchain_request, ) { - wire_pay_onchain_impl(port_, req) + wire__crate__binding__pay_onchain_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_payment_by_hash( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__payment_by_hash( port_: i64, hash: *mut wire_cst_list_prim_u_8_strict, ) { - wire_payment_by_hash_impl(port_, hash) + wire__crate__binding__payment_by_hash_impl(port_, hash) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_prepare_onchain_payment( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__prepare_onchain_payment( port_: i64, req: *mut wire_cst_prepare_onchain_payment_request, ) { - wire_prepare_onchain_payment_impl(port_, req) + wire__crate__binding__prepare_onchain_payment_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_prepare_redeem_onchain_funds( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__prepare_redeem_onchain_funds( port_: i64, req: *mut wire_cst_prepare_redeem_onchain_funds_request, ) { - wire_prepare_redeem_onchain_funds_impl(port_, req) + wire__crate__binding__prepare_redeem_onchain_funds_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_prepare_refund( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__prepare_refund( port_: i64, req: *mut wire_cst_prepare_refund_request, ) { - wire_prepare_refund_impl(port_, req) + wire__crate__binding__prepare_refund_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_receive_onchain( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__receive_onchain( port_: i64, req: *mut wire_cst_receive_onchain_request, ) { - wire_receive_onchain_impl(port_, req) + wire__crate__binding__receive_onchain_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_receive_payment( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__receive_payment( port_: i64, req: *mut wire_cst_receive_payment_request, ) { - wire_receive_payment_impl(port_, req) + wire__crate__binding__receive_payment_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_recommended_fees(port_: i64) { - wire_recommended_fees_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__recommended_fees(port_: i64) { + wire__crate__binding__recommended_fees_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_redeem_onchain_funds( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__redeem_onchain_funds( port_: i64, req: *mut wire_cst_redeem_onchain_funds_request, ) { - wire_redeem_onchain_funds_impl(port_, req) + wire__crate__binding__redeem_onchain_funds_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_redeem_swap( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__redeem_swap( port_: i64, swap_address: *mut wire_cst_list_prim_u_8_strict, ) { - wire_redeem_swap_impl(port_, swap_address) + wire__crate__binding__redeem_swap_impl(port_, swap_address) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_refund(port_: i64, req: *mut wire_cst_refund_request) { - wire_refund_impl(port_, req) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__refund( + port_: i64, + req: *mut wire_cst_refund_request, +) { + wire__crate__binding__refund_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_register_webhook( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__register_webhook( port_: i64, webhook_url: *mut wire_cst_list_prim_u_8_strict, ) { - wire_register_webhook_impl(port_, webhook_url) + wire__crate__binding__register_webhook_impl(port_, webhook_url) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_report_issue( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__report_issue( port_: i64, req: *mut wire_cst_report_issue_request, ) { - wire_report_issue_impl(port_, req) + wire__crate__binding__report_issue_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_rescan_swaps(port_: i64) { - wire_rescan_swaps_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__rescan_swaps(port_: i64) { + wire__crate__binding__rescan_swaps_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_send_onchain( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__send_onchain( port_: i64, req: *mut wire_cst_send_onchain_request, ) { - wire_send_onchain_impl(port_, req) + wire__crate__binding__send_onchain_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_send_payment( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__send_payment( port_: i64, req: *mut wire_cst_send_payment_request, ) { - wire_send_payment_impl(port_, req) + wire__crate__binding__send_payment_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_send_spontaneous_payment( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__send_spontaneous_payment( port_: i64, req: *mut wire_cst_send_spontaneous_payment_request, ) { - wire_send_spontaneous_payment_impl(port_, req) + wire__crate__binding__send_spontaneous_payment_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_service_health_check( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__service_health_check( port_: i64, api_key: *mut wire_cst_list_prim_u_8_strict, ) { - wire_service_health_check_impl(port_, api_key) + wire__crate__binding__service_health_check_impl(port_, api_key) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_set_payment_metadata( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__set_payment_metadata( port_: i64, hash: *mut wire_cst_list_prim_u_8_strict, metadata: *mut wire_cst_list_prim_u_8_strict, ) { - wire_set_payment_metadata_impl(port_, hash, metadata) + wire__crate__binding__set_payment_metadata_impl(port_, hash, metadata) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_sign_message( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__sign_message( port_: i64, req: *mut wire_cst_sign_message_request, ) { - wire_sign_message_impl(port_, req) + wire__crate__binding__sign_message_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_static_backup( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__static_backup( port_: i64, req: *mut wire_cst_static_backup_request, ) { - wire_static_backup_impl(port_, req) + wire__crate__binding__static_backup_impl(port_, req) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_sync(port_: i64) { - wire_sync_impl(port_) +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__sync(port_: i64) { + wire__crate__binding__sync_impl(port_) } #[no_mangle] -pub extern "C" fn frbgen_breez_sdk_wire_unregister_webhook( +pub extern "C" fn frbgen_breez_sdk_wire__crate__binding__unregister_webhook( port_: i64, webhook_url: *mut wire_cst_list_prim_u_8_strict, ) { - wire_unregister_webhook_impl(port_, webhook_url) + wire__crate__binding__unregister_webhook_impl(port_, webhook_url) } #[no_mangle] diff --git a/libs/sdk-core/src/frb_generated.rs b/libs/sdk-core/src/frb_generated.rs index 231b31888..d3c83e39a 100644 --- a/libs/sdk-core/src/frb_generated.rs +++ b/libs/sdk-core/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-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. #![allow( non_camel_case_types, @@ -14,7 +14,9 @@ clippy::double_parens, clippy::let_and_return, clippy::too_many_arguments, - clippy::match_single_binding + clippy::match_single_binding, + clippy::clone_on_copy, + clippy::let_unit_value )] // Section: imports @@ -30,7 +32,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.0.0-dev.33"; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.36"; pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1499828454; // Section: executor @@ -39,7 +41,7 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire_backup_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__backup_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "backup", @@ -49,7 +51,9 @@ fn wire_backup_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { move || move |context| transform_result_dco((move || crate::binding::backup())()), ) } -fn wire_backup_status_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__backup_status_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "backup_status", @@ -59,7 +63,7 @@ fn wire_backup_status_impl(port_: flutter_rust_bridge::for_generated::MessagePor move || move |context| transform_result_dco((move || crate::binding::backup_status())()), ) } -fn wire_breez_events_stream_impl( +fn wire__crate__binding__breez_events_stream_impl( port_: flutter_rust_bridge::for_generated::MessagePort, s: impl CstDecode< StreamSink, @@ -79,7 +83,7 @@ fn wire_breez_events_stream_impl( }, ) } -fn wire_breez_log_stream_impl( +fn wire__crate__binding__breez_log_stream_impl( port_: flutter_rust_bridge::for_generated::MessagePort, s: impl CstDecode>, ) { @@ -95,7 +99,7 @@ fn wire_breez_log_stream_impl( }, ) } -fn wire_buy_bitcoin_impl( +fn wire__crate__binding__buy_bitcoin_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -111,7 +115,7 @@ fn wire_buy_bitcoin_impl( }, ) } -fn wire_check_message_impl( +fn wire__crate__binding__check_message_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -127,7 +131,9 @@ fn wire_check_message_impl( }, ) } -fn wire_close_lsp_channels_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__close_lsp_channels_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "close_lsp_channels", @@ -139,7 +145,7 @@ fn wire_close_lsp_channels_impl(port_: flutter_rust_bridge::for_generated::Messa }, ) } -fn wire_configure_node_impl( +fn wire__crate__binding__configure_node_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -155,7 +161,7 @@ fn wire_configure_node_impl( }, ) } -fn wire_connect_impl( +fn wire__crate__binding__connect_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -171,7 +177,7 @@ fn wire_connect_impl( }, ) } -fn wire_connect_lsp_impl( +fn wire__crate__binding__connect_lsp_impl( port_: flutter_rust_bridge::for_generated::MessagePort, lsp_id: impl CstDecode, ) { @@ -187,7 +193,7 @@ fn wire_connect_lsp_impl( }, ) } -fn wire_default_config_impl( +fn wire__crate__binding__default_config_impl( port_: flutter_rust_bridge::for_generated::MessagePort, env_type: impl CstDecode, api_key: impl CstDecode, @@ -215,7 +221,7 @@ fn wire_default_config_impl( }, ) } -fn wire_disconnect_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__disconnect_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "disconnect", @@ -225,7 +231,7 @@ fn wire_disconnect_impl(port_: flutter_rust_bridge::for_generated::MessagePort) move || move |context| transform_result_dco((move || crate::binding::disconnect())()), ) } -fn wire_execute_command_impl( +fn wire__crate__binding__execute_command_impl( port_: flutter_rust_bridge::for_generated::MessagePort, command: impl CstDecode, ) { @@ -243,7 +249,9 @@ fn wire_execute_command_impl( }, ) } -fn wire_fetch_fiat_rates_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__fetch_fiat_rates_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "fetch_fiat_rates", @@ -253,7 +261,7 @@ fn wire_fetch_fiat_rates_impl(port_: flutter_rust_bridge::for_generated::Message move || move |context| transform_result_dco((move || crate::binding::fetch_fiat_rates())()), ) } -fn wire_fetch_lsp_info_impl( +fn wire__crate__binding__fetch_lsp_info_impl( port_: flutter_rust_bridge::for_generated::MessagePort, id: impl CstDecode, ) { @@ -269,7 +277,7 @@ fn wire_fetch_lsp_info_impl( }, ) } -fn wire_fetch_reverse_swap_fees_impl( +fn wire__crate__binding__fetch_reverse_swap_fees_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -287,7 +295,9 @@ fn wire_fetch_reverse_swap_fees_impl( }, ) } -fn wire_generate_diagnostic_data_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__generate_diagnostic_data_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "generate_diagnostic_data", @@ -301,7 +311,9 @@ fn wire_generate_diagnostic_data_impl(port_: flutter_rust_bridge::for_generated: }, ) } -fn wire_in_progress_onchain_payments_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__in_progress_onchain_payments_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "in_progress_onchain_payments", @@ -315,7 +327,9 @@ fn wire_in_progress_onchain_payments_impl(port_: flutter_rust_bridge::for_genera }, ) } -fn wire_in_progress_reverse_swaps_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__in_progress_reverse_swaps_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "in_progress_reverse_swaps", @@ -329,7 +343,9 @@ fn wire_in_progress_reverse_swaps_impl(port_: flutter_rust_bridge::for_generated }, ) } -fn wire_in_progress_swap_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__in_progress_swap_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "in_progress_swap", @@ -339,7 +355,9 @@ fn wire_in_progress_swap_impl(port_: flutter_rust_bridge::for_generated::Message move || move |context| transform_result_dco((move || crate::binding::in_progress_swap())()), ) } -fn wire_is_initialized_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__is_initialized_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "is_initialized", @@ -355,7 +373,9 @@ fn wire_is_initialized_impl(port_: flutter_rust_bridge::for_generated::MessagePo }, ) } -fn wire_list_fiat_currencies_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__list_fiat_currencies_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "list_fiat_currencies", @@ -367,7 +387,7 @@ fn wire_list_fiat_currencies_impl(port_: flutter_rust_bridge::for_generated::Mes }, ) } -fn wire_list_lsps_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__list_lsps_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "list_lsps", @@ -377,7 +397,7 @@ fn wire_list_lsps_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { move || move |context| transform_result_dco((move || crate::binding::list_lsps())()), ) } -fn wire_list_payments_impl( +fn wire__crate__binding__list_payments_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -393,7 +413,9 @@ fn wire_list_payments_impl( }, ) } -fn wire_list_refundables_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__list_refundables_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "list_refundables", @@ -403,7 +425,7 @@ fn wire_list_refundables_impl(port_: flutter_rust_bridge::for_generated::Message move || move |context| transform_result_dco((move || crate::binding::list_refundables())()), ) } -fn wire_lnurl_auth_impl( +fn wire__crate__binding__lnurl_auth_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req_data: impl CstDecode, ) { @@ -413,7 +435,7 @@ fn wire_lnurl_auth_impl( })()) } }) } -fn wire_lnurl_pay_impl( +fn wire__crate__binding__lnurl_pay_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -429,7 +451,7 @@ fn wire_lnurl_pay_impl( }, ) } -fn wire_lnurl_withdraw_impl( +fn wire__crate__binding__lnurl_withdraw_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -445,7 +467,7 @@ fn wire_lnurl_withdraw_impl( }, ) } -fn wire_lsp_id_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__lsp_id_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "lsp_id", @@ -455,7 +477,7 @@ fn wire_lsp_id_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { move || move |context| transform_result_dco((move || crate::binding::lsp_id())()), ) } -fn wire_lsp_info_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__lsp_info_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "lsp_info", @@ -465,7 +487,9 @@ fn wire_lsp_info_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { move || move |context| transform_result_dco((move || crate::binding::lsp_info())()), ) } -fn wire_max_reverse_swap_amount_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__max_reverse_swap_amount_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "max_reverse_swap_amount", @@ -479,7 +503,7 @@ fn wire_max_reverse_swap_amount_impl(port_: flutter_rust_bridge::for_generated:: }, ) } -fn wire_mnemonic_to_seed_impl( +fn wire__crate__binding__mnemonic_to_seed_impl( port_: flutter_rust_bridge::for_generated::MessagePort, phrase: impl CstDecode, ) { @@ -497,7 +521,9 @@ fn wire_mnemonic_to_seed_impl( }, ) } -fn wire_node_credentials_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__node_credentials_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "node_credentials", @@ -507,7 +533,7 @@ fn wire_node_credentials_impl(port_: flutter_rust_bridge::for_generated::Message move || move |context| transform_result_dco((move || crate::binding::node_credentials())()), ) } -fn wire_node_info_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__node_info_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "node_info", @@ -517,14 +543,16 @@ fn wire_node_info_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { move || move |context| transform_result_dco((move || crate::binding::node_info())()), ) } -fn wire_onchain_payment_limits_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__onchain_payment_limits_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "onchain_payment_limits", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { move |context| { transform_result_dco((move || { crate::binding::onchain_payment_limits() })()) } }) } -fn wire_open_channel_fee_impl( +fn wire__crate__binding__open_channel_fee_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -542,7 +570,7 @@ fn wire_open_channel_fee_impl( }, ) } -fn wire_parse_input_impl( +fn wire__crate__binding__parse_input_impl( port_: flutter_rust_bridge::for_generated::MessagePort, input: impl CstDecode, ) { @@ -558,7 +586,7 @@ fn wire_parse_input_impl( }, ) } -fn wire_parse_invoice_impl( +fn wire__crate__binding__parse_invoice_impl( port_: flutter_rust_bridge::for_generated::MessagePort, invoice: impl CstDecode, ) { @@ -576,7 +604,7 @@ fn wire_parse_invoice_impl( }, ) } -fn wire_pay_onchain_impl( +fn wire__crate__binding__pay_onchain_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -592,7 +620,7 @@ fn wire_pay_onchain_impl( }, ) } -fn wire_payment_by_hash_impl( +fn wire__crate__binding__payment_by_hash_impl( port_: flutter_rust_bridge::for_generated::MessagePort, hash: impl CstDecode, ) { @@ -610,7 +638,7 @@ fn wire_payment_by_hash_impl( }, ) } -fn wire_prepare_onchain_payment_impl( +fn wire__crate__binding__prepare_onchain_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -628,7 +656,7 @@ fn wire_prepare_onchain_payment_impl( }, ) } -fn wire_prepare_redeem_onchain_funds_impl( +fn wire__crate__binding__prepare_redeem_onchain_funds_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -648,7 +676,7 @@ fn wire_prepare_redeem_onchain_funds_impl( }, ) } -fn wire_prepare_refund_impl( +fn wire__crate__binding__prepare_refund_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -664,7 +692,7 @@ fn wire_prepare_refund_impl( }, ) } -fn wire_receive_onchain_impl( +fn wire__crate__binding__receive_onchain_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -674,7 +702,7 @@ fn wire_receive_onchain_impl( })()) } }) } -fn wire_receive_payment_impl( +fn wire__crate__binding__receive_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -684,7 +712,9 @@ fn wire_receive_payment_impl( })()) } }) } -fn wire_recommended_fees_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__recommended_fees_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "recommended_fees", @@ -694,7 +724,7 @@ fn wire_recommended_fees_impl(port_: flutter_rust_bridge::for_generated::Message move || move |context| transform_result_dco((move || crate::binding::recommended_fees())()), ) } -fn wire_redeem_onchain_funds_impl( +fn wire__crate__binding__redeem_onchain_funds_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -712,7 +742,7 @@ fn wire_redeem_onchain_funds_impl( }, ) } -fn wire_redeem_swap_impl( +fn wire__crate__binding__redeem_swap_impl( port_: flutter_rust_bridge::for_generated::MessagePort, swap_address: impl CstDecode, ) { @@ -730,7 +760,7 @@ fn wire_redeem_swap_impl( }, ) } -fn wire_refund_impl( +fn wire__crate__binding__refund_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -746,7 +776,7 @@ fn wire_refund_impl( }, ) } -fn wire_register_webhook_impl( +fn wire__crate__binding__register_webhook_impl( port_: flutter_rust_bridge::for_generated::MessagePort, webhook_url: impl CstDecode, ) { @@ -764,7 +794,7 @@ fn wire_register_webhook_impl( }, ) } -fn wire_report_issue_impl( +fn wire__crate__binding__report_issue_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -780,7 +810,7 @@ fn wire_report_issue_impl( }, ) } -fn wire_rescan_swaps_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__rescan_swaps_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "rescan_swaps", @@ -790,7 +820,7 @@ fn wire_rescan_swaps_impl(port_: flutter_rust_bridge::for_generated::MessagePort move || move |context| transform_result_dco((move || crate::binding::rescan_swaps())()), ) } -fn wire_send_onchain_impl( +fn wire__crate__binding__send_onchain_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -806,7 +836,7 @@ fn wire_send_onchain_impl( }, ) } -fn wire_send_payment_impl( +fn wire__crate__binding__send_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -822,7 +852,7 @@ fn wire_send_payment_impl( }, ) } -fn wire_send_spontaneous_payment_impl( +fn wire__crate__binding__send_spontaneous_payment_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -840,7 +870,7 @@ fn wire_send_spontaneous_payment_impl( }, ) } -fn wire_service_health_check_impl( +fn wire__crate__binding__service_health_check_impl( port_: flutter_rust_bridge::for_generated::MessagePort, api_key: impl CstDecode, ) { @@ -858,7 +888,7 @@ fn wire_service_health_check_impl( }, ) } -fn wire_set_payment_metadata_impl( +fn wire__crate__binding__set_payment_metadata_impl( port_: flutter_rust_bridge::for_generated::MessagePort, hash: impl CstDecode, metadata: impl CstDecode, @@ -880,7 +910,7 @@ fn wire_set_payment_metadata_impl( }, ) } -fn wire_sign_message_impl( +fn wire__crate__binding__sign_message_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -896,7 +926,7 @@ fn wire_sign_message_impl( }, ) } -fn wire_static_backup_impl( +fn wire__crate__binding__static_backup_impl( port_: flutter_rust_bridge::for_generated::MessagePort, req: impl CstDecode, ) { @@ -912,7 +942,7 @@ fn wire_static_backup_impl( }, ) } -fn wire_sync_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire__crate__binding__sync_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "sync", @@ -922,7 +952,7 @@ fn wire_sync_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { move || move |context| transform_result_dco((move || crate::binding::sync())()), ) } -fn wire_unregister_webhook_impl( +fn wire__crate__binding__unregister_webhook_impl( port_: flutter_rust_bridge::for_generated::MessagePort, webhook_url: impl CstDecode, ) { @@ -1120,7 +1150,8 @@ impl CstDecode for u8 { impl SseDecode for flutter_rust_bridge::for_generated::anyhow::Error { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - unreachable!(""); + let mut inner = ::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::anyhow::anyhow!("{}", inner); } } diff --git a/libs/sdk-flutter/README.md b/libs/sdk-flutter/README.md index 389f29d46..fc460eca4 100644 --- a/libs/sdk-flutter/README.md +++ b/libs/sdk-flutter/README.md @@ -26,7 +26,7 @@ cargo install cargo-ndk ``` * Install [flutter_rust_bridge](https://github.com/fzyzcjy/flutter_rust_bridge): ``` -cargo install flutter_rust_bridge_codegen --version 2.0.0-dev.33 +cargo install flutter_rust_bridge_codegen --version 2.0.0-dev.36 ``` ## Building the plugin diff --git a/libs/sdk-flutter/ios/Classes/frb_generated.h b/libs/sdk-flutter/ios/Classes/frb_generated.h index 5f161dc2a..47168ce1f 100644 --- a/libs/sdk-flutter/ios/Classes/frb_generated.h +++ b/libs/sdk-flutter/ios/Classes/frb_generated.h @@ -898,153 +898,169 @@ typedef struct wire_cst_static_backup_response { struct wire_cst_list_String *backup; } wire_cst_static_backup_response; -void frbgen_breez_sdk_wire_backup(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__backup(int64_t port_); -void frbgen_breez_sdk_wire_backup_status(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__backup_status(int64_t port_); -void frbgen_breez_sdk_wire_breez_events_stream(int64_t port_, - struct wire_cst_list_prim_u_8_strict *s); +void frbgen_breez_sdk_wire__crate__binding__breez_events_stream(int64_t port_, + struct wire_cst_list_prim_u_8_strict *s); -void frbgen_breez_sdk_wire_breez_log_stream(int64_t port_, struct wire_cst_list_prim_u_8_strict *s); +void frbgen_breez_sdk_wire__crate__binding__breez_log_stream(int64_t port_, + struct wire_cst_list_prim_u_8_strict *s); -void frbgen_breez_sdk_wire_buy_bitcoin(int64_t port_, struct wire_cst_buy_bitcoin_request *req); +void frbgen_breez_sdk_wire__crate__binding__buy_bitcoin(int64_t port_, + struct wire_cst_buy_bitcoin_request *req); -void frbgen_breez_sdk_wire_check_message(int64_t port_, struct wire_cst_check_message_request *req); +void frbgen_breez_sdk_wire__crate__binding__check_message(int64_t port_, + struct wire_cst_check_message_request *req); -void frbgen_breez_sdk_wire_close_lsp_channels(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__close_lsp_channels(int64_t port_); -void frbgen_breez_sdk_wire_configure_node(int64_t port_, - struct wire_cst_configure_node_request *req); +void frbgen_breez_sdk_wire__crate__binding__configure_node(int64_t port_, + struct wire_cst_configure_node_request *req); -void frbgen_breez_sdk_wire_connect(int64_t port_, struct wire_cst_connect_request *req); +void frbgen_breez_sdk_wire__crate__binding__connect(int64_t port_, + struct wire_cst_connect_request *req); -void frbgen_breez_sdk_wire_connect_lsp(int64_t port_, struct wire_cst_list_prim_u_8_strict *lsp_id); +void frbgen_breez_sdk_wire__crate__binding__connect_lsp(int64_t port_, + struct wire_cst_list_prim_u_8_strict *lsp_id); -void frbgen_breez_sdk_wire_default_config(int64_t port_, - int32_t env_type, - struct wire_cst_list_prim_u_8_strict *api_key, - struct wire_cst_node_config *node_config); +void frbgen_breez_sdk_wire__crate__binding__default_config(int64_t port_, + int32_t env_type, + struct wire_cst_list_prim_u_8_strict *api_key, + struct wire_cst_node_config *node_config); -void frbgen_breez_sdk_wire_disconnect(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__disconnect(int64_t port_); -void frbgen_breez_sdk_wire_execute_command(int64_t port_, - struct wire_cst_list_prim_u_8_strict *command); +void frbgen_breez_sdk_wire__crate__binding__execute_command(int64_t port_, + struct wire_cst_list_prim_u_8_strict *command); -void frbgen_breez_sdk_wire_fetch_fiat_rates(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__fetch_fiat_rates(int64_t port_); -void frbgen_breez_sdk_wire_fetch_lsp_info(int64_t port_, struct wire_cst_list_prim_u_8_strict *id); +void frbgen_breez_sdk_wire__crate__binding__fetch_lsp_info(int64_t port_, + struct wire_cst_list_prim_u_8_strict *id); -void frbgen_breez_sdk_wire_fetch_reverse_swap_fees(int64_t port_, - struct wire_cst_reverse_swap_fees_request *req); +void frbgen_breez_sdk_wire__crate__binding__fetch_reverse_swap_fees(int64_t port_, + struct wire_cst_reverse_swap_fees_request *req); -void frbgen_breez_sdk_wire_generate_diagnostic_data(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__generate_diagnostic_data(int64_t port_); -void frbgen_breez_sdk_wire_in_progress_onchain_payments(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__in_progress_onchain_payments(int64_t port_); -void frbgen_breez_sdk_wire_in_progress_reverse_swaps(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__in_progress_reverse_swaps(int64_t port_); -void frbgen_breez_sdk_wire_in_progress_swap(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__in_progress_swap(int64_t port_); -void frbgen_breez_sdk_wire_is_initialized(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__is_initialized(int64_t port_); -void frbgen_breez_sdk_wire_list_fiat_currencies(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__list_fiat_currencies(int64_t port_); -void frbgen_breez_sdk_wire_list_lsps(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__list_lsps(int64_t port_); -void frbgen_breez_sdk_wire_list_payments(int64_t port_, struct wire_cst_list_payments_request *req); +void frbgen_breez_sdk_wire__crate__binding__list_payments(int64_t port_, + struct wire_cst_list_payments_request *req); -void frbgen_breez_sdk_wire_list_refundables(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__list_refundables(int64_t port_); -void frbgen_breez_sdk_wire_lnurl_auth(int64_t port_, - struct wire_cst_ln_url_auth_request_data *req_data); +void frbgen_breez_sdk_wire__crate__binding__lnurl_auth(int64_t port_, + struct wire_cst_ln_url_auth_request_data *req_data); -void frbgen_breez_sdk_wire_lnurl_pay(int64_t port_, struct wire_cst_ln_url_pay_request *req); +void frbgen_breez_sdk_wire__crate__binding__lnurl_pay(int64_t port_, + struct wire_cst_ln_url_pay_request *req); -void frbgen_breez_sdk_wire_lnurl_withdraw(int64_t port_, - struct wire_cst_ln_url_withdraw_request *req); +void frbgen_breez_sdk_wire__crate__binding__lnurl_withdraw(int64_t port_, + struct wire_cst_ln_url_withdraw_request *req); -void frbgen_breez_sdk_wire_lsp_id(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__lsp_id(int64_t port_); -void frbgen_breez_sdk_wire_lsp_info(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__lsp_info(int64_t port_); -void frbgen_breez_sdk_wire_max_reverse_swap_amount(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__max_reverse_swap_amount(int64_t port_); -void frbgen_breez_sdk_wire_mnemonic_to_seed(int64_t port_, - struct wire_cst_list_prim_u_8_strict *phrase); +void frbgen_breez_sdk_wire__crate__binding__mnemonic_to_seed(int64_t port_, + struct wire_cst_list_prim_u_8_strict *phrase); -void frbgen_breez_sdk_wire_node_credentials(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__node_credentials(int64_t port_); -void frbgen_breez_sdk_wire_node_info(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__node_info(int64_t port_); -void frbgen_breez_sdk_wire_onchain_payment_limits(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__onchain_payment_limits(int64_t port_); -void frbgen_breez_sdk_wire_open_channel_fee(int64_t port_, - struct wire_cst_open_channel_fee_request *req); +void frbgen_breez_sdk_wire__crate__binding__open_channel_fee(int64_t port_, + struct wire_cst_open_channel_fee_request *req); -void frbgen_breez_sdk_wire_parse_input(int64_t port_, struct wire_cst_list_prim_u_8_strict *input); +void frbgen_breez_sdk_wire__crate__binding__parse_input(int64_t port_, + struct wire_cst_list_prim_u_8_strict *input); -void frbgen_breez_sdk_wire_parse_invoice(int64_t port_, - struct wire_cst_list_prim_u_8_strict *invoice); +void frbgen_breez_sdk_wire__crate__binding__parse_invoice(int64_t port_, + struct wire_cst_list_prim_u_8_strict *invoice); -void frbgen_breez_sdk_wire_pay_onchain(int64_t port_, struct wire_cst_pay_onchain_request *req); +void frbgen_breez_sdk_wire__crate__binding__pay_onchain(int64_t port_, + struct wire_cst_pay_onchain_request *req); -void frbgen_breez_sdk_wire_payment_by_hash(int64_t port_, - struct wire_cst_list_prim_u_8_strict *hash); +void frbgen_breez_sdk_wire__crate__binding__payment_by_hash(int64_t port_, + struct wire_cst_list_prim_u_8_strict *hash); -void frbgen_breez_sdk_wire_prepare_onchain_payment(int64_t port_, - struct wire_cst_prepare_onchain_payment_request *req); +void frbgen_breez_sdk_wire__crate__binding__prepare_onchain_payment(int64_t port_, + struct wire_cst_prepare_onchain_payment_request *req); -void frbgen_breez_sdk_wire_prepare_redeem_onchain_funds(int64_t port_, - struct wire_cst_prepare_redeem_onchain_funds_request *req); +void frbgen_breez_sdk_wire__crate__binding__prepare_redeem_onchain_funds(int64_t port_, + struct wire_cst_prepare_redeem_onchain_funds_request *req); -void frbgen_breez_sdk_wire_prepare_refund(int64_t port_, - struct wire_cst_prepare_refund_request *req); +void frbgen_breez_sdk_wire__crate__binding__prepare_refund(int64_t port_, + struct wire_cst_prepare_refund_request *req); -void frbgen_breez_sdk_wire_receive_onchain(int64_t port_, - struct wire_cst_receive_onchain_request *req); +void frbgen_breez_sdk_wire__crate__binding__receive_onchain(int64_t port_, + struct wire_cst_receive_onchain_request *req); -void frbgen_breez_sdk_wire_receive_payment(int64_t port_, - struct wire_cst_receive_payment_request *req); +void frbgen_breez_sdk_wire__crate__binding__receive_payment(int64_t port_, + struct wire_cst_receive_payment_request *req); -void frbgen_breez_sdk_wire_recommended_fees(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__recommended_fees(int64_t port_); -void frbgen_breez_sdk_wire_redeem_onchain_funds(int64_t port_, - struct wire_cst_redeem_onchain_funds_request *req); +void frbgen_breez_sdk_wire__crate__binding__redeem_onchain_funds(int64_t port_, + struct wire_cst_redeem_onchain_funds_request *req); -void frbgen_breez_sdk_wire_redeem_swap(int64_t port_, - struct wire_cst_list_prim_u_8_strict *swap_address); +void frbgen_breez_sdk_wire__crate__binding__redeem_swap(int64_t port_, + struct wire_cst_list_prim_u_8_strict *swap_address); -void frbgen_breez_sdk_wire_refund(int64_t port_, struct wire_cst_refund_request *req); +void frbgen_breez_sdk_wire__crate__binding__refund(int64_t port_, + struct wire_cst_refund_request *req); -void frbgen_breez_sdk_wire_register_webhook(int64_t port_, - struct wire_cst_list_prim_u_8_strict *webhook_url); +void frbgen_breez_sdk_wire__crate__binding__register_webhook(int64_t port_, + struct wire_cst_list_prim_u_8_strict *webhook_url); -void frbgen_breez_sdk_wire_report_issue(int64_t port_, struct wire_cst_report_issue_request *req); +void frbgen_breez_sdk_wire__crate__binding__report_issue(int64_t port_, + struct wire_cst_report_issue_request *req); -void frbgen_breez_sdk_wire_rescan_swaps(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__rescan_swaps(int64_t port_); -void frbgen_breez_sdk_wire_send_onchain(int64_t port_, struct wire_cst_send_onchain_request *req); +void frbgen_breez_sdk_wire__crate__binding__send_onchain(int64_t port_, + struct wire_cst_send_onchain_request *req); -void frbgen_breez_sdk_wire_send_payment(int64_t port_, struct wire_cst_send_payment_request *req); +void frbgen_breez_sdk_wire__crate__binding__send_payment(int64_t port_, + struct wire_cst_send_payment_request *req); -void frbgen_breez_sdk_wire_send_spontaneous_payment(int64_t port_, - struct wire_cst_send_spontaneous_payment_request *req); +void frbgen_breez_sdk_wire__crate__binding__send_spontaneous_payment(int64_t port_, + struct wire_cst_send_spontaneous_payment_request *req); -void frbgen_breez_sdk_wire_service_health_check(int64_t port_, - struct wire_cst_list_prim_u_8_strict *api_key); +void frbgen_breez_sdk_wire__crate__binding__service_health_check(int64_t port_, + struct wire_cst_list_prim_u_8_strict *api_key); -void frbgen_breez_sdk_wire_set_payment_metadata(int64_t port_, - struct wire_cst_list_prim_u_8_strict *hash, - struct wire_cst_list_prim_u_8_strict *metadata); +void frbgen_breez_sdk_wire__crate__binding__set_payment_metadata(int64_t port_, + struct wire_cst_list_prim_u_8_strict *hash, + struct wire_cst_list_prim_u_8_strict *metadata); -void frbgen_breez_sdk_wire_sign_message(int64_t port_, struct wire_cst_sign_message_request *req); +void frbgen_breez_sdk_wire__crate__binding__sign_message(int64_t port_, + struct wire_cst_sign_message_request *req); -void frbgen_breez_sdk_wire_static_backup(int64_t port_, struct wire_cst_static_backup_request *req); +void frbgen_breez_sdk_wire__crate__binding__static_backup(int64_t port_, + struct wire_cst_static_backup_request *req); -void frbgen_breez_sdk_wire_sync(int64_t port_); +void frbgen_breez_sdk_wire__crate__binding__sync(int64_t port_); -void frbgen_breez_sdk_wire_unregister_webhook(int64_t port_, - struct wire_cst_list_prim_u_8_strict *webhook_url); +void frbgen_breez_sdk_wire__crate__binding__unregister_webhook(int64_t port_, + struct wire_cst_list_prim_u_8_strict *webhook_url); struct wire_cst_aes_success_action_data_decrypted *frbgen_breez_sdk_cst_new_box_autoadd_aes_success_action_data_decrypted(void); @@ -1269,67 +1285,67 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_cst_new_list_swap_info); dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_cst_new_list_tlv_entry); dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_cst_new_list_unspent_transaction_output); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_backup); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_backup_status); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_breez_events_stream); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_breez_log_stream); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_buy_bitcoin); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_check_message); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_close_lsp_channels); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_configure_node); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_connect); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_connect_lsp); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_default_config); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_disconnect); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_execute_command); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_fetch_fiat_rates); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_fetch_lsp_info); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_fetch_reverse_swap_fees); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_generate_diagnostic_data); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_in_progress_onchain_payments); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_in_progress_reverse_swaps); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_in_progress_swap); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_is_initialized); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_list_fiat_currencies); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_list_lsps); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_list_payments); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_list_refundables); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_lnurl_auth); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_lnurl_pay); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_lnurl_withdraw); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_lsp_id); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_lsp_info); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_max_reverse_swap_amount); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_mnemonic_to_seed); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_node_credentials); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_node_info); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_onchain_payment_limits); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_open_channel_fee); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_parse_input); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_parse_invoice); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_pay_onchain); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_payment_by_hash); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_prepare_onchain_payment); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_prepare_redeem_onchain_funds); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_prepare_refund); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_receive_onchain); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_receive_payment); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_recommended_fees); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_redeem_onchain_funds); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_redeem_swap); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_refund); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_register_webhook); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_report_issue); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_rescan_swaps); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_send_onchain); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_send_payment); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_send_spontaneous_payment); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_service_health_check); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_set_payment_metadata); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_sign_message); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_static_backup); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_sync); - dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire_unregister_webhook); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__backup); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__backup_status); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__breez_events_stream); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__breez_log_stream); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__buy_bitcoin); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__check_message); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__close_lsp_channels); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__configure_node); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__connect); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__connect_lsp); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__default_config); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__disconnect); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__execute_command); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__fetch_fiat_rates); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__fetch_lsp_info); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__fetch_reverse_swap_fees); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__generate_diagnostic_data); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__in_progress_onchain_payments); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__in_progress_reverse_swaps); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__in_progress_swap); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__is_initialized); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__list_fiat_currencies); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__list_lsps); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__list_payments); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__list_refundables); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__lnurl_auth); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__lnurl_pay); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__lnurl_withdraw); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__lsp_id); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__lsp_info); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__max_reverse_swap_amount); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__mnemonic_to_seed); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__node_credentials); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__node_info); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__onchain_payment_limits); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__open_channel_fee); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__parse_input); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__parse_invoice); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__pay_onchain); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__payment_by_hash); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__prepare_onchain_payment); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__prepare_redeem_onchain_funds); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__prepare_refund); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__receive_onchain); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__receive_payment); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__recommended_fees); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__redeem_onchain_funds); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__redeem_swap); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__refund); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__register_webhook); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__report_issue); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__rescan_swaps); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__send_onchain); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__send_payment); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__send_spontaneous_payment); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__service_health_check); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__set_payment_metadata); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__sign_message); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__static_backup); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__sync); + dummy_var ^= ((int64_t) (void*) frbgen_breez_sdk_wire__crate__binding__unregister_webhook); dummy_var ^= ((int64_t) (void*) store_dart_post_cobject); return dummy_var; } diff --git a/libs/sdk-flutter/lib/generated/binding.dart b/libs/sdk-flutter/lib/generated/binding.dart index 5ee6624bf..40a27f5fb 100644 --- a/libs/sdk-flutter/lib/generated/binding.dart +++ b/libs/sdk-flutter/lib/generated/binding.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -19,39 +19,40 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; /// Wrapper around [BreezServices::connect] which also initializes SDK logging Future connect({required ConnectRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.connect(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingConnect(req: req, hint: hint); /// Check whether node service is initialized or not -Future isInitialized({dynamic hint}) => BreezSdkBindings.instance.api.isInitialized(hint: hint); +Future isInitialized({dynamic hint}) => + BreezSdkBindings.instance.api.crateBindingIsInitialized(hint: hint); /// See [BreezServices::sync] -Future sync({dynamic hint}) => BreezSdkBindings.instance.api.sync(hint: hint); +Future sync({dynamic hint}) => BreezSdkBindings.instance.api.crateBindingSync(hint: hint); /// See [BreezServices::node_credentials] Future nodeCredentials({dynamic hint}) => - BreezSdkBindings.instance.api.nodeCredentials(hint: hint); + BreezSdkBindings.instance.api.crateBindingNodeCredentials(hint: hint); /// See [BreezServices::node_info] -Future nodeInfo({dynamic hint}) => BreezSdkBindings.instance.api.nodeInfo(hint: hint); +Future nodeInfo({dynamic hint}) => BreezSdkBindings.instance.api.crateBindingNodeInfo(hint: hint); /// See [BreezServices::configure_node] Future configureNode({required ConfigureNodeRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.configureNode(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingConfigureNode(req: req, hint: hint); /// Cleanup node resources and stop the signer. -Future disconnect({dynamic hint}) => BreezSdkBindings.instance.api.disconnect(hint: hint); +Future disconnect({dynamic hint}) => BreezSdkBindings.instance.api.crateBindingDisconnect(hint: hint); /// See [BreezServices::sign_message] Future signMessage({required SignMessageRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.signMessage(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingSignMessage(req: req, hint: hint); /// See [BreezServices::check_message] Future checkMessage({required CheckMessageRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.checkMessage(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingCheckMessage(req: req, hint: hint); /// See [breez_services::mnemonic_to_seed] Future mnemonicToSeed({required String phrase, dynamic hint}) => - BreezSdkBindings.instance.api.mnemonicToSeed(phrase: phrase, hint: hint); + BreezSdkBindings.instance.api.crateBindingMnemonicToSeed(phrase: phrase, hint: hint); /// See [BreezServices::default_config] Future defaultConfig( @@ -60,194 +61,201 @@ Future defaultConfig( required NodeConfig nodeConfig, dynamic hint}) => BreezSdkBindings.instance.api - .defaultConfig(envType: envType, apiKey: apiKey, nodeConfig: nodeConfig, hint: hint); + .crateBindingDefaultConfig(envType: envType, apiKey: apiKey, nodeConfig: nodeConfig, hint: hint); /// See [BreezServices::static_backup] Future staticBackup({required StaticBackupRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.staticBackup(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingStaticBackup(req: req, hint: hint); /// See [BreezServices::service_health_check] Future serviceHealthCheck({required String apiKey, dynamic hint}) => - BreezSdkBindings.instance.api.serviceHealthCheck(apiKey: apiKey, hint: hint); + BreezSdkBindings.instance.api.crateBindingServiceHealthCheck(apiKey: apiKey, hint: hint); /// If used, this must be called before `connect`. It can only be called once. Stream breezEventsStream({dynamic hint}) => - BreezSdkBindings.instance.api.breezEventsStream(hint: hint); + BreezSdkBindings.instance.api.crateBindingBreezEventsStream(hint: hint); /// If used, this must be called before `connect`. It can only be called once. -Stream breezLogStream({dynamic hint}) => BreezSdkBindings.instance.api.breezLogStream(hint: hint); +Stream breezLogStream({dynamic hint}) => + BreezSdkBindings.instance.api.crateBindingBreezLogStream(hint: hint); /// See [BreezServices::list_lsps] -Future> listLsps({dynamic hint}) => BreezSdkBindings.instance.api.listLsps(hint: hint); +Future> listLsps({dynamic hint}) => + BreezSdkBindings.instance.api.crateBindingListLsps(hint: hint); /// See [BreezServices::connect_lsp] Future connectLsp({required String lspId, dynamic hint}) => - BreezSdkBindings.instance.api.connectLsp(lspId: lspId, hint: hint); + BreezSdkBindings.instance.api.crateBindingConnectLsp(lspId: lspId, hint: hint); /// See [BreezServices::lsp_id] -Future lspId({dynamic hint}) => BreezSdkBindings.instance.api.lspId(hint: hint); +Future lspId({dynamic hint}) => BreezSdkBindings.instance.api.crateBindingLspId(hint: hint); /// See [BreezServices::fetch_lsp_info] Future fetchLspInfo({required String id, dynamic hint}) => - BreezSdkBindings.instance.api.fetchLspInfo(id: id, hint: hint); + BreezSdkBindings.instance.api.crateBindingFetchLspInfo(id: id, hint: hint); /// See [BreezServices::lsp_info] -Future lspInfo({dynamic hint}) => BreezSdkBindings.instance.api.lspInfo(hint: hint); +Future lspInfo({dynamic hint}) => + BreezSdkBindings.instance.api.crateBindingLspInfo(hint: hint); /// See [BreezServices::close_lsp_channels] -Future closeLspChannels({dynamic hint}) => BreezSdkBindings.instance.api.closeLspChannels(hint: hint); +Future closeLspChannels({dynamic hint}) => + BreezSdkBindings.instance.api.crateBindingCloseLspChannels(hint: hint); Future registerWebhook({required String webhookUrl, dynamic hint}) => - BreezSdkBindings.instance.api.registerWebhook(webhookUrl: webhookUrl, hint: hint); + BreezSdkBindings.instance.api.crateBindingRegisterWebhook(webhookUrl: webhookUrl, hint: hint); Future unregisterWebhook({required String webhookUrl, dynamic hint}) => - BreezSdkBindings.instance.api.unregisterWebhook(webhookUrl: webhookUrl, hint: hint); + BreezSdkBindings.instance.api.crateBindingUnregisterWebhook(webhookUrl: webhookUrl, hint: hint); /// See [BreezServices::backup] -Future backup({dynamic hint}) => BreezSdkBindings.instance.api.backup(hint: hint); +Future backup({dynamic hint}) => BreezSdkBindings.instance.api.crateBindingBackup(hint: hint); /// See [BreezServices::backup_status] -Future backupStatus({dynamic hint}) => BreezSdkBindings.instance.api.backupStatus(hint: hint); +Future backupStatus({dynamic hint}) => + BreezSdkBindings.instance.api.crateBindingBackupStatus(hint: hint); Future parseInvoice({required String invoice, dynamic hint}) => - BreezSdkBindings.instance.api.parseInvoice(invoice: invoice, hint: hint); + BreezSdkBindings.instance.api.crateBindingParseInvoice(invoice: invoice, hint: hint); Future parseInput({required String input, dynamic hint}) => - BreezSdkBindings.instance.api.parseInput(input: input, hint: hint); + BreezSdkBindings.instance.api.crateBindingParseInput(input: input, hint: hint); /// See [BreezServices::list_payments] Future> listPayments({required ListPaymentsRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.listPayments(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingListPayments(req: req, hint: hint); /// See [BreezServices::list_payments] Future paymentByHash({required String hash, dynamic hint}) => - BreezSdkBindings.instance.api.paymentByHash(hash: hash, hint: hint); + BreezSdkBindings.instance.api.crateBindingPaymentByHash(hash: hash, hint: hint); /// See [BreezServices::set_payment_metadata] Future setPaymentMetadata({required String hash, required String metadata, dynamic hint}) => - BreezSdkBindings.instance.api.setPaymentMetadata(hash: hash, metadata: metadata, hint: hint); + BreezSdkBindings.instance.api.crateBindingSetPaymentMetadata(hash: hash, metadata: metadata, hint: hint); /// See [BreezServices::send_payment] Future sendPayment({required SendPaymentRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.sendPayment(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingSendPayment(req: req, hint: hint); /// See [BreezServices::send_spontaneous_payment] Future sendSpontaneousPayment( {required SendSpontaneousPaymentRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.sendSpontaneousPayment(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingSendSpontaneousPayment(req: req, hint: hint); /// See [BreezServices::receive_payment] Future receivePayment({required ReceivePaymentRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.receivePayment(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingReceivePayment(req: req, hint: hint); /// See [BreezServices::lnurl_pay] Future lnurlPay({required LnUrlPayRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.lnurlPay(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingLnurlPay(req: req, hint: hint); /// See [BreezServices::lnurl_withdraw] Future lnurlWithdraw({required LnUrlWithdrawRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.lnurlWithdraw(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingLnurlWithdraw(req: req, hint: hint); /// See [BreezServices::lnurl_auth] Future lnurlAuth({required LnUrlAuthRequestData reqData, dynamic hint}) => - BreezSdkBindings.instance.api.lnurlAuth(reqData: reqData, hint: hint); + BreezSdkBindings.instance.api.crateBindingLnurlAuth(reqData: reqData, hint: hint); /// See [BreezServices::report_issue] Future reportIssue({required ReportIssueRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.reportIssue(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingReportIssue(req: req, hint: hint); /// See [BreezServices::fetch_fiat_rates] -Future> fetchFiatRates({dynamic hint}) => BreezSdkBindings.instance.api.fetchFiatRates(hint: hint); +Future> fetchFiatRates({dynamic hint}) => + BreezSdkBindings.instance.api.crateBindingFetchFiatRates(hint: hint); /// See [BreezServices::list_fiat_currencies] Future> listFiatCurrencies({dynamic hint}) => - BreezSdkBindings.instance.api.listFiatCurrencies(hint: hint); + BreezSdkBindings.instance.api.crateBindingListFiatCurrencies(hint: hint); /// See [BreezServices::max_reverse_swap_amount] Future maxReverseSwapAmount({dynamic hint}) => - BreezSdkBindings.instance.api.maxReverseSwapAmount(hint: hint); + BreezSdkBindings.instance.api.crateBindingMaxReverseSwapAmount(hint: hint); /// See [BreezServices::send_onchain] Future sendOnchain({required SendOnchainRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.sendOnchain(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingSendOnchain(req: req, hint: hint); /// See [BreezServices::pay_onchain] Future payOnchain({required PayOnchainRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.payOnchain(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingPayOnchain(req: req, hint: hint); /// See [BreezServices::receive_onchain] Future receiveOnchain({required ReceiveOnchainRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.receiveOnchain(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingReceiveOnchain(req: req, hint: hint); /// See [BreezServices::buy_bitcoin] Future buyBitcoin({required BuyBitcoinRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.buyBitcoin(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingBuyBitcoin(req: req, hint: hint); /// See [BreezServices::redeem_onchain_funds] Future redeemOnchainFunds( {required RedeemOnchainFundsRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.redeemOnchainFunds(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingRedeemOnchainFunds(req: req, hint: hint); /// See [BreezServices::prepare_redeem_onchain_funds] Future prepareRedeemOnchainFunds( {required PrepareRedeemOnchainFundsRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.prepareRedeemOnchainFunds(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingPrepareRedeemOnchainFunds(req: req, hint: hint); /// See [BreezServices::list_refundables] Future> listRefundables({dynamic hint}) => - BreezSdkBindings.instance.api.listRefundables(hint: hint); + BreezSdkBindings.instance.api.crateBindingListRefundables(hint: hint); /// See [BreezServices::prepare_refund] Future prepareRefund({required PrepareRefundRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.prepareRefund(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingPrepareRefund(req: req, hint: hint); /// See [BreezServices::refund] Future refund({required RefundRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.refund(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingRefund(req: req, hint: hint); /// See [BreezServices::rescan_swaps] -Future rescanSwaps({dynamic hint}) => BreezSdkBindings.instance.api.rescanSwaps(hint: hint); +Future rescanSwaps({dynamic hint}) => BreezSdkBindings.instance.api.crateBindingRescanSwaps(hint: hint); /// See [BreezServices::redeem_swap] Future redeemSwap({required String swapAddress, dynamic hint}) => - BreezSdkBindings.instance.api.redeemSwap(swapAddress: swapAddress, hint: hint); + BreezSdkBindings.instance.api.crateBindingRedeemSwap(swapAddress: swapAddress, hint: hint); /// See [BreezServices::in_progress_swap] -Future inProgressSwap({dynamic hint}) => BreezSdkBindings.instance.api.inProgressSwap(hint: hint); +Future inProgressSwap({dynamic hint}) => + BreezSdkBindings.instance.api.crateBindingInProgressSwap(hint: hint); /// See [BreezServices::in_progress_reverse_swaps] Future> inProgressReverseSwaps({dynamic hint}) => - BreezSdkBindings.instance.api.inProgressReverseSwaps(hint: hint); + BreezSdkBindings.instance.api.crateBindingInProgressReverseSwaps(hint: hint); /// See [BreezServices::open_channel_fee] Future openChannelFee({required OpenChannelFeeRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.openChannelFee(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingOpenChannelFee(req: req, hint: hint); /// See [BreezServices::fetch_reverse_swap_fees] Future fetchReverseSwapFees({required ReverseSwapFeesRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.fetchReverseSwapFees(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingFetchReverseSwapFees(req: req, hint: hint); /// See [BreezServices::onchain_payment_limits] Future onchainPaymentLimits({dynamic hint}) => - BreezSdkBindings.instance.api.onchainPaymentLimits(hint: hint); + BreezSdkBindings.instance.api.crateBindingOnchainPaymentLimits(hint: hint); /// See [BreezServices::prepare_onchain_payment] Future prepareOnchainPayment( {required PrepareOnchainPaymentRequest req, dynamic hint}) => - BreezSdkBindings.instance.api.prepareOnchainPayment(req: req, hint: hint); + BreezSdkBindings.instance.api.crateBindingPrepareOnchainPayment(req: req, hint: hint); /// See [BreezServices::in_progress_onchain_payments] Future> inProgressOnchainPayments({dynamic hint}) => - BreezSdkBindings.instance.api.inProgressOnchainPayments(hint: hint); + BreezSdkBindings.instance.api.crateBindingInProgressOnchainPayments(hint: hint); /// See [BreezServices::recommended_fees] Future recommendedFees({dynamic hint}) => - BreezSdkBindings.instance.api.recommendedFees(hint: hint); + BreezSdkBindings.instance.api.crateBindingRecommendedFees(hint: hint); /// See [BreezServices::execute_dev_command] Future executeCommand({required String command, dynamic hint}) => - BreezSdkBindings.instance.api.executeCommand(command: command, hint: hint); + BreezSdkBindings.instance.api.crateBindingExecuteCommand(command: command, hint: hint); /// See [BreezServices::generate_diagnostic_data] Future generateDiagnosticData({dynamic hint}) => - BreezSdkBindings.instance.api.generateDiagnosticData(hint: hint); + BreezSdkBindings.instance.api.crateBindingGenerateDiagnosticData(hint: hint); diff --git a/libs/sdk-flutter/lib/generated/breez_services.dart b/libs/sdk-flutter/lib/generated/breez_services.dart index 428840085..9c9af8a7f 100644 --- a/libs/sdk-flutter/lib/generated/breez_services.dart +++ b/libs/sdk-flutter/lib/generated/breez_services.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/libs/sdk-flutter/lib/generated/breez_services.freezed.dart b/libs/sdk-flutter/lib/generated/breez_services.freezed.dart index 1076b7395..9bac18922 100644 --- a/libs/sdk-flutter/lib/generated/breez_services.freezed.dart +++ b/libs/sdk-flutter/lib/generated/breez_services.freezed.dart @@ -100,14 +100,12 @@ mixin _$BreezEvent { /// @nodoc abstract class $BreezEventCopyWith<$Res> { - factory $BreezEventCopyWith( - BreezEvent value, $Res Function(BreezEvent) then) = + factory $BreezEventCopyWith(BreezEvent value, $Res Function(BreezEvent) then) = _$BreezEventCopyWithImpl<$Res, BreezEvent>; } /// @nodoc -class _$BreezEventCopyWithImpl<$Res, $Val extends BreezEvent> - implements $BreezEventCopyWith<$Res> { +class _$BreezEventCopyWithImpl<$Res, $Val extends BreezEvent> implements $BreezEventCopyWith<$Res> { _$BreezEventCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -118,8 +116,8 @@ class _$BreezEventCopyWithImpl<$Res, $Val extends BreezEvent> /// @nodoc abstract class _$$BreezEvent_NewBlockImplCopyWith<$Res> { - factory _$$BreezEvent_NewBlockImplCopyWith(_$BreezEvent_NewBlockImpl value, - $Res Function(_$BreezEvent_NewBlockImpl) then) = + factory _$$BreezEvent_NewBlockImplCopyWith( + _$BreezEvent_NewBlockImpl value, $Res Function(_$BreezEvent_NewBlockImpl) then) = __$$BreezEvent_NewBlockImplCopyWithImpl<$Res>; @useResult $Res call({int block}); @@ -129,8 +127,8 @@ abstract class _$$BreezEvent_NewBlockImplCopyWith<$Res> { class __$$BreezEvent_NewBlockImplCopyWithImpl<$Res> extends _$BreezEventCopyWithImpl<$Res, _$BreezEvent_NewBlockImpl> implements _$$BreezEvent_NewBlockImplCopyWith<$Res> { - __$$BreezEvent_NewBlockImplCopyWithImpl(_$BreezEvent_NewBlockImpl _value, - $Res Function(_$BreezEvent_NewBlockImpl) _then) + __$$BreezEvent_NewBlockImplCopyWithImpl( + _$BreezEvent_NewBlockImpl _value, $Res Function(_$BreezEvent_NewBlockImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -175,8 +173,7 @@ class _$BreezEvent_NewBlockImpl extends BreezEvent_NewBlock { @override @pragma('vm:prefer-inline') _$$BreezEvent_NewBlockImplCopyWith<_$BreezEvent_NewBlockImpl> get copyWith => - __$$BreezEvent_NewBlockImplCopyWithImpl<_$BreezEvent_NewBlockImpl>( - this, _$identity); + __$$BreezEvent_NewBlockImplCopyWithImpl<_$BreezEvent_NewBlockImpl>(this, _$identity); @override @optionalTypeArgs @@ -284,8 +281,7 @@ class _$BreezEvent_NewBlockImpl extends BreezEvent_NewBlock { } abstract class BreezEvent_NewBlock extends BreezEvent { - const factory BreezEvent_NewBlock({required final int block}) = - _$BreezEvent_NewBlockImpl; + const factory BreezEvent_NewBlock({required final int block}) = _$BreezEvent_NewBlockImpl; const BreezEvent_NewBlock._() : super._(); int get block; @@ -297,8 +293,7 @@ abstract class BreezEvent_NewBlock extends BreezEvent { /// @nodoc abstract class _$$BreezEvent_InvoicePaidImplCopyWith<$Res> { factory _$$BreezEvent_InvoicePaidImplCopyWith( - _$BreezEvent_InvoicePaidImpl value, - $Res Function(_$BreezEvent_InvoicePaidImpl) then) = + _$BreezEvent_InvoicePaidImpl value, $Res Function(_$BreezEvent_InvoicePaidImpl) then) = __$$BreezEvent_InvoicePaidImplCopyWithImpl<$Res>; @useResult $Res call({InvoicePaidDetails details}); @@ -309,8 +304,7 @@ class __$$BreezEvent_InvoicePaidImplCopyWithImpl<$Res> extends _$BreezEventCopyWithImpl<$Res, _$BreezEvent_InvoicePaidImpl> implements _$$BreezEvent_InvoicePaidImplCopyWith<$Res> { __$$BreezEvent_InvoicePaidImplCopyWithImpl( - _$BreezEvent_InvoicePaidImpl _value, - $Res Function(_$BreezEvent_InvoicePaidImpl) _then) + _$BreezEvent_InvoicePaidImpl _value, $Res Function(_$BreezEvent_InvoicePaidImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -354,9 +348,8 @@ class _$BreezEvent_InvoicePaidImpl extends BreezEvent_InvoicePaid { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$BreezEvent_InvoicePaidImplCopyWith<_$BreezEvent_InvoicePaidImpl> - get copyWith => __$$BreezEvent_InvoicePaidImplCopyWithImpl< - _$BreezEvent_InvoicePaidImpl>(this, _$identity); + _$$BreezEvent_InvoicePaidImplCopyWith<_$BreezEvent_InvoicePaidImpl> get copyWith => + __$$BreezEvent_InvoicePaidImplCopyWithImpl<_$BreezEvent_InvoicePaidImpl>(this, _$identity); @override @optionalTypeArgs @@ -464,21 +457,20 @@ class _$BreezEvent_InvoicePaidImpl extends BreezEvent_InvoicePaid { } abstract class BreezEvent_InvoicePaid extends BreezEvent { - const factory BreezEvent_InvoicePaid( - {required final InvoicePaidDetails details}) = + const factory BreezEvent_InvoicePaid({required final InvoicePaidDetails details}) = _$BreezEvent_InvoicePaidImpl; const BreezEvent_InvoicePaid._() : super._(); InvoicePaidDetails get details; @JsonKey(ignore: true) - _$$BreezEvent_InvoicePaidImplCopyWith<_$BreezEvent_InvoicePaidImpl> - get copyWith => throw _privateConstructorUsedError; + _$$BreezEvent_InvoicePaidImplCopyWith<_$BreezEvent_InvoicePaidImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$BreezEvent_SyncedImplCopyWith<$Res> { - factory _$$BreezEvent_SyncedImplCopyWith(_$BreezEvent_SyncedImpl value, - $Res Function(_$BreezEvent_SyncedImpl) then) = + factory _$$BreezEvent_SyncedImplCopyWith( + _$BreezEvent_SyncedImpl value, $Res Function(_$BreezEvent_SyncedImpl) then) = __$$BreezEvent_SyncedImplCopyWithImpl<$Res>; } @@ -486,8 +478,8 @@ abstract class _$$BreezEvent_SyncedImplCopyWith<$Res> { class __$$BreezEvent_SyncedImplCopyWithImpl<$Res> extends _$BreezEventCopyWithImpl<$Res, _$BreezEvent_SyncedImpl> implements _$$BreezEvent_SyncedImplCopyWith<$Res> { - __$$BreezEvent_SyncedImplCopyWithImpl(_$BreezEvent_SyncedImpl _value, - $Res Function(_$BreezEvent_SyncedImpl) _then) + __$$BreezEvent_SyncedImplCopyWithImpl( + _$BreezEvent_SyncedImpl _value, $Res Function(_$BreezEvent_SyncedImpl) _then) : super(_value, _then); } @@ -503,8 +495,7 @@ class _$BreezEvent_SyncedImpl extends BreezEvent_Synced { @override bool operator ==(Object other) { - return identical(this, other) || - (other.runtimeType == runtimeType && other is _$BreezEvent_SyncedImpl); + return identical(this, other) || (other.runtimeType == runtimeType && other is _$BreezEvent_SyncedImpl); } @override @@ -623,8 +614,7 @@ abstract class BreezEvent_Synced extends BreezEvent { /// @nodoc abstract class _$$BreezEvent_PaymentSucceedImplCopyWith<$Res> { factory _$$BreezEvent_PaymentSucceedImplCopyWith( - _$BreezEvent_PaymentSucceedImpl value, - $Res Function(_$BreezEvent_PaymentSucceedImpl) then) = + _$BreezEvent_PaymentSucceedImpl value, $Res Function(_$BreezEvent_PaymentSucceedImpl) then) = __$$BreezEvent_PaymentSucceedImplCopyWithImpl<$Res>; @useResult $Res call({Payment details}); @@ -635,8 +625,7 @@ class __$$BreezEvent_PaymentSucceedImplCopyWithImpl<$Res> extends _$BreezEventCopyWithImpl<$Res, _$BreezEvent_PaymentSucceedImpl> implements _$$BreezEvent_PaymentSucceedImplCopyWith<$Res> { __$$BreezEvent_PaymentSucceedImplCopyWithImpl( - _$BreezEvent_PaymentSucceedImpl _value, - $Res Function(_$BreezEvent_PaymentSucceedImpl) _then) + _$BreezEvent_PaymentSucceedImpl _value, $Res Function(_$BreezEvent_PaymentSucceedImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -680,9 +669,8 @@ class _$BreezEvent_PaymentSucceedImpl extends BreezEvent_PaymentSucceed { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$BreezEvent_PaymentSucceedImplCopyWith<_$BreezEvent_PaymentSucceedImpl> - get copyWith => __$$BreezEvent_PaymentSucceedImplCopyWithImpl< - _$BreezEvent_PaymentSucceedImpl>(this, _$identity); + _$$BreezEvent_PaymentSucceedImplCopyWith<_$BreezEvent_PaymentSucceedImpl> get copyWith => + __$$BreezEvent_PaymentSucceedImplCopyWithImpl<_$BreezEvent_PaymentSucceedImpl>(this, _$identity); @override @optionalTypeArgs @@ -790,21 +778,19 @@ class _$BreezEvent_PaymentSucceedImpl extends BreezEvent_PaymentSucceed { } abstract class BreezEvent_PaymentSucceed extends BreezEvent { - const factory BreezEvent_PaymentSucceed({required final Payment details}) = - _$BreezEvent_PaymentSucceedImpl; + const factory BreezEvent_PaymentSucceed({required final Payment details}) = _$BreezEvent_PaymentSucceedImpl; const BreezEvent_PaymentSucceed._() : super._(); Payment get details; @JsonKey(ignore: true) - _$$BreezEvent_PaymentSucceedImplCopyWith<_$BreezEvent_PaymentSucceedImpl> - get copyWith => throw _privateConstructorUsedError; + _$$BreezEvent_PaymentSucceedImplCopyWith<_$BreezEvent_PaymentSucceedImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$BreezEvent_PaymentFailedImplCopyWith<$Res> { factory _$$BreezEvent_PaymentFailedImplCopyWith( - _$BreezEvent_PaymentFailedImpl value, - $Res Function(_$BreezEvent_PaymentFailedImpl) then) = + _$BreezEvent_PaymentFailedImpl value, $Res Function(_$BreezEvent_PaymentFailedImpl) then) = __$$BreezEvent_PaymentFailedImplCopyWithImpl<$Res>; @useResult $Res call({PaymentFailedData details}); @@ -815,8 +801,7 @@ class __$$BreezEvent_PaymentFailedImplCopyWithImpl<$Res> extends _$BreezEventCopyWithImpl<$Res, _$BreezEvent_PaymentFailedImpl> implements _$$BreezEvent_PaymentFailedImplCopyWith<$Res> { __$$BreezEvent_PaymentFailedImplCopyWithImpl( - _$BreezEvent_PaymentFailedImpl _value, - $Res Function(_$BreezEvent_PaymentFailedImpl) _then) + _$BreezEvent_PaymentFailedImpl _value, $Res Function(_$BreezEvent_PaymentFailedImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -860,9 +845,8 @@ class _$BreezEvent_PaymentFailedImpl extends BreezEvent_PaymentFailed { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$BreezEvent_PaymentFailedImplCopyWith<_$BreezEvent_PaymentFailedImpl> - get copyWith => __$$BreezEvent_PaymentFailedImplCopyWithImpl< - _$BreezEvent_PaymentFailedImpl>(this, _$identity); + _$$BreezEvent_PaymentFailedImplCopyWith<_$BreezEvent_PaymentFailedImpl> get copyWith => + __$$BreezEvent_PaymentFailedImplCopyWithImpl<_$BreezEvent_PaymentFailedImpl>(this, _$identity); @override @optionalTypeArgs @@ -970,22 +954,20 @@ class _$BreezEvent_PaymentFailedImpl extends BreezEvent_PaymentFailed { } abstract class BreezEvent_PaymentFailed extends BreezEvent { - const factory BreezEvent_PaymentFailed( - {required final PaymentFailedData details}) = + const factory BreezEvent_PaymentFailed({required final PaymentFailedData details}) = _$BreezEvent_PaymentFailedImpl; const BreezEvent_PaymentFailed._() : super._(); PaymentFailedData get details; @JsonKey(ignore: true) - _$$BreezEvent_PaymentFailedImplCopyWith<_$BreezEvent_PaymentFailedImpl> - get copyWith => throw _privateConstructorUsedError; + _$$BreezEvent_PaymentFailedImplCopyWith<_$BreezEvent_PaymentFailedImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$BreezEvent_BackupStartedImplCopyWith<$Res> { factory _$$BreezEvent_BackupStartedImplCopyWith( - _$BreezEvent_BackupStartedImpl value, - $Res Function(_$BreezEvent_BackupStartedImpl) then) = + _$BreezEvent_BackupStartedImpl value, $Res Function(_$BreezEvent_BackupStartedImpl) then) = __$$BreezEvent_BackupStartedImplCopyWithImpl<$Res>; } @@ -994,8 +976,7 @@ class __$$BreezEvent_BackupStartedImplCopyWithImpl<$Res> extends _$BreezEventCopyWithImpl<$Res, _$BreezEvent_BackupStartedImpl> implements _$$BreezEvent_BackupStartedImplCopyWith<$Res> { __$$BreezEvent_BackupStartedImplCopyWithImpl( - _$BreezEvent_BackupStartedImpl _value, - $Res Function(_$BreezEvent_BackupStartedImpl) _then) + _$BreezEvent_BackupStartedImpl _value, $Res Function(_$BreezEvent_BackupStartedImpl) _then) : super(_value, _then); } @@ -1012,8 +993,7 @@ class _$BreezEvent_BackupStartedImpl extends BreezEvent_BackupStarted { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BreezEvent_BackupStartedImpl); + (other.runtimeType == runtimeType && other is _$BreezEvent_BackupStartedImpl); } @override @@ -1132,8 +1112,7 @@ abstract class BreezEvent_BackupStarted extends BreezEvent { /// @nodoc abstract class _$$BreezEvent_BackupSucceededImplCopyWith<$Res> { factory _$$BreezEvent_BackupSucceededImplCopyWith( - _$BreezEvent_BackupSucceededImpl value, - $Res Function(_$BreezEvent_BackupSucceededImpl) then) = + _$BreezEvent_BackupSucceededImpl value, $Res Function(_$BreezEvent_BackupSucceededImpl) then) = __$$BreezEvent_BackupSucceededImplCopyWithImpl<$Res>; } @@ -1142,8 +1121,7 @@ class __$$BreezEvent_BackupSucceededImplCopyWithImpl<$Res> extends _$BreezEventCopyWithImpl<$Res, _$BreezEvent_BackupSucceededImpl> implements _$$BreezEvent_BackupSucceededImplCopyWith<$Res> { __$$BreezEvent_BackupSucceededImplCopyWithImpl( - _$BreezEvent_BackupSucceededImpl _value, - $Res Function(_$BreezEvent_BackupSucceededImpl) _then) + _$BreezEvent_BackupSucceededImpl _value, $Res Function(_$BreezEvent_BackupSucceededImpl) _then) : super(_value, _then); } @@ -1160,8 +1138,7 @@ class _$BreezEvent_BackupSucceededImpl extends BreezEvent_BackupSucceeded { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$BreezEvent_BackupSucceededImpl); + (other.runtimeType == runtimeType && other is _$BreezEvent_BackupSucceededImpl); } @override @@ -1280,8 +1257,7 @@ abstract class BreezEvent_BackupSucceeded extends BreezEvent { /// @nodoc abstract class _$$BreezEvent_BackupFailedImplCopyWith<$Res> { factory _$$BreezEvent_BackupFailedImplCopyWith( - _$BreezEvent_BackupFailedImpl value, - $Res Function(_$BreezEvent_BackupFailedImpl) then) = + _$BreezEvent_BackupFailedImpl value, $Res Function(_$BreezEvent_BackupFailedImpl) then) = __$$BreezEvent_BackupFailedImplCopyWithImpl<$Res>; @useResult $Res call({BackupFailedData details}); @@ -1292,8 +1268,7 @@ class __$$BreezEvent_BackupFailedImplCopyWithImpl<$Res> extends _$BreezEventCopyWithImpl<$Res, _$BreezEvent_BackupFailedImpl> implements _$$BreezEvent_BackupFailedImplCopyWith<$Res> { __$$BreezEvent_BackupFailedImplCopyWithImpl( - _$BreezEvent_BackupFailedImpl _value, - $Res Function(_$BreezEvent_BackupFailedImpl) _then) + _$BreezEvent_BackupFailedImpl _value, $Res Function(_$BreezEvent_BackupFailedImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1337,9 +1312,8 @@ class _$BreezEvent_BackupFailedImpl extends BreezEvent_BackupFailed { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$BreezEvent_BackupFailedImplCopyWith<_$BreezEvent_BackupFailedImpl> - get copyWith => __$$BreezEvent_BackupFailedImplCopyWithImpl< - _$BreezEvent_BackupFailedImpl>(this, _$identity); + _$$BreezEvent_BackupFailedImplCopyWith<_$BreezEvent_BackupFailedImpl> get copyWith => + __$$BreezEvent_BackupFailedImplCopyWithImpl<_$BreezEvent_BackupFailedImpl>(this, _$identity); @override @optionalTypeArgs @@ -1447,22 +1421,20 @@ class _$BreezEvent_BackupFailedImpl extends BreezEvent_BackupFailed { } abstract class BreezEvent_BackupFailed extends BreezEvent { - const factory BreezEvent_BackupFailed( - {required final BackupFailedData details}) = + const factory BreezEvent_BackupFailed({required final BackupFailedData details}) = _$BreezEvent_BackupFailedImpl; const BreezEvent_BackupFailed._() : super._(); BackupFailedData get details; @JsonKey(ignore: true) - _$$BreezEvent_BackupFailedImplCopyWith<_$BreezEvent_BackupFailedImpl> - get copyWith => throw _privateConstructorUsedError; + _$$BreezEvent_BackupFailedImplCopyWith<_$BreezEvent_BackupFailedImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$BreezEvent_SwapUpdatedImplCopyWith<$Res> { factory _$$BreezEvent_SwapUpdatedImplCopyWith( - _$BreezEvent_SwapUpdatedImpl value, - $Res Function(_$BreezEvent_SwapUpdatedImpl) then) = + _$BreezEvent_SwapUpdatedImpl value, $Res Function(_$BreezEvent_SwapUpdatedImpl) then) = __$$BreezEvent_SwapUpdatedImplCopyWithImpl<$Res>; @useResult $Res call({SwapInfo details}); @@ -1473,8 +1445,7 @@ class __$$BreezEvent_SwapUpdatedImplCopyWithImpl<$Res> extends _$BreezEventCopyWithImpl<$Res, _$BreezEvent_SwapUpdatedImpl> implements _$$BreezEvent_SwapUpdatedImplCopyWith<$Res> { __$$BreezEvent_SwapUpdatedImplCopyWithImpl( - _$BreezEvent_SwapUpdatedImpl _value, - $Res Function(_$BreezEvent_SwapUpdatedImpl) _then) + _$BreezEvent_SwapUpdatedImpl _value, $Res Function(_$BreezEvent_SwapUpdatedImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1518,9 +1489,8 @@ class _$BreezEvent_SwapUpdatedImpl extends BreezEvent_SwapUpdated { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$BreezEvent_SwapUpdatedImplCopyWith<_$BreezEvent_SwapUpdatedImpl> - get copyWith => __$$BreezEvent_SwapUpdatedImplCopyWithImpl< - _$BreezEvent_SwapUpdatedImpl>(this, _$identity); + _$$BreezEvent_SwapUpdatedImplCopyWith<_$BreezEvent_SwapUpdatedImpl> get copyWith => + __$$BreezEvent_SwapUpdatedImplCopyWithImpl<_$BreezEvent_SwapUpdatedImpl>(this, _$identity); @override @optionalTypeArgs @@ -1628,12 +1598,11 @@ class _$BreezEvent_SwapUpdatedImpl extends BreezEvent_SwapUpdated { } abstract class BreezEvent_SwapUpdated extends BreezEvent { - const factory BreezEvent_SwapUpdated({required final SwapInfo details}) = - _$BreezEvent_SwapUpdatedImpl; + const factory BreezEvent_SwapUpdated({required final SwapInfo details}) = _$BreezEvent_SwapUpdatedImpl; const BreezEvent_SwapUpdated._() : super._(); SwapInfo get details; @JsonKey(ignore: true) - _$$BreezEvent_SwapUpdatedImplCopyWith<_$BreezEvent_SwapUpdatedImpl> - get copyWith => throw _privateConstructorUsedError; + _$$BreezEvent_SwapUpdatedImplCopyWith<_$BreezEvent_SwapUpdatedImpl> get copyWith => + throw _privateConstructorUsedError; } diff --git a/libs/sdk-flutter/lib/generated/chain.dart b/libs/sdk-flutter/lib/generated/chain.dart index 1c9c9155f..45a52924e 100644 --- a/libs/sdk-flutter/lib/generated/chain.dart +++ b/libs/sdk-flutter/lib/generated/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-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -8,11 +8,11 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; /// Wrapper containing the result of the recommended fees query, in sat/vByte, based on mempool.space data class RecommendedFees { - final int fastestFee; - final int halfHourFee; - final int hourFee; - final int economyFee; - final int minimumFee; + final BigInt fastestFee; + final BigInt halfHourFee; + final BigInt hourFee; + final BigInt economyFee; + final BigInt minimumFee; const RecommendedFees({ required this.fastestFee, diff --git a/libs/sdk-flutter/lib/generated/fiat.dart b/libs/sdk-flutter/lib/generated/fiat.dart index 1e636cfca..5e37f8d22 100644 --- a/libs/sdk-flutter/lib/generated/fiat.dart +++ b/libs/sdk-flutter/lib/generated/fiat.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/libs/sdk-flutter/lib/generated/frb_generated.dart b/libs/sdk-flutter/lib/generated/frb_generated.dart index 6497297a7..99dc53fa0 100644 --- a/libs/sdk-flutter/lib/generated/frb_generated.dart +++ b/libs/sdk-flutter/lib/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-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // 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 @@ -58,7 +58,7 @@ class BreezSdkBindings ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig => kDefaultExternalLibraryLoaderConfig; @override - String get codegenVersion => '2.0.0-dev.33'; + String get codegenVersion => '2.0.0-dev.36'; @override int get rustContentHash => 1499828454; @@ -71,135 +71,138 @@ class BreezSdkBindings } abstract class BreezSdkBindingsApi extends BaseApi { - Future backup({dynamic hint}); + Future crateBindingBackup({dynamic hint}); - Future backupStatus({dynamic hint}); + Future crateBindingBackupStatus({dynamic hint}); - Stream breezEventsStream({dynamic hint}); + Stream crateBindingBreezEventsStream({dynamic hint}); - Stream breezLogStream({dynamic hint}); + Stream crateBindingBreezLogStream({dynamic hint}); - Future buyBitcoin({required BuyBitcoinRequest req, dynamic hint}); + Future crateBindingBuyBitcoin({required BuyBitcoinRequest req, dynamic hint}); - Future checkMessage({required CheckMessageRequest req, dynamic hint}); + Future crateBindingCheckMessage({required CheckMessageRequest req, dynamic hint}); - Future closeLspChannels({dynamic hint}); + Future crateBindingCloseLspChannels({dynamic hint}); - Future configureNode({required ConfigureNodeRequest req, dynamic hint}); + Future crateBindingConfigureNode({required ConfigureNodeRequest req, dynamic hint}); - Future connect({required ConnectRequest req, dynamic hint}); + Future crateBindingConnect({required ConnectRequest req, dynamic hint}); - Future connectLsp({required String lspId, dynamic hint}); + Future crateBindingConnectLsp({required String lspId, dynamic hint}); - Future defaultConfig( + Future crateBindingDefaultConfig( {required EnvironmentType envType, required String apiKey, required NodeConfig nodeConfig, dynamic hint}); - Future disconnect({dynamic hint}); + Future crateBindingDisconnect({dynamic hint}); - Future executeCommand({required String command, dynamic hint}); + Future crateBindingExecuteCommand({required String command, dynamic hint}); - Future> fetchFiatRates({dynamic hint}); + Future> crateBindingFetchFiatRates({dynamic hint}); - Future fetchLspInfo({required String id, dynamic hint}); + Future crateBindingFetchLspInfo({required String id, dynamic hint}); - Future fetchReverseSwapFees({required ReverseSwapFeesRequest req, dynamic hint}); + Future crateBindingFetchReverseSwapFees( + {required ReverseSwapFeesRequest req, dynamic hint}); - Future generateDiagnosticData({dynamic hint}); + Future crateBindingGenerateDiagnosticData({dynamic hint}); - Future> inProgressOnchainPayments({dynamic hint}); + Future> crateBindingInProgressOnchainPayments({dynamic hint}); - Future> inProgressReverseSwaps({dynamic hint}); + Future> crateBindingInProgressReverseSwaps({dynamic hint}); - Future inProgressSwap({dynamic hint}); + Future crateBindingInProgressSwap({dynamic hint}); - Future isInitialized({dynamic hint}); + Future crateBindingIsInitialized({dynamic hint}); - Future> listFiatCurrencies({dynamic hint}); + Future> crateBindingListFiatCurrencies({dynamic hint}); - Future> listLsps({dynamic hint}); + Future> crateBindingListLsps({dynamic hint}); - Future> listPayments({required ListPaymentsRequest req, dynamic hint}); + Future> crateBindingListPayments({required ListPaymentsRequest req, dynamic hint}); - Future> listRefundables({dynamic hint}); + Future> crateBindingListRefundables({dynamic hint}); - Future lnurlAuth({required LnUrlAuthRequestData reqData, dynamic hint}); + Future crateBindingLnurlAuth({required LnUrlAuthRequestData reqData, dynamic hint}); - Future lnurlPay({required LnUrlPayRequest req, dynamic hint}); + Future crateBindingLnurlPay({required LnUrlPayRequest req, dynamic hint}); - Future lnurlWithdraw({required LnUrlWithdrawRequest req, dynamic hint}); + Future crateBindingLnurlWithdraw({required LnUrlWithdrawRequest req, dynamic hint}); - Future lspId({dynamic hint}); + Future crateBindingLspId({dynamic hint}); - Future lspInfo({dynamic hint}); + Future crateBindingLspInfo({dynamic hint}); - Future maxReverseSwapAmount({dynamic hint}); + Future crateBindingMaxReverseSwapAmount({dynamic hint}); - Future mnemonicToSeed({required String phrase, dynamic hint}); + Future crateBindingMnemonicToSeed({required String phrase, dynamic hint}); - Future nodeCredentials({dynamic hint}); + Future crateBindingNodeCredentials({dynamic hint}); - Future nodeInfo({dynamic hint}); + Future crateBindingNodeInfo({dynamic hint}); - Future onchainPaymentLimits({dynamic hint}); + Future crateBindingOnchainPaymentLimits({dynamic hint}); - Future openChannelFee({required OpenChannelFeeRequest req, dynamic hint}); + Future crateBindingOpenChannelFee( + {required OpenChannelFeeRequest req, dynamic hint}); - Future parseInput({required String input, dynamic hint}); + Future crateBindingParseInput({required String input, dynamic hint}); - Future parseInvoice({required String invoice, dynamic hint}); + Future crateBindingParseInvoice({required String invoice, dynamic hint}); - Future payOnchain({required PayOnchainRequest req, dynamic hint}); + Future crateBindingPayOnchain({required PayOnchainRequest req, dynamic hint}); - Future paymentByHash({required String hash, dynamic hint}); + Future crateBindingPaymentByHash({required String hash, dynamic hint}); - Future prepareOnchainPayment( + Future crateBindingPrepareOnchainPayment( {required PrepareOnchainPaymentRequest req, dynamic hint}); - Future prepareRedeemOnchainFunds( + Future crateBindingPrepareRedeemOnchainFunds( {required PrepareRedeemOnchainFundsRequest req, dynamic hint}); - Future prepareRefund({required PrepareRefundRequest req, dynamic hint}); + Future crateBindingPrepareRefund({required PrepareRefundRequest req, dynamic hint}); - Future receiveOnchain({required ReceiveOnchainRequest req, dynamic hint}); + Future crateBindingReceiveOnchain({required ReceiveOnchainRequest req, dynamic hint}); - Future receivePayment({required ReceivePaymentRequest req, dynamic hint}); + Future crateBindingReceivePayment( + {required ReceivePaymentRequest req, dynamic hint}); - Future recommendedFees({dynamic hint}); + Future crateBindingRecommendedFees({dynamic hint}); - Future redeemOnchainFunds( + Future crateBindingRedeemOnchainFunds( {required RedeemOnchainFundsRequest req, dynamic hint}); - Future redeemSwap({required String swapAddress, dynamic hint}); + Future crateBindingRedeemSwap({required String swapAddress, dynamic hint}); - Future refund({required RefundRequest req, dynamic hint}); + Future crateBindingRefund({required RefundRequest req, dynamic hint}); - Future registerWebhook({required String webhookUrl, dynamic hint}); + Future crateBindingRegisterWebhook({required String webhookUrl, dynamic hint}); - Future reportIssue({required ReportIssueRequest req, dynamic hint}); + Future crateBindingReportIssue({required ReportIssueRequest req, dynamic hint}); - Future rescanSwaps({dynamic hint}); + Future crateBindingRescanSwaps({dynamic hint}); - Future sendOnchain({required SendOnchainRequest req, dynamic hint}); + Future crateBindingSendOnchain({required SendOnchainRequest req, dynamic hint}); - Future sendPayment({required SendPaymentRequest req, dynamic hint}); + Future crateBindingSendPayment({required SendPaymentRequest req, dynamic hint}); - Future sendSpontaneousPayment( + Future crateBindingSendSpontaneousPayment( {required SendSpontaneousPaymentRequest req, dynamic hint}); - Future serviceHealthCheck({required String apiKey, dynamic hint}); + Future crateBindingServiceHealthCheck({required String apiKey, dynamic hint}); - Future setPaymentMetadata({required String hash, required String metadata, dynamic hint}); + Future crateBindingSetPaymentMetadata({required String hash, required String metadata, dynamic hint}); - Future signMessage({required SignMessageRequest req, dynamic hint}); + Future crateBindingSignMessage({required SignMessageRequest req, dynamic hint}); - Future staticBackup({required StaticBackupRequest req, dynamic hint}); + Future crateBindingStaticBackup({required StaticBackupRequest req, dynamic hint}); - Future sync({dynamic hint}); + Future crateBindingSync({dynamic hint}); - Future unregisterWebhook({required String webhookUrl, dynamic hint}); + Future crateBindingUnregisterWebhook({required String webhookUrl, dynamic hint}); } class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements BreezSdkBindingsApi { @@ -211,62 +214,62 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements }); @override - Future backup({dynamic hint}) { + Future crateBindingBackup({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_backup(port_); + return wire.wire__crate__binding__backup(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kBackupConstMeta, + constMeta: kCrateBindingBackupConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kBackupConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingBackupConstMeta => const TaskConstMeta( debugName: "backup", argNames: [], ); @override - Future backupStatus({dynamic hint}) { + Future crateBindingBackupStatus({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_backup_status(port_); + return wire.wire__crate__binding__backup_status(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_backup_status, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kBackupStatusConstMeta, + constMeta: kCrateBindingBackupStatusConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kBackupStatusConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingBackupStatusConstMeta => const TaskConstMeta( debugName: "backup_status", argNames: [], ); @override - Stream breezEventsStream({dynamic hint}) { + Stream crateBindingBreezEventsStream({dynamic hint}) { final s = RustStreamSink(); unawaited(handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_StreamSink_breez_event_Dco(s); - return wire.wire_breez_events_stream(port_, arg0); + return wire.wire__crate__binding__breez_events_stream(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kBreezEventsStreamConstMeta, + constMeta: kCrateBindingBreezEventsStreamConstMeta, argValues: [s], apiImpl: this, hint: hint, @@ -274,24 +277,24 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements return s.stream; } - TaskConstMeta get kBreezEventsStreamConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingBreezEventsStreamConstMeta => const TaskConstMeta( debugName: "breez_events_stream", argNames: ["s"], ); @override - Stream breezLogStream({dynamic hint}) { + Stream crateBindingBreezLogStream({dynamic hint}) { final s = RustStreamSink(); unawaited(handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_StreamSink_log_entry_Dco(s); - return wire.wire_breez_log_stream(port_, arg0); + return wire.wire__crate__binding__breez_log_stream(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kBreezLogStreamConstMeta, + constMeta: kCrateBindingBreezLogStreamConstMeta, argValues: [s], apiImpl: this, hint: hint, @@ -299,150 +302,150 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements return s.stream; } - TaskConstMeta get kBreezLogStreamConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingBreezLogStreamConstMeta => const TaskConstMeta( debugName: "breez_log_stream", argNames: ["s"], ); @override - Future buyBitcoin({required BuyBitcoinRequest req, dynamic hint}) { + Future crateBindingBuyBitcoin({required BuyBitcoinRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_buy_bitcoin_request(req); - return wire.wire_buy_bitcoin(port_, arg0); + return wire.wire__crate__binding__buy_bitcoin(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_buy_bitcoin_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kBuyBitcoinConstMeta, + constMeta: kCrateBindingBuyBitcoinConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kBuyBitcoinConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingBuyBitcoinConstMeta => const TaskConstMeta( debugName: "buy_bitcoin", argNames: ["req"], ); @override - Future checkMessage({required CheckMessageRequest req, dynamic hint}) { + Future crateBindingCheckMessage({required CheckMessageRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_check_message_request(req); - return wire.wire_check_message(port_, arg0); + return wire.wire__crate__binding__check_message(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_check_message_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kCheckMessageConstMeta, + constMeta: kCrateBindingCheckMessageConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kCheckMessageConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingCheckMessageConstMeta => const TaskConstMeta( debugName: "check_message", argNames: ["req"], ); @override - Future closeLspChannels({dynamic hint}) { + Future crateBindingCloseLspChannels({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_close_lsp_channels(port_); + return wire.wire__crate__binding__close_lsp_channels(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kCloseLspChannelsConstMeta, + constMeta: kCrateBindingCloseLspChannelsConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kCloseLspChannelsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingCloseLspChannelsConstMeta => const TaskConstMeta( debugName: "close_lsp_channels", argNames: [], ); @override - Future configureNode({required ConfigureNodeRequest req, dynamic hint}) { + Future crateBindingConfigureNode({required ConfigureNodeRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_configure_node_request(req); - return wire.wire_configure_node(port_, arg0); + return wire.wire__crate__binding__configure_node(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kConfigureNodeConstMeta, + constMeta: kCrateBindingConfigureNodeConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kConfigureNodeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingConfigureNodeConstMeta => const TaskConstMeta( debugName: "configure_node", argNames: ["req"], ); @override - Future connect({required ConnectRequest req, dynamic hint}) { + Future crateBindingConnect({required ConnectRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_connect_request(req); - return wire.wire_connect(port_, arg0); + return wire.wire__crate__binding__connect(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kConnectConstMeta, + constMeta: kCrateBindingConnectConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kConnectConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingConnectConstMeta => const TaskConstMeta( debugName: "connect", argNames: ["req"], ); @override - Future connectLsp({required String lspId, dynamic hint}) { + Future crateBindingConnectLsp({required String lspId, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(lspId); - return wire.wire_connect_lsp(port_, arg0); + return wire.wire__crate__binding__connect_lsp(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kConnectLspConstMeta, + constMeta: kCrateBindingConnectLspConstMeta, argValues: [lspId], apiImpl: this, hint: hint, )); } - TaskConstMeta get kConnectLspConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingConnectLspConstMeta => const TaskConstMeta( debugName: "connect_lsp", argNames: ["lspId"], ); @override - Future defaultConfig( + Future crateBindingDefaultConfig( {required EnvironmentType envType, required String apiKey, required NodeConfig nodeConfig, @@ -452,1156 +455,1160 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements var arg0 = cst_encode_environment_type(envType); var arg1 = cst_encode_String(apiKey); var arg2 = cst_encode_box_autoadd_node_config(nodeConfig); - return wire.wire_default_config(port_, arg0, arg1, arg2); + return wire.wire__crate__binding__default_config(port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_config, decodeErrorData: null, ), - constMeta: kDefaultConfigConstMeta, + constMeta: kCrateBindingDefaultConfigConstMeta, argValues: [envType, apiKey, nodeConfig], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDefaultConfigConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingDefaultConfigConstMeta => const TaskConstMeta( debugName: "default_config", argNames: ["envType", "apiKey", "nodeConfig"], ); @override - Future disconnect({dynamic hint}) { + Future crateBindingDisconnect({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_disconnect(port_); + return wire.wire__crate__binding__disconnect(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kDisconnectConstMeta, + constMeta: kCrateBindingDisconnectConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kDisconnectConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingDisconnectConstMeta => const TaskConstMeta( debugName: "disconnect", argNames: [], ); @override - Future executeCommand({required String command, dynamic hint}) { + Future crateBindingExecuteCommand({required String command, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(command); - return wire.wire_execute_command(port_, arg0); + return wire.wire__crate__binding__execute_command(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kExecuteCommandConstMeta, + constMeta: kCrateBindingExecuteCommandConstMeta, argValues: [command], apiImpl: this, hint: hint, )); } - TaskConstMeta get kExecuteCommandConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingExecuteCommandConstMeta => const TaskConstMeta( debugName: "execute_command", argNames: ["command"], ); @override - Future> fetchFiatRates({dynamic hint}) { + Future> crateBindingFetchFiatRates({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_fetch_fiat_rates(port_); + return wire.wire__crate__binding__fetch_fiat_rates(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_rate, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kFetchFiatRatesConstMeta, + constMeta: kCrateBindingFetchFiatRatesConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kFetchFiatRatesConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingFetchFiatRatesConstMeta => const TaskConstMeta( debugName: "fetch_fiat_rates", argNames: [], ); @override - Future fetchLspInfo({required String id, dynamic hint}) { + Future crateBindingFetchLspInfo({required String id, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(id); - return wire.wire_fetch_lsp_info(port_, arg0); + return wire.wire__crate__binding__fetch_lsp_info(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_lsp_information, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kFetchLspInfoConstMeta, + constMeta: kCrateBindingFetchLspInfoConstMeta, argValues: [id], apiImpl: this, hint: hint, )); } - TaskConstMeta get kFetchLspInfoConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingFetchLspInfoConstMeta => const TaskConstMeta( debugName: "fetch_lsp_info", argNames: ["id"], ); @override - Future fetchReverseSwapFees({required ReverseSwapFeesRequest req, dynamic hint}) { + Future crateBindingFetchReverseSwapFees( + {required ReverseSwapFeesRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_reverse_swap_fees_request(req); - return wire.wire_fetch_reverse_swap_fees(port_, arg0); + return wire.wire__crate__binding__fetch_reverse_swap_fees(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_reverse_swap_pair_info, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kFetchReverseSwapFeesConstMeta, + constMeta: kCrateBindingFetchReverseSwapFeesConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kFetchReverseSwapFeesConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingFetchReverseSwapFeesConstMeta => const TaskConstMeta( debugName: "fetch_reverse_swap_fees", argNames: ["req"], ); @override - Future generateDiagnosticData({dynamic hint}) { + Future crateBindingGenerateDiagnosticData({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_generate_diagnostic_data(port_); + return wire.wire__crate__binding__generate_diagnostic_data(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kGenerateDiagnosticDataConstMeta, + constMeta: kCrateBindingGenerateDiagnosticDataConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kGenerateDiagnosticDataConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingGenerateDiagnosticDataConstMeta => const TaskConstMeta( debugName: "generate_diagnostic_data", argNames: [], ); @override - Future> inProgressOnchainPayments({dynamic hint}) { + Future> crateBindingInProgressOnchainPayments({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_in_progress_onchain_payments(port_); + return wire.wire__crate__binding__in_progress_onchain_payments(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_reverse_swap_info, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kInProgressOnchainPaymentsConstMeta, + constMeta: kCrateBindingInProgressOnchainPaymentsConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kInProgressOnchainPaymentsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingInProgressOnchainPaymentsConstMeta => const TaskConstMeta( debugName: "in_progress_onchain_payments", argNames: [], ); @override - Future> inProgressReverseSwaps({dynamic hint}) { + Future> crateBindingInProgressReverseSwaps({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_in_progress_reverse_swaps(port_); + return wire.wire__crate__binding__in_progress_reverse_swaps(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_reverse_swap_info, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kInProgressReverseSwapsConstMeta, + constMeta: kCrateBindingInProgressReverseSwapsConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kInProgressReverseSwapsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingInProgressReverseSwapsConstMeta => const TaskConstMeta( debugName: "in_progress_reverse_swaps", argNames: [], ); @override - Future inProgressSwap({dynamic hint}) { + Future crateBindingInProgressSwap({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_in_progress_swap(port_); + return wire.wire__crate__binding__in_progress_swap(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_swap_info, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kInProgressSwapConstMeta, + constMeta: kCrateBindingInProgressSwapConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kInProgressSwapConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingInProgressSwapConstMeta => const TaskConstMeta( debugName: "in_progress_swap", argNames: [], ); @override - Future isInitialized({dynamic hint}) { + Future crateBindingIsInitialized({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_is_initialized(port_); + return wire.wire__crate__binding__is_initialized(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: null, ), - constMeta: kIsInitializedConstMeta, + constMeta: kCrateBindingIsInitializedConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kIsInitializedConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingIsInitializedConstMeta => const TaskConstMeta( debugName: "is_initialized", argNames: [], ); @override - Future> listFiatCurrencies({dynamic hint}) { + Future> crateBindingListFiatCurrencies({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_list_fiat_currencies(port_); + return wire.wire__crate__binding__list_fiat_currencies(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_fiat_currency, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kListFiatCurrenciesConstMeta, + constMeta: kCrateBindingListFiatCurrenciesConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kListFiatCurrenciesConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingListFiatCurrenciesConstMeta => const TaskConstMeta( debugName: "list_fiat_currencies", argNames: [], ); @override - Future> listLsps({dynamic hint}) { + Future> crateBindingListLsps({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_list_lsps(port_); + return wire.wire__crate__binding__list_lsps(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_lsp_information, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kListLspsConstMeta, + constMeta: kCrateBindingListLspsConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kListLspsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingListLspsConstMeta => const TaskConstMeta( debugName: "list_lsps", argNames: [], ); @override - Future> listPayments({required ListPaymentsRequest req, dynamic hint}) { + Future> crateBindingListPayments({required ListPaymentsRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_list_payments_request(req); - return wire.wire_list_payments(port_, arg0); + return wire.wire__crate__binding__list_payments(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_payment, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kListPaymentsConstMeta, + constMeta: kCrateBindingListPaymentsConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kListPaymentsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingListPaymentsConstMeta => const TaskConstMeta( debugName: "list_payments", argNames: ["req"], ); @override - Future> listRefundables({dynamic hint}) { + Future> crateBindingListRefundables({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_list_refundables(port_); + return wire.wire__crate__binding__list_refundables(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_swap_info, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kListRefundablesConstMeta, + constMeta: kCrateBindingListRefundablesConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kListRefundablesConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingListRefundablesConstMeta => const TaskConstMeta( debugName: "list_refundables", argNames: [], ); @override - Future lnurlAuth({required LnUrlAuthRequestData reqData, dynamic hint}) { + Future crateBindingLnurlAuth({required LnUrlAuthRequestData reqData, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_ln_url_auth_request_data(reqData); - return wire.wire_lnurl_auth(port_, arg0); + return wire.wire__crate__binding__lnurl_auth(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_ln_url_callback_status, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kLnurlAuthConstMeta, + constMeta: kCrateBindingLnurlAuthConstMeta, argValues: [reqData], apiImpl: this, hint: hint, )); } - TaskConstMeta get kLnurlAuthConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingLnurlAuthConstMeta => const TaskConstMeta( debugName: "lnurl_auth", argNames: ["reqData"], ); @override - Future lnurlPay({required LnUrlPayRequest req, dynamic hint}) { + Future crateBindingLnurlPay({required LnUrlPayRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_ln_url_pay_request(req); - return wire.wire_lnurl_pay(port_, arg0); + return wire.wire__crate__binding__lnurl_pay(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_ln_url_pay_result, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kLnurlPayConstMeta, + constMeta: kCrateBindingLnurlPayConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kLnurlPayConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingLnurlPayConstMeta => const TaskConstMeta( debugName: "lnurl_pay", argNames: ["req"], ); @override - Future lnurlWithdraw({required LnUrlWithdrawRequest req, dynamic hint}) { + Future crateBindingLnurlWithdraw({required LnUrlWithdrawRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_ln_url_withdraw_request(req); - return wire.wire_lnurl_withdraw(port_, arg0); + return wire.wire__crate__binding__lnurl_withdraw(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_ln_url_withdraw_result, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kLnurlWithdrawConstMeta, + constMeta: kCrateBindingLnurlWithdrawConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kLnurlWithdrawConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingLnurlWithdrawConstMeta => const TaskConstMeta( debugName: "lnurl_withdraw", argNames: ["req"], ); @override - Future lspId({dynamic hint}) { + Future crateBindingLspId({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_lsp_id(port_); + return wire.wire__crate__binding__lsp_id(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_String, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kLspIdConstMeta, + constMeta: kCrateBindingLspIdConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kLspIdConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingLspIdConstMeta => const TaskConstMeta( debugName: "lsp_id", argNames: [], ); @override - Future lspInfo({dynamic hint}) { + Future crateBindingLspInfo({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_lsp_info(port_); + return wire.wire__crate__binding__lsp_info(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_lsp_information, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kLspInfoConstMeta, + constMeta: kCrateBindingLspInfoConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kLspInfoConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingLspInfoConstMeta => const TaskConstMeta( debugName: "lsp_info", argNames: [], ); @override - Future maxReverseSwapAmount({dynamic hint}) { + Future crateBindingMaxReverseSwapAmount({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_max_reverse_swap_amount(port_); + return wire.wire__crate__binding__max_reverse_swap_amount(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_max_reverse_swap_amount_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kMaxReverseSwapAmountConstMeta, + constMeta: kCrateBindingMaxReverseSwapAmountConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kMaxReverseSwapAmountConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingMaxReverseSwapAmountConstMeta => const TaskConstMeta( debugName: "max_reverse_swap_amount", argNames: [], ); @override - Future mnemonicToSeed({required String phrase, dynamic hint}) { + Future crateBindingMnemonicToSeed({required String phrase, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(phrase); - return wire.wire_mnemonic_to_seed(port_, arg0); + return wire.wire__crate__binding__mnemonic_to_seed(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_8_strict, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kMnemonicToSeedConstMeta, + constMeta: kCrateBindingMnemonicToSeedConstMeta, argValues: [phrase], apiImpl: this, hint: hint, )); } - TaskConstMeta get kMnemonicToSeedConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingMnemonicToSeedConstMeta => const TaskConstMeta( debugName: "mnemonic_to_seed", argNames: ["phrase"], ); @override - Future nodeCredentials({dynamic hint}) { + Future crateBindingNodeCredentials({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_node_credentials(port_); + return wire.wire__crate__binding__node_credentials(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_node_credentials, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kNodeCredentialsConstMeta, + constMeta: kCrateBindingNodeCredentialsConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kNodeCredentialsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingNodeCredentialsConstMeta => const TaskConstMeta( debugName: "node_credentials", argNames: [], ); @override - Future nodeInfo({dynamic hint}) { + Future crateBindingNodeInfo({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_node_info(port_); + return wire.wire__crate__binding__node_info(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_node_state, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kNodeInfoConstMeta, + constMeta: kCrateBindingNodeInfoConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kNodeInfoConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingNodeInfoConstMeta => const TaskConstMeta( debugName: "node_info", argNames: [], ); @override - Future onchainPaymentLimits({dynamic hint}) { + Future crateBindingOnchainPaymentLimits({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_onchain_payment_limits(port_); + return wire.wire__crate__binding__onchain_payment_limits(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_onchain_payment_limits_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kOnchainPaymentLimitsConstMeta, + constMeta: kCrateBindingOnchainPaymentLimitsConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kOnchainPaymentLimitsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingOnchainPaymentLimitsConstMeta => const TaskConstMeta( debugName: "onchain_payment_limits", argNames: [], ); @override - Future openChannelFee({required OpenChannelFeeRequest req, dynamic hint}) { + Future crateBindingOpenChannelFee( + {required OpenChannelFeeRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_open_channel_fee_request(req); - return wire.wire_open_channel_fee(port_, arg0); + return wire.wire__crate__binding__open_channel_fee(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_open_channel_fee_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kOpenChannelFeeConstMeta, + constMeta: kCrateBindingOpenChannelFeeConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kOpenChannelFeeConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingOpenChannelFeeConstMeta => const TaskConstMeta( debugName: "open_channel_fee", argNames: ["req"], ); @override - Future parseInput({required String input, dynamic hint}) { + Future crateBindingParseInput({required String input, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(input); - return wire.wire_parse_input(port_, arg0); + return wire.wire__crate__binding__parse_input(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_input_type, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kParseInputConstMeta, + constMeta: kCrateBindingParseInputConstMeta, argValues: [input], apiImpl: this, hint: hint, )); } - TaskConstMeta get kParseInputConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingParseInputConstMeta => const TaskConstMeta( debugName: "parse_input", argNames: ["input"], ); @override - Future parseInvoice({required String invoice, dynamic hint}) { + Future crateBindingParseInvoice({required String invoice, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(invoice); - return wire.wire_parse_invoice(port_, arg0); + return wire.wire__crate__binding__parse_invoice(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_ln_invoice, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kParseInvoiceConstMeta, + constMeta: kCrateBindingParseInvoiceConstMeta, argValues: [invoice], apiImpl: this, hint: hint, )); } - TaskConstMeta get kParseInvoiceConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingParseInvoiceConstMeta => const TaskConstMeta( debugName: "parse_invoice", argNames: ["invoice"], ); @override - Future payOnchain({required PayOnchainRequest req, dynamic hint}) { + Future crateBindingPayOnchain({required PayOnchainRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_pay_onchain_request(req); - return wire.wire_pay_onchain(port_, arg0); + return wire.wire__crate__binding__pay_onchain(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_pay_onchain_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kPayOnchainConstMeta, + constMeta: kCrateBindingPayOnchainConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPayOnchainConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingPayOnchainConstMeta => const TaskConstMeta( debugName: "pay_onchain", argNames: ["req"], ); @override - Future paymentByHash({required String hash, dynamic hint}) { + Future crateBindingPaymentByHash({required String hash, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(hash); - return wire.wire_payment_by_hash(port_, arg0); + return wire.wire__crate__binding__payment_by_hash(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_payment, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kPaymentByHashConstMeta, + constMeta: kCrateBindingPaymentByHashConstMeta, argValues: [hash], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPaymentByHashConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingPaymentByHashConstMeta => const TaskConstMeta( debugName: "payment_by_hash", argNames: ["hash"], ); @override - Future prepareOnchainPayment( + Future crateBindingPrepareOnchainPayment( {required PrepareOnchainPaymentRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_prepare_onchain_payment_request(req); - return wire.wire_prepare_onchain_payment(port_, arg0); + return wire.wire__crate__binding__prepare_onchain_payment(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_prepare_onchain_payment_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kPrepareOnchainPaymentConstMeta, + constMeta: kCrateBindingPrepareOnchainPaymentConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPrepareOnchainPaymentConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingPrepareOnchainPaymentConstMeta => const TaskConstMeta( debugName: "prepare_onchain_payment", argNames: ["req"], ); @override - Future prepareRedeemOnchainFunds( + Future crateBindingPrepareRedeemOnchainFunds( {required PrepareRedeemOnchainFundsRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_prepare_redeem_onchain_funds_request(req); - return wire.wire_prepare_redeem_onchain_funds(port_, arg0); + return wire.wire__crate__binding__prepare_redeem_onchain_funds(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_prepare_redeem_onchain_funds_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kPrepareRedeemOnchainFundsConstMeta, + constMeta: kCrateBindingPrepareRedeemOnchainFundsConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPrepareRedeemOnchainFundsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingPrepareRedeemOnchainFundsConstMeta => const TaskConstMeta( debugName: "prepare_redeem_onchain_funds", argNames: ["req"], ); @override - Future prepareRefund({required PrepareRefundRequest req, dynamic hint}) { + Future crateBindingPrepareRefund({required PrepareRefundRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_prepare_refund_request(req); - return wire.wire_prepare_refund(port_, arg0); + return wire.wire__crate__binding__prepare_refund(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_prepare_refund_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kPrepareRefundConstMeta, + constMeta: kCrateBindingPrepareRefundConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kPrepareRefundConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingPrepareRefundConstMeta => const TaskConstMeta( debugName: "prepare_refund", argNames: ["req"], ); @override - Future receiveOnchain({required ReceiveOnchainRequest req, dynamic hint}) { + Future crateBindingReceiveOnchain({required ReceiveOnchainRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_receive_onchain_request(req); - return wire.wire_receive_onchain(port_, arg0); + return wire.wire__crate__binding__receive_onchain(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_swap_info, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kReceiveOnchainConstMeta, + constMeta: kCrateBindingReceiveOnchainConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kReceiveOnchainConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingReceiveOnchainConstMeta => const TaskConstMeta( debugName: "receive_onchain", argNames: ["req"], ); @override - Future receivePayment({required ReceivePaymentRequest req, dynamic hint}) { + Future crateBindingReceivePayment( + {required ReceivePaymentRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_receive_payment_request(req); - return wire.wire_receive_payment(port_, arg0); + return wire.wire__crate__binding__receive_payment(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_receive_payment_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kReceivePaymentConstMeta, + constMeta: kCrateBindingReceivePaymentConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kReceivePaymentConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingReceivePaymentConstMeta => const TaskConstMeta( debugName: "receive_payment", argNames: ["req"], ); @override - Future recommendedFees({dynamic hint}) { + Future crateBindingRecommendedFees({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_recommended_fees(port_); + return wire.wire__crate__binding__recommended_fees(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_recommended_fees, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kRecommendedFeesConstMeta, + constMeta: kCrateBindingRecommendedFeesConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRecommendedFeesConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingRecommendedFeesConstMeta => const TaskConstMeta( debugName: "recommended_fees", argNames: [], ); @override - Future redeemOnchainFunds( + Future crateBindingRedeemOnchainFunds( {required RedeemOnchainFundsRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_redeem_onchain_funds_request(req); - return wire.wire_redeem_onchain_funds(port_, arg0); + return wire.wire__crate__binding__redeem_onchain_funds(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_redeem_onchain_funds_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kRedeemOnchainFundsConstMeta, + constMeta: kCrateBindingRedeemOnchainFundsConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRedeemOnchainFundsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingRedeemOnchainFundsConstMeta => const TaskConstMeta( debugName: "redeem_onchain_funds", argNames: ["req"], ); @override - Future redeemSwap({required String swapAddress, dynamic hint}) { + Future crateBindingRedeemSwap({required String swapAddress, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(swapAddress); - return wire.wire_redeem_swap(port_, arg0); + return wire.wire__crate__binding__redeem_swap(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kRedeemSwapConstMeta, + constMeta: kCrateBindingRedeemSwapConstMeta, argValues: [swapAddress], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRedeemSwapConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingRedeemSwapConstMeta => const TaskConstMeta( debugName: "redeem_swap", argNames: ["swapAddress"], ); @override - Future refund({required RefundRequest req, dynamic hint}) { + Future crateBindingRefund({required RefundRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_refund_request(req); - return wire.wire_refund(port_, arg0); + return wire.wire__crate__binding__refund(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_refund_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kRefundConstMeta, + constMeta: kCrateBindingRefundConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRefundConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingRefundConstMeta => const TaskConstMeta( debugName: "refund", argNames: ["req"], ); @override - Future registerWebhook({required String webhookUrl, dynamic hint}) { + Future crateBindingRegisterWebhook({required String webhookUrl, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(webhookUrl); - return wire.wire_register_webhook(port_, arg0); + return wire.wire__crate__binding__register_webhook(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kRegisterWebhookConstMeta, + constMeta: kCrateBindingRegisterWebhookConstMeta, argValues: [webhookUrl], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRegisterWebhookConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingRegisterWebhookConstMeta => const TaskConstMeta( debugName: "register_webhook", argNames: ["webhookUrl"], ); @override - Future reportIssue({required ReportIssueRequest req, dynamic hint}) { + Future crateBindingReportIssue({required ReportIssueRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_report_issue_request(req); - return wire.wire_report_issue(port_, arg0); + return wire.wire__crate__binding__report_issue(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kReportIssueConstMeta, + constMeta: kCrateBindingReportIssueConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kReportIssueConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingReportIssueConstMeta => const TaskConstMeta( debugName: "report_issue", argNames: ["req"], ); @override - Future rescanSwaps({dynamic hint}) { + Future crateBindingRescanSwaps({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_rescan_swaps(port_); + return wire.wire__crate__binding__rescan_swaps(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kRescanSwapsConstMeta, + constMeta: kCrateBindingRescanSwapsConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRescanSwapsConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingRescanSwapsConstMeta => const TaskConstMeta( debugName: "rescan_swaps", argNames: [], ); @override - Future sendOnchain({required SendOnchainRequest req, dynamic hint}) { + Future crateBindingSendOnchain({required SendOnchainRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_send_onchain_request(req); - return wire.wire_send_onchain(port_, arg0); + return wire.wire__crate__binding__send_onchain(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_send_onchain_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSendOnchainConstMeta, + constMeta: kCrateBindingSendOnchainConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kSendOnchainConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingSendOnchainConstMeta => const TaskConstMeta( debugName: "send_onchain", argNames: ["req"], ); @override - Future sendPayment({required SendPaymentRequest req, dynamic hint}) { + Future crateBindingSendPayment({required SendPaymentRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_send_payment_request(req); - return wire.wire_send_payment(port_, arg0); + return wire.wire__crate__binding__send_payment(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_send_payment_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSendPaymentConstMeta, + constMeta: kCrateBindingSendPaymentConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kSendPaymentConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingSendPaymentConstMeta => const TaskConstMeta( debugName: "send_payment", argNames: ["req"], ); @override - Future sendSpontaneousPayment( + Future crateBindingSendSpontaneousPayment( {required SendSpontaneousPaymentRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_send_spontaneous_payment_request(req); - return wire.wire_send_spontaneous_payment(port_, arg0); + return wire.wire__crate__binding__send_spontaneous_payment(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_send_payment_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSendSpontaneousPaymentConstMeta, + constMeta: kCrateBindingSendSpontaneousPaymentConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kSendSpontaneousPaymentConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingSendSpontaneousPaymentConstMeta => const TaskConstMeta( debugName: "send_spontaneous_payment", argNames: ["req"], ); @override - Future serviceHealthCheck({required String apiKey, dynamic hint}) { + Future crateBindingServiceHealthCheck({required String apiKey, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(apiKey); - return wire.wire_service_health_check(port_, arg0); + return wire.wire__crate__binding__service_health_check(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_service_health_check_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kServiceHealthCheckConstMeta, + constMeta: kCrateBindingServiceHealthCheckConstMeta, argValues: [apiKey], apiImpl: this, hint: hint, )); } - TaskConstMeta get kServiceHealthCheckConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingServiceHealthCheckConstMeta => const TaskConstMeta( debugName: "service_health_check", argNames: ["apiKey"], ); @override - Future setPaymentMetadata({required String hash, required String metadata, dynamic hint}) { + Future crateBindingSetPaymentMetadata( + {required String hash, required String metadata, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(hash); var arg1 = cst_encode_String(metadata); - return wire.wire_set_payment_metadata(port_, arg0, arg1); + return wire.wire__crate__binding__set_payment_metadata(port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSetPaymentMetadataConstMeta, + constMeta: kCrateBindingSetPaymentMetadataConstMeta, argValues: [hash, metadata], apiImpl: this, hint: hint, )); } - TaskConstMeta get kSetPaymentMetadataConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingSetPaymentMetadataConstMeta => const TaskConstMeta( debugName: "set_payment_metadata", argNames: ["hash", "metadata"], ); @override - Future signMessage({required SignMessageRequest req, dynamic hint}) { + Future crateBindingSignMessage({required SignMessageRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_sign_message_request(req); - return wire.wire_sign_message(port_, arg0); + return wire.wire__crate__binding__sign_message(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_sign_message_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSignMessageConstMeta, + constMeta: kCrateBindingSignMessageConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kSignMessageConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingSignMessageConstMeta => const TaskConstMeta( debugName: "sign_message", argNames: ["req"], ); @override - Future staticBackup({required StaticBackupRequest req, dynamic hint}) { + Future crateBindingStaticBackup({required StaticBackupRequest req, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_box_autoadd_static_backup_request(req); - return wire.wire_static_backup(port_, arg0); + return wire.wire__crate__binding__static_backup(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_static_backup_response, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kStaticBackupConstMeta, + constMeta: kCrateBindingStaticBackupConstMeta, argValues: [req], apiImpl: this, hint: hint, )); } - TaskConstMeta get kStaticBackupConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingStaticBackupConstMeta => const TaskConstMeta( debugName: "static_backup", argNames: ["req"], ); @override - Future sync({dynamic hint}) { + Future crateBindingSync({dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_sync(port_); + return wire.wire__crate__binding__sync(port_); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kSyncConstMeta, + constMeta: kCrateBindingSyncConstMeta, argValues: [], apiImpl: this, hint: hint, )); } - TaskConstMeta get kSyncConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingSyncConstMeta => const TaskConstMeta( debugName: "sync", argNames: [], ); @override - Future unregisterWebhook({required String webhookUrl, dynamic hint}) { + Future crateBindingUnregisterWebhook({required String webhookUrl, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(webhookUrl); - return wire.wire_unregister_webhook(port_, arg0); + return wire.wire__crate__binding__unregister_webhook(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_AnyhowException, ), - constMeta: kUnregisterWebhookConstMeta, + constMeta: kCrateBindingUnregisterWebhookConstMeta, argValues: [webhookUrl], apiImpl: this, hint: hint, )); } - TaskConstMeta get kUnregisterWebhookConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateBindingUnregisterWebhookConstMeta => const TaskConstMeta( debugName: "unregister_webhook", argNames: ["webhookUrl"], ); @@ -1772,7 +1779,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int dco_decode_box_autoadd_i_64(dynamic raw) { + PlatformInt64 dco_decode_box_autoadd_i_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return dco_decode_i_64(raw); } @@ -2030,7 +2037,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int dco_decode_box_autoadd_u_64(dynamic raw) { + BigInt dco_decode_box_autoadd_u_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return dco_decode_u_64(raw); } @@ -2265,9 +2272,9 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int dco_decode_i_64(dynamic raw) { + PlatformInt64 dco_decode_i_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dcoDecodeI64OrU64(raw); + return dcoDecodeI64(raw); } @protected @@ -2867,7 +2874,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int? dco_decode_opt_box_autoadd_i_64(dynamic raw) { + PlatformInt64? dco_decode_opt_box_autoadd_i_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return raw == null ? null : dco_decode_box_autoadd_i_64(raw); } @@ -2933,7 +2940,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int? dco_decode_opt_box_autoadd_u_64(dynamic raw) { + BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return raw == null ? null : dco_decode_box_autoadd_u_64(raw); } @@ -3556,9 +3563,9 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int dco_decode_u_64(dynamic raw) { + BigInt dco_decode_u_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dcoDecodeI64OrU64(raw); + return dcoDecodeU64(raw); } @protected @@ -3762,7 +3769,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int sse_decode_box_autoadd_i_64(SseDeserializer deserializer) { + PlatformInt64 sse_decode_box_autoadd_i_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_i_64(deserializer)); } @@ -4025,7 +4032,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer) { + BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_u_64(deserializer)); } @@ -4246,9 +4253,9 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int sse_decode_i_64(SseDeserializer deserializer) { + PlatformInt64 sse_decode_i_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getInt64(); + return deserializer.buffer.getPlatformInt64(); } @protected @@ -4958,7 +4965,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int? sse_decode_opt_box_autoadd_i_64(SseDeserializer deserializer) { + PlatformInt64? sse_decode_opt_box_autoadd_i_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { @@ -5079,7 +5086,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer) { + BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { @@ -5718,9 +5725,9 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - int sse_decode_u_64(SseDeserializer deserializer) { + BigInt sse_decode_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint64(); + return deserializer.buffer.getBigUint64(); } @protected @@ -5869,7 +5876,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements @protected void sse_encode_AnyhowException(AnyhowException self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - throw UnimplementedError('Unreachable ()'); + sse_encode_String(self.message, serializer); } @protected @@ -6022,7 +6029,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - void sse_encode_box_autoadd_i_64(int self, SseSerializer serializer) { + void sse_encode_box_autoadd_i_64(PlatformInt64 self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_i_64(self, serializer); } @@ -6290,7 +6297,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer) { + void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_u_64(self, serializer); } @@ -6469,9 +6476,9 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - void sse_encode_i_64(int self, SseSerializer serializer) { + void sse_encode_i_64(PlatformInt64 self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putInt64(self); + serializer.buffer.putPlatformInt64(self); } @protected @@ -7004,7 +7011,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - void sse_encode_opt_box_autoadd_i_64(int? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_i_64(PlatformInt64? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); @@ -7115,7 +7122,7 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); @@ -7611,9 +7618,9 @@ class BreezSdkBindingsApiImpl extends BreezSdkBindingsApiImplPlatform implements } @protected - void sse_encode_u_64(int self, SseSerializer serializer) { + void sse_encode_u_64(BigInt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putUint64(self); + serializer.buffer.putBigUint64(self); } @protected diff --git a/libs/sdk-flutter/lib/generated/frb_generated.io.dart b/libs/sdk-flutter/lib/generated/frb_generated.io.dart index 7b647b3de..be68d2c73 100644 --- a/libs/sdk-flutter/lib/generated/frb_generated.io.dart +++ b/libs/sdk-flutter/lib/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-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // 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 @@ -93,7 +93,7 @@ abstract class BreezSdkBindingsApiImplPlatform extends BaseApiImpl? dco_decode_opt_list_String(dynamic raw); @@ -651,7 +651,7 @@ abstract class BreezSdkBindingsApiImplPlatform extends BaseApiImpl? sse_decode_opt_list_String(SseDeserializer deserializer); @@ -1299,7 +1299,7 @@ abstract class BreezSdkBindingsApiImplPlatform extends BaseApiImpl cst_encode_box_autoadd_i_64(int raw) { + ffi.Pointer cst_encode_box_autoadd_i_64(PlatformInt64 raw) { // Codec=Cst (C-struct based), see doc to use other codecs return wire.cst_new_box_autoadd_i_64(cst_encode_i_64(raw)); } @@ -1813,7 +1813,7 @@ abstract class BreezSdkBindingsApiImplPlatform extends BaseApiImpl cst_encode_box_autoadd_u_64(int raw) { + ffi.Pointer cst_encode_box_autoadd_u_64(BigInt raw) { // Codec=Cst (C-struct based), see doc to use other codecs return wire.cst_new_box_autoadd_u_64(cst_encode_u_64(raw)); } @@ -1828,7 +1828,7 @@ abstract class BreezSdkBindingsApiImplPlatform extends BaseApiImpl cst_encode_opt_box_autoadd_i_64(int? raw) { + ffi.Pointer cst_encode_opt_box_autoadd_i_64(PlatformInt64? raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw == null ? ffi.nullptr : cst_encode_box_autoadd_i_64(raw); } @@ -2092,7 +2092,7 @@ abstract class BreezSdkBindingsApiImplPlatform extends BaseApiImpl cst_encode_opt_box_autoadd_u_64(int? raw) { + ffi.Pointer cst_encode_opt_box_autoadd_u_64(BigInt? raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw == null ? ffi.nullptr : cst_encode_box_autoadd_u_64(raw); } @@ -2142,9 +2142,9 @@ abstract class BreezSdkBindingsApiImplPlatform extends BaseApiImpl? self, SseSerializer serializer); @@ -4102,7 +4102,7 @@ abstract class BreezSdkBindingsApiImplPlatform extends BaseApiImpl(); - void wire_backup( + void wire__crate__binding__backup( int port_, ) { - return _wire_backup( + return _wire__crate__binding__backup( port_, ); } - late final _wire_backupPtr = - _lookup>('frbgen_breez_sdk_wire_backup'); - late final _wire_backup = _wire_backupPtr.asFunction(); + late final _wire__crate__binding__backupPtr = _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__backup'); + late final _wire__crate__binding__backup = + _wire__crate__binding__backupPtr.asFunction(); - void wire_backup_status( + void wire__crate__binding__backup_status( int port_, ) { - return _wire_backup_status( + return _wire__crate__binding__backup_status( port_, ); } - late final _wire_backup_statusPtr = - _lookup>('frbgen_breez_sdk_wire_backup_status'); - late final _wire_backup_status = _wire_backup_statusPtr.asFunction(); + late final _wire__crate__binding__backup_statusPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__backup_status'); + late final _wire__crate__binding__backup_status = + _wire__crate__binding__backup_statusPtr.asFunction(); - void wire_breez_events_stream( + void wire__crate__binding__breez_events_stream( int port_, ffi.Pointer s, ) { - return _wire_breez_events_stream( + return _wire__crate__binding__breez_events_stream( port_, s, ); } - late final _wire_breez_events_streamPtr = + late final _wire__crate__binding__breez_events_streamPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_breez_events_stream'); - late final _wire_breez_events_stream = _wire_breez_events_streamPtr + 'frbgen_breez_sdk_wire__crate__binding__breez_events_stream'); + late final _wire__crate__binding__breez_events_stream = _wire__crate__binding__breez_events_streamPtr .asFunction)>(); - void wire_breez_log_stream( + void wire__crate__binding__breez_log_stream( int port_, ffi.Pointer s, ) { - return _wire_breez_log_stream( + return _wire__crate__binding__breez_log_stream( port_, s, ); } - late final _wire_breez_log_streamPtr = + late final _wire__crate__binding__breez_log_streamPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_breez_log_stream'); - late final _wire_breez_log_stream = - _wire_breez_log_streamPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__breez_log_stream'); + late final _wire__crate__binding__breez_log_stream = _wire__crate__binding__breez_log_streamPtr + .asFunction)>(); - void wire_buy_bitcoin( + void wire__crate__binding__buy_bitcoin( int port_, ffi.Pointer req, ) { - return _wire_buy_bitcoin( + return _wire__crate__binding__buy_bitcoin( port_, req, ); } - late final _wire_buy_bitcoinPtr = + late final _wire__crate__binding__buy_bitcoinPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_buy_bitcoin'); - late final _wire_buy_bitcoin = - _wire_buy_bitcoinPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__buy_bitcoin'); + late final _wire__crate__binding__buy_bitcoin = _wire__crate__binding__buy_bitcoinPtr + .asFunction)>(); - void wire_check_message( + void wire__crate__binding__check_message( int port_, ffi.Pointer req, ) { - return _wire_check_message( + return _wire__crate__binding__check_message( port_, req, ); } - late final _wire_check_messagePtr = + late final _wire__crate__binding__check_messagePtr = _lookup)>>( - 'frbgen_breez_sdk_wire_check_message'); - late final _wire_check_message = - _wire_check_messagePtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__check_message'); + late final _wire__crate__binding__check_message = _wire__crate__binding__check_messagePtr + .asFunction)>(); - void wire_close_lsp_channels( + void wire__crate__binding__close_lsp_channels( int port_, ) { - return _wire_close_lsp_channels( + return _wire__crate__binding__close_lsp_channels( port_, ); } - late final _wire_close_lsp_channelsPtr = - _lookup>('frbgen_breez_sdk_wire_close_lsp_channels'); - late final _wire_close_lsp_channels = _wire_close_lsp_channelsPtr.asFunction(); + late final _wire__crate__binding__close_lsp_channelsPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__close_lsp_channels'); + late final _wire__crate__binding__close_lsp_channels = + _wire__crate__binding__close_lsp_channelsPtr.asFunction(); - void wire_configure_node( + void wire__crate__binding__configure_node( int port_, ffi.Pointer req, ) { - return _wire_configure_node( + return _wire__crate__binding__configure_node( port_, req, ); } - late final _wire_configure_nodePtr = + late final _wire__crate__binding__configure_nodePtr = _lookup)>>( - 'frbgen_breez_sdk_wire_configure_node'); - late final _wire_configure_node = - _wire_configure_nodePtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__configure_node'); + late final _wire__crate__binding__configure_node = _wire__crate__binding__configure_nodePtr + .asFunction)>(); - void wire_connect( + void wire__crate__binding__connect( int port_, ffi.Pointer req, ) { - return _wire_connect( + return _wire__crate__binding__connect( port_, req, ); } - late final _wire_connectPtr = + late final _wire__crate__binding__connectPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_connect'); - late final _wire_connect = - _wire_connectPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__connect'); + late final _wire__crate__binding__connect = _wire__crate__binding__connectPtr + .asFunction)>(); - void wire_connect_lsp( + void wire__crate__binding__connect_lsp( int port_, ffi.Pointer lsp_id, ) { - return _wire_connect_lsp( + return _wire__crate__binding__connect_lsp( port_, lsp_id, ); } - late final _wire_connect_lspPtr = + late final _wire__crate__binding__connect_lspPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_connect_lsp'); - late final _wire_connect_lsp = - _wire_connect_lspPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__connect_lsp'); + late final _wire__crate__binding__connect_lsp = _wire__crate__binding__connect_lspPtr + .asFunction)>(); - void wire_default_config( + void wire__crate__binding__default_config( int port_, int env_type, ffi.Pointer api_key, ffi.Pointer node_config, ) { - return _wire_default_config( + return _wire__crate__binding__default_config( port_, env_type, api_key, @@ -4315,749 +4320,781 @@ class BreezSdkBindingsWire implements BaseWire { ); } - late final _wire_default_configPtr = _lookup< + late final _wire__crate__binding__default_configPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Int32, ffi.Pointer, - ffi.Pointer)>>('frbgen_breez_sdk_wire_default_config'); - late final _wire_default_config = _wire_default_configPtr.asFunction< + ffi.Pointer)>>('frbgen_breez_sdk_wire__crate__binding__default_config'); + late final _wire__crate__binding__default_config = _wire__crate__binding__default_configPtr.asFunction< void Function( int, int, ffi.Pointer, ffi.Pointer)>(); - void wire_disconnect( + void wire__crate__binding__disconnect( int port_, ) { - return _wire_disconnect( + return _wire__crate__binding__disconnect( port_, ); } - late final _wire_disconnectPtr = - _lookup>('frbgen_breez_sdk_wire_disconnect'); - late final _wire_disconnect = _wire_disconnectPtr.asFunction(); + late final _wire__crate__binding__disconnectPtr = _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__disconnect'); + late final _wire__crate__binding__disconnect = + _wire__crate__binding__disconnectPtr.asFunction(); - void wire_execute_command( + void wire__crate__binding__execute_command( int port_, ffi.Pointer command, ) { - return _wire_execute_command( + return _wire__crate__binding__execute_command( port_, command, ); } - late final _wire_execute_commandPtr = + late final _wire__crate__binding__execute_commandPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_execute_command'); - late final _wire_execute_command = - _wire_execute_commandPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__execute_command'); + late final _wire__crate__binding__execute_command = _wire__crate__binding__execute_commandPtr + .asFunction)>(); - void wire_fetch_fiat_rates( + void wire__crate__binding__fetch_fiat_rates( int port_, ) { - return _wire_fetch_fiat_rates( + return _wire__crate__binding__fetch_fiat_rates( port_, ); } - late final _wire_fetch_fiat_ratesPtr = - _lookup>('frbgen_breez_sdk_wire_fetch_fiat_rates'); - late final _wire_fetch_fiat_rates = _wire_fetch_fiat_ratesPtr.asFunction(); + late final _wire__crate__binding__fetch_fiat_ratesPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__fetch_fiat_rates'); + late final _wire__crate__binding__fetch_fiat_rates = + _wire__crate__binding__fetch_fiat_ratesPtr.asFunction(); - void wire_fetch_lsp_info( + void wire__crate__binding__fetch_lsp_info( int port_, ffi.Pointer id, ) { - return _wire_fetch_lsp_info( + return _wire__crate__binding__fetch_lsp_info( port_, id, ); } - late final _wire_fetch_lsp_infoPtr = + late final _wire__crate__binding__fetch_lsp_infoPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_fetch_lsp_info'); - late final _wire_fetch_lsp_info = - _wire_fetch_lsp_infoPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__fetch_lsp_info'); + late final _wire__crate__binding__fetch_lsp_info = _wire__crate__binding__fetch_lsp_infoPtr + .asFunction)>(); - void wire_fetch_reverse_swap_fees( + void wire__crate__binding__fetch_reverse_swap_fees( int port_, ffi.Pointer req, ) { - return _wire_fetch_reverse_swap_fees( + return _wire__crate__binding__fetch_reverse_swap_fees( port_, req, ); } - late final _wire_fetch_reverse_swap_feesPtr = _lookup< + late final _wire__crate__binding__fetch_reverse_swap_feesPtr = _lookup< ffi.NativeFunction)>>( - 'frbgen_breez_sdk_wire_fetch_reverse_swap_fees'); - late final _wire_fetch_reverse_swap_fees = _wire_fetch_reverse_swap_feesPtr - .asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__fetch_reverse_swap_fees'); + late final _wire__crate__binding__fetch_reverse_swap_fees = + _wire__crate__binding__fetch_reverse_swap_feesPtr + .asFunction)>(); - void wire_generate_diagnostic_data( + void wire__crate__binding__generate_diagnostic_data( int port_, ) { - return _wire_generate_diagnostic_data( + return _wire__crate__binding__generate_diagnostic_data( port_, ); } - late final _wire_generate_diagnostic_dataPtr = _lookup>( - 'frbgen_breez_sdk_wire_generate_diagnostic_data'); - late final _wire_generate_diagnostic_data = - _wire_generate_diagnostic_dataPtr.asFunction(); + late final _wire__crate__binding__generate_diagnostic_dataPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__generate_diagnostic_data'); + late final _wire__crate__binding__generate_diagnostic_data = + _wire__crate__binding__generate_diagnostic_dataPtr.asFunction(); - void wire_in_progress_onchain_payments( + void wire__crate__binding__in_progress_onchain_payments( int port_, ) { - return _wire_in_progress_onchain_payments( + return _wire__crate__binding__in_progress_onchain_payments( port_, ); } - late final _wire_in_progress_onchain_paymentsPtr = + late final _wire__crate__binding__in_progress_onchain_paymentsPtr = _lookup>( - 'frbgen_breez_sdk_wire_in_progress_onchain_payments'); - late final _wire_in_progress_onchain_payments = - _wire_in_progress_onchain_paymentsPtr.asFunction(); + 'frbgen_breez_sdk_wire__crate__binding__in_progress_onchain_payments'); + late final _wire__crate__binding__in_progress_onchain_payments = + _wire__crate__binding__in_progress_onchain_paymentsPtr.asFunction(); - void wire_in_progress_reverse_swaps( + void wire__crate__binding__in_progress_reverse_swaps( int port_, ) { - return _wire_in_progress_reverse_swaps( + return _wire__crate__binding__in_progress_reverse_swaps( port_, ); } - late final _wire_in_progress_reverse_swapsPtr = _lookup>( - 'frbgen_breez_sdk_wire_in_progress_reverse_swaps'); - late final _wire_in_progress_reverse_swaps = - _wire_in_progress_reverse_swapsPtr.asFunction(); + late final _wire__crate__binding__in_progress_reverse_swapsPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__in_progress_reverse_swaps'); + late final _wire__crate__binding__in_progress_reverse_swaps = + _wire__crate__binding__in_progress_reverse_swapsPtr.asFunction(); - void wire_in_progress_swap( + void wire__crate__binding__in_progress_swap( int port_, ) { - return _wire_in_progress_swap( + return _wire__crate__binding__in_progress_swap( port_, ); } - late final _wire_in_progress_swapPtr = - _lookup>('frbgen_breez_sdk_wire_in_progress_swap'); - late final _wire_in_progress_swap = _wire_in_progress_swapPtr.asFunction(); + late final _wire__crate__binding__in_progress_swapPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__in_progress_swap'); + late final _wire__crate__binding__in_progress_swap = + _wire__crate__binding__in_progress_swapPtr.asFunction(); - void wire_is_initialized( + void wire__crate__binding__is_initialized( int port_, ) { - return _wire_is_initialized( + return _wire__crate__binding__is_initialized( port_, ); } - late final _wire_is_initializedPtr = - _lookup>('frbgen_breez_sdk_wire_is_initialized'); - late final _wire_is_initialized = _wire_is_initializedPtr.asFunction(); + late final _wire__crate__binding__is_initializedPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__is_initialized'); + late final _wire__crate__binding__is_initialized = + _wire__crate__binding__is_initializedPtr.asFunction(); - void wire_list_fiat_currencies( + void wire__crate__binding__list_fiat_currencies( int port_, ) { - return _wire_list_fiat_currencies( + return _wire__crate__binding__list_fiat_currencies( port_, ); } - late final _wire_list_fiat_currenciesPtr = - _lookup>('frbgen_breez_sdk_wire_list_fiat_currencies'); - late final _wire_list_fiat_currencies = _wire_list_fiat_currenciesPtr.asFunction(); + late final _wire__crate__binding__list_fiat_currenciesPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__list_fiat_currencies'); + late final _wire__crate__binding__list_fiat_currencies = + _wire__crate__binding__list_fiat_currenciesPtr.asFunction(); - void wire_list_lsps( + void wire__crate__binding__list_lsps( int port_, ) { - return _wire_list_lsps( + return _wire__crate__binding__list_lsps( port_, ); } - late final _wire_list_lspsPtr = - _lookup>('frbgen_breez_sdk_wire_list_lsps'); - late final _wire_list_lsps = _wire_list_lspsPtr.asFunction(); + late final _wire__crate__binding__list_lspsPtr = _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__list_lsps'); + late final _wire__crate__binding__list_lsps = + _wire__crate__binding__list_lspsPtr.asFunction(); - void wire_list_payments( + void wire__crate__binding__list_payments( int port_, ffi.Pointer req, ) { - return _wire_list_payments( + return _wire__crate__binding__list_payments( port_, req, ); } - late final _wire_list_paymentsPtr = + late final _wire__crate__binding__list_paymentsPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_list_payments'); - late final _wire_list_payments = - _wire_list_paymentsPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__list_payments'); + late final _wire__crate__binding__list_payments = _wire__crate__binding__list_paymentsPtr + .asFunction)>(); - void wire_list_refundables( + void wire__crate__binding__list_refundables( int port_, ) { - return _wire_list_refundables( + return _wire__crate__binding__list_refundables( port_, ); } - late final _wire_list_refundablesPtr = - _lookup>('frbgen_breez_sdk_wire_list_refundables'); - late final _wire_list_refundables = _wire_list_refundablesPtr.asFunction(); + late final _wire__crate__binding__list_refundablesPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__list_refundables'); + late final _wire__crate__binding__list_refundables = + _wire__crate__binding__list_refundablesPtr.asFunction(); - void wire_lnurl_auth( + void wire__crate__binding__lnurl_auth( int port_, ffi.Pointer req_data, ) { - return _wire_lnurl_auth( + return _wire__crate__binding__lnurl_auth( port_, req_data, ); } - late final _wire_lnurl_authPtr = _lookup< + late final _wire__crate__binding__lnurl_authPtr = _lookup< ffi.NativeFunction)>>( - 'frbgen_breez_sdk_wire_lnurl_auth'); - late final _wire_lnurl_auth = - _wire_lnurl_authPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__lnurl_auth'); + late final _wire__crate__binding__lnurl_auth = _wire__crate__binding__lnurl_authPtr + .asFunction)>(); - void wire_lnurl_pay( + void wire__crate__binding__lnurl_pay( int port_, ffi.Pointer req, ) { - return _wire_lnurl_pay( + return _wire__crate__binding__lnurl_pay( port_, req, ); } - late final _wire_lnurl_payPtr = + late final _wire__crate__binding__lnurl_payPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_lnurl_pay'); - late final _wire_lnurl_pay = - _wire_lnurl_payPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__lnurl_pay'); + late final _wire__crate__binding__lnurl_pay = _wire__crate__binding__lnurl_payPtr + .asFunction)>(); - void wire_lnurl_withdraw( + void wire__crate__binding__lnurl_withdraw( int port_, ffi.Pointer req, ) { - return _wire_lnurl_withdraw( + return _wire__crate__binding__lnurl_withdraw( port_, req, ); } - late final _wire_lnurl_withdrawPtr = _lookup< + late final _wire__crate__binding__lnurl_withdrawPtr = _lookup< ffi.NativeFunction)>>( - 'frbgen_breez_sdk_wire_lnurl_withdraw'); - late final _wire_lnurl_withdraw = - _wire_lnurl_withdrawPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__lnurl_withdraw'); + late final _wire__crate__binding__lnurl_withdraw = _wire__crate__binding__lnurl_withdrawPtr + .asFunction)>(); - void wire_lsp_id( + void wire__crate__binding__lsp_id( int port_, ) { - return _wire_lsp_id( + return _wire__crate__binding__lsp_id( port_, ); } - late final _wire_lsp_idPtr = - _lookup>('frbgen_breez_sdk_wire_lsp_id'); - late final _wire_lsp_id = _wire_lsp_idPtr.asFunction(); + late final _wire__crate__binding__lsp_idPtr = _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__lsp_id'); + late final _wire__crate__binding__lsp_id = + _wire__crate__binding__lsp_idPtr.asFunction(); - void wire_lsp_info( + void wire__crate__binding__lsp_info( int port_, ) { - return _wire_lsp_info( + return _wire__crate__binding__lsp_info( port_, ); } - late final _wire_lsp_infoPtr = - _lookup>('frbgen_breez_sdk_wire_lsp_info'); - late final _wire_lsp_info = _wire_lsp_infoPtr.asFunction(); + late final _wire__crate__binding__lsp_infoPtr = _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__lsp_info'); + late final _wire__crate__binding__lsp_info = + _wire__crate__binding__lsp_infoPtr.asFunction(); - void wire_max_reverse_swap_amount( + void wire__crate__binding__max_reverse_swap_amount( int port_, ) { - return _wire_max_reverse_swap_amount( + return _wire__crate__binding__max_reverse_swap_amount( port_, ); } - late final _wire_max_reverse_swap_amountPtr = _lookup>( - 'frbgen_breez_sdk_wire_max_reverse_swap_amount'); - late final _wire_max_reverse_swap_amount = - _wire_max_reverse_swap_amountPtr.asFunction(); + late final _wire__crate__binding__max_reverse_swap_amountPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__max_reverse_swap_amount'); + late final _wire__crate__binding__max_reverse_swap_amount = + _wire__crate__binding__max_reverse_swap_amountPtr.asFunction(); - void wire_mnemonic_to_seed( + void wire__crate__binding__mnemonic_to_seed( int port_, ffi.Pointer phrase, ) { - return _wire_mnemonic_to_seed( + return _wire__crate__binding__mnemonic_to_seed( port_, phrase, ); } - late final _wire_mnemonic_to_seedPtr = + late final _wire__crate__binding__mnemonic_to_seedPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_mnemonic_to_seed'); - late final _wire_mnemonic_to_seed = - _wire_mnemonic_to_seedPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__mnemonic_to_seed'); + late final _wire__crate__binding__mnemonic_to_seed = _wire__crate__binding__mnemonic_to_seedPtr + .asFunction)>(); - void wire_node_credentials( + void wire__crate__binding__node_credentials( int port_, ) { - return _wire_node_credentials( + return _wire__crate__binding__node_credentials( port_, ); } - late final _wire_node_credentialsPtr = - _lookup>('frbgen_breez_sdk_wire_node_credentials'); - late final _wire_node_credentials = _wire_node_credentialsPtr.asFunction(); + late final _wire__crate__binding__node_credentialsPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__node_credentials'); + late final _wire__crate__binding__node_credentials = + _wire__crate__binding__node_credentialsPtr.asFunction(); - void wire_node_info( + void wire__crate__binding__node_info( int port_, ) { - return _wire_node_info( + return _wire__crate__binding__node_info( port_, ); } - late final _wire_node_infoPtr = - _lookup>('frbgen_breez_sdk_wire_node_info'); - late final _wire_node_info = _wire_node_infoPtr.asFunction(); + late final _wire__crate__binding__node_infoPtr = _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__node_info'); + late final _wire__crate__binding__node_info = + _wire__crate__binding__node_infoPtr.asFunction(); - void wire_onchain_payment_limits( + void wire__crate__binding__onchain_payment_limits( int port_, ) { - return _wire_onchain_payment_limits( + return _wire__crate__binding__onchain_payment_limits( port_, ); } - late final _wire_onchain_payment_limitsPtr = _lookup>( - 'frbgen_breez_sdk_wire_onchain_payment_limits'); - late final _wire_onchain_payment_limits = _wire_onchain_payment_limitsPtr.asFunction(); + late final _wire__crate__binding__onchain_payment_limitsPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__onchain_payment_limits'); + late final _wire__crate__binding__onchain_payment_limits = + _wire__crate__binding__onchain_payment_limitsPtr.asFunction(); - void wire_open_channel_fee( + void wire__crate__binding__open_channel_fee( int port_, ffi.Pointer req, ) { - return _wire_open_channel_fee( + return _wire__crate__binding__open_channel_fee( port_, req, ); } - late final _wire_open_channel_feePtr = _lookup< + late final _wire__crate__binding__open_channel_feePtr = _lookup< ffi.NativeFunction)>>( - 'frbgen_breez_sdk_wire_open_channel_fee'); - late final _wire_open_channel_fee = _wire_open_channel_feePtr + 'frbgen_breez_sdk_wire__crate__binding__open_channel_fee'); + late final _wire__crate__binding__open_channel_fee = _wire__crate__binding__open_channel_feePtr .asFunction)>(); - void wire_parse_input( + void wire__crate__binding__parse_input( int port_, ffi.Pointer input, ) { - return _wire_parse_input( + return _wire__crate__binding__parse_input( port_, input, ); } - late final _wire_parse_inputPtr = + late final _wire__crate__binding__parse_inputPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_parse_input'); - late final _wire_parse_input = - _wire_parse_inputPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__parse_input'); + late final _wire__crate__binding__parse_input = _wire__crate__binding__parse_inputPtr + .asFunction)>(); - void wire_parse_invoice( + void wire__crate__binding__parse_invoice( int port_, ffi.Pointer invoice, ) { - return _wire_parse_invoice( + return _wire__crate__binding__parse_invoice( port_, invoice, ); } - late final _wire_parse_invoicePtr = + late final _wire__crate__binding__parse_invoicePtr = _lookup)>>( - 'frbgen_breez_sdk_wire_parse_invoice'); - late final _wire_parse_invoice = - _wire_parse_invoicePtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__parse_invoice'); + late final _wire__crate__binding__parse_invoice = _wire__crate__binding__parse_invoicePtr + .asFunction)>(); - void wire_pay_onchain( + void wire__crate__binding__pay_onchain( int port_, ffi.Pointer req, ) { - return _wire_pay_onchain( + return _wire__crate__binding__pay_onchain( port_, req, ); } - late final _wire_pay_onchainPtr = + late final _wire__crate__binding__pay_onchainPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_pay_onchain'); - late final _wire_pay_onchain = - _wire_pay_onchainPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__pay_onchain'); + late final _wire__crate__binding__pay_onchain = _wire__crate__binding__pay_onchainPtr + .asFunction)>(); - void wire_payment_by_hash( + void wire__crate__binding__payment_by_hash( int port_, ffi.Pointer hash, ) { - return _wire_payment_by_hash( + return _wire__crate__binding__payment_by_hash( port_, hash, ); } - late final _wire_payment_by_hashPtr = + late final _wire__crate__binding__payment_by_hashPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_payment_by_hash'); - late final _wire_payment_by_hash = - _wire_payment_by_hashPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__payment_by_hash'); + late final _wire__crate__binding__payment_by_hash = _wire__crate__binding__payment_by_hashPtr + .asFunction)>(); - void wire_prepare_onchain_payment( + void wire__crate__binding__prepare_onchain_payment( int port_, ffi.Pointer req, ) { - return _wire_prepare_onchain_payment( + return _wire__crate__binding__prepare_onchain_payment( port_, req, ); } - late final _wire_prepare_onchain_paymentPtr = _lookup< + late final _wire__crate__binding__prepare_onchain_paymentPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_breez_sdk_wire_prepare_onchain_payment'); - late final _wire_prepare_onchain_payment = _wire_prepare_onchain_paymentPtr - .asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__prepare_onchain_payment'); + late final _wire__crate__binding__prepare_onchain_payment = + _wire__crate__binding__prepare_onchain_paymentPtr + .asFunction)>(); - void wire_prepare_redeem_onchain_funds( + void wire__crate__binding__prepare_redeem_onchain_funds( int port_, ffi.Pointer req, ) { - return _wire_prepare_redeem_onchain_funds( + return _wire__crate__binding__prepare_redeem_onchain_funds( port_, req, ); } - late final _wire_prepare_redeem_onchain_fundsPtr = _lookup< + late final _wire__crate__binding__prepare_redeem_onchain_fundsPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_breez_sdk_wire_prepare_redeem_onchain_funds'); - late final _wire_prepare_redeem_onchain_funds = _wire_prepare_redeem_onchain_fundsPtr - .asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__prepare_redeem_onchain_funds'); + late final _wire__crate__binding__prepare_redeem_onchain_funds = + _wire__crate__binding__prepare_redeem_onchain_fundsPtr + .asFunction)>(); - void wire_prepare_refund( + void wire__crate__binding__prepare_refund( int port_, ffi.Pointer req, ) { - return _wire_prepare_refund( + return _wire__crate__binding__prepare_refund( port_, req, ); } - late final _wire_prepare_refundPtr = + late final _wire__crate__binding__prepare_refundPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_prepare_refund'); - late final _wire_prepare_refund = - _wire_prepare_refundPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__prepare_refund'); + late final _wire__crate__binding__prepare_refund = _wire__crate__binding__prepare_refundPtr + .asFunction)>(); - void wire_receive_onchain( + void wire__crate__binding__receive_onchain( int port_, ffi.Pointer req, ) { - return _wire_receive_onchain( + return _wire__crate__binding__receive_onchain( port_, req, ); } - late final _wire_receive_onchainPtr = _lookup< + late final _wire__crate__binding__receive_onchainPtr = _lookup< ffi.NativeFunction)>>( - 'frbgen_breez_sdk_wire_receive_onchain'); - late final _wire_receive_onchain = _wire_receive_onchainPtr + 'frbgen_breez_sdk_wire__crate__binding__receive_onchain'); + late final _wire__crate__binding__receive_onchain = _wire__crate__binding__receive_onchainPtr .asFunction)>(); - void wire_receive_payment( + void wire__crate__binding__receive_payment( int port_, ffi.Pointer req, ) { - return _wire_receive_payment( + return _wire__crate__binding__receive_payment( port_, req, ); } - late final _wire_receive_paymentPtr = _lookup< + late final _wire__crate__binding__receive_paymentPtr = _lookup< ffi.NativeFunction)>>( - 'frbgen_breez_sdk_wire_receive_payment'); - late final _wire_receive_payment = _wire_receive_paymentPtr + 'frbgen_breez_sdk_wire__crate__binding__receive_payment'); + late final _wire__crate__binding__receive_payment = _wire__crate__binding__receive_paymentPtr .asFunction)>(); - void wire_recommended_fees( + void wire__crate__binding__recommended_fees( int port_, ) { - return _wire_recommended_fees( + return _wire__crate__binding__recommended_fees( port_, ); } - late final _wire_recommended_feesPtr = - _lookup>('frbgen_breez_sdk_wire_recommended_fees'); - late final _wire_recommended_fees = _wire_recommended_feesPtr.asFunction(); + late final _wire__crate__binding__recommended_feesPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__recommended_fees'); + late final _wire__crate__binding__recommended_fees = + _wire__crate__binding__recommended_feesPtr.asFunction(); - void wire_redeem_onchain_funds( + void wire__crate__binding__redeem_onchain_funds( int port_, ffi.Pointer req, ) { - return _wire_redeem_onchain_funds( + return _wire__crate__binding__redeem_onchain_funds( port_, req, ); } - late final _wire_redeem_onchain_fundsPtr = _lookup< + late final _wire__crate__binding__redeem_onchain_fundsPtr = _lookup< ffi .NativeFunction)>>( - 'frbgen_breez_sdk_wire_redeem_onchain_funds'); - late final _wire_redeem_onchain_funds = _wire_redeem_onchain_fundsPtr + 'frbgen_breez_sdk_wire__crate__binding__redeem_onchain_funds'); + late final _wire__crate__binding__redeem_onchain_funds = _wire__crate__binding__redeem_onchain_fundsPtr .asFunction)>(); - void wire_redeem_swap( + void wire__crate__binding__redeem_swap( int port_, ffi.Pointer swap_address, ) { - return _wire_redeem_swap( + return _wire__crate__binding__redeem_swap( port_, swap_address, ); } - late final _wire_redeem_swapPtr = + late final _wire__crate__binding__redeem_swapPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_redeem_swap'); - late final _wire_redeem_swap = - _wire_redeem_swapPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__redeem_swap'); + late final _wire__crate__binding__redeem_swap = _wire__crate__binding__redeem_swapPtr + .asFunction)>(); - void wire_refund( + void wire__crate__binding__refund( int port_, ffi.Pointer req, ) { - return _wire_refund( + return _wire__crate__binding__refund( port_, req, ); } - late final _wire_refundPtr = + late final _wire__crate__binding__refundPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_refund'); - late final _wire_refund = - _wire_refundPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__refund'); + late final _wire__crate__binding__refund = + _wire__crate__binding__refundPtr.asFunction)>(); - void wire_register_webhook( + void wire__crate__binding__register_webhook( int port_, ffi.Pointer webhook_url, ) { - return _wire_register_webhook( + return _wire__crate__binding__register_webhook( port_, webhook_url, ); } - late final _wire_register_webhookPtr = + late final _wire__crate__binding__register_webhookPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_register_webhook'); - late final _wire_register_webhook = - _wire_register_webhookPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__register_webhook'); + late final _wire__crate__binding__register_webhook = _wire__crate__binding__register_webhookPtr + .asFunction)>(); - void wire_report_issue( + void wire__crate__binding__report_issue( int port_, ffi.Pointer req, ) { - return _wire_report_issue( + return _wire__crate__binding__report_issue( port_, req, ); } - late final _wire_report_issuePtr = + late final _wire__crate__binding__report_issuePtr = _lookup)>>( - 'frbgen_breez_sdk_wire_report_issue'); - late final _wire_report_issue = - _wire_report_issuePtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__report_issue'); + late final _wire__crate__binding__report_issue = _wire__crate__binding__report_issuePtr + .asFunction)>(); - void wire_rescan_swaps( + void wire__crate__binding__rescan_swaps( int port_, ) { - return _wire_rescan_swaps( + return _wire__crate__binding__rescan_swaps( port_, ); } - late final _wire_rescan_swapsPtr = - _lookup>('frbgen_breez_sdk_wire_rescan_swaps'); - late final _wire_rescan_swaps = _wire_rescan_swapsPtr.asFunction(); + late final _wire__crate__binding__rescan_swapsPtr = + _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__rescan_swaps'); + late final _wire__crate__binding__rescan_swaps = + _wire__crate__binding__rescan_swapsPtr.asFunction(); - void wire_send_onchain( + void wire__crate__binding__send_onchain( int port_, ffi.Pointer req, ) { - return _wire_send_onchain( + return _wire__crate__binding__send_onchain( port_, req, ); } - late final _wire_send_onchainPtr = + late final _wire__crate__binding__send_onchainPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_send_onchain'); - late final _wire_send_onchain = - _wire_send_onchainPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__send_onchain'); + late final _wire__crate__binding__send_onchain = _wire__crate__binding__send_onchainPtr + .asFunction)>(); - void wire_send_payment( + void wire__crate__binding__send_payment( int port_, ffi.Pointer req, ) { - return _wire_send_payment( + return _wire__crate__binding__send_payment( port_, req, ); } - late final _wire_send_paymentPtr = + late final _wire__crate__binding__send_paymentPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_send_payment'); - late final _wire_send_payment = - _wire_send_paymentPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__send_payment'); + late final _wire__crate__binding__send_payment = _wire__crate__binding__send_paymentPtr + .asFunction)>(); - void wire_send_spontaneous_payment( + void wire__crate__binding__send_spontaneous_payment( int port_, ffi.Pointer req, ) { - return _wire_send_spontaneous_payment( + return _wire__crate__binding__send_spontaneous_payment( port_, req, ); } - late final _wire_send_spontaneous_paymentPtr = _lookup< + late final _wire__crate__binding__send_spontaneous_paymentPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_breez_sdk_wire_send_spontaneous_payment'); - late final _wire_send_spontaneous_payment = _wire_send_spontaneous_paymentPtr - .asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__send_spontaneous_payment'); + late final _wire__crate__binding__send_spontaneous_payment = + _wire__crate__binding__send_spontaneous_paymentPtr + .asFunction)>(); - void wire_service_health_check( + void wire__crate__binding__service_health_check( int port_, ffi.Pointer api_key, ) { - return _wire_service_health_check( + return _wire__crate__binding__service_health_check( port_, api_key, ); } - late final _wire_service_health_checkPtr = + late final _wire__crate__binding__service_health_checkPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_service_health_check'); - late final _wire_service_health_check = _wire_service_health_checkPtr + 'frbgen_breez_sdk_wire__crate__binding__service_health_check'); + late final _wire__crate__binding__service_health_check = _wire__crate__binding__service_health_checkPtr .asFunction)>(); - void wire_set_payment_metadata( + void wire__crate__binding__set_payment_metadata( int port_, ffi.Pointer hash, ffi.Pointer metadata, ) { - return _wire_set_payment_metadata( + return _wire__crate__binding__set_payment_metadata( port_, hash, metadata, ); } - late final _wire_set_payment_metadataPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Pointer)>>('frbgen_breez_sdk_wire_set_payment_metadata'); - late final _wire_set_payment_metadata = _wire_set_payment_metadataPtr.asFunction< - void Function( - int, ffi.Pointer, ffi.Pointer)>(); - - void wire_sign_message( + late final _wire__crate__binding__set_payment_metadataPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_breez_sdk_wire__crate__binding__set_payment_metadata'); + late final _wire__crate__binding__set_payment_metadata = + _wire__crate__binding__set_payment_metadataPtr.asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer)>(); + + void wire__crate__binding__sign_message( int port_, ffi.Pointer req, ) { - return _wire_sign_message( + return _wire__crate__binding__sign_message( port_, req, ); } - late final _wire_sign_messagePtr = + late final _wire__crate__binding__sign_messagePtr = _lookup)>>( - 'frbgen_breez_sdk_wire_sign_message'); - late final _wire_sign_message = - _wire_sign_messagePtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__sign_message'); + late final _wire__crate__binding__sign_message = _wire__crate__binding__sign_messagePtr + .asFunction)>(); - void wire_static_backup( + void wire__crate__binding__static_backup( int port_, ffi.Pointer req, ) { - return _wire_static_backup( + return _wire__crate__binding__static_backup( port_, req, ); } - late final _wire_static_backupPtr = + late final _wire__crate__binding__static_backupPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_static_backup'); - late final _wire_static_backup = - _wire_static_backupPtr.asFunction)>(); + 'frbgen_breez_sdk_wire__crate__binding__static_backup'); + late final _wire__crate__binding__static_backup = _wire__crate__binding__static_backupPtr + .asFunction)>(); - void wire_sync( + void wire__crate__binding__sync( int port_, ) { - return _wire_sync( + return _wire__crate__binding__sync( port_, ); } - late final _wire_syncPtr = - _lookup>('frbgen_breez_sdk_wire_sync'); - late final _wire_sync = _wire_syncPtr.asFunction(); + late final _wire__crate__binding__syncPtr = _lookup>( + 'frbgen_breez_sdk_wire__crate__binding__sync'); + late final _wire__crate__binding__sync = _wire__crate__binding__syncPtr.asFunction(); - void wire_unregister_webhook( + void wire__crate__binding__unregister_webhook( int port_, ffi.Pointer webhook_url, ) { - return _wire_unregister_webhook( + return _wire__crate__binding__unregister_webhook( port_, webhook_url, ); } - late final _wire_unregister_webhookPtr = + late final _wire__crate__binding__unregister_webhookPtr = _lookup)>>( - 'frbgen_breez_sdk_wire_unregister_webhook'); - late final _wire_unregister_webhook = _wire_unregister_webhookPtr + 'frbgen_breez_sdk_wire__crate__binding__unregister_webhook'); + late final _wire__crate__binding__unregister_webhook = _wire__crate__binding__unregister_webhookPtr .asFunction)>(); ffi.Pointer diff --git a/libs/sdk-flutter/lib/generated/input_parser.dart b/libs/sdk-flutter/lib/generated/input_parser.dart index c1ccb8e61..1f16f57ac 100644 --- a/libs/sdk-flutter/lib/generated/input_parser.dart +++ b/libs/sdk-flutter/lib/generated/input_parser.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -14,7 +14,7 @@ part 'input_parser.freezed.dart'; class BitcoinAddressData { final String address; final Network network; - final int? amountSat; + final BigInt? amountSat; final String? label; final String? message; @@ -170,10 +170,10 @@ class LnUrlPayRequestData { final String callback; /// The minimum amount, in millisats, that this LNURL-pay endpoint accepts - final int minSendable; + final BigInt minSendable; /// The maximum amount, in millisats, that this LNURL-pay endpoint accepts - final int maxSendable; + final BigInt maxSendable; /// As per LUD-06, `metadata` is a raw string (e.g. a json representation of the inner map). /// Use `metadata_vec()` to get the parsed items. @@ -256,10 +256,10 @@ class LnUrlWithdrawRequestData { final String defaultDescription; /// The minimum amount, in millisats, that this LNURL-withdraw endpoint accepts - final int minWithdrawable; + final BigInt minWithdrawable; /// The maximum amount, in millisats, that this LNURL-withdraw endpoint accepts - final int maxWithdrawable; + final BigInt maxWithdrawable; const LnUrlWithdrawRequestData({ required this.callback, diff --git a/libs/sdk-flutter/lib/generated/input_parser.freezed.dart b/libs/sdk-flutter/lib/generated/input_parser.freezed.dart index bec050b19..85966dc4b 100644 --- a/libs/sdk-flutter/lib/generated/input_parser.freezed.dart +++ b/libs/sdk-flutter/lib/generated/input_parser.freezed.dart @@ -99,8 +99,7 @@ abstract class $InputTypeCopyWith<$Res> { } /// @nodoc -class _$InputTypeCopyWithImpl<$Res, $Val extends InputType> - implements $InputTypeCopyWith<$Res> { +class _$InputTypeCopyWithImpl<$Res, $Val extends InputType> implements $InputTypeCopyWith<$Res> { _$InputTypeCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -112,8 +111,7 @@ class _$InputTypeCopyWithImpl<$Res, $Val extends InputType> /// @nodoc abstract class _$$InputType_BitcoinAddressImplCopyWith<$Res> { factory _$$InputType_BitcoinAddressImplCopyWith( - _$InputType_BitcoinAddressImpl value, - $Res Function(_$InputType_BitcoinAddressImpl) then) = + _$InputType_BitcoinAddressImpl value, $Res Function(_$InputType_BitcoinAddressImpl) then) = __$$InputType_BitcoinAddressImplCopyWithImpl<$Res>; @useResult $Res call({BitcoinAddressData address}); @@ -124,8 +122,7 @@ class __$$InputType_BitcoinAddressImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$Res, _$InputType_BitcoinAddressImpl> implements _$$InputType_BitcoinAddressImplCopyWith<$Res> { __$$InputType_BitcoinAddressImplCopyWithImpl( - _$InputType_BitcoinAddressImpl _value, - $Res Function(_$InputType_BitcoinAddressImpl) _then) + _$InputType_BitcoinAddressImpl _value, $Res Function(_$InputType_BitcoinAddressImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -169,9 +166,8 @@ class _$InputType_BitcoinAddressImpl extends InputType_BitcoinAddress { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$InputType_BitcoinAddressImplCopyWith<_$InputType_BitcoinAddressImpl> - get copyWith => __$$InputType_BitcoinAddressImplCopyWithImpl< - _$InputType_BitcoinAddressImpl>(this, _$identity); + _$$InputType_BitcoinAddressImplCopyWith<_$InputType_BitcoinAddressImpl> get copyWith => + __$$InputType_BitcoinAddressImplCopyWithImpl<_$InputType_BitcoinAddressImpl>(this, _$identity); @override @optionalTypeArgs @@ -273,32 +269,30 @@ class _$InputType_BitcoinAddressImpl extends InputType_BitcoinAddress { } abstract class InputType_BitcoinAddress extends InputType { - const factory InputType_BitcoinAddress( - {required final BitcoinAddressData address}) = + const factory InputType_BitcoinAddress({required final BitcoinAddressData address}) = _$InputType_BitcoinAddressImpl; const InputType_BitcoinAddress._() : super._(); BitcoinAddressData get address; @JsonKey(ignore: true) - _$$InputType_BitcoinAddressImplCopyWith<_$InputType_BitcoinAddressImpl> - get copyWith => throw _privateConstructorUsedError; + _$$InputType_BitcoinAddressImplCopyWith<_$InputType_BitcoinAddressImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$InputType_Bolt11ImplCopyWith<$Res> { - factory _$$InputType_Bolt11ImplCopyWith(_$InputType_Bolt11Impl value, - $Res Function(_$InputType_Bolt11Impl) then) = + factory _$$InputType_Bolt11ImplCopyWith( + _$InputType_Bolt11Impl value, $Res Function(_$InputType_Bolt11Impl) then) = __$$InputType_Bolt11ImplCopyWithImpl<$Res>; @useResult $Res call({LNInvoice invoice}); } /// @nodoc -class __$$InputType_Bolt11ImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_Bolt11Impl> +class __$$InputType_Bolt11ImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$Res, _$InputType_Bolt11Impl> implements _$$InputType_Bolt11ImplCopyWith<$Res> { - __$$InputType_Bolt11ImplCopyWithImpl(_$InputType_Bolt11Impl _value, - $Res Function(_$InputType_Bolt11Impl) _then) + __$$InputType_Bolt11ImplCopyWithImpl( + _$InputType_Bolt11Impl _value, $Res Function(_$InputType_Bolt11Impl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -343,8 +337,7 @@ class _$InputType_Bolt11Impl extends InputType_Bolt11 { @override @pragma('vm:prefer-inline') _$$InputType_Bolt11ImplCopyWith<_$InputType_Bolt11Impl> get copyWith => - __$$InputType_Bolt11ImplCopyWithImpl<_$InputType_Bolt11Impl>( - this, _$identity); + __$$InputType_Bolt11ImplCopyWithImpl<_$InputType_Bolt11Impl>(this, _$identity); @override @optionalTypeArgs @@ -446,31 +439,28 @@ class _$InputType_Bolt11Impl extends InputType_Bolt11 { } abstract class InputType_Bolt11 extends InputType { - const factory InputType_Bolt11({required final LNInvoice invoice}) = - _$InputType_Bolt11Impl; + const factory InputType_Bolt11({required final LNInvoice invoice}) = _$InputType_Bolt11Impl; const InputType_Bolt11._() : super._(); LNInvoice get invoice; @JsonKey(ignore: true) - _$$InputType_Bolt11ImplCopyWith<_$InputType_Bolt11Impl> get copyWith => - throw _privateConstructorUsedError; + _$$InputType_Bolt11ImplCopyWith<_$InputType_Bolt11Impl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$InputType_NodeIdImplCopyWith<$Res> { - factory _$$InputType_NodeIdImplCopyWith(_$InputType_NodeIdImpl value, - $Res Function(_$InputType_NodeIdImpl) then) = + factory _$$InputType_NodeIdImplCopyWith( + _$InputType_NodeIdImpl value, $Res Function(_$InputType_NodeIdImpl) then) = __$$InputType_NodeIdImplCopyWithImpl<$Res>; @useResult $Res call({String nodeId}); } /// @nodoc -class __$$InputType_NodeIdImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_NodeIdImpl> +class __$$InputType_NodeIdImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$Res, _$InputType_NodeIdImpl> implements _$$InputType_NodeIdImplCopyWith<$Res> { - __$$InputType_NodeIdImplCopyWithImpl(_$InputType_NodeIdImpl _value, - $Res Function(_$InputType_NodeIdImpl) _then) + __$$InputType_NodeIdImplCopyWithImpl( + _$InputType_NodeIdImpl _value, $Res Function(_$InputType_NodeIdImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -515,8 +505,7 @@ class _$InputType_NodeIdImpl extends InputType_NodeId { @override @pragma('vm:prefer-inline') _$$InputType_NodeIdImplCopyWith<_$InputType_NodeIdImpl> get copyWith => - __$$InputType_NodeIdImplCopyWithImpl<_$InputType_NodeIdImpl>( - this, _$identity); + __$$InputType_NodeIdImplCopyWithImpl<_$InputType_NodeIdImpl>(this, _$identity); @override @optionalTypeArgs @@ -618,31 +607,26 @@ class _$InputType_NodeIdImpl extends InputType_NodeId { } abstract class InputType_NodeId extends InputType { - const factory InputType_NodeId({required final String nodeId}) = - _$InputType_NodeIdImpl; + const factory InputType_NodeId({required final String nodeId}) = _$InputType_NodeIdImpl; const InputType_NodeId._() : super._(); String get nodeId; @JsonKey(ignore: true) - _$$InputType_NodeIdImplCopyWith<_$InputType_NodeIdImpl> get copyWith => - throw _privateConstructorUsedError; + _$$InputType_NodeIdImplCopyWith<_$InputType_NodeIdImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$InputType_UrlImplCopyWith<$Res> { - factory _$$InputType_UrlImplCopyWith( - _$InputType_UrlImpl value, $Res Function(_$InputType_UrlImpl) then) = + factory _$$InputType_UrlImplCopyWith(_$InputType_UrlImpl value, $Res Function(_$InputType_UrlImpl) then) = __$$InputType_UrlImplCopyWithImpl<$Res>; @useResult $Res call({String url}); } /// @nodoc -class __$$InputType_UrlImplCopyWithImpl<$Res> - extends _$InputTypeCopyWithImpl<$Res, _$InputType_UrlImpl> +class __$$InputType_UrlImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$Res, _$InputType_UrlImpl> implements _$$InputType_UrlImplCopyWith<$Res> { - __$$InputType_UrlImplCopyWithImpl( - _$InputType_UrlImpl _value, $Res Function(_$InputType_UrlImpl) _then) + __$$InputType_UrlImplCopyWithImpl(_$InputType_UrlImpl _value, $Res Function(_$InputType_UrlImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -789,20 +773,18 @@ class _$InputType_UrlImpl extends InputType_Url { } abstract class InputType_Url extends InputType { - const factory InputType_Url({required final String url}) = - _$InputType_UrlImpl; + const factory InputType_Url({required final String url}) = _$InputType_UrlImpl; const InputType_Url._() : super._(); String get url; @JsonKey(ignore: true) - _$$InputType_UrlImplCopyWith<_$InputType_UrlImpl> get copyWith => - throw _privateConstructorUsedError; + _$$InputType_UrlImplCopyWith<_$InputType_UrlImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$InputType_LnUrlPayImplCopyWith<$Res> { - factory _$$InputType_LnUrlPayImplCopyWith(_$InputType_LnUrlPayImpl value, - $Res Function(_$InputType_LnUrlPayImpl) then) = + factory _$$InputType_LnUrlPayImplCopyWith( + _$InputType_LnUrlPayImpl value, $Res Function(_$InputType_LnUrlPayImpl) then) = __$$InputType_LnUrlPayImplCopyWithImpl<$Res>; @useResult $Res call({LnUrlPayRequestData data}); @@ -812,8 +794,8 @@ abstract class _$$InputType_LnUrlPayImplCopyWith<$Res> { class __$$InputType_LnUrlPayImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlPayImpl> implements _$$InputType_LnUrlPayImplCopyWith<$Res> { - __$$InputType_LnUrlPayImplCopyWithImpl(_$InputType_LnUrlPayImpl _value, - $Res Function(_$InputType_LnUrlPayImpl) _then) + __$$InputType_LnUrlPayImplCopyWithImpl( + _$InputType_LnUrlPayImpl _value, $Res Function(_$InputType_LnUrlPayImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -858,8 +840,7 @@ class _$InputType_LnUrlPayImpl extends InputType_LnUrlPay { @override @pragma('vm:prefer-inline') _$$InputType_LnUrlPayImplCopyWith<_$InputType_LnUrlPayImpl> get copyWith => - __$$InputType_LnUrlPayImplCopyWithImpl<_$InputType_LnUrlPayImpl>( - this, _$identity); + __$$InputType_LnUrlPayImplCopyWithImpl<_$InputType_LnUrlPayImpl>(this, _$identity); @override @optionalTypeArgs @@ -961,8 +942,7 @@ class _$InputType_LnUrlPayImpl extends InputType_LnUrlPay { } abstract class InputType_LnUrlPay extends InputType { - const factory InputType_LnUrlPay({required final LnUrlPayRequestData data}) = - _$InputType_LnUrlPayImpl; + const factory InputType_LnUrlPay({required final LnUrlPayRequestData data}) = _$InputType_LnUrlPayImpl; const InputType_LnUrlPay._() : super._(); LnUrlPayRequestData get data; @@ -974,8 +954,7 @@ abstract class InputType_LnUrlPay extends InputType { /// @nodoc abstract class _$$InputType_LnUrlWithdrawImplCopyWith<$Res> { factory _$$InputType_LnUrlWithdrawImplCopyWith( - _$InputType_LnUrlWithdrawImpl value, - $Res Function(_$InputType_LnUrlWithdrawImpl) then) = + _$InputType_LnUrlWithdrawImpl value, $Res Function(_$InputType_LnUrlWithdrawImpl) then) = __$$InputType_LnUrlWithdrawImplCopyWithImpl<$Res>; @useResult $Res call({LnUrlWithdrawRequestData data}); @@ -986,8 +965,7 @@ class __$$InputType_LnUrlWithdrawImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlWithdrawImpl> implements _$$InputType_LnUrlWithdrawImplCopyWith<$Res> { __$$InputType_LnUrlWithdrawImplCopyWithImpl( - _$InputType_LnUrlWithdrawImpl _value, - $Res Function(_$InputType_LnUrlWithdrawImpl) _then) + _$InputType_LnUrlWithdrawImpl _value, $Res Function(_$InputType_LnUrlWithdrawImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1031,9 +1009,8 @@ class _$InputType_LnUrlWithdrawImpl extends InputType_LnUrlWithdraw { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$InputType_LnUrlWithdrawImplCopyWith<_$InputType_LnUrlWithdrawImpl> - get copyWith => __$$InputType_LnUrlWithdrawImplCopyWithImpl< - _$InputType_LnUrlWithdrawImpl>(this, _$identity); + _$$InputType_LnUrlWithdrawImplCopyWith<_$InputType_LnUrlWithdrawImpl> get copyWith => + __$$InputType_LnUrlWithdrawImplCopyWithImpl<_$InputType_LnUrlWithdrawImpl>(this, _$identity); @override @optionalTypeArgs @@ -1135,21 +1112,20 @@ class _$InputType_LnUrlWithdrawImpl extends InputType_LnUrlWithdraw { } abstract class InputType_LnUrlWithdraw extends InputType { - const factory InputType_LnUrlWithdraw( - {required final LnUrlWithdrawRequestData data}) = + const factory InputType_LnUrlWithdraw({required final LnUrlWithdrawRequestData data}) = _$InputType_LnUrlWithdrawImpl; const InputType_LnUrlWithdraw._() : super._(); LnUrlWithdrawRequestData get data; @JsonKey(ignore: true) - _$$InputType_LnUrlWithdrawImplCopyWith<_$InputType_LnUrlWithdrawImpl> - get copyWith => throw _privateConstructorUsedError; + _$$InputType_LnUrlWithdrawImplCopyWith<_$InputType_LnUrlWithdrawImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$InputType_LnUrlAuthImplCopyWith<$Res> { - factory _$$InputType_LnUrlAuthImplCopyWith(_$InputType_LnUrlAuthImpl value, - $Res Function(_$InputType_LnUrlAuthImpl) then) = + factory _$$InputType_LnUrlAuthImplCopyWith( + _$InputType_LnUrlAuthImpl value, $Res Function(_$InputType_LnUrlAuthImpl) then) = __$$InputType_LnUrlAuthImplCopyWithImpl<$Res>; @useResult $Res call({LnUrlAuthRequestData data}); @@ -1159,8 +1135,8 @@ abstract class _$$InputType_LnUrlAuthImplCopyWith<$Res> { class __$$InputType_LnUrlAuthImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlAuthImpl> implements _$$InputType_LnUrlAuthImplCopyWith<$Res> { - __$$InputType_LnUrlAuthImplCopyWithImpl(_$InputType_LnUrlAuthImpl _value, - $Res Function(_$InputType_LnUrlAuthImpl) _then) + __$$InputType_LnUrlAuthImplCopyWithImpl( + _$InputType_LnUrlAuthImpl _value, $Res Function(_$InputType_LnUrlAuthImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1205,8 +1181,7 @@ class _$InputType_LnUrlAuthImpl extends InputType_LnUrlAuth { @override @pragma('vm:prefer-inline') _$$InputType_LnUrlAuthImplCopyWith<_$InputType_LnUrlAuthImpl> get copyWith => - __$$InputType_LnUrlAuthImplCopyWithImpl<_$InputType_LnUrlAuthImpl>( - this, _$identity); + __$$InputType_LnUrlAuthImplCopyWithImpl<_$InputType_LnUrlAuthImpl>(this, _$identity); @override @optionalTypeArgs @@ -1308,8 +1283,7 @@ class _$InputType_LnUrlAuthImpl extends InputType_LnUrlAuth { } abstract class InputType_LnUrlAuth extends InputType { - const factory InputType_LnUrlAuth( - {required final LnUrlAuthRequestData data}) = _$InputType_LnUrlAuthImpl; + const factory InputType_LnUrlAuth({required final LnUrlAuthRequestData data}) = _$InputType_LnUrlAuthImpl; const InputType_LnUrlAuth._() : super._(); LnUrlAuthRequestData get data; @@ -1320,8 +1294,8 @@ abstract class InputType_LnUrlAuth extends InputType { /// @nodoc abstract class _$$InputType_LnUrlErrorImplCopyWith<$Res> { - factory _$$InputType_LnUrlErrorImplCopyWith(_$InputType_LnUrlErrorImpl value, - $Res Function(_$InputType_LnUrlErrorImpl) then) = + factory _$$InputType_LnUrlErrorImplCopyWith( + _$InputType_LnUrlErrorImpl value, $Res Function(_$InputType_LnUrlErrorImpl) then) = __$$InputType_LnUrlErrorImplCopyWithImpl<$Res>; @useResult $Res call({LnUrlErrorData data}); @@ -1331,8 +1305,8 @@ abstract class _$$InputType_LnUrlErrorImplCopyWith<$Res> { class __$$InputType_LnUrlErrorImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlErrorImpl> implements _$$InputType_LnUrlErrorImplCopyWith<$Res> { - __$$InputType_LnUrlErrorImplCopyWithImpl(_$InputType_LnUrlErrorImpl _value, - $Res Function(_$InputType_LnUrlErrorImpl) _then) + __$$InputType_LnUrlErrorImplCopyWithImpl( + _$InputType_LnUrlErrorImpl _value, $Res Function(_$InputType_LnUrlErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1376,10 +1350,8 @@ class _$InputType_LnUrlErrorImpl extends InputType_LnUrlError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$InputType_LnUrlErrorImplCopyWith<_$InputType_LnUrlErrorImpl> - get copyWith => - __$$InputType_LnUrlErrorImplCopyWithImpl<_$InputType_LnUrlErrorImpl>( - this, _$identity); + _$$InputType_LnUrlErrorImplCopyWith<_$InputType_LnUrlErrorImpl> get copyWith => + __$$InputType_LnUrlErrorImplCopyWithImpl<_$InputType_LnUrlErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -1481,12 +1453,11 @@ class _$InputType_LnUrlErrorImpl extends InputType_LnUrlError { } abstract class InputType_LnUrlError extends InputType { - const factory InputType_LnUrlError({required final LnUrlErrorData data}) = - _$InputType_LnUrlErrorImpl; + const factory InputType_LnUrlError({required final LnUrlErrorData data}) = _$InputType_LnUrlErrorImpl; const InputType_LnUrlError._() : super._(); LnUrlErrorData get data; @JsonKey(ignore: true) - _$$InputType_LnUrlErrorImplCopyWith<_$InputType_LnUrlErrorImpl> - get copyWith => throw _privateConstructorUsedError; + _$$InputType_LnUrlErrorImplCopyWith<_$InputType_LnUrlErrorImpl> get copyWith => + throw _privateConstructorUsedError; } diff --git a/libs/sdk-flutter/lib/generated/invoice.dart b/libs/sdk-flutter/lib/generated/invoice.dart index 4f417e5f3..86d563b77 100644 --- a/libs/sdk-flutter/lib/generated/invoice.dart +++ b/libs/sdk-flutter/lib/generated/invoice.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -15,12 +15,12 @@ class LNInvoice { final String paymentHash; final String? description; final String? descriptionHash; - final int? amountMsat; - final int timestamp; - final int expiry; + final BigInt? amountMsat; + final BigInt timestamp; + final BigInt expiry; final List routingHints; final Uint8List paymentSecret; - final int minFinalCltvExpiryDelta; + final BigInt minFinalCltvExpiryDelta; const LNInvoice({ required this.bolt11, @@ -93,20 +93,20 @@ class RouteHintHop { final String srcNodeId; /// The short_channel_id of this channel - final int shortChannelId; + final BigInt shortChannelId; /// The fees which must be paid to use this channel final int feesBaseMsat; final int feesProportionalMillionths; /// The difference in CLTV values between this node and the next node. - final int cltvExpiryDelta; + final BigInt cltvExpiryDelta; /// The minimum value, in msat, which must be relayed to the next hop. - final int? htlcMinimumMsat; + final BigInt? htlcMinimumMsat; /// The maximum value in msat available for routing with a single HTLC. - final int? htlcMaximumMsat; + final BigInt? htlcMaximumMsat; const RouteHintHop({ required this.srcNodeId, diff --git a/libs/sdk-flutter/lib/generated/lnurl/pay/model.dart b/libs/sdk-flutter/lib/generated/lnurl/pay/model.dart index 575f651f7..b4cae1ec0 100644 --- a/libs/sdk-flutter/lib/generated/lnurl/pay/model.dart +++ b/libs/sdk-flutter/lib/generated/lnurl/pay/model.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/libs/sdk-flutter/lib/generated/lnurl/pay/model.freezed.dart b/libs/sdk-flutter/lib/generated/lnurl/pay/model.freezed.dart index decac435a..c5887f5fa 100644 --- a/libs/sdk-flutter/lib/generated/lnurl/pay/model.freezed.dart +++ b/libs/sdk-flutter/lib/generated/lnurl/pay/model.freezed.dart @@ -37,17 +37,14 @@ mixin _$AesSuccessActionDataResult { throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ - required TResult Function(AesSuccessActionDataResult_Decrypted value) - decrypted, - required TResult Function(AesSuccessActionDataResult_ErrorStatus value) - errorStatus, + required TResult Function(AesSuccessActionDataResult_Decrypted value) decrypted, + required TResult Function(AesSuccessActionDataResult_ErrorStatus value) errorStatus, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(AesSuccessActionDataResult_Decrypted value)? decrypted, - TResult? Function(AesSuccessActionDataResult_ErrorStatus value)? - errorStatus, + TResult? Function(AesSuccessActionDataResult_ErrorStatus value)? errorStatus, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -61,15 +58,13 @@ mixin _$AesSuccessActionDataResult { /// @nodoc abstract class $AesSuccessActionDataResultCopyWith<$Res> { - factory $AesSuccessActionDataResultCopyWith(AesSuccessActionDataResult value, - $Res Function(AesSuccessActionDataResult) then) = - _$AesSuccessActionDataResultCopyWithImpl<$Res, - AesSuccessActionDataResult>; + factory $AesSuccessActionDataResultCopyWith( + AesSuccessActionDataResult value, $Res Function(AesSuccessActionDataResult) then) = + _$AesSuccessActionDataResultCopyWithImpl<$Res, AesSuccessActionDataResult>; } /// @nodoc -class _$AesSuccessActionDataResultCopyWithImpl<$Res, - $Val extends AesSuccessActionDataResult> +class _$AesSuccessActionDataResultCopyWithImpl<$Res, $Val extends AesSuccessActionDataResult> implements $AesSuccessActionDataResultCopyWith<$Res> { _$AesSuccessActionDataResultCopyWithImpl(this._value, this._then); @@ -91,11 +86,9 @@ abstract class _$$AesSuccessActionDataResult_DecryptedImplCopyWith<$Res> { /// @nodoc class __$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl<$Res> - extends _$AesSuccessActionDataResultCopyWithImpl<$Res, - _$AesSuccessActionDataResult_DecryptedImpl> + extends _$AesSuccessActionDataResultCopyWithImpl<$Res, _$AesSuccessActionDataResult_DecryptedImpl> implements _$$AesSuccessActionDataResult_DecryptedImplCopyWith<$Res> { - __$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl( - _$AesSuccessActionDataResult_DecryptedImpl _value, + __$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl(_$AesSuccessActionDataResult_DecryptedImpl _value, $Res Function(_$AesSuccessActionDataResult_DecryptedImpl) _then) : super(_value, _then); @@ -115,10 +108,8 @@ class __$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl<$Res> /// @nodoc -class _$AesSuccessActionDataResult_DecryptedImpl - extends AesSuccessActionDataResult_Decrypted { - const _$AesSuccessActionDataResult_DecryptedImpl({required this.data}) - : super._(); +class _$AesSuccessActionDataResult_DecryptedImpl extends AesSuccessActionDataResult_Decrypted { + const _$AesSuccessActionDataResult_DecryptedImpl({required this.data}) : super._(); @override final AesSuccessActionDataDecrypted data; @@ -142,8 +133,7 @@ class _$AesSuccessActionDataResult_DecryptedImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$AesSuccessActionDataResult_DecryptedImplCopyWith< - _$AesSuccessActionDataResult_DecryptedImpl> + _$$AesSuccessActionDataResult_DecryptedImplCopyWith<_$AesSuccessActionDataResult_DecryptedImpl> get copyWith => __$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl< _$AesSuccessActionDataResult_DecryptedImpl>(this, _$identity); @@ -181,10 +171,8 @@ class _$AesSuccessActionDataResult_DecryptedImpl @override @optionalTypeArgs TResult map({ - required TResult Function(AesSuccessActionDataResult_Decrypted value) - decrypted, - required TResult Function(AesSuccessActionDataResult_ErrorStatus value) - errorStatus, + required TResult Function(AesSuccessActionDataResult_Decrypted value) decrypted, + required TResult Function(AesSuccessActionDataResult_ErrorStatus value) errorStatus, }) { return decrypted(this); } @@ -193,8 +181,7 @@ class _$AesSuccessActionDataResult_DecryptedImpl @optionalTypeArgs TResult? mapOrNull({ TResult? Function(AesSuccessActionDataResult_Decrypted value)? decrypted, - TResult? Function(AesSuccessActionDataResult_ErrorStatus value)? - errorStatus, + TResult? Function(AesSuccessActionDataResult_ErrorStatus value)? errorStatus, }) { return decrypted?.call(this); } @@ -213,17 +200,14 @@ class _$AesSuccessActionDataResult_DecryptedImpl } } -abstract class AesSuccessActionDataResult_Decrypted - extends AesSuccessActionDataResult { - const factory AesSuccessActionDataResult_Decrypted( - {required final AesSuccessActionDataDecrypted data}) = +abstract class AesSuccessActionDataResult_Decrypted extends AesSuccessActionDataResult { + const factory AesSuccessActionDataResult_Decrypted({required final AesSuccessActionDataDecrypted data}) = _$AesSuccessActionDataResult_DecryptedImpl; const AesSuccessActionDataResult_Decrypted._() : super._(); AesSuccessActionDataDecrypted get data; @JsonKey(ignore: true) - _$$AesSuccessActionDataResult_DecryptedImplCopyWith< - _$AesSuccessActionDataResult_DecryptedImpl> + _$$AesSuccessActionDataResult_DecryptedImplCopyWith<_$AesSuccessActionDataResult_DecryptedImpl> get copyWith => throw _privateConstructorUsedError; } @@ -239,8 +223,7 @@ abstract class _$$AesSuccessActionDataResult_ErrorStatusImplCopyWith<$Res> { /// @nodoc class __$$AesSuccessActionDataResult_ErrorStatusImplCopyWithImpl<$Res> - extends _$AesSuccessActionDataResultCopyWithImpl<$Res, - _$AesSuccessActionDataResult_ErrorStatusImpl> + extends _$AesSuccessActionDataResultCopyWithImpl<$Res, _$AesSuccessActionDataResult_ErrorStatusImpl> implements _$$AesSuccessActionDataResult_ErrorStatusImplCopyWith<$Res> { __$$AesSuccessActionDataResult_ErrorStatusImplCopyWithImpl( _$AesSuccessActionDataResult_ErrorStatusImpl _value, @@ -263,10 +246,8 @@ class __$$AesSuccessActionDataResult_ErrorStatusImplCopyWithImpl<$Res> /// @nodoc -class _$AesSuccessActionDataResult_ErrorStatusImpl - extends AesSuccessActionDataResult_ErrorStatus { - const _$AesSuccessActionDataResult_ErrorStatusImpl({required this.reason}) - : super._(); +class _$AesSuccessActionDataResult_ErrorStatusImpl extends AesSuccessActionDataResult_ErrorStatus { + const _$AesSuccessActionDataResult_ErrorStatusImpl({required this.reason}) : super._(); @override final String reason; @@ -290,11 +271,9 @@ class _$AesSuccessActionDataResult_ErrorStatusImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$AesSuccessActionDataResult_ErrorStatusImplCopyWith< - _$AesSuccessActionDataResult_ErrorStatusImpl> - get copyWith => - __$$AesSuccessActionDataResult_ErrorStatusImplCopyWithImpl< - _$AesSuccessActionDataResult_ErrorStatusImpl>(this, _$identity); + _$$AesSuccessActionDataResult_ErrorStatusImplCopyWith<_$AesSuccessActionDataResult_ErrorStatusImpl> + get copyWith => __$$AesSuccessActionDataResult_ErrorStatusImplCopyWithImpl< + _$AesSuccessActionDataResult_ErrorStatusImpl>(this, _$identity); @override @optionalTypeArgs @@ -330,10 +309,8 @@ class _$AesSuccessActionDataResult_ErrorStatusImpl @override @optionalTypeArgs TResult map({ - required TResult Function(AesSuccessActionDataResult_Decrypted value) - decrypted, - required TResult Function(AesSuccessActionDataResult_ErrorStatus value) - errorStatus, + required TResult Function(AesSuccessActionDataResult_Decrypted value) decrypted, + required TResult Function(AesSuccessActionDataResult_ErrorStatus value) errorStatus, }) { return errorStatus(this); } @@ -342,8 +319,7 @@ class _$AesSuccessActionDataResult_ErrorStatusImpl @optionalTypeArgs TResult? mapOrNull({ TResult? Function(AesSuccessActionDataResult_Decrypted value)? decrypted, - TResult? Function(AesSuccessActionDataResult_ErrorStatus value)? - errorStatus, + TResult? Function(AesSuccessActionDataResult_ErrorStatus value)? errorStatus, }) { return errorStatus?.call(this); } @@ -362,17 +338,14 @@ class _$AesSuccessActionDataResult_ErrorStatusImpl } } -abstract class AesSuccessActionDataResult_ErrorStatus - extends AesSuccessActionDataResult { - const factory AesSuccessActionDataResult_ErrorStatus( - {required final String reason}) = +abstract class AesSuccessActionDataResult_ErrorStatus extends AesSuccessActionDataResult { + const factory AesSuccessActionDataResult_ErrorStatus({required final String reason}) = _$AesSuccessActionDataResult_ErrorStatusImpl; const AesSuccessActionDataResult_ErrorStatus._() : super._(); String get reason; @JsonKey(ignore: true) - _$$AesSuccessActionDataResult_ErrorStatusImplCopyWith< - _$AesSuccessActionDataResult_ErrorStatusImpl> + _$$AesSuccessActionDataResult_ErrorStatusImplCopyWith<_$AesSuccessActionDataResult_ErrorStatusImpl> get copyWith => throw _privateConstructorUsedError; } @@ -403,8 +376,7 @@ mixin _$LnUrlPayResult { throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ - required TResult Function(LnUrlPayResult_EndpointSuccess value) - endpointSuccess, + required TResult Function(LnUrlPayResult_EndpointSuccess value) endpointSuccess, required TResult Function(LnUrlPayResult_EndpointError value) endpointError, required TResult Function(LnUrlPayResult_PayError value) payError, }) => @@ -428,8 +400,7 @@ mixin _$LnUrlPayResult { /// @nodoc abstract class $LnUrlPayResultCopyWith<$Res> { - factory $LnUrlPayResultCopyWith( - LnUrlPayResult value, $Res Function(LnUrlPayResult) then) = + factory $LnUrlPayResultCopyWith(LnUrlPayResult value, $Res Function(LnUrlPayResult) then) = _$LnUrlPayResultCopyWithImpl<$Res, LnUrlPayResult>; } @@ -446,8 +417,7 @@ class _$LnUrlPayResultCopyWithImpl<$Res, $Val extends LnUrlPayResult> /// @nodoc abstract class _$$LnUrlPayResult_EndpointSuccessImplCopyWith<$Res> { - factory _$$LnUrlPayResult_EndpointSuccessImplCopyWith( - _$LnUrlPayResult_EndpointSuccessImpl value, + factory _$$LnUrlPayResult_EndpointSuccessImplCopyWith(_$LnUrlPayResult_EndpointSuccessImpl value, $Res Function(_$LnUrlPayResult_EndpointSuccessImpl) then) = __$$LnUrlPayResult_EndpointSuccessImplCopyWithImpl<$Res>; @useResult @@ -456,12 +426,10 @@ abstract class _$$LnUrlPayResult_EndpointSuccessImplCopyWith<$Res> { /// @nodoc class __$$LnUrlPayResult_EndpointSuccessImplCopyWithImpl<$Res> - extends _$LnUrlPayResultCopyWithImpl<$Res, - _$LnUrlPayResult_EndpointSuccessImpl> + extends _$LnUrlPayResultCopyWithImpl<$Res, _$LnUrlPayResult_EndpointSuccessImpl> implements _$$LnUrlPayResult_EndpointSuccessImplCopyWith<$Res> { __$$LnUrlPayResult_EndpointSuccessImplCopyWithImpl( - _$LnUrlPayResult_EndpointSuccessImpl _value, - $Res Function(_$LnUrlPayResult_EndpointSuccessImpl) _then) + _$LnUrlPayResult_EndpointSuccessImpl _value, $Res Function(_$LnUrlPayResult_EndpointSuccessImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -480,8 +448,7 @@ class __$$LnUrlPayResult_EndpointSuccessImplCopyWithImpl<$Res> /// @nodoc -class _$LnUrlPayResult_EndpointSuccessImpl - extends LnUrlPayResult_EndpointSuccess { +class _$LnUrlPayResult_EndpointSuccessImpl extends LnUrlPayResult_EndpointSuccess { const _$LnUrlPayResult_EndpointSuccessImpl({required this.data}) : super._(); @override @@ -506,10 +473,9 @@ class _$LnUrlPayResult_EndpointSuccessImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$LnUrlPayResult_EndpointSuccessImplCopyWith< - _$LnUrlPayResult_EndpointSuccessImpl> - get copyWith => __$$LnUrlPayResult_EndpointSuccessImplCopyWithImpl< - _$LnUrlPayResult_EndpointSuccessImpl>(this, _$identity); + _$$LnUrlPayResult_EndpointSuccessImplCopyWith<_$LnUrlPayResult_EndpointSuccessImpl> get copyWith => + __$$LnUrlPayResult_EndpointSuccessImplCopyWithImpl<_$LnUrlPayResult_EndpointSuccessImpl>( + this, _$identity); @override @optionalTypeArgs @@ -548,8 +514,7 @@ class _$LnUrlPayResult_EndpointSuccessImpl @override @optionalTypeArgs TResult map({ - required TResult Function(LnUrlPayResult_EndpointSuccess value) - endpointSuccess, + required TResult Function(LnUrlPayResult_EndpointSuccess value) endpointSuccess, required TResult Function(LnUrlPayResult_EndpointError value) endpointError, required TResult Function(LnUrlPayResult_PayError value) payError, }) { @@ -582,24 +547,21 @@ class _$LnUrlPayResult_EndpointSuccessImpl } abstract class LnUrlPayResult_EndpointSuccess extends LnUrlPayResult { - const factory LnUrlPayResult_EndpointSuccess( - {required final LnUrlPaySuccessData data}) = + const factory LnUrlPayResult_EndpointSuccess({required final LnUrlPaySuccessData data}) = _$LnUrlPayResult_EndpointSuccessImpl; const LnUrlPayResult_EndpointSuccess._() : super._(); @override LnUrlPaySuccessData get data; @JsonKey(ignore: true) - _$$LnUrlPayResult_EndpointSuccessImplCopyWith< - _$LnUrlPayResult_EndpointSuccessImpl> - get copyWith => throw _privateConstructorUsedError; + _$$LnUrlPayResult_EndpointSuccessImplCopyWith<_$LnUrlPayResult_EndpointSuccessImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$LnUrlPayResult_EndpointErrorImplCopyWith<$Res> { factory _$$LnUrlPayResult_EndpointErrorImplCopyWith( - _$LnUrlPayResult_EndpointErrorImpl value, - $Res Function(_$LnUrlPayResult_EndpointErrorImpl) then) = + _$LnUrlPayResult_EndpointErrorImpl value, $Res Function(_$LnUrlPayResult_EndpointErrorImpl) then) = __$$LnUrlPayResult_EndpointErrorImplCopyWithImpl<$Res>; @useResult $Res call({LnUrlErrorData data}); @@ -607,12 +569,10 @@ abstract class _$$LnUrlPayResult_EndpointErrorImplCopyWith<$Res> { /// @nodoc class __$$LnUrlPayResult_EndpointErrorImplCopyWithImpl<$Res> - extends _$LnUrlPayResultCopyWithImpl<$Res, - _$LnUrlPayResult_EndpointErrorImpl> + extends _$LnUrlPayResultCopyWithImpl<$Res, _$LnUrlPayResult_EndpointErrorImpl> implements _$$LnUrlPayResult_EndpointErrorImplCopyWith<$Res> { __$$LnUrlPayResult_EndpointErrorImplCopyWithImpl( - _$LnUrlPayResult_EndpointErrorImpl _value, - $Res Function(_$LnUrlPayResult_EndpointErrorImpl) _then) + _$LnUrlPayResult_EndpointErrorImpl _value, $Res Function(_$LnUrlPayResult_EndpointErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -656,10 +616,8 @@ class _$LnUrlPayResult_EndpointErrorImpl extends LnUrlPayResult_EndpointError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$LnUrlPayResult_EndpointErrorImplCopyWith< - _$LnUrlPayResult_EndpointErrorImpl> - get copyWith => __$$LnUrlPayResult_EndpointErrorImplCopyWithImpl< - _$LnUrlPayResult_EndpointErrorImpl>(this, _$identity); + _$$LnUrlPayResult_EndpointErrorImplCopyWith<_$LnUrlPayResult_EndpointErrorImpl> get copyWith => + __$$LnUrlPayResult_EndpointErrorImplCopyWithImpl<_$LnUrlPayResult_EndpointErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -698,8 +656,7 @@ class _$LnUrlPayResult_EndpointErrorImpl extends LnUrlPayResult_EndpointError { @override @optionalTypeArgs TResult map({ - required TResult Function(LnUrlPayResult_EndpointSuccess value) - endpointSuccess, + required TResult Function(LnUrlPayResult_EndpointSuccess value) endpointSuccess, required TResult Function(LnUrlPayResult_EndpointError value) endpointError, required TResult Function(LnUrlPayResult_PayError value) payError, }) { @@ -732,24 +689,21 @@ class _$LnUrlPayResult_EndpointErrorImpl extends LnUrlPayResult_EndpointError { } abstract class LnUrlPayResult_EndpointError extends LnUrlPayResult { - const factory LnUrlPayResult_EndpointError( - {required final LnUrlErrorData data}) = + const factory LnUrlPayResult_EndpointError({required final LnUrlErrorData data}) = _$LnUrlPayResult_EndpointErrorImpl; const LnUrlPayResult_EndpointError._() : super._(); @override LnUrlErrorData get data; @JsonKey(ignore: true) - _$$LnUrlPayResult_EndpointErrorImplCopyWith< - _$LnUrlPayResult_EndpointErrorImpl> - get copyWith => throw _privateConstructorUsedError; + _$$LnUrlPayResult_EndpointErrorImplCopyWith<_$LnUrlPayResult_EndpointErrorImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$LnUrlPayResult_PayErrorImplCopyWith<$Res> { factory _$$LnUrlPayResult_PayErrorImplCopyWith( - _$LnUrlPayResult_PayErrorImpl value, - $Res Function(_$LnUrlPayResult_PayErrorImpl) then) = + _$LnUrlPayResult_PayErrorImpl value, $Res Function(_$LnUrlPayResult_PayErrorImpl) then) = __$$LnUrlPayResult_PayErrorImplCopyWithImpl<$Res>; @useResult $Res call({LnUrlPayErrorData data}); @@ -760,8 +714,7 @@ class __$$LnUrlPayResult_PayErrorImplCopyWithImpl<$Res> extends _$LnUrlPayResultCopyWithImpl<$Res, _$LnUrlPayResult_PayErrorImpl> implements _$$LnUrlPayResult_PayErrorImplCopyWith<$Res> { __$$LnUrlPayResult_PayErrorImplCopyWithImpl( - _$LnUrlPayResult_PayErrorImpl _value, - $Res Function(_$LnUrlPayResult_PayErrorImpl) _then) + _$LnUrlPayResult_PayErrorImpl _value, $Res Function(_$LnUrlPayResult_PayErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -805,9 +758,8 @@ class _$LnUrlPayResult_PayErrorImpl extends LnUrlPayResult_PayError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$LnUrlPayResult_PayErrorImplCopyWith<_$LnUrlPayResult_PayErrorImpl> - get copyWith => __$$LnUrlPayResult_PayErrorImplCopyWithImpl< - _$LnUrlPayResult_PayErrorImpl>(this, _$identity); + _$$LnUrlPayResult_PayErrorImplCopyWith<_$LnUrlPayResult_PayErrorImpl> get copyWith => + __$$LnUrlPayResult_PayErrorImplCopyWithImpl<_$LnUrlPayResult_PayErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -846,8 +798,7 @@ class _$LnUrlPayResult_PayErrorImpl extends LnUrlPayResult_PayError { @override @optionalTypeArgs TResult map({ - required TResult Function(LnUrlPayResult_EndpointSuccess value) - endpointSuccess, + required TResult Function(LnUrlPayResult_EndpointSuccess value) endpointSuccess, required TResult Function(LnUrlPayResult_EndpointError value) endpointError, required TResult Function(LnUrlPayResult_PayError value) payError, }) { @@ -880,15 +831,15 @@ class _$LnUrlPayResult_PayErrorImpl extends LnUrlPayResult_PayError { } abstract class LnUrlPayResult_PayError extends LnUrlPayResult { - const factory LnUrlPayResult_PayError( - {required final LnUrlPayErrorData data}) = _$LnUrlPayResult_PayErrorImpl; + const factory LnUrlPayResult_PayError({required final LnUrlPayErrorData data}) = + _$LnUrlPayResult_PayErrorImpl; const LnUrlPayResult_PayError._() : super._(); @override LnUrlPayErrorData get data; @JsonKey(ignore: true) - _$$LnUrlPayResult_PayErrorImplCopyWith<_$LnUrlPayResult_PayErrorImpl> - get copyWith => throw _privateConstructorUsedError; + _$$LnUrlPayResult_PayErrorImplCopyWith<_$LnUrlPayResult_PayErrorImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc @@ -941,14 +892,13 @@ mixin _$SuccessActionProcessed { /// @nodoc abstract class $SuccessActionProcessedCopyWith<$Res> { - factory $SuccessActionProcessedCopyWith(SuccessActionProcessed value, - $Res Function(SuccessActionProcessed) then) = + factory $SuccessActionProcessedCopyWith( + SuccessActionProcessed value, $Res Function(SuccessActionProcessed) then) = _$SuccessActionProcessedCopyWithImpl<$Res, SuccessActionProcessed>; } /// @nodoc -class _$SuccessActionProcessedCopyWithImpl<$Res, - $Val extends SuccessActionProcessed> +class _$SuccessActionProcessedCopyWithImpl<$Res, $Val extends SuccessActionProcessed> implements $SuccessActionProcessedCopyWith<$Res> { _$SuccessActionProcessedCopyWithImpl(this._value, this._then); @@ -961,8 +911,7 @@ class _$SuccessActionProcessedCopyWithImpl<$Res, /// @nodoc abstract class _$$SuccessActionProcessed_AesImplCopyWith<$Res> { factory _$$SuccessActionProcessed_AesImplCopyWith( - _$SuccessActionProcessed_AesImpl value, - $Res Function(_$SuccessActionProcessed_AesImpl) then) = + _$SuccessActionProcessed_AesImpl value, $Res Function(_$SuccessActionProcessed_AesImpl) then) = __$$SuccessActionProcessed_AesImplCopyWithImpl<$Res>; @useResult $Res call({AesSuccessActionDataResult result}); @@ -972,12 +921,10 @@ abstract class _$$SuccessActionProcessed_AesImplCopyWith<$Res> { /// @nodoc class __$$SuccessActionProcessed_AesImplCopyWithImpl<$Res> - extends _$SuccessActionProcessedCopyWithImpl<$Res, - _$SuccessActionProcessed_AesImpl> + extends _$SuccessActionProcessedCopyWithImpl<$Res, _$SuccessActionProcessed_AesImpl> implements _$$SuccessActionProcessed_AesImplCopyWith<$Res> { __$$SuccessActionProcessed_AesImplCopyWithImpl( - _$SuccessActionProcessed_AesImpl _value, - $Res Function(_$SuccessActionProcessed_AesImpl) _then) + _$SuccessActionProcessed_AesImpl _value, $Res Function(_$SuccessActionProcessed_AesImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1029,9 +976,8 @@ class _$SuccessActionProcessed_AesImpl extends SuccessActionProcessed_Aes { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$SuccessActionProcessed_AesImplCopyWith<_$SuccessActionProcessed_AesImpl> - get copyWith => __$$SuccessActionProcessed_AesImplCopyWithImpl< - _$SuccessActionProcessed_AesImpl>(this, _$identity); + _$$SuccessActionProcessed_AesImplCopyWith<_$SuccessActionProcessed_AesImpl> get copyWith => + __$$SuccessActionProcessed_AesImplCopyWithImpl<_$SuccessActionProcessed_AesImpl>(this, _$identity); @override @optionalTypeArgs @@ -1103,21 +1049,19 @@ class _$SuccessActionProcessed_AesImpl extends SuccessActionProcessed_Aes { } abstract class SuccessActionProcessed_Aes extends SuccessActionProcessed { - const factory SuccessActionProcessed_Aes( - {required final AesSuccessActionDataResult result}) = + const factory SuccessActionProcessed_Aes({required final AesSuccessActionDataResult result}) = _$SuccessActionProcessed_AesImpl; const SuccessActionProcessed_Aes._() : super._(); AesSuccessActionDataResult get result; @JsonKey(ignore: true) - _$$SuccessActionProcessed_AesImplCopyWith<_$SuccessActionProcessed_AesImpl> - get copyWith => throw _privateConstructorUsedError; + _$$SuccessActionProcessed_AesImplCopyWith<_$SuccessActionProcessed_AesImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$SuccessActionProcessed_MessageImplCopyWith<$Res> { - factory _$$SuccessActionProcessed_MessageImplCopyWith( - _$SuccessActionProcessed_MessageImpl value, + factory _$$SuccessActionProcessed_MessageImplCopyWith(_$SuccessActionProcessed_MessageImpl value, $Res Function(_$SuccessActionProcessed_MessageImpl) then) = __$$SuccessActionProcessed_MessageImplCopyWithImpl<$Res>; @useResult @@ -1126,12 +1070,10 @@ abstract class _$$SuccessActionProcessed_MessageImplCopyWith<$Res> { /// @nodoc class __$$SuccessActionProcessed_MessageImplCopyWithImpl<$Res> - extends _$SuccessActionProcessedCopyWithImpl<$Res, - _$SuccessActionProcessed_MessageImpl> + extends _$SuccessActionProcessedCopyWithImpl<$Res, _$SuccessActionProcessed_MessageImpl> implements _$$SuccessActionProcessed_MessageImplCopyWith<$Res> { __$$SuccessActionProcessed_MessageImplCopyWithImpl( - _$SuccessActionProcessed_MessageImpl _value, - $Res Function(_$SuccessActionProcessed_MessageImpl) _then) + _$SuccessActionProcessed_MessageImpl _value, $Res Function(_$SuccessActionProcessed_MessageImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1150,8 +1092,7 @@ class __$$SuccessActionProcessed_MessageImplCopyWithImpl<$Res> /// @nodoc -class _$SuccessActionProcessed_MessageImpl - extends SuccessActionProcessed_Message { +class _$SuccessActionProcessed_MessageImpl extends SuccessActionProcessed_Message { const _$SuccessActionProcessed_MessageImpl({required this.data}) : super._(); @override @@ -1176,10 +1117,9 @@ class _$SuccessActionProcessed_MessageImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$SuccessActionProcessed_MessageImplCopyWith< - _$SuccessActionProcessed_MessageImpl> - get copyWith => __$$SuccessActionProcessed_MessageImplCopyWithImpl< - _$SuccessActionProcessed_MessageImpl>(this, _$identity); + _$$SuccessActionProcessed_MessageImplCopyWith<_$SuccessActionProcessed_MessageImpl> get copyWith => + __$$SuccessActionProcessed_MessageImplCopyWithImpl<_$SuccessActionProcessed_MessageImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1251,23 +1191,20 @@ class _$SuccessActionProcessed_MessageImpl } abstract class SuccessActionProcessed_Message extends SuccessActionProcessed { - const factory SuccessActionProcessed_Message( - {required final MessageSuccessActionData data}) = + const factory SuccessActionProcessed_Message({required final MessageSuccessActionData data}) = _$SuccessActionProcessed_MessageImpl; const SuccessActionProcessed_Message._() : super._(); MessageSuccessActionData get data; @JsonKey(ignore: true) - _$$SuccessActionProcessed_MessageImplCopyWith< - _$SuccessActionProcessed_MessageImpl> - get copyWith => throw _privateConstructorUsedError; + _$$SuccessActionProcessed_MessageImplCopyWith<_$SuccessActionProcessed_MessageImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$SuccessActionProcessed_UrlImplCopyWith<$Res> { factory _$$SuccessActionProcessed_UrlImplCopyWith( - _$SuccessActionProcessed_UrlImpl value, - $Res Function(_$SuccessActionProcessed_UrlImpl) then) = + _$SuccessActionProcessed_UrlImpl value, $Res Function(_$SuccessActionProcessed_UrlImpl) then) = __$$SuccessActionProcessed_UrlImplCopyWithImpl<$Res>; @useResult $Res call({UrlSuccessActionData data}); @@ -1275,12 +1212,10 @@ abstract class _$$SuccessActionProcessed_UrlImplCopyWith<$Res> { /// @nodoc class __$$SuccessActionProcessed_UrlImplCopyWithImpl<$Res> - extends _$SuccessActionProcessedCopyWithImpl<$Res, - _$SuccessActionProcessed_UrlImpl> + extends _$SuccessActionProcessedCopyWithImpl<$Res, _$SuccessActionProcessed_UrlImpl> implements _$$SuccessActionProcessed_UrlImplCopyWith<$Res> { __$$SuccessActionProcessed_UrlImplCopyWithImpl( - _$SuccessActionProcessed_UrlImpl _value, - $Res Function(_$SuccessActionProcessed_UrlImpl) _then) + _$SuccessActionProcessed_UrlImpl _value, $Res Function(_$SuccessActionProcessed_UrlImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1324,9 +1259,8 @@ class _$SuccessActionProcessed_UrlImpl extends SuccessActionProcessed_Url { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$SuccessActionProcessed_UrlImplCopyWith<_$SuccessActionProcessed_UrlImpl> - get copyWith => __$$SuccessActionProcessed_UrlImplCopyWithImpl< - _$SuccessActionProcessed_UrlImpl>(this, _$identity); + _$$SuccessActionProcessed_UrlImplCopyWith<_$SuccessActionProcessed_UrlImpl> get copyWith => + __$$SuccessActionProcessed_UrlImplCopyWithImpl<_$SuccessActionProcessed_UrlImpl>(this, _$identity); @override @optionalTypeArgs @@ -1398,13 +1332,12 @@ class _$SuccessActionProcessed_UrlImpl extends SuccessActionProcessed_Url { } abstract class SuccessActionProcessed_Url extends SuccessActionProcessed { - const factory SuccessActionProcessed_Url( - {required final UrlSuccessActionData data}) = + const factory SuccessActionProcessed_Url({required final UrlSuccessActionData data}) = _$SuccessActionProcessed_UrlImpl; const SuccessActionProcessed_Url._() : super._(); UrlSuccessActionData get data; @JsonKey(ignore: true) - _$$SuccessActionProcessed_UrlImplCopyWith<_$SuccessActionProcessed_UrlImpl> - get copyWith => throw _privateConstructorUsedError; + _$$SuccessActionProcessed_UrlImplCopyWith<_$SuccessActionProcessed_UrlImpl> get copyWith => + throw _privateConstructorUsedError; } diff --git a/libs/sdk-flutter/lib/generated/lsp.dart b/libs/sdk-flutter/lib/generated/lsp.dart index 9a86d66b6..09379d413 100644 --- a/libs/sdk-flutter/lib/generated/lsp.dart +++ b/libs/sdk-flutter/lib/generated/lsp.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -24,7 +24,7 @@ class LspInformation { final String host; /// The base fee charged regardless of the number of milli-satoshis sent - final int baseFeeMsat; + final PlatformInt64 baseFeeMsat; /// The effective fee rate in milli-satoshis. The precision of this value goes up to 6 decimal places, so 1e-6. final double feeRate; @@ -33,7 +33,7 @@ class LspInformation { final int timeLockDelta; /// The minimum value in millisatoshi we will require for incoming HTLCs on the channel - final int minHtlcMsat; + final PlatformInt64 minHtlcMsat; final Uint8List lspPubkey; final OpeningFeeParamsMenu openingFeeParamsList; diff --git a/libs/sdk-flutter/lib/generated/models.dart b/libs/sdk-flutter/lib/generated/models.dart index 9fcefda0f..da93a18b3 100644 --- a/libs/sdk-flutter/lib/generated/models.dart +++ b/libs/sdk-flutter/lib/generated/models.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.33. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -15,7 +15,7 @@ class BackupStatus { final bool backedUp; /// Epoch time, in seconds - final int? lastBackupTime; + final BigInt? lastBackupTime; const BackupStatus({ required this.backedUp, @@ -149,7 +149,7 @@ class Config { final double maxfeePercent; /// Maps to the CLN `exemptfee` config when paying invoices (`lightning-pay`) - final int exemptfeeMsat; + final BigInt exemptfeeMsat; final NodeConfig nodeConfig; const Config({ @@ -308,10 +308,10 @@ class ListPaymentsRequest { final List? metadataFilters; /// Epoch time, in seconds - final int? fromTimestamp; + final PlatformInt64? fromTimestamp; /// Epoch time, in seconds - final int? toTimestamp; + final PlatformInt64? toTimestamp; final bool? includeFailures; final int? offset; final int? limit; @@ -471,7 +471,7 @@ class LnUrlPayRequest { final LnUrlPayRequestData data; /// The amount in millisatoshis for this payment - final int amountMsat; + final BigInt amountMsat; /// An optional comment for this payment final String? comment; @@ -508,7 +508,7 @@ class LnUrlWithdrawRequest { /// The amount to withdraw from the lnurl withdraw endpoint. Must be between /// `min_withdrawable` and `max_withdrawable`. - final int amountMsat; + final BigInt amountMsat; /// Optional description that will be put in the payment request for the /// lnurl withdraw endpoint. @@ -582,7 +582,7 @@ class LogEntry { class MaxReverseSwapAmountResponse { /// The total sats that can be sent onchain. - final int totalSat; + final BigInt totalSat; const MaxReverseSwapAmountResponse({ required this.totalSat, @@ -659,16 +659,16 @@ sealed class NodeCredentials with _$NodeCredentials { class NodeState { final String id; final int blockHeight; - final int channelsBalanceMsat; - final int onchainBalanceMsat; - final int pendingOnchainBalanceMsat; + final BigInt channelsBalanceMsat; + final BigInt onchainBalanceMsat; + final BigInt pendingOnchainBalanceMsat; final List utxos; - final int maxPayableMsat; - final int maxReceivableMsat; - final int maxSinglePaymentAmountMsat; - final int maxChanReserveMsats; + final BigInt maxPayableMsat; + final BigInt maxReceivableMsat; + final BigInt maxSinglePaymentAmountMsat; + final BigInt maxChanReserveMsats; final List connectedPeers; - final int inboundLiquidityMsats; + final BigInt inboundLiquidityMsats; const NodeState({ required this.id, @@ -723,12 +723,12 @@ class OnchainPaymentLimitsResponse { /// Minimum amount that can be sent. This value is influenced by /// - what can be sent given the available channels and balance /// - the lower limit of what the reverse swap service accepts as a send amount - final int minSat; + final BigInt minSat; /// Maximum amount that can be sent. This value is influenced by /// - what can be sent given the available channels and balance /// - the upper limit of what the reverse swap service accepts as a send amount - final int maxSat; + final BigInt maxSat; const OnchainPaymentLimitsResponse({ required this.minSat, @@ -748,7 +748,7 @@ class OnchainPaymentLimitsResponse { } class OpenChannelFeeRequest { - final int? amountMsat; + final BigInt? amountMsat; final int? expiry; const OpenChannelFeeRequest({ @@ -771,7 +771,7 @@ class OpenChannelFeeRequest { class OpenChannelFeeResponse { /// Opening fee for receiving the amount set in the [OpenChannelFeeRequest], in case it was set. /// It may be zero if no new channel needs to be opened. - final int? feeMsat; + final BigInt? feeMsat; /// The fee params for receiving more than the current inbound liquidity. final OpeningFeeParams feeParams; @@ -799,7 +799,7 @@ class OpenChannelFeeResponse { /// otherwise the LSP may reject the call. class OpeningFeeParams { /// The minimum value in millisatoshi we will require for incoming HTLCs on the channel - final int minMsat; + final BigInt minMsat; /// The fee in ppm charged over liquidity when buying a channel final int proportional; @@ -905,9 +905,9 @@ class Payment { final PaymentType paymentType; /// Epoch time, in seconds - final int paymentTime; - final int amountMsat; - final int feeMsat; + final PlatformInt64 paymentTime; + final BigInt amountMsat; + final BigInt feeMsat; final PaymentStatus status; final String? error; final String? description; @@ -996,7 +996,7 @@ enum PaymentTypeFilter { /// See [ReverseSwapFeesRequest] class PrepareOnchainPaymentRequest { /// Depending on `amount_type`, this may be the desired send amount or the desired receive amount. - final int amountSat; + final BigInt amountSat; final SwapAmountType amountType; /// Feerate (sat / vByte) for the claim transaction @@ -1026,11 +1026,11 @@ class PrepareOnchainPaymentRequest { class PrepareOnchainPaymentResponse { final String feesHash; final double feesPercentage; - final int feesLockup; - final int feesClaim; - final int senderAmountSat; - final int recipientAmountSat; - final int totalFees; + final BigInt feesLockup; + final BigInt feesClaim; + final BigInt senderAmountSat; + final BigInt recipientAmountSat; + final BigInt totalFees; const PrepareOnchainPaymentResponse({ required this.feesHash, @@ -1093,8 +1093,8 @@ class PrepareRedeemOnchainFundsRequest { /// We need to prepare a redeem_onchain_funds transaction to know what a fee it will be charged in satoshis /// this model holds the response data, which consists of the weight and the absolute fee in sats class PrepareRedeemOnchainFundsResponse { - final int txWeight; - final int txFeeSat; + final BigInt txWeight; + final BigInt txFeeSat; const PrepareRedeemOnchainFundsResponse({ required this.txWeight, @@ -1139,7 +1139,7 @@ class PrepareRefundRequest { class PrepareRefundResponse { final int refundTxWeight; - final int refundTxFeeSat; + final BigInt refundTxFeeSat; const PrepareRefundResponse({ required this.refundTxWeight, @@ -1179,7 +1179,7 @@ class ReceiveOnchainRequest { /// Represents a receive payment request. class ReceivePaymentRequest { /// The amount in satoshis for this payment request - final int amountMsat; + final BigInt amountMsat; /// The description for this payment request. final String description; @@ -1248,7 +1248,7 @@ class ReceivePaymentResponse { final OpeningFeeParams? openingFeeParams; /// If set, this is the channel opening fee that will be deduced from the invoice amount. - final int? openingFeeMsat; + final BigInt? openingFeeMsat; const ReceivePaymentResponse({ required this.lnInvoice, @@ -1381,7 +1381,7 @@ class ReportPaymentFailureDetails { class ReverseSwapFeesRequest { /// Amount to be sent - final int? sendAmountSat; + final BigInt? sendAmountSat; /// Feerate (sat / vByte) for the claim transaction final int? claimTxFeerate; @@ -1413,7 +1413,7 @@ class ReverseSwapInfo { /// The claim tx id, available from the moment the claim tx is broadcast by the SDK final String? claimTxid; - final int onchainAmountSat; + final BigInt onchainAmountSat; final ReverseSwapStatus status; const ReverseSwapInfo({ @@ -1450,10 +1450,10 @@ class ReverseSwapInfo { /// Details about the reverse swap fees and parameters, at this point in time class ReverseSwapPairInfo { /// Minimum amount of sats a reverse swap is allowed to have given the current feerate conditions - final int min; + final BigInt min; /// Maximum amount of sats a reverse swap is allowed to have given the current feerate conditions - final int max; + final BigInt max; /// Hash of the pair info JSON final String feesHash; @@ -1462,10 +1462,10 @@ class ReverseSwapPairInfo { final double feesPercentage; /// Miner fees in sats for locking up funds - final int feesLockup; + final BigInt feesLockup; /// Miner fees in sats for claiming funds. Estimate or exact value, depending on the request args. - final int feesClaim; + final BigInt feesClaim; /// Total fees for the reverse swap, in sats, based on the given send amount. /// @@ -1473,7 +1473,7 @@ class ReverseSwapPairInfo { /// /// If the [ReverseSwapFeesRequest] has the `claim_tx_feerate` empty, this is an estimate. If /// the `claim_tx_feerate` is set, this is the exact value of the total reverse swap fees. - final int? totalFees; + final BigInt? totalFees; const ReverseSwapPairInfo({ required this.min, @@ -1535,7 +1535,7 @@ enum ReverseSwapStatus { } class SendOnchainRequest { - final int amountSat; + final BigInt amountSat; final String onchainRecipientAddress; final String pairHash; final int satPerVbyte; @@ -1586,7 +1586,7 @@ class SendPaymentRequest { final String bolt11; /// The amount to pay in millisatoshis. Should only be set when `bolt11` is a zero-amount invoice. - final int? amountMsat; + final BigInt? amountMsat; /// The external label or identifier of the [Payment] final String? label; @@ -1633,7 +1633,7 @@ class SendSpontaneousPaymentRequest { final String nodeId; /// The amount in millisatoshis for this payment - final int amountMsat; + final BigInt amountMsat; final List? extraTlvs; /// The external label or identifier of the [Payment] @@ -1727,10 +1727,10 @@ class SwapInfo { final String bitcoinAddress; /// Relative time lock start, received from [SwapperAPI::create_swap]. - final int createdAt; + final PlatformInt64 createdAt; /// Relative time lock for the timeout for the script to be redeemed before swap fails. - final int lockHeight; + final PlatformInt64 lockHeight; /// sha256 hash of preimage to used in the claim sript. final Uint8List paymentHash; @@ -1754,16 +1754,16 @@ class SwapInfo { final String? bolt11; /// Amount of millisatoshis claimed from sent funds and paid for via bolt11 invoice. - final int paidMsat; + final BigInt paidMsat; /// Total amount of transactions sent to the swap address. - final int totalIncomingTxs; + final BigInt totalIncomingTxs; /// Confirmed onchain sats to be claim with an bolt11 invoice or refunded if swap fails. - final int confirmedSats; + final BigInt confirmedSats; /// Unconfirmed sats waiting to be confirmed onchain. - final int unconfirmedSats; + final BigInt unconfirmedSats; /// Shows the current status of the swap, either `Initial` or `Expired`. final SwapStatus status; @@ -1778,13 +1778,13 @@ class SwapInfo { final List confirmedTxIds; /// The minimum amount of sats one can send in order for the swap to succeed. Received from [SwapperAPI::create_swap]. - final int minAllowedDeposit; + final PlatformInt64 minAllowedDeposit; /// The maximum amount of sats one can send in order for the swap to succeed. This is determined based on `max_swapper_payable` and the node's local balance. - final int maxAllowedDeposit; + final PlatformInt64 maxAllowedDeposit; /// The absolute maximum value payable by the swapper. Received from [SwapperAPI::create_swap]. - final int maxSwapperPayable; + final PlatformInt64 maxSwapperPayable; /// Error reason for when swap fails. final String? lastRedeemError; @@ -1905,7 +1905,7 @@ enum SwapStatus { /// Represents a TLV entry for a keysend payment. class TlvEntry { /// The type field for the TLV - final int fieldNumber; + final BigInt fieldNumber; /// The value bytes for the TLV final Uint8List value; @@ -1931,7 +1931,7 @@ class TlvEntry { class UnspentTransactionOutput { final Uint8List txid; final int outnum; - final int amountMillisatoshi; + final BigInt amountMillisatoshi; final String address; final bool reserved; diff --git a/libs/sdk-flutter/lib/generated/models.freezed.dart b/libs/sdk-flutter/lib/generated/models.freezed.dart index dc84a8a1b..f056ff34b 100644 --- a/libs/sdk-flutter/lib/generated/models.freezed.dart +++ b/libs/sdk-flutter/lib/generated/models.freezed.dart @@ -38,8 +38,7 @@ mixin _$LnUrlCallbackStatus { @optionalTypeArgs TResult map({ required TResult Function(LnUrlCallbackStatus_Ok value) ok, - required TResult Function(LnUrlCallbackStatus_ErrorStatus value) - errorStatus, + required TResult Function(LnUrlCallbackStatus_ErrorStatus value) errorStatus, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -59,8 +58,7 @@ mixin _$LnUrlCallbackStatus { /// @nodoc abstract class $LnUrlCallbackStatusCopyWith<$Res> { - factory $LnUrlCallbackStatusCopyWith( - LnUrlCallbackStatus value, $Res Function(LnUrlCallbackStatus) then) = + factory $LnUrlCallbackStatusCopyWith(LnUrlCallbackStatus value, $Res Function(LnUrlCallbackStatus) then) = _$LnUrlCallbackStatusCopyWithImpl<$Res, LnUrlCallbackStatus>; } @@ -78,19 +76,16 @@ class _$LnUrlCallbackStatusCopyWithImpl<$Res, $Val extends LnUrlCallbackStatus> /// @nodoc abstract class _$$LnUrlCallbackStatus_OkImplCopyWith<$Res> { factory _$$LnUrlCallbackStatus_OkImplCopyWith( - _$LnUrlCallbackStatus_OkImpl value, - $Res Function(_$LnUrlCallbackStatus_OkImpl) then) = + _$LnUrlCallbackStatus_OkImpl value, $Res Function(_$LnUrlCallbackStatus_OkImpl) then) = __$$LnUrlCallbackStatus_OkImplCopyWithImpl<$Res>; } /// @nodoc class __$$LnUrlCallbackStatus_OkImplCopyWithImpl<$Res> - extends _$LnUrlCallbackStatusCopyWithImpl<$Res, - _$LnUrlCallbackStatus_OkImpl> + extends _$LnUrlCallbackStatusCopyWithImpl<$Res, _$LnUrlCallbackStatus_OkImpl> implements _$$LnUrlCallbackStatus_OkImplCopyWith<$Res> { __$$LnUrlCallbackStatus_OkImplCopyWithImpl( - _$LnUrlCallbackStatus_OkImpl _value, - $Res Function(_$LnUrlCallbackStatus_OkImpl) _then) + _$LnUrlCallbackStatus_OkImpl _value, $Res Function(_$LnUrlCallbackStatus_OkImpl) _then) : super(_value, _then); } @@ -107,8 +102,7 @@ class _$LnUrlCallbackStatus_OkImpl extends LnUrlCallbackStatus_Ok { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && - other is _$LnUrlCallbackStatus_OkImpl); + (other.runtimeType == runtimeType && other is _$LnUrlCallbackStatus_OkImpl); } @override @@ -149,8 +143,7 @@ class _$LnUrlCallbackStatus_OkImpl extends LnUrlCallbackStatus_Ok { @optionalTypeArgs TResult map({ required TResult Function(LnUrlCallbackStatus_Ok value) ok, - required TResult Function(LnUrlCallbackStatus_ErrorStatus value) - errorStatus, + required TResult Function(LnUrlCallbackStatus_ErrorStatus value) errorStatus, }) { return ok(this); } @@ -185,8 +178,7 @@ abstract class LnUrlCallbackStatus_Ok extends LnUrlCallbackStatus { /// @nodoc abstract class _$$LnUrlCallbackStatus_ErrorStatusImplCopyWith<$Res> { - factory _$$LnUrlCallbackStatus_ErrorStatusImplCopyWith( - _$LnUrlCallbackStatus_ErrorStatusImpl value, + factory _$$LnUrlCallbackStatus_ErrorStatusImplCopyWith(_$LnUrlCallbackStatus_ErrorStatusImpl value, $Res Function(_$LnUrlCallbackStatus_ErrorStatusImpl) then) = __$$LnUrlCallbackStatus_ErrorStatusImplCopyWithImpl<$Res>; @useResult @@ -195,11 +187,9 @@ abstract class _$$LnUrlCallbackStatus_ErrorStatusImplCopyWith<$Res> { /// @nodoc class __$$LnUrlCallbackStatus_ErrorStatusImplCopyWithImpl<$Res> - extends _$LnUrlCallbackStatusCopyWithImpl<$Res, - _$LnUrlCallbackStatus_ErrorStatusImpl> + extends _$LnUrlCallbackStatusCopyWithImpl<$Res, _$LnUrlCallbackStatus_ErrorStatusImpl> implements _$$LnUrlCallbackStatus_ErrorStatusImplCopyWith<$Res> { - __$$LnUrlCallbackStatus_ErrorStatusImplCopyWithImpl( - _$LnUrlCallbackStatus_ErrorStatusImpl _value, + __$$LnUrlCallbackStatus_ErrorStatusImplCopyWithImpl(_$LnUrlCallbackStatus_ErrorStatusImpl _value, $Res Function(_$LnUrlCallbackStatus_ErrorStatusImpl) _then) : super(_value, _then); @@ -219,8 +209,7 @@ class __$$LnUrlCallbackStatus_ErrorStatusImplCopyWithImpl<$Res> /// @nodoc -class _$LnUrlCallbackStatus_ErrorStatusImpl - extends LnUrlCallbackStatus_ErrorStatus { +class _$LnUrlCallbackStatus_ErrorStatusImpl extends LnUrlCallbackStatus_ErrorStatus { const _$LnUrlCallbackStatus_ErrorStatusImpl({required this.data}) : super._(); @override @@ -245,10 +234,9 @@ class _$LnUrlCallbackStatus_ErrorStatusImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$LnUrlCallbackStatus_ErrorStatusImplCopyWith< - _$LnUrlCallbackStatus_ErrorStatusImpl> - get copyWith => __$$LnUrlCallbackStatus_ErrorStatusImplCopyWithImpl< - _$LnUrlCallbackStatus_ErrorStatusImpl>(this, _$identity); + _$$LnUrlCallbackStatus_ErrorStatusImplCopyWith<_$LnUrlCallbackStatus_ErrorStatusImpl> get copyWith => + __$$LnUrlCallbackStatus_ErrorStatusImplCopyWithImpl<_$LnUrlCallbackStatus_ErrorStatusImpl>( + this, _$identity); @override @optionalTypeArgs @@ -285,8 +273,7 @@ class _$LnUrlCallbackStatus_ErrorStatusImpl @optionalTypeArgs TResult map({ required TResult Function(LnUrlCallbackStatus_Ok value) ok, - required TResult Function(LnUrlCallbackStatus_ErrorStatus value) - errorStatus, + required TResult Function(LnUrlCallbackStatus_ErrorStatus value) errorStatus, }) { return errorStatus(this); } @@ -315,16 +302,14 @@ class _$LnUrlCallbackStatus_ErrorStatusImpl } abstract class LnUrlCallbackStatus_ErrorStatus extends LnUrlCallbackStatus { - const factory LnUrlCallbackStatus_ErrorStatus( - {required final LnUrlErrorData data}) = + const factory LnUrlCallbackStatus_ErrorStatus({required final LnUrlErrorData data}) = _$LnUrlCallbackStatus_ErrorStatusImpl; const LnUrlCallbackStatus_ErrorStatus._() : super._(); LnUrlErrorData get data; @JsonKey(ignore: true) - _$$LnUrlCallbackStatus_ErrorStatusImplCopyWith< - _$LnUrlCallbackStatus_ErrorStatusImpl> - get copyWith => throw _privateConstructorUsedError; + _$$LnUrlCallbackStatus_ErrorStatusImplCopyWith<_$LnUrlCallbackStatus_ErrorStatusImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc @@ -352,8 +337,7 @@ mixin _$LnUrlWithdrawResult { @optionalTypeArgs TResult map({ required TResult Function(LnUrlWithdrawResult_Ok value) ok, - required TResult Function(LnUrlWithdrawResult_ErrorStatus value) - errorStatus, + required TResult Function(LnUrlWithdrawResult_ErrorStatus value) errorStatus, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -373,8 +357,7 @@ mixin _$LnUrlWithdrawResult { /// @nodoc abstract class $LnUrlWithdrawResultCopyWith<$Res> { - factory $LnUrlWithdrawResultCopyWith( - LnUrlWithdrawResult value, $Res Function(LnUrlWithdrawResult) then) = + factory $LnUrlWithdrawResultCopyWith(LnUrlWithdrawResult value, $Res Function(LnUrlWithdrawResult) then) = _$LnUrlWithdrawResultCopyWithImpl<$Res, LnUrlWithdrawResult>; } @@ -392,8 +375,7 @@ class _$LnUrlWithdrawResultCopyWithImpl<$Res, $Val extends LnUrlWithdrawResult> /// @nodoc abstract class _$$LnUrlWithdrawResult_OkImplCopyWith<$Res> { factory _$$LnUrlWithdrawResult_OkImplCopyWith( - _$LnUrlWithdrawResult_OkImpl value, - $Res Function(_$LnUrlWithdrawResult_OkImpl) then) = + _$LnUrlWithdrawResult_OkImpl value, $Res Function(_$LnUrlWithdrawResult_OkImpl) then) = __$$LnUrlWithdrawResult_OkImplCopyWithImpl<$Res>; @useResult $Res call({LnUrlWithdrawSuccessData data}); @@ -401,12 +383,10 @@ abstract class _$$LnUrlWithdrawResult_OkImplCopyWith<$Res> { /// @nodoc class __$$LnUrlWithdrawResult_OkImplCopyWithImpl<$Res> - extends _$LnUrlWithdrawResultCopyWithImpl<$Res, - _$LnUrlWithdrawResult_OkImpl> + extends _$LnUrlWithdrawResultCopyWithImpl<$Res, _$LnUrlWithdrawResult_OkImpl> implements _$$LnUrlWithdrawResult_OkImplCopyWith<$Res> { __$$LnUrlWithdrawResult_OkImplCopyWithImpl( - _$LnUrlWithdrawResult_OkImpl _value, - $Res Function(_$LnUrlWithdrawResult_OkImpl) _then) + _$LnUrlWithdrawResult_OkImpl _value, $Res Function(_$LnUrlWithdrawResult_OkImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -450,9 +430,8 @@ class _$LnUrlWithdrawResult_OkImpl extends LnUrlWithdrawResult_Ok { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$LnUrlWithdrawResult_OkImplCopyWith<_$LnUrlWithdrawResult_OkImpl> - get copyWith => __$$LnUrlWithdrawResult_OkImplCopyWithImpl< - _$LnUrlWithdrawResult_OkImpl>(this, _$identity); + _$$LnUrlWithdrawResult_OkImplCopyWith<_$LnUrlWithdrawResult_OkImpl> get copyWith => + __$$LnUrlWithdrawResult_OkImplCopyWithImpl<_$LnUrlWithdrawResult_OkImpl>(this, _$identity); @override @optionalTypeArgs @@ -489,8 +468,7 @@ class _$LnUrlWithdrawResult_OkImpl extends LnUrlWithdrawResult_Ok { @optionalTypeArgs TResult map({ required TResult Function(LnUrlWithdrawResult_Ok value) ok, - required TResult Function(LnUrlWithdrawResult_ErrorStatus value) - errorStatus, + required TResult Function(LnUrlWithdrawResult_ErrorStatus value) errorStatus, }) { return ok(this); } @@ -519,22 +497,20 @@ class _$LnUrlWithdrawResult_OkImpl extends LnUrlWithdrawResult_Ok { } abstract class LnUrlWithdrawResult_Ok extends LnUrlWithdrawResult { - const factory LnUrlWithdrawResult_Ok( - {required final LnUrlWithdrawSuccessData data}) = + const factory LnUrlWithdrawResult_Ok({required final LnUrlWithdrawSuccessData data}) = _$LnUrlWithdrawResult_OkImpl; const LnUrlWithdrawResult_Ok._() : super._(); @override LnUrlWithdrawSuccessData get data; @JsonKey(ignore: true) - _$$LnUrlWithdrawResult_OkImplCopyWith<_$LnUrlWithdrawResult_OkImpl> - get copyWith => throw _privateConstructorUsedError; + _$$LnUrlWithdrawResult_OkImplCopyWith<_$LnUrlWithdrawResult_OkImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$LnUrlWithdrawResult_ErrorStatusImplCopyWith<$Res> { - factory _$$LnUrlWithdrawResult_ErrorStatusImplCopyWith( - _$LnUrlWithdrawResult_ErrorStatusImpl value, + factory _$$LnUrlWithdrawResult_ErrorStatusImplCopyWith(_$LnUrlWithdrawResult_ErrorStatusImpl value, $Res Function(_$LnUrlWithdrawResult_ErrorStatusImpl) then) = __$$LnUrlWithdrawResult_ErrorStatusImplCopyWithImpl<$Res>; @useResult @@ -543,11 +519,9 @@ abstract class _$$LnUrlWithdrawResult_ErrorStatusImplCopyWith<$Res> { /// @nodoc class __$$LnUrlWithdrawResult_ErrorStatusImplCopyWithImpl<$Res> - extends _$LnUrlWithdrawResultCopyWithImpl<$Res, - _$LnUrlWithdrawResult_ErrorStatusImpl> + extends _$LnUrlWithdrawResultCopyWithImpl<$Res, _$LnUrlWithdrawResult_ErrorStatusImpl> implements _$$LnUrlWithdrawResult_ErrorStatusImplCopyWith<$Res> { - __$$LnUrlWithdrawResult_ErrorStatusImplCopyWithImpl( - _$LnUrlWithdrawResult_ErrorStatusImpl _value, + __$$LnUrlWithdrawResult_ErrorStatusImplCopyWithImpl(_$LnUrlWithdrawResult_ErrorStatusImpl _value, $Res Function(_$LnUrlWithdrawResult_ErrorStatusImpl) _then) : super(_value, _then); @@ -567,8 +541,7 @@ class __$$LnUrlWithdrawResult_ErrorStatusImplCopyWithImpl<$Res> /// @nodoc -class _$LnUrlWithdrawResult_ErrorStatusImpl - extends LnUrlWithdrawResult_ErrorStatus { +class _$LnUrlWithdrawResult_ErrorStatusImpl extends LnUrlWithdrawResult_ErrorStatus { const _$LnUrlWithdrawResult_ErrorStatusImpl({required this.data}) : super._(); @override @@ -593,10 +566,9 @@ class _$LnUrlWithdrawResult_ErrorStatusImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$LnUrlWithdrawResult_ErrorStatusImplCopyWith< - _$LnUrlWithdrawResult_ErrorStatusImpl> - get copyWith => __$$LnUrlWithdrawResult_ErrorStatusImplCopyWithImpl< - _$LnUrlWithdrawResult_ErrorStatusImpl>(this, _$identity); + _$$LnUrlWithdrawResult_ErrorStatusImplCopyWith<_$LnUrlWithdrawResult_ErrorStatusImpl> get copyWith => + __$$LnUrlWithdrawResult_ErrorStatusImplCopyWithImpl<_$LnUrlWithdrawResult_ErrorStatusImpl>( + this, _$identity); @override @optionalTypeArgs @@ -633,8 +605,7 @@ class _$LnUrlWithdrawResult_ErrorStatusImpl @optionalTypeArgs TResult map({ required TResult Function(LnUrlWithdrawResult_Ok value) ok, - required TResult Function(LnUrlWithdrawResult_ErrorStatus value) - errorStatus, + required TResult Function(LnUrlWithdrawResult_ErrorStatus value) errorStatus, }) { return errorStatus(this); } @@ -663,17 +634,15 @@ class _$LnUrlWithdrawResult_ErrorStatusImpl } abstract class LnUrlWithdrawResult_ErrorStatus extends LnUrlWithdrawResult { - const factory LnUrlWithdrawResult_ErrorStatus( - {required final LnUrlErrorData data}) = + const factory LnUrlWithdrawResult_ErrorStatus({required final LnUrlErrorData data}) = _$LnUrlWithdrawResult_ErrorStatusImpl; const LnUrlWithdrawResult_ErrorStatus._() : super._(); @override LnUrlErrorData get data; @JsonKey(ignore: true) - _$$LnUrlWithdrawResult_ErrorStatusImplCopyWith< - _$LnUrlWithdrawResult_ErrorStatusImpl> - get copyWith => throw _privateConstructorUsedError; + _$$LnUrlWithdrawResult_ErrorStatusImplCopyWith<_$LnUrlWithdrawResult_ErrorStatusImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc @@ -713,22 +682,19 @@ mixin _$NodeConfig { throw _privateConstructorUsedError; @JsonKey(ignore: true) - $NodeConfigCopyWith get copyWith => - throw _privateConstructorUsedError; + $NodeConfigCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $NodeConfigCopyWith<$Res> { - factory $NodeConfigCopyWith( - NodeConfig value, $Res Function(NodeConfig) then) = + factory $NodeConfigCopyWith(NodeConfig value, $Res Function(NodeConfig) then) = _$NodeConfigCopyWithImpl<$Res, NodeConfig>; @useResult $Res call({GreenlightNodeConfig config}); } /// @nodoc -class _$NodeConfigCopyWithImpl<$Res, $Val extends NodeConfig> - implements $NodeConfigCopyWith<$Res> { +class _$NodeConfigCopyWithImpl<$Res, $Val extends NodeConfig> implements $NodeConfigCopyWith<$Res> { _$NodeConfigCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -751,11 +717,9 @@ class _$NodeConfigCopyWithImpl<$Res, $Val extends NodeConfig> } /// @nodoc -abstract class _$$NodeConfig_GreenlightImplCopyWith<$Res> - implements $NodeConfigCopyWith<$Res> { +abstract class _$$NodeConfig_GreenlightImplCopyWith<$Res> implements $NodeConfigCopyWith<$Res> { factory _$$NodeConfig_GreenlightImplCopyWith( - _$NodeConfig_GreenlightImpl value, - $Res Function(_$NodeConfig_GreenlightImpl) then) = + _$NodeConfig_GreenlightImpl value, $Res Function(_$NodeConfig_GreenlightImpl) then) = __$$NodeConfig_GreenlightImplCopyWithImpl<$Res>; @override @useResult @@ -766,8 +730,8 @@ abstract class _$$NodeConfig_GreenlightImplCopyWith<$Res> class __$$NodeConfig_GreenlightImplCopyWithImpl<$Res> extends _$NodeConfigCopyWithImpl<$Res, _$NodeConfig_GreenlightImpl> implements _$$NodeConfig_GreenlightImplCopyWith<$Res> { - __$$NodeConfig_GreenlightImplCopyWithImpl(_$NodeConfig_GreenlightImpl _value, - $Res Function(_$NodeConfig_GreenlightImpl) _then) + __$$NodeConfig_GreenlightImplCopyWithImpl( + _$NodeConfig_GreenlightImpl _value, $Res Function(_$NodeConfig_GreenlightImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -811,9 +775,8 @@ class _$NodeConfig_GreenlightImpl extends NodeConfig_Greenlight { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$NodeConfig_GreenlightImplCopyWith<_$NodeConfig_GreenlightImpl> - get copyWith => __$$NodeConfig_GreenlightImplCopyWithImpl< - _$NodeConfig_GreenlightImpl>(this, _$identity); + _$$NodeConfig_GreenlightImplCopyWith<_$NodeConfig_GreenlightImpl> get copyWith => + __$$NodeConfig_GreenlightImplCopyWithImpl<_$NodeConfig_GreenlightImpl>(this, _$identity); @override @optionalTypeArgs @@ -873,8 +836,7 @@ class _$NodeConfig_GreenlightImpl extends NodeConfig_Greenlight { } abstract class NodeConfig_Greenlight extends NodeConfig { - const factory NodeConfig_Greenlight( - {required final GreenlightNodeConfig config}) = + const factory NodeConfig_Greenlight({required final GreenlightNodeConfig config}) = _$NodeConfig_GreenlightImpl; const NodeConfig_Greenlight._() : super._(); @@ -882,8 +844,8 @@ abstract class NodeConfig_Greenlight extends NodeConfig { GreenlightNodeConfig get config; @override @JsonKey(ignore: true) - _$$NodeConfig_GreenlightImplCopyWith<_$NodeConfig_GreenlightImpl> - get copyWith => throw _privateConstructorUsedError; + _$$NodeConfig_GreenlightImplCopyWith<_$NodeConfig_GreenlightImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc @@ -923,14 +885,12 @@ mixin _$NodeCredentials { throw _privateConstructorUsedError; @JsonKey(ignore: true) - $NodeCredentialsCopyWith get copyWith => - throw _privateConstructorUsedError; + $NodeCredentialsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $NodeCredentialsCopyWith<$Res> { - factory $NodeCredentialsCopyWith( - NodeCredentials value, $Res Function(NodeCredentials) then) = + factory $NodeCredentialsCopyWith(NodeCredentials value, $Res Function(NodeCredentials) then) = _$NodeCredentialsCopyWithImpl<$Res, NodeCredentials>; @useResult $Res call({GreenlightCredentials credentials}); @@ -961,11 +921,9 @@ class _$NodeCredentialsCopyWithImpl<$Res, $Val extends NodeCredentials> } /// @nodoc -abstract class _$$NodeCredentials_GreenlightImplCopyWith<$Res> - implements $NodeCredentialsCopyWith<$Res> { +abstract class _$$NodeCredentials_GreenlightImplCopyWith<$Res> implements $NodeCredentialsCopyWith<$Res> { factory _$$NodeCredentials_GreenlightImplCopyWith( - _$NodeCredentials_GreenlightImpl value, - $Res Function(_$NodeCredentials_GreenlightImpl) then) = + _$NodeCredentials_GreenlightImpl value, $Res Function(_$NodeCredentials_GreenlightImpl) then) = __$$NodeCredentials_GreenlightImplCopyWithImpl<$Res>; @override @useResult @@ -974,12 +932,10 @@ abstract class _$$NodeCredentials_GreenlightImplCopyWith<$Res> /// @nodoc class __$$NodeCredentials_GreenlightImplCopyWithImpl<$Res> - extends _$NodeCredentialsCopyWithImpl<$Res, - _$NodeCredentials_GreenlightImpl> + extends _$NodeCredentialsCopyWithImpl<$Res, _$NodeCredentials_GreenlightImpl> implements _$$NodeCredentials_GreenlightImplCopyWith<$Res> { __$$NodeCredentials_GreenlightImplCopyWithImpl( - _$NodeCredentials_GreenlightImpl _value, - $Res Function(_$NodeCredentials_GreenlightImpl) _then) + _$NodeCredentials_GreenlightImpl _value, $Res Function(_$NodeCredentials_GreenlightImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -999,8 +955,7 @@ class __$$NodeCredentials_GreenlightImplCopyWithImpl<$Res> /// @nodoc class _$NodeCredentials_GreenlightImpl extends NodeCredentials_Greenlight { - const _$NodeCredentials_GreenlightImpl({required this.credentials}) - : super._(); + const _$NodeCredentials_GreenlightImpl({required this.credentials}) : super._(); @override final GreenlightCredentials credentials; @@ -1015,8 +970,7 @@ class _$NodeCredentials_GreenlightImpl extends NodeCredentials_Greenlight { return identical(this, other) || (other.runtimeType == runtimeType && other is _$NodeCredentials_GreenlightImpl && - (identical(other.credentials, credentials) || - other.credentials == credentials)); + (identical(other.credentials, credentials) || other.credentials == credentials)); } @override @@ -1025,9 +979,8 @@ class _$NodeCredentials_GreenlightImpl extends NodeCredentials_Greenlight { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$NodeCredentials_GreenlightImplCopyWith<_$NodeCredentials_GreenlightImpl> - get copyWith => __$$NodeCredentials_GreenlightImplCopyWithImpl< - _$NodeCredentials_GreenlightImpl>(this, _$identity); + _$$NodeCredentials_GreenlightImplCopyWith<_$NodeCredentials_GreenlightImpl> get copyWith => + __$$NodeCredentials_GreenlightImplCopyWithImpl<_$NodeCredentials_GreenlightImpl>(this, _$identity); @override @optionalTypeArgs @@ -1087,8 +1040,7 @@ class _$NodeCredentials_GreenlightImpl extends NodeCredentials_Greenlight { } abstract class NodeCredentials_Greenlight extends NodeCredentials { - const factory NodeCredentials_Greenlight( - {required final GreenlightCredentials credentials}) = + const factory NodeCredentials_Greenlight({required final GreenlightCredentials credentials}) = _$NodeCredentials_GreenlightImpl; const NodeCredentials_Greenlight._() : super._(); @@ -1096,8 +1048,8 @@ abstract class NodeCredentials_Greenlight extends NodeCredentials { GreenlightCredentials get credentials; @override @JsonKey(ignore: true) - _$$NodeCredentials_GreenlightImplCopyWith<_$NodeCredentials_GreenlightImpl> - get copyWith => throw _privateConstructorUsedError; + _$$NodeCredentials_GreenlightImplCopyWith<_$NodeCredentials_GreenlightImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc @@ -1145,8 +1097,7 @@ mixin _$PaymentDetails { /// @nodoc abstract class $PaymentDetailsCopyWith<$Res> { - factory $PaymentDetailsCopyWith( - PaymentDetails value, $Res Function(PaymentDetails) then) = + factory $PaymentDetailsCopyWith(PaymentDetails value, $Res Function(PaymentDetails) then) = _$PaymentDetailsCopyWithImpl<$Res, PaymentDetails>; } @@ -1163,8 +1114,8 @@ class _$PaymentDetailsCopyWithImpl<$Res, $Val extends PaymentDetails> /// @nodoc abstract class _$$PaymentDetails_LnImplCopyWith<$Res> { - factory _$$PaymentDetails_LnImplCopyWith(_$PaymentDetails_LnImpl value, - $Res Function(_$PaymentDetails_LnImpl) then) = + factory _$$PaymentDetails_LnImplCopyWith( + _$PaymentDetails_LnImpl value, $Res Function(_$PaymentDetails_LnImpl) then) = __$$PaymentDetails_LnImplCopyWithImpl<$Res>; @useResult $Res call({LnPaymentDetails data}); @@ -1174,8 +1125,8 @@ abstract class _$$PaymentDetails_LnImplCopyWith<$Res> { class __$$PaymentDetails_LnImplCopyWithImpl<$Res> extends _$PaymentDetailsCopyWithImpl<$Res, _$PaymentDetails_LnImpl> implements _$$PaymentDetails_LnImplCopyWith<$Res> { - __$$PaymentDetails_LnImplCopyWithImpl(_$PaymentDetails_LnImpl _value, - $Res Function(_$PaymentDetails_LnImpl) _then) + __$$PaymentDetails_LnImplCopyWithImpl( + _$PaymentDetails_LnImpl _value, $Res Function(_$PaymentDetails_LnImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1220,8 +1171,7 @@ class _$PaymentDetails_LnImpl extends PaymentDetails_Ln { @override @pragma('vm:prefer-inline') _$$PaymentDetails_LnImplCopyWith<_$PaymentDetails_LnImpl> get copyWith => - __$$PaymentDetails_LnImplCopyWithImpl<_$PaymentDetails_LnImpl>( - this, _$identity); + __$$PaymentDetails_LnImplCopyWithImpl<_$PaymentDetails_LnImpl>(this, _$identity); @override @optionalTypeArgs @@ -1287,8 +1237,7 @@ class _$PaymentDetails_LnImpl extends PaymentDetails_Ln { } abstract class PaymentDetails_Ln extends PaymentDetails { - const factory PaymentDetails_Ln({required final LnPaymentDetails data}) = - _$PaymentDetails_LnImpl; + const factory PaymentDetails_Ln({required final LnPaymentDetails data}) = _$PaymentDetails_LnImpl; const PaymentDetails_Ln._() : super._(); @override @@ -1301,8 +1250,7 @@ abstract class PaymentDetails_Ln extends PaymentDetails { /// @nodoc abstract class _$$PaymentDetails_ClosedChannelImplCopyWith<$Res> { factory _$$PaymentDetails_ClosedChannelImplCopyWith( - _$PaymentDetails_ClosedChannelImpl value, - $Res Function(_$PaymentDetails_ClosedChannelImpl) then) = + _$PaymentDetails_ClosedChannelImpl value, $Res Function(_$PaymentDetails_ClosedChannelImpl) then) = __$$PaymentDetails_ClosedChannelImplCopyWithImpl<$Res>; @useResult $Res call({ClosedChannelPaymentDetails data}); @@ -1310,12 +1258,10 @@ abstract class _$$PaymentDetails_ClosedChannelImplCopyWith<$Res> { /// @nodoc class __$$PaymentDetails_ClosedChannelImplCopyWithImpl<$Res> - extends _$PaymentDetailsCopyWithImpl<$Res, - _$PaymentDetails_ClosedChannelImpl> + extends _$PaymentDetailsCopyWithImpl<$Res, _$PaymentDetails_ClosedChannelImpl> implements _$$PaymentDetails_ClosedChannelImplCopyWith<$Res> { __$$PaymentDetails_ClosedChannelImplCopyWithImpl( - _$PaymentDetails_ClosedChannelImpl _value, - $Res Function(_$PaymentDetails_ClosedChannelImpl) _then) + _$PaymentDetails_ClosedChannelImpl _value, $Res Function(_$PaymentDetails_ClosedChannelImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1359,10 +1305,8 @@ class _$PaymentDetails_ClosedChannelImpl extends PaymentDetails_ClosedChannel { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$PaymentDetails_ClosedChannelImplCopyWith< - _$PaymentDetails_ClosedChannelImpl> - get copyWith => __$$PaymentDetails_ClosedChannelImplCopyWithImpl< - _$PaymentDetails_ClosedChannelImpl>(this, _$identity); + _$$PaymentDetails_ClosedChannelImplCopyWith<_$PaymentDetails_ClosedChannelImpl> get copyWith => + __$$PaymentDetails_ClosedChannelImplCopyWithImpl<_$PaymentDetails_ClosedChannelImpl>(this, _$identity); @override @optionalTypeArgs @@ -1428,17 +1372,15 @@ class _$PaymentDetails_ClosedChannelImpl extends PaymentDetails_ClosedChannel { } abstract class PaymentDetails_ClosedChannel extends PaymentDetails { - const factory PaymentDetails_ClosedChannel( - {required final ClosedChannelPaymentDetails data}) = + const factory PaymentDetails_ClosedChannel({required final ClosedChannelPaymentDetails data}) = _$PaymentDetails_ClosedChannelImpl; const PaymentDetails_ClosedChannel._() : super._(); @override ClosedChannelPaymentDetails get data; @JsonKey(ignore: true) - _$$PaymentDetails_ClosedChannelImplCopyWith< - _$PaymentDetails_ClosedChannelImpl> - get copyWith => throw _privateConstructorUsedError; + _$$PaymentDetails_ClosedChannelImplCopyWith<_$PaymentDetails_ClosedChannelImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc @@ -1462,8 +1404,7 @@ mixin _$ReportIssueRequest { throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ - required TResult Function(ReportIssueRequest_PaymentFailure value) - paymentFailure, + required TResult Function(ReportIssueRequest_PaymentFailure value) paymentFailure, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -1479,14 +1420,12 @@ mixin _$ReportIssueRequest { throw _privateConstructorUsedError; @JsonKey(ignore: true) - $ReportIssueRequestCopyWith get copyWith => - throw _privateConstructorUsedError; + $ReportIssueRequestCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ReportIssueRequestCopyWith<$Res> { - factory $ReportIssueRequestCopyWith( - ReportIssueRequest value, $Res Function(ReportIssueRequest) then) = + factory $ReportIssueRequestCopyWith(ReportIssueRequest value, $Res Function(ReportIssueRequest) then) = _$ReportIssueRequestCopyWithImpl<$Res, ReportIssueRequest>; @useResult $Res call({ReportPaymentFailureDetails data}); @@ -1519,8 +1458,7 @@ class _$ReportIssueRequestCopyWithImpl<$Res, $Val extends ReportIssueRequest> /// @nodoc abstract class _$$ReportIssueRequest_PaymentFailureImplCopyWith<$Res> implements $ReportIssueRequestCopyWith<$Res> { - factory _$$ReportIssueRequest_PaymentFailureImplCopyWith( - _$ReportIssueRequest_PaymentFailureImpl value, + factory _$$ReportIssueRequest_PaymentFailureImplCopyWith(_$ReportIssueRequest_PaymentFailureImpl value, $Res Function(_$ReportIssueRequest_PaymentFailureImpl) then) = __$$ReportIssueRequest_PaymentFailureImplCopyWithImpl<$Res>; @override @@ -1530,11 +1468,9 @@ abstract class _$$ReportIssueRequest_PaymentFailureImplCopyWith<$Res> /// @nodoc class __$$ReportIssueRequest_PaymentFailureImplCopyWithImpl<$Res> - extends _$ReportIssueRequestCopyWithImpl<$Res, - _$ReportIssueRequest_PaymentFailureImpl> + extends _$ReportIssueRequestCopyWithImpl<$Res, _$ReportIssueRequest_PaymentFailureImpl> implements _$$ReportIssueRequest_PaymentFailureImplCopyWith<$Res> { - __$$ReportIssueRequest_PaymentFailureImplCopyWithImpl( - _$ReportIssueRequest_PaymentFailureImpl _value, + __$$ReportIssueRequest_PaymentFailureImplCopyWithImpl(_$ReportIssueRequest_PaymentFailureImpl _value, $Res Function(_$ReportIssueRequest_PaymentFailureImpl) _then) : super(_value, _then); @@ -1554,10 +1490,8 @@ class __$$ReportIssueRequest_PaymentFailureImplCopyWithImpl<$Res> /// @nodoc -class _$ReportIssueRequest_PaymentFailureImpl - extends ReportIssueRequest_PaymentFailure { - const _$ReportIssueRequest_PaymentFailureImpl({required this.data}) - : super._(); +class _$ReportIssueRequest_PaymentFailureImpl extends ReportIssueRequest_PaymentFailure { + const _$ReportIssueRequest_PaymentFailureImpl({required this.data}) : super._(); @override final ReportPaymentFailureDetails data; @@ -1581,10 +1515,9 @@ class _$ReportIssueRequest_PaymentFailureImpl @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$ReportIssueRequest_PaymentFailureImplCopyWith< - _$ReportIssueRequest_PaymentFailureImpl> - get copyWith => __$$ReportIssueRequest_PaymentFailureImplCopyWithImpl< - _$ReportIssueRequest_PaymentFailureImpl>(this, _$identity); + _$$ReportIssueRequest_PaymentFailureImplCopyWith<_$ReportIssueRequest_PaymentFailureImpl> get copyWith => + __$$ReportIssueRequest_PaymentFailureImplCopyWithImpl<_$ReportIssueRequest_PaymentFailureImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1617,8 +1550,7 @@ class _$ReportIssueRequest_PaymentFailureImpl @override @optionalTypeArgs TResult map({ - required TResult Function(ReportIssueRequest_PaymentFailure value) - paymentFailure, + required TResult Function(ReportIssueRequest_PaymentFailure value) paymentFailure, }) { return paymentFailure(this); } @@ -1645,8 +1577,7 @@ class _$ReportIssueRequest_PaymentFailureImpl } abstract class ReportIssueRequest_PaymentFailure extends ReportIssueRequest { - const factory ReportIssueRequest_PaymentFailure( - {required final ReportPaymentFailureDetails data}) = + const factory ReportIssueRequest_PaymentFailure({required final ReportPaymentFailureDetails data}) = _$ReportIssueRequest_PaymentFailureImpl; const ReportIssueRequest_PaymentFailure._() : super._(); @@ -1654,7 +1585,6 @@ abstract class ReportIssueRequest_PaymentFailure extends ReportIssueRequest { ReportPaymentFailureDetails get data; @override @JsonKey(ignore: true) - _$$ReportIssueRequest_PaymentFailureImplCopyWith< - _$ReportIssueRequest_PaymentFailureImpl> - get copyWith => throw _privateConstructorUsedError; + _$$ReportIssueRequest_PaymentFailureImplCopyWith<_$ReportIssueRequest_PaymentFailureImpl> get copyWith => + throw _privateConstructorUsedError; } diff --git a/libs/sdk-flutter/makefile b/libs/sdk-flutter/makefile index 781c1b317..33f0e2e47 100644 --- a/libs/sdk-flutter/makefile +++ b/libs/sdk-flutter/makefile @@ -12,7 +12,7 @@ init: all: ios android flutter_rust_bridge: - cargo install flutter_rust_bridge_codegen --version 2.0.0-dev.33 + cargo install flutter_rust_bridge_codegen --version 2.0.0-dev.36 mkdir -p ./lib/generated flutter_rust_bridge_codegen generate diff --git a/libs/sdk-flutter/pubspec.lock b/libs/sdk-flutter/pubspec.lock index ef75923d2..72ec7b8de 100644 --- a/libs/sdk-flutter/pubspec.lock +++ b/libs/sdk-flutter/pubspec.lock @@ -69,10 +69,10 @@ packages: dependency: transitive description: name: build_daemon - sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" + sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" url: "https://pub.dev" source: hosted - version: "4.0.1" + version: "4.0.2" build_resolvers: dependency: transitive description: @@ -85,10 +85,10 @@ packages: dependency: "direct dev" description: name: build_runner - sha256: "3ac61a79bfb6f6cc11f693591063a7f19a7af628dc52f141743edac5c16e8c22" + sha256: "1414d6d733a85d8ad2f1dfcb3ea7945759e35a123cb99ccfac75d0758f75edfa" url: "https://pub.dev" source: hosted - version: "2.4.9" + version: "2.4.10" build_runner_core: dependency: transitive description: @@ -242,10 +242,10 @@ packages: dependency: "direct main" description: name: flutter_rust_bridge - sha256: "2bf072117fe975e18aa418234572aa6c60a0513141dc4239a5409eebd0a6a597" + sha256: efb018e387c5e844095e35e9d6c6bd1610c49f25de109f4988b7c45aeca60a9a url: "https://pub.dev" source: hosted - version: "2.0.0-dev.33" + version: "2.0.0-dev.36" flutter_test: dependency: "direct dev" description: flutter @@ -327,10 +327,10 @@ packages: dependency: transitive description: name: json_annotation - sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" url: "https://pub.dev" source: hosted - version: "4.8.1" + version: "4.9.0" leak_tracker: dependency: transitive description: @@ -471,10 +471,10 @@ packages: dependency: transitive description: name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "2.0.0" sky_engine: dependency: transitive description: flutter @@ -592,14 +592,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.1" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "217f49b5213796cb508d6a942a5dc604ce1cb6a0a6b3d8cb3f0c314f0ecea712" + url: "https://pub.dev" + source: hosted + version: "0.1.4" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" + sha256: a2d56211ee4d35d9b344d9d4ce60f362e4f5d1aafb988302906bd732bc731276 url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "3.0.0" yaml: dependency: transitive description: @@ -612,10 +620,10 @@ packages: dependency: transitive description: name: yaml_edit - sha256: c566f4f804215d84a7a2c377667f546c6033d5b34b4f9e60dfb09d17c4e97826 + sha256: e9c1a3543d2da0db3e90270dbb1e4eebc985ee5e3ffe468d83224472b2194a5f url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.2.1" sdks: - dart: ">=3.3.0 <4.0.0" + dart: ">=3.4.0 <4.0.0" flutter: ">=3.19.0" diff --git a/libs/sdk-flutter/pubspec.yaml b/libs/sdk-flutter/pubspec.yaml index 8177d1dd6..fc5e57bea 100644 --- a/libs/sdk-flutter/pubspec.yaml +++ b/libs/sdk-flutter/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: sdk: flutter ### flutter_rust_bridge_codegen dependencies ffi: ^2.1.2 # requires Dart >=3.3.0(Flutter 3.19) - flutter_rust_bridge: 2.0.0-dev.33 + flutter_rust_bridge: ">=2.0.0-dev.34 <=2.0.0-dev.36" freezed_annotation: ^2.4.1 ### rxdart: ^0.27.7 diff --git a/tools/sdk-cli/Cargo.lock b/tools/sdk-cli/Cargo.lock index 89ffec839..10709e378 100644 --- a/tools/sdk-cli/Cargo.lock +++ b/tools/sdk-cli/Cargo.lock @@ -1053,9 +1053,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge" -version = "2.0.0-dev.33" +version = "2.0.0-dev.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "293c86d55bf9b6108482f8574517a8e7e032dd1d9260e1f4801c6180fdd2583c" +checksum = "dbafb8df6b5ec843e2b7f19f33f5b682d6bd028bf86aef2c5e02ff3e4ea37b03" dependencies = [ "allo-isolate", "android_logger", @@ -1080,9 +1080,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_macros" -version = "2.0.0-dev.33" +version = "2.0.0-dev.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d852460bc16316c4491a60e1652612f717764d436f3a97f8f1cc7c3b54d9a0dc" +checksum = "04366488e32ac18f07982356d62860e145cc7ae28e16070f240082fe1c8ed5c9" dependencies = [ "hex", "quote",