chore: Update flutter_rust_bridge to 2.8.0 & update Flutter dependencies to latest (#727)

* chore: update Flutter dependencies to latest

Use Flutter version 3.27.4 on CI workflows

* chore: update flutter_rust_bridge to 2.8.0 and generate bindings

chore: update dependencies to latest

* Use Flutter 3.29.0 on CI workflows
This commit is contained in:
Erdem Yerebasmaz
2025-02-19 13:25:01 +03:00
committed by GitHub
parent ded8ef16b8
commit 5a6b495f6c
24 changed files with 4641 additions and 4474 deletions

View File

@@ -266,7 +266,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.27.1
flutter-version: 3.29.0
- run: flutter --version
- name: Set up just

View File

@@ -50,7 +50,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: 3.27.1
flutter-version: 3.29.0
- name: Copy package files
working-directory: dist

8
cli/Cargo.lock generated
View File

@@ -1481,9 +1481,9 @@ dependencies = [
[[package]]
name = "flutter_rust_bridge"
version = "2.7.0"
version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5419323ff3ae8b63ed20b7cd0fd0e3e73fa9234b3b212b87b5586fe76ae52318"
checksum = "fdc62f583dff79c7ea34b775b2cc4158adc17cb69ad4c1d276be7fe95c63d597"
dependencies = [
"allo-isolate",
"android_logger",
@@ -1511,9 +1511,9 @@ dependencies = [
[[package]]
name = "flutter_rust_bridge_macros"
version = "2.7.0"
version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c6fd06cacc0dfe931d00f3acdc5ac6c5dd9382b33dd78d71cce8f0a62e9458b"
checksum = "ac75354933904c334c13a7c9e08c65be528f0820ab587e03f255203a28d5efec"
dependencies = [
"hex",
"md-5",

8
lib/Cargo.lock generated
View File

@@ -1612,9 +1612,9 @@ dependencies = [
[[package]]
name = "flutter_rust_bridge"
version = "2.7.0"
version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5419323ff3ae8b63ed20b7cd0fd0e3e73fa9234b3b212b87b5586fe76ae52318"
checksum = "fdc62f583dff79c7ea34b775b2cc4158adc17cb69ad4c1d276be7fe95c63d597"
dependencies = [
"allo-isolate",
"android_logger",
@@ -1642,9 +1642,9 @@ dependencies = [
[[package]]
name = "flutter_rust_bridge_macros"
version = "2.7.0"
version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c6fd06cacc0dfe931d00f3acdc5ac6c5dd9382b33dd78d71cce8f0a62e9458b"
checksum = "ac75354933904c334c13a7c9e08c65be528f0820ab587e03f255203a28d5efec"
dependencies = [
"hex",
"md-5",

View File

@@ -22,7 +22,7 @@ clean:
# Install flutter_rust_bridge_codegen dependencies
frb:
cargo install cargo-expand
cargo install flutter_rust_bridge_codegen --version 2.7.0
cargo install flutter_rust_bridge_codegen --version 2.8.0
dart pub global activate ffigen
dart pub global activate ffi
cargo install cargo-xcode

View File

@@ -13,26 +13,26 @@ packages:
dependency: transitive
description:
name: args
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6
url: "https://pub.dev"
source: hosted
version: "2.5.0"
version: "2.6.0"
async:
dependency: transitive
description:
name: async
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
url: "https://pub.dev"
source: hosted
version: "2.11.0"
version: "2.13.0"
charcode:
dependency: transitive
description:
name: charcode
sha256: fb98c0f6d12c920a02ee2d998da788bca066ca5f148492b7085ee23372b12306
sha256: fb0f1107cac15a5ea6ef0a6ef71a807b9e4267c713bb93e00e92d737cc8dbd8a
url: "https://pub.dev"
source: hosted
version: "1.3.1"
version: "1.4.0"
checked_yaml:
dependency: transitive
description:
@@ -53,26 +53,26 @@ packages:
dependency: transitive
description:
name: cli_util
sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19
sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c
url: "https://pub.dev"
source: hosted
version: "0.4.1"
version: "0.4.2"
clock:
dependency: transitive
description:
name: clock
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
url: "https://pub.dev"
source: hosted
version: "1.1.1"
version: "1.1.2"
collection:
dependency: transitive
description:
name: collection
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
url: "https://pub.dev"
source: hosted
version: "1.19.0"
version: "1.19.1"
conventional_commit:
dependency: transitive
description:
@@ -85,18 +85,18 @@ packages:
dependency: transitive
description:
name: file
sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
url: "https://pub.dev"
source: hosted
version: "7.0.0"
version: "7.0.1"
glob:
dependency: transitive
description:
name: glob
sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63"
sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.1.3"
graphs:
dependency: transitive
description:
@@ -109,18 +109,18 @@ packages:
dependency: transitive
description:
name: http
sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010
sha256: fe7ab022b76f3034adc518fb6ea04a82387620e19977665ea18d30a1cf43442f
url: "https://pub.dev"
source: hosted
version: "1.2.2"
version: "1.3.0"
http_parser:
dependency: transitive
description:
name: http_parser
sha256: "40f592dd352890c3b60fec1b68e786cefb9603e05ff303dbc4dda49b304ecdf4"
sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571"
url: "https://pub.dev"
source: hosted
version: "4.1.0"
version: "4.1.2"
intl:
dependency: transitive
description:
@@ -133,10 +133,10 @@ packages:
dependency: transitive
description:
name: io
sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e"
sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b
url: "https://pub.dev"
source: hosted
version: "1.0.4"
version: "1.0.5"
json_annotation:
dependency: transitive
description:
@@ -149,18 +149,18 @@ packages:
dependency: "direct dev"
description:
name: lints
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "5.1.1"
melos:
dependency: "direct dev"
description:
name: melos
sha256: c52e27c0b291e42180aff81cbf5bc6028099e065cfd4e5f9a4095ab603dfd711
sha256: "3f3ab3f902843d1e5a1b1a4dd39a4aca8ba1056f2d32fd8995210fa2843f646f"
url: "https://pub.dev"
source: hosted
version: "6.3.0"
version: "6.3.2"
meta:
dependency: transitive
description:
@@ -181,18 +181,18 @@ packages:
dependency: transitive
description:
name: path
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
url: "https://pub.dev"
source: hosted
version: "1.9.0"
version: "1.9.1"
platform:
dependency: transitive
description:
name: platform
sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984"
url: "https://pub.dev"
source: hosted
version: "3.1.5"
version: "3.1.6"
pool:
dependency: transitive
description:
@@ -205,10 +205,10 @@ packages:
dependency: transitive
description:
name: process
sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32"
sha256: "107d8be718f120bbba9dcd1e95e3bd325b1b4a4f07db64154635ba03f2567a0d"
url: "https://pub.dev"
source: hosted
version: "5.0.2"
version: "5.0.3"
prompts:
dependency: transitive
description:
@@ -221,10 +221,10 @@ packages:
dependency: transitive
description:
name: pub_semver
sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
sha256: "7b3cfbf654f3edd0c6298ecd5be782ce997ddf0e00531b9464b55245185bbbbd"
url: "https://pub.dev"
source: hosted
version: "2.1.4"
version: "2.1.5"
pub_updater:
dependency: transitive
description:
@@ -237,73 +237,73 @@ packages:
dependency: transitive
description:
name: pubspec_parse
sha256: "81876843eb50dc2e1e5b151792c9a985c5ed2536914115ed04e9c8528f6647b0"
sha256: "0560ba233314abbed0a48a2956f7f022cce7c3e1e73df540277da7544cad4082"
url: "https://pub.dev"
source: hosted
version: "1.4.0"
version: "1.5.0"
source_span:
dependency: transitive
description:
name: source_span
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
url: "https://pub.dev"
source: hosted
version: "1.10.0"
version: "1.10.1"
stack_trace:
dependency: transitive
description:
name: stack_trace
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
url: "https://pub.dev"
source: hosted
version: "1.11.1"
version: "1.12.1"
string_scanner:
dependency: transitive
description:
name: string_scanner
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
url: "https://pub.dev"
source: hosted
version: "1.3.0"
version: "1.4.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
url: "https://pub.dev"
source: hosted
version: "1.2.1"
version: "1.2.2"
typed_data:
dependency: transitive
description:
name: typed_data
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
url: "https://pub.dev"
source: hosted
version: "1.3.2"
version: "1.4.0"
web:
dependency: transitive
description:
name: web
sha256: d43c1d6b787bf0afad444700ae7f4db8827f701bc61c255ac8d328c6f4d52062
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
url: "https://pub.dev"
source: hosted
version: "1.0.0"
version: "1.1.0"
yaml:
dependency: transitive
description:
name: yaml
sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
url: "https://pub.dev"
source: hosted
version: "3.1.2"
version: "3.1.3"
yaml_edit:
dependency: transitive
description:
name: yaml_edit
sha256: e9c1a3543d2da0db3e90270dbb1e4eebc985ee5e3ffe468d83224472b2194a5f
sha256: fb38626579fb345ad00e674e2af3a5c9b0cc4b9bfb8fd7f7ff322c7c9e62aef5
url: "https://pub.dev"
source: hosted
version: "2.2.1"
version: "2.2.2"
sdks:
dart: ">=3.4.0 <4.0.0"
dart: ">=3.6.0 <4.0.0"

View File

@@ -3,5 +3,5 @@ name: breez_sdk_liquid_workspace
environment:
sdk: '>=3.4.0 <4.0.0'
dev_dependencies:
melos: ^6.3.0
lints: ^4.0.0
melos: ^6.3.2
lints: ^5.1.1

View File

@@ -21,7 +21,7 @@ boltz-client = { git = "https://github.com/SatoshiPortal/boltz-rust", rev = "198
chrono = "0.4"
derivative = "2.2.0"
env_logger = "0.11"
flutter_rust_bridge = { version = "=2.7.0", features = [
flutter_rust_bridge = { version = "=2.8.0", features = [
"chrono",
], optional = true }
log = { workspace = true }

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.7.0.
// @generated by `flutter_rust_bridge`@ 2.8.0.
#![allow(
non_camel_case_types,
@@ -38,7 +38,7 @@ flutter_rust_bridge::frb_generated_boilerplate!(
default_rust_opaque = RustOpaqueNom,
default_rust_auto_opaque = RustAutoOpaqueNom,
);
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.7.0";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.8.0";
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1264782025;
// Section: executor
@@ -9239,7 +9239,7 @@ impl SseEncode for crate::model::WalletInfo {
#[cfg(not(target_family = "wasm"))]
mod io {
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.7.0.
// @generated by `flutter_rust_bridge`@ 2.8.0.
// Section: imports
@@ -12716,7 +12716,7 @@ mod io {
}
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_accept_payment_proposed_fees(
port_: i64,
that: usize,
@@ -12725,7 +12725,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_accept_payment_proposed_fees_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_add_event_listener(
port_: i64,
that: usize,
@@ -12734,7 +12734,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_add_event_listener_impl(port_, that, listener)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_backup(
that: usize,
req: *mut wire_cst_backup_request,
@@ -12742,7 +12742,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_backup_impl(that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_buy_bitcoin(
port_: i64,
that: usize,
@@ -12751,7 +12751,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_buy_bitcoin_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_check_message(
that: usize,
req: *mut wire_cst_check_message_request,
@@ -12759,7 +12759,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_check_message_impl(that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_disconnect(
port_: i64,
that: usize,
@@ -12767,14 +12767,14 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_disconnect_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_empty_wallet_cache(
that: usize,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco {
wire__crate__bindings__BindingLiquidSdk_empty_wallet_cache_impl(that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_fetch_fiat_rates(
port_: i64,
that: usize,
@@ -12782,7 +12782,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_fetch_fiat_rates_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_fetch_lightning_limits(
port_: i64,
that: usize,
@@ -12790,7 +12790,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_fetch_lightning_limits_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_fetch_onchain_limits(
port_: i64,
that: usize,
@@ -12798,7 +12798,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_fetch_onchain_limits_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_fetch_payment_proposed_fees(
port_: i64,
that: usize,
@@ -12807,7 +12807,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_fetch_payment_proposed_fees_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_get_info(
port_: i64,
that: usize,
@@ -12815,7 +12815,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_get_info_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_get_payment(
port_: i64,
that: usize,
@@ -12824,7 +12824,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_get_payment_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_list_fiat_currencies(
port_: i64,
that: usize,
@@ -12832,7 +12832,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_list_fiat_currencies_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_list_payments(
port_: i64,
that: usize,
@@ -12841,7 +12841,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_list_payments_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_list_refundables(
port_: i64,
that: usize,
@@ -12849,7 +12849,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_list_refundables_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_lnurl_auth(
port_: i64,
that: usize,
@@ -12858,7 +12858,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_lnurl_auth_impl(port_, that, req_data)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_lnurl_pay(
port_: i64,
that: usize,
@@ -12867,7 +12867,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_lnurl_pay_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_lnurl_withdraw(
port_: i64,
that: usize,
@@ -12876,7 +12876,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_lnurl_withdraw_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_parse(
port_: i64,
that: usize,
@@ -12885,7 +12885,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_parse_impl(port_, that, input)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_pay_onchain(
port_: i64,
that: usize,
@@ -12894,7 +12894,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_pay_onchain_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_prepare_buy_bitcoin(
port_: i64,
that: usize,
@@ -12903,7 +12903,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_prepare_buy_bitcoin_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_prepare_lnurl_pay(
port_: i64,
that: usize,
@@ -12912,7 +12912,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_prepare_lnurl_pay_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_prepare_pay_onchain(
port_: i64,
that: usize,
@@ -12921,7 +12921,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_prepare_pay_onchain_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_prepare_receive_payment(
port_: i64,
that: usize,
@@ -12930,7 +12930,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_prepare_receive_payment_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_prepare_refund(
port_: i64,
that: usize,
@@ -12939,7 +12939,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_prepare_refund_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_prepare_send_payment(
port_: i64,
that: usize,
@@ -12948,7 +12948,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_prepare_send_payment_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_receive_payment(
port_: i64,
that: usize,
@@ -12957,7 +12957,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_receive_payment_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_recommended_fees(
port_: i64,
that: usize,
@@ -12965,7 +12965,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_recommended_fees_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_refund(
port_: i64,
that: usize,
@@ -12974,7 +12974,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_refund_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_register_webhook(
port_: i64,
that: usize,
@@ -12983,7 +12983,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_register_webhook_impl(port_, that, webhook_url)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_rescan_onchain_swaps(
port_: i64,
that: usize,
@@ -12991,7 +12991,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_rescan_onchain_swaps_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_restore(
that: usize,
req: *mut wire_cst_restore_request,
@@ -12999,7 +12999,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_restore_impl(that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_send_payment(
port_: i64,
that: usize,
@@ -13008,7 +13008,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_send_payment_impl(port_, that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_sign_message(
that: usize,
req: *mut wire_cst_sign_message_request,
@@ -13016,7 +13016,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_sign_message_impl(that, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_sync(
port_: i64,
that: usize,
@@ -13024,7 +13024,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_sync_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__BindingLiquidSdk_unregister_webhook(
port_: i64,
that: usize,
@@ -13032,7 +13032,7 @@ mod io {
wire__crate__bindings__BindingLiquidSdk_unregister_webhook_impl(port_, that)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__binding_event_listener_on_event(
port_: i64,
that: *mut wire_cst_binding_event_listener,
@@ -13041,7 +13041,7 @@ mod io {
wire__crate__bindings__binding_event_listener_on_event_impl(port_, that, e)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__breez_log_stream(
port_: i64,
s: *mut wire_cst_list_prim_u_8_strict,
@@ -13049,7 +13049,7 @@ mod io {
wire__crate__bindings__breez_log_stream_impl(port_, s)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__connect(
port_: i64,
req: *mut wire_cst_connect_request,
@@ -13057,7 +13057,7 @@ mod io {
wire__crate__bindings__connect_impl(port_, req)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__default_config(
network: i32,
breez_api_key: *mut wire_cst_list_prim_u_8_strict,
@@ -13065,14 +13065,14 @@ mod io {
wire__crate__bindings__default_config_impl(network, breez_api_key)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_wire__crate__bindings__parse_invoice(
input: *mut wire_cst_list_prim_u_8_strict,
) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco {
wire__crate__bindings__parse_invoice_impl(input)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
ptr: *const std::ffi::c_void,
) {
@@ -13081,7 +13081,7 @@ mod io {
}
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBindingLiquidSdk(
ptr: *const std::ffi::c_void,
) {
@@ -13090,7 +13090,7 @@ mod io {
}
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_accept_payment_proposed_fees_request(
) -> *mut wire_cst_accept_payment_proposed_fees_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13098,7 +13098,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_aes_success_action_data(
) -> *mut wire_cst_aes_success_action_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13106,7 +13106,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_aes_success_action_data_decrypted(
) -> *mut wire_cst_aes_success_action_data_decrypted {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13114,7 +13114,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_aes_success_action_data_result(
) -> *mut wire_cst_aes_success_action_data_result {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13122,12 +13122,12 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_amount() -> *mut wire_cst_amount {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_amount::new_with_null_ptr())
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_asset_info(
) -> *mut wire_cst_asset_info {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13135,7 +13135,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_backup_request(
) -> *mut wire_cst_backup_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13143,7 +13143,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_binding_event_listener(
) -> *mut wire_cst_binding_event_listener {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13151,7 +13151,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_bitcoin_address_data(
) -> *mut wire_cst_bitcoin_address_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13159,12 +13159,12 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_bool(value: bool) -> *mut bool {
flutter_rust_bridge::for_generated::new_leak_box_ptr(value)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_buy_bitcoin_request(
) -> *mut wire_cst_buy_bitcoin_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13172,7 +13172,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_check_message_request(
) -> *mut wire_cst_check_message_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13180,7 +13180,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_connect_request(
) -> *mut wire_cst_connect_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13188,12 +13188,12 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_f_64(value: f64) -> *mut f64 {
flutter_rust_bridge::for_generated::new_leak_box_ptr(value)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_fetch_payment_proposed_fees_request(
) -> *mut wire_cst_fetch_payment_proposed_fees_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13201,7 +13201,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_get_payment_request(
) -> *mut wire_cst_get_payment_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13209,12 +13209,12 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_i_64(value: i64) -> *mut i64 {
flutter_rust_bridge::for_generated::new_leak_box_ptr(value)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_liquid_address_data(
) -> *mut wire_cst_liquid_address_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13222,7 +13222,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_list_payment_details(
) -> *mut wire_cst_list_payment_details {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13230,7 +13230,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_list_payments_request(
) -> *mut wire_cst_list_payments_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13238,7 +13238,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_invoice(
) -> *mut wire_cst_ln_invoice {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13246,12 +13246,12 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_offer() -> *mut wire_cst_ln_offer {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_ln_offer::new_with_null_ptr())
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_url_auth_request_data(
) -> *mut wire_cst_ln_url_auth_request_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13259,7 +13259,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_url_error_data(
) -> *mut wire_cst_ln_url_error_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13267,7 +13267,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_url_info(
) -> *mut wire_cst_ln_url_info {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13275,7 +13275,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_url_pay_error_data(
) -> *mut wire_cst_ln_url_pay_error_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13283,7 +13283,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_url_pay_request(
) -> *mut wire_cst_ln_url_pay_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13291,7 +13291,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_url_pay_request_data(
) -> *mut wire_cst_ln_url_pay_request_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13299,7 +13299,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_url_pay_success_data(
) -> *mut wire_cst_ln_url_pay_success_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13307,7 +13307,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_url_withdraw_request(
) -> *mut wire_cst_ln_url_withdraw_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13315,7 +13315,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_url_withdraw_request_data(
) -> *mut wire_cst_ln_url_withdraw_request_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13323,7 +13323,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_ln_url_withdraw_success_data(
) -> *mut wire_cst_ln_url_withdraw_success_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13331,7 +13331,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_message_success_action_data(
) -> *mut wire_cst_message_success_action_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13339,7 +13339,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_pay_amount(
) -> *mut wire_cst_pay_amount {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13347,7 +13347,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_pay_onchain_request(
) -> *mut wire_cst_pay_onchain_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13355,12 +13355,12 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_payment() -> *mut wire_cst_payment {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_payment::new_with_null_ptr())
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_prepare_buy_bitcoin_request(
) -> *mut wire_cst_prepare_buy_bitcoin_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13368,7 +13368,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_prepare_ln_url_pay_request(
) -> *mut wire_cst_prepare_ln_url_pay_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13376,7 +13376,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_prepare_pay_onchain_request(
) -> *mut wire_cst_prepare_pay_onchain_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13384,7 +13384,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_prepare_receive_request(
) -> *mut wire_cst_prepare_receive_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13392,7 +13392,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_prepare_refund_request(
) -> *mut wire_cst_prepare_refund_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13400,7 +13400,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_prepare_send_request(
) -> *mut wire_cst_prepare_send_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13408,7 +13408,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_receive_amount(
) -> *mut wire_cst_receive_amount {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13416,7 +13416,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_receive_payment_request(
) -> *mut wire_cst_receive_payment_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13424,7 +13424,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_refund_request(
) -> *mut wire_cst_refund_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13432,7 +13432,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_restore_request(
) -> *mut wire_cst_restore_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13440,13 +13440,13 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_sdk_event() -> *mut wire_cst_sdk_event
{
flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_sdk_event::new_with_null_ptr())
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_send_payment_request(
) -> *mut wire_cst_send_payment_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13454,7 +13454,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_sign_message_request(
) -> *mut wire_cst_sign_message_request {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13462,7 +13462,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_success_action(
) -> *mut wire_cst_success_action {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13470,7 +13470,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_success_action_processed(
) -> *mut wire_cst_success_action_processed {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13478,22 +13478,22 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_symbol() -> *mut wire_cst_symbol {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_symbol::new_with_null_ptr())
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_u_32(value: u32) -> *mut u32 {
flutter_rust_bridge::for_generated::new_leak_box_ptr(value)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_u_64(value: u64) -> *mut u64 {
flutter_rust_bridge::for_generated::new_leak_box_ptr(value)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_box_autoadd_url_success_action_data(
) -> *mut wire_cst_url_success_action_data {
flutter_rust_bridge::for_generated::new_leak_box_ptr(
@@ -13501,7 +13501,7 @@ mod io {
)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_String(
len: i32,
) -> *mut wire_cst_list_String {
@@ -13515,7 +13515,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_asset_balance(
len: i32,
) -> *mut wire_cst_list_asset_balance {
@@ -13529,7 +13529,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_asset_metadata(
len: i32,
) -> *mut wire_cst_list_asset_metadata {
@@ -13543,7 +13543,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_external_input_parser(
len: i32,
) -> *mut wire_cst_list_external_input_parser {
@@ -13557,7 +13557,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_fiat_currency(
len: i32,
) -> *mut wire_cst_list_fiat_currency {
@@ -13571,7 +13571,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_ln_offer_blinded_path(
len: i32,
) -> *mut wire_cst_list_ln_offer_blinded_path {
@@ -13585,7 +13585,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_locale_overrides(
len: i32,
) -> *mut wire_cst_list_locale_overrides {
@@ -13599,7 +13599,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_localized_name(
len: i32,
) -> *mut wire_cst_list_localized_name {
@@ -13613,7 +13613,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_payment(
len: i32,
) -> *mut wire_cst_list_payment {
@@ -13627,7 +13627,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_payment_state(
len: i32,
) -> *mut wire_cst_list_payment_state {
@@ -13638,7 +13638,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_payment_type(
len: i32,
) -> *mut wire_cst_list_payment_type {
@@ -13649,7 +13649,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_prim_u_8_strict(
len: i32,
) -> *mut wire_cst_list_prim_u_8_strict {
@@ -13660,7 +13660,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(ans)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_rate(len: i32) -> *mut wire_cst_list_rate {
let wrap = wire_cst_list_rate {
ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(
@@ -13672,7 +13672,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_refundable_swap(
len: i32,
) -> *mut wire_cst_list_refundable_swap {
@@ -13686,7 +13686,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_route_hint(
len: i32,
) -> *mut wire_cst_list_route_hint {
@@ -13700,7 +13700,7 @@ mod io {
flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap)
}
#[no_mangle]
#[unsafe(no_mangle)]
pub extern "C" fn frbgen_breez_liquid_cst_new_list_route_hint_hop(
len: i32,
) -> *mut wire_cst_list_route_hint_hop {

View File

@@ -27,9 +27,11 @@ class UnsupportedPlatform implements Exception {
Future<void> initialize({ExternalLibrary? dylib}) async {
try {
dylib ??= await _loadPlatformSpecificLibrary();
_log.info(dylib != null
_log.info(
dylib != null
? 'Initializing RustLib with the provided library'
: 'Initializing RustLib with the default ExternalLibrary');
: 'Initializing RustLib with the default ExternalLibrary',
);
await RustLib.init(externalLibrary: dylib);
} catch (e, stacktrace) {
_log.severe('Initialization failed: $e', e, stacktrace);

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.7.0.
// @generated by `flutter_rust_bridge`@ 2.8.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@@ -12,7 +12,7 @@ import 'package:freezed_annotation/freezed_annotation.dart' hide protected;
part 'bindings.freezed.dart';
// These functions are ignored because they are not marked as `pub`: `init`
// These types are ignored because they are not used by any `pub` functions: `DartBindingLogger`
// These types are ignored because they are neither used by any `pub` functions nor (for structs and enums) marked `#[frb(unignore)]`: `DartBindingLogger`
// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `enabled`, `flush`, `log`
Future<BindingLiquidSdk> connect({required ConnectRequest req}) =>
@@ -49,8 +49,9 @@ abstract class BindingLiquidSdk implements RustOpaqueInterface {
Future<OnchainPaymentLimitsResponse> fetchOnchainLimits();
Future<FetchPaymentProposedFeesResponse> fetchPaymentProposedFees(
{required FetchPaymentProposedFeesRequest req});
Future<FetchPaymentProposedFeesResponse> fetchPaymentProposedFees({
required FetchPaymentProposedFeesRequest req,
});
Future<GetInfoResponse> getInfo();
@@ -110,11 +111,7 @@ class AesSuccessActionData {
final String ciphertext;
final String iv;
const AesSuccessActionData({
required this.description,
required this.ciphertext,
required this.iv,
});
const AesSuccessActionData({required this.description, required this.ciphertext, required this.iv});
@override
int get hashCode => description.hashCode ^ ciphertext.hashCode ^ iv.hashCode;
@@ -133,10 +130,7 @@ class AesSuccessActionDataDecrypted {
final String description;
final String plaintext;
const AesSuccessActionDataDecrypted({
required this.description,
required this.plaintext,
});
const AesSuccessActionDataDecrypted({required this.description, required this.plaintext});
@override
int get hashCode => description.hashCode ^ plaintext.hashCode;
@@ -154,33 +148,25 @@ class AesSuccessActionDataDecrypted {
sealed class AesSuccessActionDataResult with _$AesSuccessActionDataResult {
const AesSuccessActionDataResult._();
const factory AesSuccessActionDataResult.decrypted({
required AesSuccessActionDataDecrypted data,
}) = AesSuccessActionDataResult_Decrypted;
const factory AesSuccessActionDataResult.errorStatus({
required String reason,
}) = AesSuccessActionDataResult_ErrorStatus;
const factory AesSuccessActionDataResult.decrypted({required AesSuccessActionDataDecrypted data}) =
AesSuccessActionDataResult_Decrypted;
const factory AesSuccessActionDataResult.errorStatus({required String reason}) =
AesSuccessActionDataResult_ErrorStatus;
}
@freezed
sealed class Amount with _$Amount {
const Amount._();
const factory Amount.bitcoin({
required BigInt amountMsat,
}) = Amount_Bitcoin;
const factory Amount.currency({
required String iso4217Code,
required BigInt fractionalAmount,
}) = Amount_Currency;
const factory Amount.bitcoin({required BigInt amountMsat}) = Amount_Bitcoin;
const factory Amount.currency({required String iso4217Code, required BigInt fractionalAmount}) =
Amount_Currency;
}
class BindingEventListener {
final RustStreamSink<SdkEvent> stream;
const BindingEventListener({
required this.stream,
});
const BindingEventListener({required this.stream});
Future<void> onEvent({required SdkEvent e}) =>
RustLib.instance.api.crateBindingsBindingEventListenerOnEvent(that: this, e: e);
@@ -273,11 +259,7 @@ class ExternalInputParser {
final String inputRegex;
final String parserUrl;
const ExternalInputParser({
required this.providerId,
required this.inputRegex,
required this.parserUrl,
});
const ExternalInputParser({required this.providerId, required this.inputRegex, required this.parserUrl});
@override
int get hashCode => providerId.hashCode ^ inputRegex.hashCode ^ parserUrl.hashCode;
@@ -296,10 +278,7 @@ class FiatCurrency {
final String id;
final CurrencyInfo info;
const FiatCurrency({
required this.id,
required this.info,
});
const FiatCurrency({required this.id, required this.info});
@override
int get hashCode => id.hashCode ^ info.hashCode;
@@ -314,38 +293,18 @@ class FiatCurrency {
sealed class InputType with _$InputType {
const InputType._();
const factory InputType.bitcoinAddress({
required BitcoinAddressData address,
}) = InputType_BitcoinAddress;
const factory InputType.liquidAddress({
required LiquidAddressData address,
}) = InputType_LiquidAddress;
const factory InputType.bolt11({
required LNInvoice invoice,
}) = InputType_Bolt11;
const factory InputType.bolt12Offer({
required LNOffer offer,
String? bip353Address,
}) = InputType_Bolt12Offer;
const factory InputType.nodeId({
required String nodeId,
}) = InputType_NodeId;
const factory InputType.url({
required String url,
}) = InputType_Url;
const factory InputType.lnUrlPay({
required LnUrlPayRequestData data,
String? bip353Address,
}) = InputType_LnUrlPay;
const factory InputType.lnUrlWithdraw({
required LnUrlWithdrawRequestData data,
}) = InputType_LnUrlWithdraw;
const factory InputType.lnUrlAuth({
required LnUrlAuthRequestData data,
}) = InputType_LnUrlAuth;
const factory InputType.lnUrlError({
required LnUrlErrorData data,
}) = InputType_LnUrlError;
const factory InputType.bitcoinAddress({required BitcoinAddressData address}) = InputType_BitcoinAddress;
const factory InputType.liquidAddress({required LiquidAddressData address}) = InputType_LiquidAddress;
const factory InputType.bolt11({required LNInvoice invoice}) = InputType_Bolt11;
const factory InputType.bolt12Offer({required LNOffer offer, String? bip353Address}) =
InputType_Bolt12Offer;
const factory InputType.nodeId({required String nodeId}) = InputType_NodeId;
const factory InputType.url({required String url}) = InputType_Url;
const factory InputType.lnUrlPay({required LnUrlPayRequestData data, String? bip353Address}) =
InputType_LnUrlPay;
const factory InputType.lnUrlWithdraw({required LnUrlWithdrawRequestData data}) = InputType_LnUrlWithdraw;
const factory InputType.lnUrlAuth({required LnUrlAuthRequestData data}) = InputType_LnUrlAuth;
const factory InputType.lnUrlError({required LnUrlErrorData data}) = InputType_LnUrlError;
}
class LiquidAddressData {
@@ -504,9 +463,7 @@ class LNOffer {
class LnOfferBlindedPath {
final List<String> blindedHops;
const LnOfferBlindedPath({
required this.blindedHops,
});
const LnOfferBlindedPath({required this.blindedHops});
@override
int get hashCode => blindedHops.hashCode;
@@ -523,12 +480,7 @@ class LnUrlAuthRequestData {
final String domain;
final String url;
const LnUrlAuthRequestData({
required this.k1,
this.action,
required this.domain,
required this.url,
});
const LnUrlAuthRequestData({required this.k1, this.action, required this.domain, required this.url});
@override
int get hashCode => k1.hashCode ^ action.hashCode ^ domain.hashCode ^ url.hashCode;
@@ -547,9 +499,7 @@ class LnUrlAuthRequestData {
class LnUrlErrorData {
final String reason;
const LnUrlErrorData({
required this.reason,
});
const LnUrlErrorData({required this.reason});
@override
int get hashCode => reason.hashCode;
@@ -564,10 +514,7 @@ class LnUrlPayErrorData {
final String paymentHash;
final String reason;
const LnUrlPayErrorData({
required this.paymentHash,
required this.reason,
});
const LnUrlPayErrorData({required this.paymentHash, required this.reason});
@override
int get hashCode => paymentHash.hashCode ^ reason.hashCode;
@@ -637,11 +584,7 @@ class LnUrlWithdrawRequest {
final BigInt amountMsat;
final String? description;
const LnUrlWithdrawRequest({
required this.data,
required this.amountMsat,
this.description,
});
const LnUrlWithdrawRequest({required this.data, required this.amountMsat, this.description});
@override
int get hashCode => data.hashCode ^ amountMsat.hashCode ^ description.hashCode;
@@ -696,11 +639,7 @@ class LocaleOverrides {
final int? spacing;
final Symbol symbol;
const LocaleOverrides({
required this.locale,
this.spacing,
required this.symbol,
});
const LocaleOverrides({required this.locale, this.spacing, required this.symbol});
@override
int get hashCode => locale.hashCode ^ spacing.hashCode ^ symbol.hashCode;
@@ -719,10 +658,7 @@ class LocalizedName {
final String locale;
final String name;
const LocalizedName({
required this.locale,
required this.name,
});
const LocalizedName({required this.locale, required this.name});
@override
int get hashCode => locale.hashCode ^ name.hashCode;
@@ -739,9 +675,7 @@ class LocalizedName {
class MessageSuccessActionData {
final String message;
const MessageSuccessActionData({
required this.message,
});
const MessageSuccessActionData({required this.message});
@override
int get hashCode => message.hashCode;
@@ -752,22 +686,13 @@ class MessageSuccessActionData {
other is MessageSuccessActionData && runtimeType == other.runtimeType && message == other.message;
}
enum Network {
bitcoin,
testnet,
signet,
regtest,
;
}
enum Network { bitcoin, testnet, signet, regtest }
class Rate {
final String coin;
final double value;
const Rate({
required this.coin,
required this.value,
});
const Rate({required this.coin, required this.value});
@override
int get hashCode => coin.hashCode ^ value.hashCode;
@@ -781,9 +706,7 @@ class Rate {
class RouteHint {
final List<RouteHintHop> hops;
const RouteHint({
required this.hops,
});
const RouteHint({required this.hops});
@override
int get hashCode => hops.hashCode;
@@ -840,30 +763,20 @@ class RouteHintHop {
sealed class SuccessAction with _$SuccessAction {
const SuccessAction._();
const factory SuccessAction.aes({
required AesSuccessActionData data,
}) = SuccessAction_Aes;
const factory SuccessAction.message({
required MessageSuccessActionData data,
}) = SuccessAction_Message;
const factory SuccessAction.url({
required UrlSuccessActionData data,
}) = SuccessAction_Url;
const factory SuccessAction.aes({required AesSuccessActionData data}) = SuccessAction_Aes;
const factory SuccessAction.message({required MessageSuccessActionData data}) = SuccessAction_Message;
const factory SuccessAction.url({required UrlSuccessActionData data}) = SuccessAction_Url;
}
@freezed
sealed class SuccessActionProcessed with _$SuccessActionProcessed {
const SuccessActionProcessed._();
const factory SuccessActionProcessed.aes({
required AesSuccessActionDataResult result,
}) = SuccessActionProcessed_Aes;
const factory SuccessActionProcessed.message({
required MessageSuccessActionData data,
}) = SuccessActionProcessed_Message;
const factory SuccessActionProcessed.url({
required UrlSuccessActionData data,
}) = SuccessActionProcessed_Url;
const factory SuccessActionProcessed.aes({required AesSuccessActionDataResult result}) =
SuccessActionProcessed_Aes;
const factory SuccessActionProcessed.message({required MessageSuccessActionData data}) =
SuccessActionProcessed_Message;
const factory SuccessActionProcessed.url({required UrlSuccessActionData data}) = SuccessActionProcessed_Url;
}
class Symbol {
@@ -872,12 +785,7 @@ class Symbol {
final bool? rtl;
final int? position;
const Symbol({
this.grapheme,
this.template,
this.rtl,
this.position,
});
const Symbol({this.grapheme, this.template, this.rtl, this.position});
@override
int get hashCode => grapheme.hashCode ^ template.hashCode ^ rtl.hashCode ^ position.hashCode;

View File

@@ -12,7 +12,8 @@ part of 'bindings.dart';
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
);
/// @nodoc
mixin _$AesSuccessActionDataResult {}
@@ -20,8 +21,9 @@ mixin _$AesSuccessActionDataResult {}
/// @nodoc
abstract class $AesSuccessActionDataResultCopyWith<$Res> {
factory $AesSuccessActionDataResultCopyWith(
AesSuccessActionDataResult value, $Res Function(AesSuccessActionDataResult) then) =
_$AesSuccessActionDataResultCopyWithImpl<$Res, AesSuccessActionDataResult>;
AesSuccessActionDataResult value,
$Res Function(AesSuccessActionDataResult) then,
) = _$AesSuccessActionDataResultCopyWithImpl<$Res, AesSuccessActionDataResult>;
}
/// @nodoc
@@ -42,8 +44,8 @@ class _$AesSuccessActionDataResultCopyWithImpl<$Res, $Val extends AesSuccessActi
abstract class _$$AesSuccessActionDataResult_DecryptedImplCopyWith<$Res> {
factory _$$AesSuccessActionDataResult_DecryptedImplCopyWith(
_$AesSuccessActionDataResult_DecryptedImpl value,
$Res Function(_$AesSuccessActionDataResult_DecryptedImpl) then) =
__$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl<$Res>;
$Res Function(_$AesSuccessActionDataResult_DecryptedImpl) then,
) = __$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl<$Res>;
@useResult
$Res call({AesSuccessActionDataDecrypted data});
}
@@ -52,23 +54,25 @@ abstract class _$$AesSuccessActionDataResult_DecryptedImplCopyWith<$Res> {
class __$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl<$Res>
extends _$AesSuccessActionDataResultCopyWithImpl<$Res, _$AesSuccessActionDataResult_DecryptedImpl>
implements _$$AesSuccessActionDataResult_DecryptedImplCopyWith<$Res> {
__$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl(_$AesSuccessActionDataResult_DecryptedImpl _value,
$Res Function(_$AesSuccessActionDataResult_DecryptedImpl) _then)
: super(_value, _then);
__$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl(
_$AesSuccessActionDataResult_DecryptedImpl _value,
$Res Function(_$AesSuccessActionDataResult_DecryptedImpl) _then,
) : super(_value, _then);
/// Create a copy of AesSuccessActionDataResult
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
}) {
return _then(_$AesSuccessActionDataResult_DecryptedImpl(
data: null == data
$Res call({Object? data = null}) {
return _then(
_$AesSuccessActionDataResult_DecryptedImpl(
data:
null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as AesSuccessActionDataDecrypted,
));
),
);
}
}
@@ -102,8 +106,11 @@ class _$AesSuccessActionDataResult_DecryptedImpl extends AesSuccessActionDataRes
@override
@pragma('vm:prefer-inline')
_$$AesSuccessActionDataResult_DecryptedImplCopyWith<_$AesSuccessActionDataResult_DecryptedImpl>
get copyWith => __$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl<
_$AesSuccessActionDataResult_DecryptedImpl>(this, _$identity);
get copyWith =>
__$$AesSuccessActionDataResult_DecryptedImplCopyWithImpl<_$AesSuccessActionDataResult_DecryptedImpl>(
this,
_$identity,
);
}
abstract class AesSuccessActionDataResult_Decrypted extends AesSuccessActionDataResult {
@@ -124,8 +131,8 @@ abstract class AesSuccessActionDataResult_Decrypted extends AesSuccessActionData
abstract class _$$AesSuccessActionDataResult_ErrorStatusImplCopyWith<$Res> {
factory _$$AesSuccessActionDataResult_ErrorStatusImplCopyWith(
_$AesSuccessActionDataResult_ErrorStatusImpl value,
$Res Function(_$AesSuccessActionDataResult_ErrorStatusImpl) then) =
__$$AesSuccessActionDataResult_ErrorStatusImplCopyWithImpl<$Res>;
$Res Function(_$AesSuccessActionDataResult_ErrorStatusImpl) then,
) = __$$AesSuccessActionDataResult_ErrorStatusImplCopyWithImpl<$Res>;
@useResult
$Res call({String reason});
}
@@ -136,22 +143,23 @@ class __$$AesSuccessActionDataResult_ErrorStatusImplCopyWithImpl<$Res>
implements _$$AesSuccessActionDataResult_ErrorStatusImplCopyWith<$Res> {
__$$AesSuccessActionDataResult_ErrorStatusImplCopyWithImpl(
_$AesSuccessActionDataResult_ErrorStatusImpl _value,
$Res Function(_$AesSuccessActionDataResult_ErrorStatusImpl) _then)
: super(_value, _then);
$Res Function(_$AesSuccessActionDataResult_ErrorStatusImpl) _then,
) : super(_value, _then);
/// Create a copy of AesSuccessActionDataResult
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? reason = null,
}) {
return _then(_$AesSuccessActionDataResult_ErrorStatusImpl(
reason: null == reason
$Res call({Object? reason = null}) {
return _then(
_$AesSuccessActionDataResult_ErrorStatusImpl(
reason:
null == reason
? _value.reason
: reason // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -186,7 +194,8 @@ class _$AesSuccessActionDataResult_ErrorStatusImpl extends AesSuccessActionDataR
@pragma('vm:prefer-inline')
_$$AesSuccessActionDataResult_ErrorStatusImplCopyWith<_$AesSuccessActionDataResult_ErrorStatusImpl>
get copyWith => __$$AesSuccessActionDataResult_ErrorStatusImplCopyWithImpl<
_$AesSuccessActionDataResult_ErrorStatusImpl>(this, _$identity);
_$AesSuccessActionDataResult_ErrorStatusImpl
>(this, _$identity);
}
abstract class AesSuccessActionDataResult_ErrorStatus extends AesSuccessActionDataResult {
@@ -227,8 +236,9 @@ class _$AmountCopyWithImpl<$Res, $Val extends Amount> implements $AmountCopyWith
/// @nodoc
abstract class _$$Amount_BitcoinImplCopyWith<$Res> {
factory _$$Amount_BitcoinImplCopyWith(
_$Amount_BitcoinImpl value, $Res Function(_$Amount_BitcoinImpl) then) =
__$$Amount_BitcoinImplCopyWithImpl<$Res>;
_$Amount_BitcoinImpl value,
$Res Function(_$Amount_BitcoinImpl) then,
) = __$$Amount_BitcoinImplCopyWithImpl<$Res>;
@useResult
$Res call({BigInt amountMsat});
}
@@ -243,15 +253,16 @@ class __$$Amount_BitcoinImplCopyWithImpl<$Res> extends _$AmountCopyWithImpl<$Res
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? amountMsat = null,
}) {
return _then(_$Amount_BitcoinImpl(
amountMsat: null == amountMsat
$Res call({Object? amountMsat = null}) {
return _then(
_$Amount_BitcoinImpl(
amountMsat:
null == amountMsat
? _value.amountMsat
: amountMsat // ignore: cast_nullable_to_non_nullable
as BigInt,
));
),
);
}
}
@@ -303,8 +314,9 @@ abstract class Amount_Bitcoin extends Amount {
/// @nodoc
abstract class _$$Amount_CurrencyImplCopyWith<$Res> {
factory _$$Amount_CurrencyImplCopyWith(
_$Amount_CurrencyImpl value, $Res Function(_$Amount_CurrencyImpl) then) =
__$$Amount_CurrencyImplCopyWithImpl<$Res>;
_$Amount_CurrencyImpl value,
$Res Function(_$Amount_CurrencyImpl) then,
) = __$$Amount_CurrencyImplCopyWithImpl<$Res>;
@useResult
$Res call({String iso4217Code, BigInt fractionalAmount});
}
@@ -313,27 +325,29 @@ abstract class _$$Amount_CurrencyImplCopyWith<$Res> {
class __$$Amount_CurrencyImplCopyWithImpl<$Res> extends _$AmountCopyWithImpl<$Res, _$Amount_CurrencyImpl>
implements _$$Amount_CurrencyImplCopyWith<$Res> {
__$$Amount_CurrencyImplCopyWithImpl(
_$Amount_CurrencyImpl _value, $Res Function(_$Amount_CurrencyImpl) _then)
: super(_value, _then);
_$Amount_CurrencyImpl _value,
$Res Function(_$Amount_CurrencyImpl) _then,
) : super(_value, _then);
/// Create a copy of Amount
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? iso4217Code = null,
Object? fractionalAmount = null,
}) {
return _then(_$Amount_CurrencyImpl(
iso4217Code: null == iso4217Code
$Res call({Object? iso4217Code = null, Object? fractionalAmount = null}) {
return _then(
_$Amount_CurrencyImpl(
iso4217Code:
null == iso4217Code
? _value.iso4217Code
: iso4217Code // ignore: cast_nullable_to_non_nullable
as String,
fractionalAmount: null == fractionalAmount
fractionalAmount:
null == fractionalAmount
? _value.fractionalAmount
: fractionalAmount // ignore: cast_nullable_to_non_nullable
as BigInt,
));
),
);
}
}
@@ -413,8 +427,9 @@ class _$InputTypeCopyWithImpl<$Res, $Val extends InputType> implements $InputTyp
/// @nodoc
abstract class _$$InputType_BitcoinAddressImplCopyWith<$Res> {
factory _$$InputType_BitcoinAddressImplCopyWith(
_$InputType_BitcoinAddressImpl value, $Res Function(_$InputType_BitcoinAddressImpl) then) =
__$$InputType_BitcoinAddressImplCopyWithImpl<$Res>;
_$InputType_BitcoinAddressImpl value,
$Res Function(_$InputType_BitcoinAddressImpl) then,
) = __$$InputType_BitcoinAddressImplCopyWithImpl<$Res>;
@useResult
$Res call({BitcoinAddressData address});
}
@@ -424,22 +439,24 @@ class __$$InputType_BitcoinAddressImplCopyWithImpl<$Res>
extends _$InputTypeCopyWithImpl<$Res, _$InputType_BitcoinAddressImpl>
implements _$$InputType_BitcoinAddressImplCopyWith<$Res> {
__$$InputType_BitcoinAddressImplCopyWithImpl(
_$InputType_BitcoinAddressImpl _value, $Res Function(_$InputType_BitcoinAddressImpl) _then)
: super(_value, _then);
_$InputType_BitcoinAddressImpl _value,
$Res Function(_$InputType_BitcoinAddressImpl) _then,
) : super(_value, _then);
/// Create a copy of InputType
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? address = null,
}) {
return _then(_$InputType_BitcoinAddressImpl(
address: null == address
$Res call({Object? address = null}) {
return _then(
_$InputType_BitcoinAddressImpl(
address:
null == address
? _value.address
: address // ignore: cast_nullable_to_non_nullable
as BitcoinAddressData,
));
),
);
}
}
@@ -493,8 +510,9 @@ abstract class InputType_BitcoinAddress extends InputType {
/// @nodoc
abstract class _$$InputType_LiquidAddressImplCopyWith<$Res> {
factory _$$InputType_LiquidAddressImplCopyWith(
_$InputType_LiquidAddressImpl value, $Res Function(_$InputType_LiquidAddressImpl) then) =
__$$InputType_LiquidAddressImplCopyWithImpl<$Res>;
_$InputType_LiquidAddressImpl value,
$Res Function(_$InputType_LiquidAddressImpl) then,
) = __$$InputType_LiquidAddressImplCopyWithImpl<$Res>;
@useResult
$Res call({LiquidAddressData address});
}
@@ -504,22 +522,24 @@ class __$$InputType_LiquidAddressImplCopyWithImpl<$Res>
extends _$InputTypeCopyWithImpl<$Res, _$InputType_LiquidAddressImpl>
implements _$$InputType_LiquidAddressImplCopyWith<$Res> {
__$$InputType_LiquidAddressImplCopyWithImpl(
_$InputType_LiquidAddressImpl _value, $Res Function(_$InputType_LiquidAddressImpl) _then)
: super(_value, _then);
_$InputType_LiquidAddressImpl _value,
$Res Function(_$InputType_LiquidAddressImpl) _then,
) : super(_value, _then);
/// Create a copy of InputType
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? address = null,
}) {
return _then(_$InputType_LiquidAddressImpl(
address: null == address
$Res call({Object? address = null}) {
return _then(
_$InputType_LiquidAddressImpl(
address:
null == address
? _value.address
: address // ignore: cast_nullable_to_non_nullable
as LiquidAddressData,
));
),
);
}
}
@@ -573,8 +593,9 @@ abstract class InputType_LiquidAddress extends InputType {
/// @nodoc
abstract class _$$InputType_Bolt11ImplCopyWith<$Res> {
factory _$$InputType_Bolt11ImplCopyWith(
_$InputType_Bolt11Impl value, $Res Function(_$InputType_Bolt11Impl) then) =
__$$InputType_Bolt11ImplCopyWithImpl<$Res>;
_$InputType_Bolt11Impl value,
$Res Function(_$InputType_Bolt11Impl) then,
) = __$$InputType_Bolt11ImplCopyWithImpl<$Res>;
@useResult
$Res call({LNInvoice invoice});
}
@@ -583,22 +604,24 @@ abstract class _$$InputType_Bolt11ImplCopyWith<$Res> {
class __$$InputType_Bolt11ImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$Res, _$InputType_Bolt11Impl>
implements _$$InputType_Bolt11ImplCopyWith<$Res> {
__$$InputType_Bolt11ImplCopyWithImpl(
_$InputType_Bolt11Impl _value, $Res Function(_$InputType_Bolt11Impl) _then)
: super(_value, _then);
_$InputType_Bolt11Impl _value,
$Res Function(_$InputType_Bolt11Impl) _then,
) : super(_value, _then);
/// Create a copy of InputType
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? invoice = null,
}) {
return _then(_$InputType_Bolt11Impl(
invoice: null == invoice
$Res call({Object? invoice = null}) {
return _then(
_$InputType_Bolt11Impl(
invoice:
null == invoice
? _value.invoice
: invoice // ignore: cast_nullable_to_non_nullable
as LNInvoice,
));
),
);
}
}
@@ -650,8 +673,9 @@ abstract class InputType_Bolt11 extends InputType {
/// @nodoc
abstract class _$$InputType_Bolt12OfferImplCopyWith<$Res> {
factory _$$InputType_Bolt12OfferImplCopyWith(
_$InputType_Bolt12OfferImpl value, $Res Function(_$InputType_Bolt12OfferImpl) then) =
__$$InputType_Bolt12OfferImplCopyWithImpl<$Res>;
_$InputType_Bolt12OfferImpl value,
$Res Function(_$InputType_Bolt12OfferImpl) then,
) = __$$InputType_Bolt12OfferImplCopyWithImpl<$Res>;
@useResult
$Res call({LNOffer offer, String? bip353Address});
}
@@ -661,27 +685,29 @@ class __$$InputType_Bolt12OfferImplCopyWithImpl<$Res>
extends _$InputTypeCopyWithImpl<$Res, _$InputType_Bolt12OfferImpl>
implements _$$InputType_Bolt12OfferImplCopyWith<$Res> {
__$$InputType_Bolt12OfferImplCopyWithImpl(
_$InputType_Bolt12OfferImpl _value, $Res Function(_$InputType_Bolt12OfferImpl) _then)
: super(_value, _then);
_$InputType_Bolt12OfferImpl _value,
$Res Function(_$InputType_Bolt12OfferImpl) _then,
) : super(_value, _then);
/// Create a copy of InputType
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? offer = null,
Object? bip353Address = freezed,
}) {
return _then(_$InputType_Bolt12OfferImpl(
offer: null == offer
$Res call({Object? offer = null, Object? bip353Address = freezed}) {
return _then(
_$InputType_Bolt12OfferImpl(
offer:
null == offer
? _value.offer
: offer // ignore: cast_nullable_to_non_nullable
as LNOffer,
bip353Address: freezed == bip353Address
bip353Address:
freezed == bip353Address
? _value.bip353Address
: bip353Address // ignore: cast_nullable_to_non_nullable
as String?,
));
),
);
}
}
@@ -739,8 +765,9 @@ abstract class InputType_Bolt12Offer extends InputType {
/// @nodoc
abstract class _$$InputType_NodeIdImplCopyWith<$Res> {
factory _$$InputType_NodeIdImplCopyWith(
_$InputType_NodeIdImpl value, $Res Function(_$InputType_NodeIdImpl) then) =
__$$InputType_NodeIdImplCopyWithImpl<$Res>;
_$InputType_NodeIdImpl value,
$Res Function(_$InputType_NodeIdImpl) then,
) = __$$InputType_NodeIdImplCopyWithImpl<$Res>;
@useResult
$Res call({String nodeId});
}
@@ -749,22 +776,24 @@ abstract class _$$InputType_NodeIdImplCopyWith<$Res> {
class __$$InputType_NodeIdImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$Res, _$InputType_NodeIdImpl>
implements _$$InputType_NodeIdImplCopyWith<$Res> {
__$$InputType_NodeIdImplCopyWithImpl(
_$InputType_NodeIdImpl _value, $Res Function(_$InputType_NodeIdImpl) _then)
: super(_value, _then);
_$InputType_NodeIdImpl _value,
$Res Function(_$InputType_NodeIdImpl) _then,
) : super(_value, _then);
/// Create a copy of InputType
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? nodeId = null,
}) {
return _then(_$InputType_NodeIdImpl(
nodeId: null == nodeId
$Res call({Object? nodeId = null}) {
return _then(
_$InputType_NodeIdImpl(
nodeId:
null == nodeId
? _value.nodeId
: nodeId // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -831,15 +860,16 @@ class __$$InputType_UrlImplCopyWithImpl<$Res> extends _$InputTypeCopyWithImpl<$R
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? url = null,
}) {
return _then(_$InputType_UrlImpl(
url: null == url
$Res call({Object? url = null}) {
return _then(
_$InputType_UrlImpl(
url:
null == url
? _value.url
: url // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -891,8 +921,9 @@ abstract class InputType_Url extends InputType {
/// @nodoc
abstract class _$$InputType_LnUrlPayImplCopyWith<$Res> {
factory _$$InputType_LnUrlPayImplCopyWith(
_$InputType_LnUrlPayImpl value, $Res Function(_$InputType_LnUrlPayImpl) then) =
__$$InputType_LnUrlPayImplCopyWithImpl<$Res>;
_$InputType_LnUrlPayImpl value,
$Res Function(_$InputType_LnUrlPayImpl) then,
) = __$$InputType_LnUrlPayImplCopyWithImpl<$Res>;
@useResult
$Res call({LnUrlPayRequestData data, String? bip353Address});
}
@@ -902,27 +933,29 @@ class __$$InputType_LnUrlPayImplCopyWithImpl<$Res>
extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlPayImpl>
implements _$$InputType_LnUrlPayImplCopyWith<$Res> {
__$$InputType_LnUrlPayImplCopyWithImpl(
_$InputType_LnUrlPayImpl _value, $Res Function(_$InputType_LnUrlPayImpl) _then)
: super(_value, _then);
_$InputType_LnUrlPayImpl _value,
$Res Function(_$InputType_LnUrlPayImpl) _then,
) : super(_value, _then);
/// Create a copy of InputType
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
Object? bip353Address = freezed,
}) {
return _then(_$InputType_LnUrlPayImpl(
data: null == data
$Res call({Object? data = null, Object? bip353Address = freezed}) {
return _then(
_$InputType_LnUrlPayImpl(
data:
null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as LnUrlPayRequestData,
bip353Address: freezed == bip353Address
bip353Address:
freezed == bip353Address
? _value.bip353Address
: bip353Address // ignore: cast_nullable_to_non_nullable
as String?,
));
),
);
}
}
@@ -980,8 +1013,9 @@ abstract class InputType_LnUrlPay extends InputType {
/// @nodoc
abstract class _$$InputType_LnUrlWithdrawImplCopyWith<$Res> {
factory _$$InputType_LnUrlWithdrawImplCopyWith(
_$InputType_LnUrlWithdrawImpl value, $Res Function(_$InputType_LnUrlWithdrawImpl) then) =
__$$InputType_LnUrlWithdrawImplCopyWithImpl<$Res>;
_$InputType_LnUrlWithdrawImpl value,
$Res Function(_$InputType_LnUrlWithdrawImpl) then,
) = __$$InputType_LnUrlWithdrawImplCopyWithImpl<$Res>;
@useResult
$Res call({LnUrlWithdrawRequestData data});
}
@@ -991,22 +1025,24 @@ class __$$InputType_LnUrlWithdrawImplCopyWithImpl<$Res>
extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlWithdrawImpl>
implements _$$InputType_LnUrlWithdrawImplCopyWith<$Res> {
__$$InputType_LnUrlWithdrawImplCopyWithImpl(
_$InputType_LnUrlWithdrawImpl _value, $Res Function(_$InputType_LnUrlWithdrawImpl) _then)
: super(_value, _then);
_$InputType_LnUrlWithdrawImpl _value,
$Res Function(_$InputType_LnUrlWithdrawImpl) _then,
) : super(_value, _then);
/// Create a copy of InputType
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
}) {
return _then(_$InputType_LnUrlWithdrawImpl(
data: null == data
$Res call({Object? data = null}) {
return _then(
_$InputType_LnUrlWithdrawImpl(
data:
null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as LnUrlWithdrawRequestData,
));
),
);
}
}
@@ -1060,8 +1096,9 @@ abstract class InputType_LnUrlWithdraw extends InputType {
/// @nodoc
abstract class _$$InputType_LnUrlAuthImplCopyWith<$Res> {
factory _$$InputType_LnUrlAuthImplCopyWith(
_$InputType_LnUrlAuthImpl value, $Res Function(_$InputType_LnUrlAuthImpl) then) =
__$$InputType_LnUrlAuthImplCopyWithImpl<$Res>;
_$InputType_LnUrlAuthImpl value,
$Res Function(_$InputType_LnUrlAuthImpl) then,
) = __$$InputType_LnUrlAuthImplCopyWithImpl<$Res>;
@useResult
$Res call({LnUrlAuthRequestData data});
}
@@ -1071,22 +1108,24 @@ class __$$InputType_LnUrlAuthImplCopyWithImpl<$Res>
extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlAuthImpl>
implements _$$InputType_LnUrlAuthImplCopyWith<$Res> {
__$$InputType_LnUrlAuthImplCopyWithImpl(
_$InputType_LnUrlAuthImpl _value, $Res Function(_$InputType_LnUrlAuthImpl) _then)
: super(_value, _then);
_$InputType_LnUrlAuthImpl _value,
$Res Function(_$InputType_LnUrlAuthImpl) _then,
) : super(_value, _then);
/// Create a copy of InputType
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
}) {
return _then(_$InputType_LnUrlAuthImpl(
data: null == data
$Res call({Object? data = null}) {
return _then(
_$InputType_LnUrlAuthImpl(
data:
null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as LnUrlAuthRequestData,
));
),
);
}
}
@@ -1139,8 +1178,9 @@ abstract class InputType_LnUrlAuth extends InputType {
/// @nodoc
abstract class _$$InputType_LnUrlErrorImplCopyWith<$Res> {
factory _$$InputType_LnUrlErrorImplCopyWith(
_$InputType_LnUrlErrorImpl value, $Res Function(_$InputType_LnUrlErrorImpl) then) =
__$$InputType_LnUrlErrorImplCopyWithImpl<$Res>;
_$InputType_LnUrlErrorImpl value,
$Res Function(_$InputType_LnUrlErrorImpl) then,
) = __$$InputType_LnUrlErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({LnUrlErrorData data});
}
@@ -1150,22 +1190,24 @@ class __$$InputType_LnUrlErrorImplCopyWithImpl<$Res>
extends _$InputTypeCopyWithImpl<$Res, _$InputType_LnUrlErrorImpl>
implements _$$InputType_LnUrlErrorImplCopyWith<$Res> {
__$$InputType_LnUrlErrorImplCopyWithImpl(
_$InputType_LnUrlErrorImpl _value, $Res Function(_$InputType_LnUrlErrorImpl) _then)
: super(_value, _then);
_$InputType_LnUrlErrorImpl _value,
$Res Function(_$InputType_LnUrlErrorImpl) _then,
) : super(_value, _then);
/// Create a copy of InputType
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
}) {
return _then(_$InputType_LnUrlErrorImpl(
data: null == data
$Res call({Object? data = null}) {
return _then(
_$InputType_LnUrlErrorImpl(
data:
null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as LnUrlErrorData,
));
),
);
}
}
@@ -1242,8 +1284,9 @@ class _$SuccessActionCopyWithImpl<$Res, $Val extends SuccessAction> implements $
/// @nodoc
abstract class _$$SuccessAction_AesImplCopyWith<$Res> {
factory _$$SuccessAction_AesImplCopyWith(
_$SuccessAction_AesImpl value, $Res Function(_$SuccessAction_AesImpl) then) =
__$$SuccessAction_AesImplCopyWithImpl<$Res>;
_$SuccessAction_AesImpl value,
$Res Function(_$SuccessAction_AesImpl) then,
) = __$$SuccessAction_AesImplCopyWithImpl<$Res>;
@useResult
$Res call({AesSuccessActionData data});
}
@@ -1253,22 +1296,24 @@ class __$$SuccessAction_AesImplCopyWithImpl<$Res>
extends _$SuccessActionCopyWithImpl<$Res, _$SuccessAction_AesImpl>
implements _$$SuccessAction_AesImplCopyWith<$Res> {
__$$SuccessAction_AesImplCopyWithImpl(
_$SuccessAction_AesImpl _value, $Res Function(_$SuccessAction_AesImpl) _then)
: super(_value, _then);
_$SuccessAction_AesImpl _value,
$Res Function(_$SuccessAction_AesImpl) _then,
) : super(_value, _then);
/// Create a copy of SuccessAction
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
}) {
return _then(_$SuccessAction_AesImpl(
data: null == data
$Res call({Object? data = null}) {
return _then(
_$SuccessAction_AesImpl(
data:
null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as AesSuccessActionData,
));
),
);
}
}
@@ -1322,8 +1367,9 @@ abstract class SuccessAction_Aes extends SuccessAction {
/// @nodoc
abstract class _$$SuccessAction_MessageImplCopyWith<$Res> {
factory _$$SuccessAction_MessageImplCopyWith(
_$SuccessAction_MessageImpl value, $Res Function(_$SuccessAction_MessageImpl) then) =
__$$SuccessAction_MessageImplCopyWithImpl<$Res>;
_$SuccessAction_MessageImpl value,
$Res Function(_$SuccessAction_MessageImpl) then,
) = __$$SuccessAction_MessageImplCopyWithImpl<$Res>;
@useResult
$Res call({MessageSuccessActionData data});
}
@@ -1333,22 +1379,24 @@ class __$$SuccessAction_MessageImplCopyWithImpl<$Res>
extends _$SuccessActionCopyWithImpl<$Res, _$SuccessAction_MessageImpl>
implements _$$SuccessAction_MessageImplCopyWith<$Res> {
__$$SuccessAction_MessageImplCopyWithImpl(
_$SuccessAction_MessageImpl _value, $Res Function(_$SuccessAction_MessageImpl) _then)
: super(_value, _then);
_$SuccessAction_MessageImpl _value,
$Res Function(_$SuccessAction_MessageImpl) _then,
) : super(_value, _then);
/// Create a copy of SuccessAction
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
}) {
return _then(_$SuccessAction_MessageImpl(
data: null == data
$Res call({Object? data = null}) {
return _then(
_$SuccessAction_MessageImpl(
data:
null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as MessageSuccessActionData,
));
),
);
}
}
@@ -1403,8 +1451,9 @@ abstract class SuccessAction_Message extends SuccessAction {
/// @nodoc
abstract class _$$SuccessAction_UrlImplCopyWith<$Res> {
factory _$$SuccessAction_UrlImplCopyWith(
_$SuccessAction_UrlImpl value, $Res Function(_$SuccessAction_UrlImpl) then) =
__$$SuccessAction_UrlImplCopyWithImpl<$Res>;
_$SuccessAction_UrlImpl value,
$Res Function(_$SuccessAction_UrlImpl) then,
) = __$$SuccessAction_UrlImplCopyWithImpl<$Res>;
@useResult
$Res call({UrlSuccessActionData data});
}
@@ -1414,22 +1463,24 @@ class __$$SuccessAction_UrlImplCopyWithImpl<$Res>
extends _$SuccessActionCopyWithImpl<$Res, _$SuccessAction_UrlImpl>
implements _$$SuccessAction_UrlImplCopyWith<$Res> {
__$$SuccessAction_UrlImplCopyWithImpl(
_$SuccessAction_UrlImpl _value, $Res Function(_$SuccessAction_UrlImpl) _then)
: super(_value, _then);
_$SuccessAction_UrlImpl _value,
$Res Function(_$SuccessAction_UrlImpl) _then,
) : super(_value, _then);
/// Create a copy of SuccessAction
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
}) {
return _then(_$SuccessAction_UrlImpl(
data: null == data
$Res call({Object? data = null}) {
return _then(
_$SuccessAction_UrlImpl(
data:
null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as UrlSuccessActionData,
));
),
);
}
}
@@ -1486,8 +1537,9 @@ mixin _$SuccessActionProcessed {}
/// @nodoc
abstract class $SuccessActionProcessedCopyWith<$Res> {
factory $SuccessActionProcessedCopyWith(
SuccessActionProcessed value, $Res Function(SuccessActionProcessed) then) =
_$SuccessActionProcessedCopyWithImpl<$Res, SuccessActionProcessed>;
SuccessActionProcessed value,
$Res Function(SuccessActionProcessed) then,
) = _$SuccessActionProcessedCopyWithImpl<$Res, SuccessActionProcessed>;
}
/// @nodoc
@@ -1507,8 +1559,9 @@ class _$SuccessActionProcessedCopyWithImpl<$Res, $Val extends SuccessActionProce
/// @nodoc
abstract class _$$SuccessActionProcessed_AesImplCopyWith<$Res> {
factory _$$SuccessActionProcessed_AesImplCopyWith(
_$SuccessActionProcessed_AesImpl value, $Res Function(_$SuccessActionProcessed_AesImpl) then) =
__$$SuccessActionProcessed_AesImplCopyWithImpl<$Res>;
_$SuccessActionProcessed_AesImpl value,
$Res Function(_$SuccessActionProcessed_AesImpl) then,
) = __$$SuccessActionProcessed_AesImplCopyWithImpl<$Res>;
@useResult
$Res call({AesSuccessActionDataResult result});
@@ -1520,22 +1573,24 @@ class __$$SuccessActionProcessed_AesImplCopyWithImpl<$Res>
extends _$SuccessActionProcessedCopyWithImpl<$Res, _$SuccessActionProcessed_AesImpl>
implements _$$SuccessActionProcessed_AesImplCopyWith<$Res> {
__$$SuccessActionProcessed_AesImplCopyWithImpl(
_$SuccessActionProcessed_AesImpl _value, $Res Function(_$SuccessActionProcessed_AesImpl) _then)
: super(_value, _then);
_$SuccessActionProcessed_AesImpl _value,
$Res Function(_$SuccessActionProcessed_AesImpl) _then,
) : super(_value, _then);
/// Create a copy of SuccessActionProcessed
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? result = null,
}) {
return _then(_$SuccessActionProcessed_AesImpl(
result: null == result
$Res call({Object? result = null}) {
return _then(
_$SuccessActionProcessed_AesImpl(
result:
null == result
? _value.result
: result // ignore: cast_nullable_to_non_nullable
as AesSuccessActionDataResult,
));
),
);
}
/// Create a copy of SuccessActionProcessed
@@ -1598,9 +1653,10 @@ abstract class SuccessActionProcessed_Aes extends SuccessActionProcessed {
/// @nodoc
abstract class _$$SuccessActionProcessed_MessageImplCopyWith<$Res> {
factory _$$SuccessActionProcessed_MessageImplCopyWith(_$SuccessActionProcessed_MessageImpl value,
$Res Function(_$SuccessActionProcessed_MessageImpl) then) =
__$$SuccessActionProcessed_MessageImplCopyWithImpl<$Res>;
factory _$$SuccessActionProcessed_MessageImplCopyWith(
_$SuccessActionProcessed_MessageImpl value,
$Res Function(_$SuccessActionProcessed_MessageImpl) then,
) = __$$SuccessActionProcessed_MessageImplCopyWithImpl<$Res>;
@useResult
$Res call({MessageSuccessActionData data});
}
@@ -1610,22 +1666,24 @@ class __$$SuccessActionProcessed_MessageImplCopyWithImpl<$Res>
extends _$SuccessActionProcessedCopyWithImpl<$Res, _$SuccessActionProcessed_MessageImpl>
implements _$$SuccessActionProcessed_MessageImplCopyWith<$Res> {
__$$SuccessActionProcessed_MessageImplCopyWithImpl(
_$SuccessActionProcessed_MessageImpl _value, $Res Function(_$SuccessActionProcessed_MessageImpl) _then)
: super(_value, _then);
_$SuccessActionProcessed_MessageImpl _value,
$Res Function(_$SuccessActionProcessed_MessageImpl) _then,
) : super(_value, _then);
/// Create a copy of SuccessActionProcessed
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
}) {
return _then(_$SuccessActionProcessed_MessageImpl(
data: null == data
$Res call({Object? data = null}) {
return _then(
_$SuccessActionProcessed_MessageImpl(
data:
null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as MessageSuccessActionData,
));
),
);
}
}
@@ -1660,7 +1718,9 @@ class _$SuccessActionProcessed_MessageImpl extends SuccessActionProcessed_Messag
@pragma('vm:prefer-inline')
_$$SuccessActionProcessed_MessageImplCopyWith<_$SuccessActionProcessed_MessageImpl> get copyWith =>
__$$SuccessActionProcessed_MessageImplCopyWithImpl<_$SuccessActionProcessed_MessageImpl>(
this, _$identity);
this,
_$identity,
);
}
abstract class SuccessActionProcessed_Message extends SuccessActionProcessed {
@@ -1680,8 +1740,9 @@ abstract class SuccessActionProcessed_Message extends SuccessActionProcessed {
/// @nodoc
abstract class _$$SuccessActionProcessed_UrlImplCopyWith<$Res> {
factory _$$SuccessActionProcessed_UrlImplCopyWith(
_$SuccessActionProcessed_UrlImpl value, $Res Function(_$SuccessActionProcessed_UrlImpl) then) =
__$$SuccessActionProcessed_UrlImplCopyWithImpl<$Res>;
_$SuccessActionProcessed_UrlImpl value,
$Res Function(_$SuccessActionProcessed_UrlImpl) then,
) = __$$SuccessActionProcessed_UrlImplCopyWithImpl<$Res>;
@useResult
$Res call({UrlSuccessActionData data});
}
@@ -1691,22 +1752,24 @@ class __$$SuccessActionProcessed_UrlImplCopyWithImpl<$Res>
extends _$SuccessActionProcessedCopyWithImpl<$Res, _$SuccessActionProcessed_UrlImpl>
implements _$$SuccessActionProcessed_UrlImplCopyWith<$Res> {
__$$SuccessActionProcessed_UrlImplCopyWithImpl(
_$SuccessActionProcessed_UrlImpl _value, $Res Function(_$SuccessActionProcessed_UrlImpl) _then)
: super(_value, _then);
_$SuccessActionProcessed_UrlImpl _value,
$Res Function(_$SuccessActionProcessed_UrlImpl) _then,
) : super(_value, _then);
/// Create a copy of SuccessActionProcessed
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? data = null,
}) {
return _then(_$SuccessActionProcessed_UrlImpl(
data: null == data
$Res call({Object? data = null}) {
return _then(
_$SuccessActionProcessed_UrlImpl(
data:
null == data
? _value.data
: data // ignore: cast_nullable_to_non_nullable
as UrlSuccessActionData,
));
),
);
}
}

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.7.0.
// @generated by `flutter_rust_bridge`@ 2.8.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@@ -17,19 +17,14 @@ sealed class LnUrlAuthError with _$LnUrlAuthError implements FrbException {
/// This error is raised when a general error occurs not specific to other error variants
/// in this enum.
const factory LnUrlAuthError.generic({
required String err,
}) = LnUrlAuthError_Generic;
const factory LnUrlAuthError.generic({required String err}) = LnUrlAuthError_Generic;
/// This error is raised when the decoded LNURL URI is not compliant to the specification.
const factory LnUrlAuthError.invalidUri({
required String err,
}) = LnUrlAuthError_InvalidUri;
const factory LnUrlAuthError.invalidUri({required String err}) = LnUrlAuthError_InvalidUri;
/// This error is raised when a connection to an external service fails.
const factory LnUrlAuthError.serviceConnectivity({
required String err,
}) = LnUrlAuthError_ServiceConnectivity;
const factory LnUrlAuthError.serviceConnectivity({required String err}) =
LnUrlAuthError_ServiceConnectivity;
}
@freezed
@@ -40,9 +35,8 @@ sealed class LnUrlCallbackStatus with _$LnUrlCallbackStatus {
const factory LnUrlCallbackStatus.ok() = LnUrlCallbackStatus_Ok;
/// On-wire format is: `{"status": "ERROR", "reason": "error details..."}`
const factory LnUrlCallbackStatus.errorStatus({
required LnUrlErrorData data,
}) = LnUrlCallbackStatus_ErrorStatus;
const factory LnUrlCallbackStatus.errorStatus({required LnUrlErrorData data}) =
LnUrlCallbackStatus_ErrorStatus;
}
@freezed
@@ -54,61 +48,39 @@ sealed class LnUrlPayError with _$LnUrlPayError implements FrbException {
/// This error is raised when a general error occurs not specific to other error variants
/// in this enum.
const factory LnUrlPayError.generic({
required String err,
}) = LnUrlPayError_Generic;
const factory LnUrlPayError.generic({required String err}) = LnUrlPayError_Generic;
/// This error is raised when the amount from the parsed invoice is not set.
const factory LnUrlPayError.invalidAmount({
required String err,
}) = LnUrlPayError_InvalidAmount;
const factory LnUrlPayError.invalidAmount({required String err}) = LnUrlPayError_InvalidAmount;
/// This error is raised when the lightning invoice cannot be parsed.
const factory LnUrlPayError.invalidInvoice({
required String err,
}) = LnUrlPayError_InvalidInvoice;
const factory LnUrlPayError.invalidInvoice({required String err}) = LnUrlPayError_InvalidInvoice;
/// This error is raised when the lightning invoice is for a different Bitcoin network.
const factory LnUrlPayError.invalidNetwork({
required String err,
}) = LnUrlPayError_InvalidNetwork;
const factory LnUrlPayError.invalidNetwork({required String err}) = LnUrlPayError_InvalidNetwork;
/// This error is raised when the decoded LNURL URI is not compliant to the specification.
const factory LnUrlPayError.invalidUri({
required String err,
}) = LnUrlPayError_InvalidUri;
const factory LnUrlPayError.invalidUri({required String err}) = LnUrlPayError_InvalidUri;
/// This error is raised when the lightning invoice has passed it's expiry time.
const factory LnUrlPayError.invoiceExpired({
required String err,
}) = LnUrlPayError_InvoiceExpired;
const factory LnUrlPayError.invoiceExpired({required String err}) = LnUrlPayError_InvoiceExpired;
/// This error is raised when attempting to make a payment by the node fails.
const factory LnUrlPayError.paymentFailed({
required String err,
}) = LnUrlPayError_PaymentFailed;
const factory LnUrlPayError.paymentFailed({required String err}) = LnUrlPayError_PaymentFailed;
/// This error is raised when attempting to make a payment takes too long.
const factory LnUrlPayError.paymentTimeout({
required String err,
}) = LnUrlPayError_PaymentTimeout;
const factory LnUrlPayError.paymentTimeout({required String err}) = LnUrlPayError_PaymentTimeout;
/// This error is raised when no route can be found when attempting to make a
/// payment by the node.
const factory LnUrlPayError.routeNotFound({
required String err,
}) = LnUrlPayError_RouteNotFound;
const factory LnUrlPayError.routeNotFound({required String err}) = LnUrlPayError_RouteNotFound;
/// This error is raised when the route is considered too expensive when
/// attempting to make a payment by the node.
const factory LnUrlPayError.routeTooExpensive({
required String err,
}) = LnUrlPayError_RouteTooExpensive;
const factory LnUrlPayError.routeTooExpensive({required String err}) = LnUrlPayError_RouteTooExpensive;
/// This error is raised when a connection to an external service fails.
const factory LnUrlPayError.serviceConnectivity({
required String err,
}) = LnUrlPayError_ServiceConnectivity;
const factory LnUrlPayError.serviceConnectivity({required String err}) = LnUrlPayError_ServiceConnectivity;
}
@freezed
@@ -117,59 +89,43 @@ sealed class LnUrlWithdrawError with _$LnUrlWithdrawError implements FrbExceptio
/// This error is raised when a general error occurs not specific to other error variants
/// in this enum.
const factory LnUrlWithdrawError.generic({
required String err,
}) = LnUrlWithdrawError_Generic;
const factory LnUrlWithdrawError.generic({required String err}) = LnUrlWithdrawError_Generic;
/// This error is raised when the amount is zero or the amount does not cover
/// the cost to open a new channel.
const factory LnUrlWithdrawError.invalidAmount({
required String err,
}) = LnUrlWithdrawError_InvalidAmount;
const factory LnUrlWithdrawError.invalidAmount({required String err}) = LnUrlWithdrawError_InvalidAmount;
/// This error is raised when the lightning invoice cannot be parsed.
const factory LnUrlWithdrawError.invalidInvoice({
required String err,
}) = LnUrlWithdrawError_InvalidInvoice;
const factory LnUrlWithdrawError.invalidInvoice({required String err}) = LnUrlWithdrawError_InvalidInvoice;
/// This error is raised when the decoded LNURL URI is not compliant to the specification.
const factory LnUrlWithdrawError.invalidUri({
required String err,
}) = LnUrlWithdrawError_InvalidUri;
const factory LnUrlWithdrawError.invalidUri({required String err}) = LnUrlWithdrawError_InvalidUri;
/// This error is raised when no routing hints were able to be added to the invoice
/// while trying to receive a payment.
const factory LnUrlWithdrawError.invoiceNoRoutingHints({
required String err,
}) = LnUrlWithdrawError_InvoiceNoRoutingHints;
const factory LnUrlWithdrawError.invoiceNoRoutingHints({required String err}) =
LnUrlWithdrawError_InvoiceNoRoutingHints;
/// This error is raised when a connection to an external service fails.
const factory LnUrlWithdrawError.serviceConnectivity({
required String err,
}) = LnUrlWithdrawError_ServiceConnectivity;
const factory LnUrlWithdrawError.serviceConnectivity({required String err}) =
LnUrlWithdrawError_ServiceConnectivity;
}
@freezed
sealed class LnUrlWithdrawResult with _$LnUrlWithdrawResult {
const LnUrlWithdrawResult._();
const factory LnUrlWithdrawResult.ok({
required LnUrlWithdrawSuccessData data,
}) = LnUrlWithdrawResult_Ok;
const factory LnUrlWithdrawResult.timeout({
required LnUrlWithdrawSuccessData data,
}) = LnUrlWithdrawResult_Timeout;
const factory LnUrlWithdrawResult.errorStatus({
required LnUrlErrorData data,
}) = LnUrlWithdrawResult_ErrorStatus;
const factory LnUrlWithdrawResult.ok({required LnUrlWithdrawSuccessData data}) = LnUrlWithdrawResult_Ok;
const factory LnUrlWithdrawResult.timeout({required LnUrlWithdrawSuccessData data}) =
LnUrlWithdrawResult_Timeout;
const factory LnUrlWithdrawResult.errorStatus({required LnUrlErrorData data}) =
LnUrlWithdrawResult_ErrorStatus;
}
class LnUrlWithdrawSuccessData {
final LNInvoice invoice;
const LnUrlWithdrawSuccessData({
required this.invoice,
});
const LnUrlWithdrawSuccessData({required this.invoice});
@override
int get hashCode => invoice.hashCode;

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.7.0.
// @generated by `flutter_rust_bridge`@ 2.8.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@@ -16,47 +16,25 @@ sealed class PaymentError with _$PaymentError implements FrbException {
const factory PaymentError.alreadyPaid() = PaymentError_AlreadyPaid;
const factory PaymentError.paymentInProgress() = PaymentError_PaymentInProgress;
const factory PaymentError.amountOutOfRange() = PaymentError_AmountOutOfRange;
const factory PaymentError.amountMissing({
required String err,
}) = PaymentError_AmountMissing;
const factory PaymentError.assetError({
required String err,
}) = PaymentError_AssetError;
const factory PaymentError.invalidNetwork({
required String err,
}) = PaymentError_InvalidNetwork;
const factory PaymentError.generic({
required String err,
}) = PaymentError_Generic;
const factory PaymentError.amountMissing({required String err}) = PaymentError_AmountMissing;
const factory PaymentError.assetError({required String err}) = PaymentError_AssetError;
const factory PaymentError.invalidNetwork({required String err}) = PaymentError_InvalidNetwork;
const factory PaymentError.generic({required String err}) = PaymentError_Generic;
const factory PaymentError.invalidOrExpiredFees() = PaymentError_InvalidOrExpiredFees;
const factory PaymentError.insufficientFunds() = PaymentError_InsufficientFunds;
const factory PaymentError.invalidDescription({
required String err,
}) = PaymentError_InvalidDescription;
const factory PaymentError.invalidInvoice({
required String err,
}) = PaymentError_InvalidInvoice;
const factory PaymentError.invalidDescription({required String err}) = PaymentError_InvalidDescription;
const factory PaymentError.invalidInvoice({required String err}) = PaymentError_InvalidInvoice;
const factory PaymentError.invalidPreimage() = PaymentError_InvalidPreimage;
const factory PaymentError.lwkError({
required String err,
}) = PaymentError_LwkError;
const factory PaymentError.lwkError({required String err}) = PaymentError_LwkError;
const factory PaymentError.pairsNotFound() = PaymentError_PairsNotFound;
const factory PaymentError.paymentTimeout() = PaymentError_PaymentTimeout;
const factory PaymentError.persistError() = PaymentError_PersistError;
const factory PaymentError.receiveError({
required String err,
}) = PaymentError_ReceiveError;
const factory PaymentError.refunded({
required String err,
required String refundTxId,
}) = PaymentError_Refunded;
const factory PaymentError.receiveError({required String err}) = PaymentError_ReceiveError;
const factory PaymentError.refunded({required String err, required String refundTxId}) =
PaymentError_Refunded;
const factory PaymentError.selfTransferNotSupported() = PaymentError_SelfTransferNotSupported;
const factory PaymentError.sendError({
required String err,
}) = PaymentError_SendError;
const factory PaymentError.signerError({
required String err,
}) = PaymentError_SignerError;
const factory PaymentError.sendError({required String err}) = PaymentError_SendError;
const factory PaymentError.signerError({required String err}) = PaymentError_SignerError;
}
@freezed
@@ -64,11 +42,7 @@ sealed class SdkError with _$SdkError implements FrbException {
const SdkError._();
const factory SdkError.alreadyStarted() = SdkError_AlreadyStarted;
const factory SdkError.generic({
required String err,
}) = SdkError_Generic;
const factory SdkError.generic({required String err}) = SdkError_Generic;
const factory SdkError.notStarted() = SdkError_NotStarted;
const factory SdkError.serviceConnectivity({
required String err,
}) = SdkError_ServiceConnectivity;
const factory SdkError.serviceConnectivity({required String err}) = SdkError_ServiceConnectivity;
}

View File

@@ -12,7 +12,8 @@ part of 'error.dart';
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
);
/// @nodoc
mixin _$PaymentError {}
@@ -39,8 +40,9 @@ class _$PaymentErrorCopyWithImpl<$Res, $Val extends PaymentError> implements $Pa
/// @nodoc
abstract class _$$PaymentError_AlreadyClaimedImplCopyWith<$Res> {
factory _$$PaymentError_AlreadyClaimedImplCopyWith(
_$PaymentError_AlreadyClaimedImpl value, $Res Function(_$PaymentError_AlreadyClaimedImpl) then) =
__$$PaymentError_AlreadyClaimedImplCopyWithImpl<$Res>;
_$PaymentError_AlreadyClaimedImpl value,
$Res Function(_$PaymentError_AlreadyClaimedImpl) then,
) = __$$PaymentError_AlreadyClaimedImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -48,8 +50,9 @@ class __$$PaymentError_AlreadyClaimedImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_AlreadyClaimedImpl>
implements _$$PaymentError_AlreadyClaimedImplCopyWith<$Res> {
__$$PaymentError_AlreadyClaimedImplCopyWithImpl(
_$PaymentError_AlreadyClaimedImpl _value, $Res Function(_$PaymentError_AlreadyClaimedImpl) _then)
: super(_value, _then);
_$PaymentError_AlreadyClaimedImpl _value,
$Res Function(_$PaymentError_AlreadyClaimedImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -83,8 +86,9 @@ abstract class PaymentError_AlreadyClaimed extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_AlreadyPaidImplCopyWith<$Res> {
factory _$$PaymentError_AlreadyPaidImplCopyWith(
_$PaymentError_AlreadyPaidImpl value, $Res Function(_$PaymentError_AlreadyPaidImpl) then) =
__$$PaymentError_AlreadyPaidImplCopyWithImpl<$Res>;
_$PaymentError_AlreadyPaidImpl value,
$Res Function(_$PaymentError_AlreadyPaidImpl) then,
) = __$$PaymentError_AlreadyPaidImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -92,8 +96,9 @@ class __$$PaymentError_AlreadyPaidImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_AlreadyPaidImpl>
implements _$$PaymentError_AlreadyPaidImplCopyWith<$Res> {
__$$PaymentError_AlreadyPaidImplCopyWithImpl(
_$PaymentError_AlreadyPaidImpl _value, $Res Function(_$PaymentError_AlreadyPaidImpl) _then)
: super(_value, _then);
_$PaymentError_AlreadyPaidImpl _value,
$Res Function(_$PaymentError_AlreadyPaidImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -126,9 +131,10 @@ abstract class PaymentError_AlreadyPaid extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_PaymentInProgressImplCopyWith<$Res> {
factory _$$PaymentError_PaymentInProgressImplCopyWith(_$PaymentError_PaymentInProgressImpl value,
$Res Function(_$PaymentError_PaymentInProgressImpl) then) =
__$$PaymentError_PaymentInProgressImplCopyWithImpl<$Res>;
factory _$$PaymentError_PaymentInProgressImplCopyWith(
_$PaymentError_PaymentInProgressImpl value,
$Res Function(_$PaymentError_PaymentInProgressImpl) then,
) = __$$PaymentError_PaymentInProgressImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -136,8 +142,9 @@ class __$$PaymentError_PaymentInProgressImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_PaymentInProgressImpl>
implements _$$PaymentError_PaymentInProgressImplCopyWith<$Res> {
__$$PaymentError_PaymentInProgressImplCopyWithImpl(
_$PaymentError_PaymentInProgressImpl _value, $Res Function(_$PaymentError_PaymentInProgressImpl) _then)
: super(_value, _then);
_$PaymentError_PaymentInProgressImpl _value,
$Res Function(_$PaymentError_PaymentInProgressImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -170,9 +177,10 @@ abstract class PaymentError_PaymentInProgress extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_AmountOutOfRangeImplCopyWith<$Res> {
factory _$$PaymentError_AmountOutOfRangeImplCopyWith(_$PaymentError_AmountOutOfRangeImpl value,
$Res Function(_$PaymentError_AmountOutOfRangeImpl) then) =
__$$PaymentError_AmountOutOfRangeImplCopyWithImpl<$Res>;
factory _$$PaymentError_AmountOutOfRangeImplCopyWith(
_$PaymentError_AmountOutOfRangeImpl value,
$Res Function(_$PaymentError_AmountOutOfRangeImpl) then,
) = __$$PaymentError_AmountOutOfRangeImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -180,8 +188,9 @@ class __$$PaymentError_AmountOutOfRangeImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_AmountOutOfRangeImpl>
implements _$$PaymentError_AmountOutOfRangeImplCopyWith<$Res> {
__$$PaymentError_AmountOutOfRangeImplCopyWithImpl(
_$PaymentError_AmountOutOfRangeImpl _value, $Res Function(_$PaymentError_AmountOutOfRangeImpl) _then)
: super(_value, _then);
_$PaymentError_AmountOutOfRangeImpl _value,
$Res Function(_$PaymentError_AmountOutOfRangeImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -215,8 +224,9 @@ abstract class PaymentError_AmountOutOfRange extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_AmountMissingImplCopyWith<$Res> {
factory _$$PaymentError_AmountMissingImplCopyWith(
_$PaymentError_AmountMissingImpl value, $Res Function(_$PaymentError_AmountMissingImpl) then) =
__$$PaymentError_AmountMissingImplCopyWithImpl<$Res>;
_$PaymentError_AmountMissingImpl value,
$Res Function(_$PaymentError_AmountMissingImpl) then,
) = __$$PaymentError_AmountMissingImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -226,22 +236,24 @@ class __$$PaymentError_AmountMissingImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_AmountMissingImpl>
implements _$$PaymentError_AmountMissingImplCopyWith<$Res> {
__$$PaymentError_AmountMissingImplCopyWithImpl(
_$PaymentError_AmountMissingImpl _value, $Res Function(_$PaymentError_AmountMissingImpl) _then)
: super(_value, _then);
_$PaymentError_AmountMissingImpl _value,
$Res Function(_$PaymentError_AmountMissingImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$PaymentError_AmountMissingImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$PaymentError_AmountMissingImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -294,8 +306,9 @@ abstract class PaymentError_AmountMissing extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_AssetErrorImplCopyWith<$Res> {
factory _$$PaymentError_AssetErrorImplCopyWith(
_$PaymentError_AssetErrorImpl value, $Res Function(_$PaymentError_AssetErrorImpl) then) =
__$$PaymentError_AssetErrorImplCopyWithImpl<$Res>;
_$PaymentError_AssetErrorImpl value,
$Res Function(_$PaymentError_AssetErrorImpl) then,
) = __$$PaymentError_AssetErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -305,22 +318,24 @@ class __$$PaymentError_AssetErrorImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_AssetErrorImpl>
implements _$$PaymentError_AssetErrorImplCopyWith<$Res> {
__$$PaymentError_AssetErrorImplCopyWithImpl(
_$PaymentError_AssetErrorImpl _value, $Res Function(_$PaymentError_AssetErrorImpl) _then)
: super(_value, _then);
_$PaymentError_AssetErrorImpl _value,
$Res Function(_$PaymentError_AssetErrorImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$PaymentError_AssetErrorImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$PaymentError_AssetErrorImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -373,8 +388,9 @@ abstract class PaymentError_AssetError extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_InvalidNetworkImplCopyWith<$Res> {
factory _$$PaymentError_InvalidNetworkImplCopyWith(
_$PaymentError_InvalidNetworkImpl value, $Res Function(_$PaymentError_InvalidNetworkImpl) then) =
__$$PaymentError_InvalidNetworkImplCopyWithImpl<$Res>;
_$PaymentError_InvalidNetworkImpl value,
$Res Function(_$PaymentError_InvalidNetworkImpl) then,
) = __$$PaymentError_InvalidNetworkImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -384,22 +400,24 @@ class __$$PaymentError_InvalidNetworkImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_InvalidNetworkImpl>
implements _$$PaymentError_InvalidNetworkImplCopyWith<$Res> {
__$$PaymentError_InvalidNetworkImplCopyWithImpl(
_$PaymentError_InvalidNetworkImpl _value, $Res Function(_$PaymentError_InvalidNetworkImpl) _then)
: super(_value, _then);
_$PaymentError_InvalidNetworkImpl _value,
$Res Function(_$PaymentError_InvalidNetworkImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$PaymentError_InvalidNetworkImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$PaymentError_InvalidNetworkImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -452,8 +470,9 @@ abstract class PaymentError_InvalidNetwork extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_GenericImplCopyWith<$Res> {
factory _$$PaymentError_GenericImplCopyWith(
_$PaymentError_GenericImpl value, $Res Function(_$PaymentError_GenericImpl) then) =
__$$PaymentError_GenericImplCopyWithImpl<$Res>;
_$PaymentError_GenericImpl value,
$Res Function(_$PaymentError_GenericImpl) then,
) = __$$PaymentError_GenericImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -463,22 +482,24 @@ class __$$PaymentError_GenericImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_GenericImpl>
implements _$$PaymentError_GenericImplCopyWith<$Res> {
__$$PaymentError_GenericImplCopyWithImpl(
_$PaymentError_GenericImpl _value, $Res Function(_$PaymentError_GenericImpl) _then)
: super(_value, _then);
_$PaymentError_GenericImpl _value,
$Res Function(_$PaymentError_GenericImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$PaymentError_GenericImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$PaymentError_GenericImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -530,18 +551,20 @@ abstract class PaymentError_Generic extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_InvalidOrExpiredFeesImplCopyWith<$Res> {
factory _$$PaymentError_InvalidOrExpiredFeesImplCopyWith(_$PaymentError_InvalidOrExpiredFeesImpl value,
$Res Function(_$PaymentError_InvalidOrExpiredFeesImpl) then) =
__$$PaymentError_InvalidOrExpiredFeesImplCopyWithImpl<$Res>;
factory _$$PaymentError_InvalidOrExpiredFeesImplCopyWith(
_$PaymentError_InvalidOrExpiredFeesImpl value,
$Res Function(_$PaymentError_InvalidOrExpiredFeesImpl) then,
) = __$$PaymentError_InvalidOrExpiredFeesImplCopyWithImpl<$Res>;
}
/// @nodoc
class __$$PaymentError_InvalidOrExpiredFeesImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_InvalidOrExpiredFeesImpl>
implements _$$PaymentError_InvalidOrExpiredFeesImplCopyWith<$Res> {
__$$PaymentError_InvalidOrExpiredFeesImplCopyWithImpl(_$PaymentError_InvalidOrExpiredFeesImpl _value,
$Res Function(_$PaymentError_InvalidOrExpiredFeesImpl) _then)
: super(_value, _then);
__$$PaymentError_InvalidOrExpiredFeesImplCopyWithImpl(
_$PaymentError_InvalidOrExpiredFeesImpl _value,
$Res Function(_$PaymentError_InvalidOrExpiredFeesImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -574,9 +597,10 @@ abstract class PaymentError_InvalidOrExpiredFees extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_InsufficientFundsImplCopyWith<$Res> {
factory _$$PaymentError_InsufficientFundsImplCopyWith(_$PaymentError_InsufficientFundsImpl value,
$Res Function(_$PaymentError_InsufficientFundsImpl) then) =
__$$PaymentError_InsufficientFundsImplCopyWithImpl<$Res>;
factory _$$PaymentError_InsufficientFundsImplCopyWith(
_$PaymentError_InsufficientFundsImpl value,
$Res Function(_$PaymentError_InsufficientFundsImpl) then,
) = __$$PaymentError_InsufficientFundsImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -584,8 +608,9 @@ class __$$PaymentError_InsufficientFundsImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_InsufficientFundsImpl>
implements _$$PaymentError_InsufficientFundsImplCopyWith<$Res> {
__$$PaymentError_InsufficientFundsImplCopyWithImpl(
_$PaymentError_InsufficientFundsImpl _value, $Res Function(_$PaymentError_InsufficientFundsImpl) _then)
: super(_value, _then);
_$PaymentError_InsufficientFundsImpl _value,
$Res Function(_$PaymentError_InsufficientFundsImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -618,9 +643,10 @@ abstract class PaymentError_InsufficientFunds extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_InvalidDescriptionImplCopyWith<$Res> {
factory _$$PaymentError_InvalidDescriptionImplCopyWith(_$PaymentError_InvalidDescriptionImpl value,
$Res Function(_$PaymentError_InvalidDescriptionImpl) then) =
__$$PaymentError_InvalidDescriptionImplCopyWithImpl<$Res>;
factory _$$PaymentError_InvalidDescriptionImplCopyWith(
_$PaymentError_InvalidDescriptionImpl value,
$Res Function(_$PaymentError_InvalidDescriptionImpl) then,
) = __$$PaymentError_InvalidDescriptionImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -629,23 +655,25 @@ abstract class _$$PaymentError_InvalidDescriptionImplCopyWith<$Res> {
class __$$PaymentError_InvalidDescriptionImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_InvalidDescriptionImpl>
implements _$$PaymentError_InvalidDescriptionImplCopyWith<$Res> {
__$$PaymentError_InvalidDescriptionImplCopyWithImpl(_$PaymentError_InvalidDescriptionImpl _value,
$Res Function(_$PaymentError_InvalidDescriptionImpl) _then)
: super(_value, _then);
__$$PaymentError_InvalidDescriptionImplCopyWithImpl(
_$PaymentError_InvalidDescriptionImpl _value,
$Res Function(_$PaymentError_InvalidDescriptionImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$PaymentError_InvalidDescriptionImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$PaymentError_InvalidDescriptionImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -680,7 +708,9 @@ class _$PaymentError_InvalidDescriptionImpl extends PaymentError_InvalidDescript
@pragma('vm:prefer-inline')
_$$PaymentError_InvalidDescriptionImplCopyWith<_$PaymentError_InvalidDescriptionImpl> get copyWith =>
__$$PaymentError_InvalidDescriptionImplCopyWithImpl<_$PaymentError_InvalidDescriptionImpl>(
this, _$identity);
this,
_$identity,
);
}
abstract class PaymentError_InvalidDescription extends PaymentError {
@@ -700,8 +730,9 @@ abstract class PaymentError_InvalidDescription extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_InvalidInvoiceImplCopyWith<$Res> {
factory _$$PaymentError_InvalidInvoiceImplCopyWith(
_$PaymentError_InvalidInvoiceImpl value, $Res Function(_$PaymentError_InvalidInvoiceImpl) then) =
__$$PaymentError_InvalidInvoiceImplCopyWithImpl<$Res>;
_$PaymentError_InvalidInvoiceImpl value,
$Res Function(_$PaymentError_InvalidInvoiceImpl) then,
) = __$$PaymentError_InvalidInvoiceImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -711,22 +742,24 @@ class __$$PaymentError_InvalidInvoiceImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_InvalidInvoiceImpl>
implements _$$PaymentError_InvalidInvoiceImplCopyWith<$Res> {
__$$PaymentError_InvalidInvoiceImplCopyWithImpl(
_$PaymentError_InvalidInvoiceImpl _value, $Res Function(_$PaymentError_InvalidInvoiceImpl) _then)
: super(_value, _then);
_$PaymentError_InvalidInvoiceImpl _value,
$Res Function(_$PaymentError_InvalidInvoiceImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$PaymentError_InvalidInvoiceImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$PaymentError_InvalidInvoiceImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -779,8 +812,9 @@ abstract class PaymentError_InvalidInvoice extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_InvalidPreimageImplCopyWith<$Res> {
factory _$$PaymentError_InvalidPreimageImplCopyWith(
_$PaymentError_InvalidPreimageImpl value, $Res Function(_$PaymentError_InvalidPreimageImpl) then) =
__$$PaymentError_InvalidPreimageImplCopyWithImpl<$Res>;
_$PaymentError_InvalidPreimageImpl value,
$Res Function(_$PaymentError_InvalidPreimageImpl) then,
) = __$$PaymentError_InvalidPreimageImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -788,8 +822,9 @@ class __$$PaymentError_InvalidPreimageImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_InvalidPreimageImpl>
implements _$$PaymentError_InvalidPreimageImplCopyWith<$Res> {
__$$PaymentError_InvalidPreimageImplCopyWithImpl(
_$PaymentError_InvalidPreimageImpl _value, $Res Function(_$PaymentError_InvalidPreimageImpl) _then)
: super(_value, _then);
_$PaymentError_InvalidPreimageImpl _value,
$Res Function(_$PaymentError_InvalidPreimageImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -823,8 +858,9 @@ abstract class PaymentError_InvalidPreimage extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_LwkErrorImplCopyWith<$Res> {
factory _$$PaymentError_LwkErrorImplCopyWith(
_$PaymentError_LwkErrorImpl value, $Res Function(_$PaymentError_LwkErrorImpl) then) =
__$$PaymentError_LwkErrorImplCopyWithImpl<$Res>;
_$PaymentError_LwkErrorImpl value,
$Res Function(_$PaymentError_LwkErrorImpl) then,
) = __$$PaymentError_LwkErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -834,22 +870,24 @@ class __$$PaymentError_LwkErrorImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_LwkErrorImpl>
implements _$$PaymentError_LwkErrorImplCopyWith<$Res> {
__$$PaymentError_LwkErrorImplCopyWithImpl(
_$PaymentError_LwkErrorImpl _value, $Res Function(_$PaymentError_LwkErrorImpl) _then)
: super(_value, _then);
_$PaymentError_LwkErrorImpl _value,
$Res Function(_$PaymentError_LwkErrorImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$PaymentError_LwkErrorImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$PaymentError_LwkErrorImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -902,8 +940,9 @@ abstract class PaymentError_LwkError extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_PairsNotFoundImplCopyWith<$Res> {
factory _$$PaymentError_PairsNotFoundImplCopyWith(
_$PaymentError_PairsNotFoundImpl value, $Res Function(_$PaymentError_PairsNotFoundImpl) then) =
__$$PaymentError_PairsNotFoundImplCopyWithImpl<$Res>;
_$PaymentError_PairsNotFoundImpl value,
$Res Function(_$PaymentError_PairsNotFoundImpl) then,
) = __$$PaymentError_PairsNotFoundImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -911,8 +950,9 @@ class __$$PaymentError_PairsNotFoundImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_PairsNotFoundImpl>
implements _$$PaymentError_PairsNotFoundImplCopyWith<$Res> {
__$$PaymentError_PairsNotFoundImplCopyWithImpl(
_$PaymentError_PairsNotFoundImpl _value, $Res Function(_$PaymentError_PairsNotFoundImpl) _then)
: super(_value, _then);
_$PaymentError_PairsNotFoundImpl _value,
$Res Function(_$PaymentError_PairsNotFoundImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -946,8 +986,9 @@ abstract class PaymentError_PairsNotFound extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_PaymentTimeoutImplCopyWith<$Res> {
factory _$$PaymentError_PaymentTimeoutImplCopyWith(
_$PaymentError_PaymentTimeoutImpl value, $Res Function(_$PaymentError_PaymentTimeoutImpl) then) =
__$$PaymentError_PaymentTimeoutImplCopyWithImpl<$Res>;
_$PaymentError_PaymentTimeoutImpl value,
$Res Function(_$PaymentError_PaymentTimeoutImpl) then,
) = __$$PaymentError_PaymentTimeoutImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -955,8 +996,9 @@ class __$$PaymentError_PaymentTimeoutImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_PaymentTimeoutImpl>
implements _$$PaymentError_PaymentTimeoutImplCopyWith<$Res> {
__$$PaymentError_PaymentTimeoutImplCopyWithImpl(
_$PaymentError_PaymentTimeoutImpl _value, $Res Function(_$PaymentError_PaymentTimeoutImpl) _then)
: super(_value, _then);
_$PaymentError_PaymentTimeoutImpl _value,
$Res Function(_$PaymentError_PaymentTimeoutImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -990,8 +1032,9 @@ abstract class PaymentError_PaymentTimeout extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_PersistErrorImplCopyWith<$Res> {
factory _$$PaymentError_PersistErrorImplCopyWith(
_$PaymentError_PersistErrorImpl value, $Res Function(_$PaymentError_PersistErrorImpl) then) =
__$$PaymentError_PersistErrorImplCopyWithImpl<$Res>;
_$PaymentError_PersistErrorImpl value,
$Res Function(_$PaymentError_PersistErrorImpl) then,
) = __$$PaymentError_PersistErrorImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -999,8 +1042,9 @@ class __$$PaymentError_PersistErrorImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_PersistErrorImpl>
implements _$$PaymentError_PersistErrorImplCopyWith<$Res> {
__$$PaymentError_PersistErrorImplCopyWithImpl(
_$PaymentError_PersistErrorImpl _value, $Res Function(_$PaymentError_PersistErrorImpl) _then)
: super(_value, _then);
_$PaymentError_PersistErrorImpl _value,
$Res Function(_$PaymentError_PersistErrorImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -1034,8 +1078,9 @@ abstract class PaymentError_PersistError extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_ReceiveErrorImplCopyWith<$Res> {
factory _$$PaymentError_ReceiveErrorImplCopyWith(
_$PaymentError_ReceiveErrorImpl value, $Res Function(_$PaymentError_ReceiveErrorImpl) then) =
__$$PaymentError_ReceiveErrorImplCopyWithImpl<$Res>;
_$PaymentError_ReceiveErrorImpl value,
$Res Function(_$PaymentError_ReceiveErrorImpl) then,
) = __$$PaymentError_ReceiveErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -1045,22 +1090,24 @@ class __$$PaymentError_ReceiveErrorImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_ReceiveErrorImpl>
implements _$$PaymentError_ReceiveErrorImplCopyWith<$Res> {
__$$PaymentError_ReceiveErrorImplCopyWithImpl(
_$PaymentError_ReceiveErrorImpl _value, $Res Function(_$PaymentError_ReceiveErrorImpl) _then)
: super(_value, _then);
_$PaymentError_ReceiveErrorImpl _value,
$Res Function(_$PaymentError_ReceiveErrorImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$PaymentError_ReceiveErrorImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$PaymentError_ReceiveErrorImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -1113,8 +1160,9 @@ abstract class PaymentError_ReceiveError extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_RefundedImplCopyWith<$Res> {
factory _$$PaymentError_RefundedImplCopyWith(
_$PaymentError_RefundedImpl value, $Res Function(_$PaymentError_RefundedImpl) then) =
__$$PaymentError_RefundedImplCopyWithImpl<$Res>;
_$PaymentError_RefundedImpl value,
$Res Function(_$PaymentError_RefundedImpl) then,
) = __$$PaymentError_RefundedImplCopyWithImpl<$Res>;
@useResult
$Res call({String err, String refundTxId});
}
@@ -1124,27 +1172,29 @@ class __$$PaymentError_RefundedImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_RefundedImpl>
implements _$$PaymentError_RefundedImplCopyWith<$Res> {
__$$PaymentError_RefundedImplCopyWithImpl(
_$PaymentError_RefundedImpl _value, $Res Function(_$PaymentError_RefundedImpl) _then)
: super(_value, _then);
_$PaymentError_RefundedImpl _value,
$Res Function(_$PaymentError_RefundedImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
Object? refundTxId = null,
}) {
return _then(_$PaymentError_RefundedImpl(
err: null == err
$Res call({Object? err = null, Object? refundTxId = null}) {
return _then(
_$PaymentError_RefundedImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
refundTxId: null == refundTxId
refundTxId:
null == refundTxId
? _value.refundTxId
: refundTxId // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -1203,8 +1253,8 @@ abstract class PaymentError_Refunded extends PaymentError {
abstract class _$$PaymentError_SelfTransferNotSupportedImplCopyWith<$Res> {
factory _$$PaymentError_SelfTransferNotSupportedImplCopyWith(
_$PaymentError_SelfTransferNotSupportedImpl value,
$Res Function(_$PaymentError_SelfTransferNotSupportedImpl) then) =
__$$PaymentError_SelfTransferNotSupportedImplCopyWithImpl<$Res>;
$Res Function(_$PaymentError_SelfTransferNotSupportedImpl) then,
) = __$$PaymentError_SelfTransferNotSupportedImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -1213,8 +1263,8 @@ class __$$PaymentError_SelfTransferNotSupportedImplCopyWithImpl<$Res>
implements _$$PaymentError_SelfTransferNotSupportedImplCopyWith<$Res> {
__$$PaymentError_SelfTransferNotSupportedImplCopyWithImpl(
_$PaymentError_SelfTransferNotSupportedImpl _value,
$Res Function(_$PaymentError_SelfTransferNotSupportedImpl) _then)
: super(_value, _then);
$Res Function(_$PaymentError_SelfTransferNotSupportedImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@@ -1248,8 +1298,9 @@ abstract class PaymentError_SelfTransferNotSupported extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_SendErrorImplCopyWith<$Res> {
factory _$$PaymentError_SendErrorImplCopyWith(
_$PaymentError_SendErrorImpl value, $Res Function(_$PaymentError_SendErrorImpl) then) =
__$$PaymentError_SendErrorImplCopyWithImpl<$Res>;
_$PaymentError_SendErrorImpl value,
$Res Function(_$PaymentError_SendErrorImpl) then,
) = __$$PaymentError_SendErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -1259,22 +1310,24 @@ class __$$PaymentError_SendErrorImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_SendErrorImpl>
implements _$$PaymentError_SendErrorImplCopyWith<$Res> {
__$$PaymentError_SendErrorImplCopyWithImpl(
_$PaymentError_SendErrorImpl _value, $Res Function(_$PaymentError_SendErrorImpl) _then)
: super(_value, _then);
_$PaymentError_SendErrorImpl _value,
$Res Function(_$PaymentError_SendErrorImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$PaymentError_SendErrorImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$PaymentError_SendErrorImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -1327,8 +1380,9 @@ abstract class PaymentError_SendError extends PaymentError {
/// @nodoc
abstract class _$$PaymentError_SignerErrorImplCopyWith<$Res> {
factory _$$PaymentError_SignerErrorImplCopyWith(
_$PaymentError_SignerErrorImpl value, $Res Function(_$PaymentError_SignerErrorImpl) then) =
__$$PaymentError_SignerErrorImplCopyWithImpl<$Res>;
_$PaymentError_SignerErrorImpl value,
$Res Function(_$PaymentError_SignerErrorImpl) then,
) = __$$PaymentError_SignerErrorImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -1338,22 +1392,24 @@ class __$$PaymentError_SignerErrorImplCopyWithImpl<$Res>
extends _$PaymentErrorCopyWithImpl<$Res, _$PaymentError_SignerErrorImpl>
implements _$$PaymentError_SignerErrorImplCopyWith<$Res> {
__$$PaymentError_SignerErrorImplCopyWithImpl(
_$PaymentError_SignerErrorImpl _value, $Res Function(_$PaymentError_SignerErrorImpl) _then)
: super(_value, _then);
_$PaymentError_SignerErrorImpl _value,
$Res Function(_$PaymentError_SignerErrorImpl) _then,
) : super(_value, _then);
/// Create a copy of PaymentError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$PaymentError_SignerErrorImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$PaymentError_SignerErrorImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -1428,8 +1484,9 @@ class _$SdkErrorCopyWithImpl<$Res, $Val extends SdkError> implements $SdkErrorCo
/// @nodoc
abstract class _$$SdkError_AlreadyStartedImplCopyWith<$Res> {
factory _$$SdkError_AlreadyStartedImplCopyWith(
_$SdkError_AlreadyStartedImpl value, $Res Function(_$SdkError_AlreadyStartedImpl) then) =
__$$SdkError_AlreadyStartedImplCopyWithImpl<$Res>;
_$SdkError_AlreadyStartedImpl value,
$Res Function(_$SdkError_AlreadyStartedImpl) then,
) = __$$SdkError_AlreadyStartedImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -1437,8 +1494,9 @@ class __$$SdkError_AlreadyStartedImplCopyWithImpl<$Res>
extends _$SdkErrorCopyWithImpl<$Res, _$SdkError_AlreadyStartedImpl>
implements _$$SdkError_AlreadyStartedImplCopyWith<$Res> {
__$$SdkError_AlreadyStartedImplCopyWithImpl(
_$SdkError_AlreadyStartedImpl _value, $Res Function(_$SdkError_AlreadyStartedImpl) _then)
: super(_value, _then);
_$SdkError_AlreadyStartedImpl _value,
$Res Function(_$SdkError_AlreadyStartedImpl) _then,
) : super(_value, _then);
/// Create a copy of SdkError
/// with the given fields replaced by the non-null parameter values.
@@ -1472,8 +1530,9 @@ abstract class SdkError_AlreadyStarted extends SdkError {
/// @nodoc
abstract class _$$SdkError_GenericImplCopyWith<$Res> {
factory _$$SdkError_GenericImplCopyWith(
_$SdkError_GenericImpl value, $Res Function(_$SdkError_GenericImpl) then) =
__$$SdkError_GenericImplCopyWithImpl<$Res>;
_$SdkError_GenericImpl value,
$Res Function(_$SdkError_GenericImpl) then,
) = __$$SdkError_GenericImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -1482,22 +1541,24 @@ abstract class _$$SdkError_GenericImplCopyWith<$Res> {
class __$$SdkError_GenericImplCopyWithImpl<$Res> extends _$SdkErrorCopyWithImpl<$Res, _$SdkError_GenericImpl>
implements _$$SdkError_GenericImplCopyWith<$Res> {
__$$SdkError_GenericImplCopyWithImpl(
_$SdkError_GenericImpl _value, $Res Function(_$SdkError_GenericImpl) _then)
: super(_value, _then);
_$SdkError_GenericImpl _value,
$Res Function(_$SdkError_GenericImpl) _then,
) : super(_value, _then);
/// Create a copy of SdkError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$SdkError_GenericImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$SdkError_GenericImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}
@@ -1549,8 +1610,9 @@ abstract class SdkError_Generic extends SdkError {
/// @nodoc
abstract class _$$SdkError_NotStartedImplCopyWith<$Res> {
factory _$$SdkError_NotStartedImplCopyWith(
_$SdkError_NotStartedImpl value, $Res Function(_$SdkError_NotStartedImpl) then) =
__$$SdkError_NotStartedImplCopyWithImpl<$Res>;
_$SdkError_NotStartedImpl value,
$Res Function(_$SdkError_NotStartedImpl) then,
) = __$$SdkError_NotStartedImplCopyWithImpl<$Res>;
}
/// @nodoc
@@ -1558,8 +1620,9 @@ class __$$SdkError_NotStartedImplCopyWithImpl<$Res>
extends _$SdkErrorCopyWithImpl<$Res, _$SdkError_NotStartedImpl>
implements _$$SdkError_NotStartedImplCopyWith<$Res> {
__$$SdkError_NotStartedImplCopyWithImpl(
_$SdkError_NotStartedImpl _value, $Res Function(_$SdkError_NotStartedImpl) _then)
: super(_value, _then);
_$SdkError_NotStartedImpl _value,
$Res Function(_$SdkError_NotStartedImpl) _then,
) : super(_value, _then);
/// Create a copy of SdkError
/// with the given fields replaced by the non-null parameter values.
@@ -1592,8 +1655,9 @@ abstract class SdkError_NotStarted extends SdkError {
/// @nodoc
abstract class _$$SdkError_ServiceConnectivityImplCopyWith<$Res> {
factory _$$SdkError_ServiceConnectivityImplCopyWith(
_$SdkError_ServiceConnectivityImpl value, $Res Function(_$SdkError_ServiceConnectivityImpl) then) =
__$$SdkError_ServiceConnectivityImplCopyWithImpl<$Res>;
_$SdkError_ServiceConnectivityImpl value,
$Res Function(_$SdkError_ServiceConnectivityImpl) then,
) = __$$SdkError_ServiceConnectivityImplCopyWithImpl<$Res>;
@useResult
$Res call({String err});
}
@@ -1603,22 +1667,24 @@ class __$$SdkError_ServiceConnectivityImplCopyWithImpl<$Res>
extends _$SdkErrorCopyWithImpl<$Res, _$SdkError_ServiceConnectivityImpl>
implements _$$SdkError_ServiceConnectivityImplCopyWith<$Res> {
__$$SdkError_ServiceConnectivityImplCopyWithImpl(
_$SdkError_ServiceConnectivityImpl _value, $Res Function(_$SdkError_ServiceConnectivityImpl) _then)
: super(_value, _then);
_$SdkError_ServiceConnectivityImpl _value,
$Res Function(_$SdkError_ServiceConnectivityImpl) _then,
) : super(_value, _then);
/// Create a copy of SdkError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? err = null,
}) {
return _then(_$SdkError_ServiceConnectivityImpl(
err: null == err
$Res call({Object? err = null}) {
return _then(
_$SdkError_ServiceConnectivityImpl(
err:
null == err
? _value.err
: err // ignore: cast_nullable_to_non_nullable
as String,
));
),
);
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.7.0.
// @generated by `flutter_rust_bridge`@ 2.8.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@@ -13,9 +13,7 @@ part 'model.freezed.dart';
class AcceptPaymentProposedFeesRequest {
final FetchPaymentProposedFeesResponse response;
const AcceptPaymentProposedFeesRequest({
required this.response,
});
const AcceptPaymentProposedFeesRequest({required this.response});
@override
int get hashCode => response.hashCode;
@@ -36,13 +34,7 @@ class AssetBalance {
final String? ticker;
final double? balance;
const AssetBalance({
required this.assetId,
required this.balanceSat,
this.name,
this.ticker,
this.balance,
});
const AssetBalance({required this.assetId, required this.balanceSat, this.name, this.ticker, this.balance});
@override
int get hashCode =>
@@ -73,11 +65,7 @@ class AssetInfo {
/// decimal shifted to the left by the [precision](AssetMetadata::precision)
final double amount;
const AssetInfo({
required this.name,
required this.ticker,
required this.amount,
});
const AssetInfo({required this.name, required this.ticker, required this.amount});
@override
int get hashCode => name.hashCode ^ ticker.hashCode ^ amount.hashCode;
@@ -140,9 +128,7 @@ class BackupRequest {
/// The file will be saved in [ConnectRequest]'s `data_dir`.
final String? backupPath;
const BackupRequest({
this.backupPath,
});
const BackupRequest({this.backupPath});
@override
int get hashCode => backupPath.hashCode;
@@ -157,10 +143,7 @@ class BlockchainInfo {
final int liquidTip;
final int bitcoinTip;
const BlockchainInfo({
required this.liquidTip,
required this.bitcoinTip,
});
const BlockchainInfo({required this.liquidTip, required this.bitcoinTip});
@override
int get hashCode => liquidTip.hashCode ^ bitcoinTip.hashCode;
@@ -175,10 +158,7 @@ class BlockchainInfo {
}
/// An argument of [PrepareBuyBitcoinRequest] when calling [crate::sdk::LiquidSdk::prepare_buy_bitcoin].
enum BuyBitcoinProvider {
moonpay,
;
}
enum BuyBitcoinProvider { moonpay }
/// An argument when calling [crate::sdk::LiquidSdk::buy_bitcoin].
class BuyBitcoinRequest {
@@ -189,10 +169,7 @@ class BuyBitcoinRequest {
/// For Moonpay, see <https://dev.moonpay.com/docs/on-ramp-configure-user-journey-params>
final String? redirectUrl;
const BuyBitcoinRequest({
required this.prepareResponse,
this.redirectUrl,
});
const BuyBitcoinRequest({required this.prepareResponse, this.redirectUrl});
@override
int get hashCode => prepareResponse.hashCode ^ redirectUrl.hashCode;
@@ -217,11 +194,7 @@ class CheckMessageRequest {
/// The zbase encoded signature to verify.
final String signature;
const CheckMessageRequest({
required this.message,
required this.pubkey,
required this.signature,
});
const CheckMessageRequest({required this.message, required this.pubkey, required this.signature});
@override
int get hashCode => message.hashCode ^ pubkey.hashCode ^ signature.hashCode;
@@ -242,9 +215,7 @@ class CheckMessageResponse {
/// was signed by the given pubkey.
final bool isValid;
const CheckMessageResponse({
required this.isValid,
});
const CheckMessageResponse({required this.isValid});
@override
int get hashCode => isValid.hashCode;
@@ -380,12 +351,7 @@ class ConnectRequest {
/// The optional Liquid wallet seed
final Uint8List? seed;
const ConnectRequest({
required this.config,
this.mnemonic,
this.passphrase,
this.seed,
});
const ConnectRequest({required this.config, this.mnemonic, this.passphrase, this.seed});
@override
int get hashCode => config.hashCode ^ mnemonic.hashCode ^ passphrase.hashCode ^ seed.hashCode;
@@ -405,9 +371,7 @@ class ConnectRequest {
class FetchPaymentProposedFeesRequest {
final String swapId;
const FetchPaymentProposedFeesRequest({
required this.swapId,
});
const FetchPaymentProposedFeesRequest({required this.swapId});
@override
int get hashCode => swapId.hashCode;
@@ -459,10 +423,7 @@ class GetInfoResponse {
/// The latest synced blockchain information, such as the Liquid/Bitcoin tips
final BlockchainInfo blockchainInfo;
const GetInfoResponse({
required this.walletInfo,
required this.blockchainInfo,
});
const GetInfoResponse({required this.walletInfo, required this.blockchainInfo});
@override
int get hashCode => walletInfo.hashCode ^ blockchainInfo.hashCode;
@@ -481,14 +442,10 @@ sealed class GetPaymentRequest with _$GetPaymentRequest {
const GetPaymentRequest._();
/// The payment hash of a Lightning payment
const factory GetPaymentRequest.paymentHash({
required String paymentHash,
}) = GetPaymentRequest_PaymentHash;
const factory GetPaymentRequest.paymentHash({required String paymentHash}) = GetPaymentRequest_PaymentHash;
/// A swap id or its SHA256 hash
const factory GetPaymentRequest.swapId({
required String swapId,
}) = GetPaymentRequest_SwapId;
const factory GetPaymentRequest.swapId({required String swapId}) = GetPaymentRequest_SwapId;
}
/// Returned when calling [crate::sdk::LiquidSdk::fetch_lightning_limits].
@@ -499,10 +456,7 @@ class LightningPaymentLimitsResponse {
/// Amount limits for a Receive Payment to be valid
final Limits receive;
const LightningPaymentLimitsResponse({
required this.send,
required this.receive,
});
const LightningPaymentLimitsResponse({required this.send, required this.receive});
@override
int get hashCode => send.hashCode ^ receive.hashCode;
@@ -522,11 +476,7 @@ class Limits {
final BigInt maxSat;
final BigInt maxZeroConfSat;
const Limits({
required this.minSat,
required this.maxSat,
required this.maxZeroConfSat,
});
const Limits({required this.minSat, required this.maxSat, required this.maxZeroConfSat});
@override
int get hashCode => minSat.hashCode ^ maxSat.hashCode ^ maxZeroConfSat.hashCode;
@@ -552,7 +502,6 @@ enum LiquidNetwork {
/// Regtest Bitcoin and Liquid chains
regtest,
;
}
@freezed
@@ -676,9 +625,7 @@ class LnUrlPayRequest {
/// The response from calling [crate::sdk::LiquidSdk::prepare_lnurl_pay]
final PrepareLnUrlPayResponse prepareResponse;
const LnUrlPayRequest({
required this.prepareResponse,
});
const LnUrlPayRequest({required this.prepareResponse});
@override
int get hashCode => prepareResponse.hashCode;
@@ -695,25 +642,17 @@ class LnUrlPayRequest {
sealed class LnUrlPayResult with _$LnUrlPayResult {
const LnUrlPayResult._();
const factory LnUrlPayResult.endpointSuccess({
required LnUrlPaySuccessData data,
}) = LnUrlPayResult_EndpointSuccess;
const factory LnUrlPayResult.endpointError({
required LnUrlErrorData data,
}) = LnUrlPayResult_EndpointError;
const factory LnUrlPayResult.payError({
required LnUrlPayErrorData data,
}) = LnUrlPayResult_PayError;
const factory LnUrlPayResult.endpointSuccess({required LnUrlPaySuccessData data}) =
LnUrlPayResult_EndpointSuccess;
const factory LnUrlPayResult.endpointError({required LnUrlErrorData data}) = LnUrlPayResult_EndpointError;
const factory LnUrlPayResult.payError({required LnUrlPayErrorData data}) = LnUrlPayResult_PayError;
}
class LnUrlPaySuccessData {
final Payment payment;
final SuccessActionProcessed? successAction;
const LnUrlPaySuccessData({
required this.payment,
this.successAction,
});
const LnUrlPaySuccessData({required this.payment, this.successAction});
@override
int get hashCode => payment.hashCode ^ successAction.hashCode;
@@ -732,10 +671,7 @@ class LogEntry {
final String line;
final String level;
const LogEntry({
required this.line,
required this.level,
});
const LogEntry({required this.line, required this.level});
@override
int get hashCode => line.hashCode ^ level.hashCode;
@@ -754,10 +690,7 @@ class OnchainPaymentLimitsResponse {
/// Amount limits for a Receive Onchain Payment to be valid
final Limits receive;
const OnchainPaymentLimitsResponse({
required this.send,
required this.receive,
});
const OnchainPaymentLimitsResponse({required this.send, required this.receive});
@override
int get hashCode => send.hashCode ^ receive.hashCode;
@@ -776,15 +709,10 @@ sealed class PayAmount with _$PayAmount {
const PayAmount._();
/// The amount in satoshi that will be received
const factory PayAmount.bitcoin({
required BigInt receiverAmountSat,
}) = PayAmount_Bitcoin;
const factory PayAmount.bitcoin({required BigInt receiverAmountSat}) = PayAmount_Bitcoin;
/// The amount of an asset that will be received
const factory PayAmount.asset({
required String assetId,
required double receiverAmount,
}) = PayAmount_Asset;
const factory PayAmount.asset({required String assetId, required double receiverAmount}) = PayAmount_Asset;
/// Indicates that all available Bitcoin funds should be sent
const factory PayAmount.drain() = PayAmount_Drain;
@@ -795,10 +723,7 @@ class PayOnchainRequest {
final String address;
final PreparePayOnchainResponse prepareResponse;
const PayOnchainRequest({
required this.address,
required this.prepareResponse,
});
const PayOnchainRequest({required this.address, required this.prepareResponse});
@override
int get hashCode => address.hashCode ^ prepareResponse.hashCode;
@@ -1005,12 +930,7 @@ sealed class PaymentDetails with _$PaymentDetails {
}
/// The send/receive methods supported by the SDK
enum PaymentMethod {
lightning,
bitcoinAddress,
liquidAddress,
;
}
enum PaymentMethod { lightning, bitcoinAddress, liquidAddress }
/// The payment state of an individual payment.
enum PaymentState {
@@ -1090,24 +1010,16 @@ enum PaymentState {
/// Otherwise, this payment can be immediately refunded using
/// [prepare_refund](crate::sdk::LiquidSdk::prepare_refund)/[refund](crate::sdk::LiquidSdk::refund).
waitingFeeAcceptance,
;
}
enum PaymentType {
receive,
send,
;
}
enum PaymentType { receive, send }
/// An argument when calling [crate::sdk::LiquidSdk::prepare_buy_bitcoin].
class PrepareBuyBitcoinRequest {
final BuyBitcoinProvider provider;
final BigInt amountSat;
const PrepareBuyBitcoinRequest({
required this.provider,
required this.amountSat,
});
const PrepareBuyBitcoinRequest({required this.provider, required this.amountSat});
@override
int get hashCode => provider.hashCode ^ amountSat.hashCode;
@@ -1127,11 +1039,7 @@ class PrepareBuyBitcoinResponse {
final BigInt amountSat;
final BigInt feesSat;
const PrepareBuyBitcoinResponse({
required this.provider,
required this.amountSat,
required this.feesSat,
});
const PrepareBuyBitcoinResponse({required this.provider, required this.amountSat, required this.feesSat});
@override
int get hashCode => provider.hashCode ^ amountSat.hashCode ^ feesSat.hashCode;
@@ -1243,10 +1151,7 @@ class PreparePayOnchainRequest {
/// The optional fee rate of the Bitcoin claim transaction in sat/vB. Defaults to the swapper estimated claim fee.
final int? feeRateSatPerVbyte;
const PreparePayOnchainRequest({
required this.amount,
this.feeRateSatPerVbyte,
});
const PreparePayOnchainRequest({required this.amount, this.feeRateSatPerVbyte});
@override
int get hashCode => amount.hashCode ^ feeRateSatPerVbyte.hashCode;
@@ -1292,10 +1197,7 @@ class PrepareReceiveRequest {
/// The amount to be paid in either Bitcoin or another asset
final ReceiveAmount? amount;
const PrepareReceiveRequest({
required this.paymentMethod,
this.amount,
});
const PrepareReceiveRequest({required this.paymentMethod, this.amount});
@override
int get hashCode => paymentMethod.hashCode ^ amount.hashCode;
@@ -1408,11 +1310,7 @@ class PrepareRefundResponse {
/// The txid of the last broadcasted refund tx, if any
final String? lastRefundTxId;
const PrepareRefundResponse({
required this.txVsize,
required this.txFeeSat,
this.lastRefundTxId,
});
const PrepareRefundResponse({required this.txVsize, required this.txFeeSat, this.lastRefundTxId});
@override
int get hashCode => txVsize.hashCode ^ txFeeSat.hashCode ^ lastRefundTxId.hashCode;
@@ -1437,10 +1335,7 @@ class PrepareSendRequest {
/// where no amount is specified, or when the caller wishes to drain
final PayAmount? amount;
const PrepareSendRequest({
required this.destination,
this.amount,
});
const PrepareSendRequest({required this.destination, this.amount});
@override
int get hashCode => destination.hashCode ^ amount.hashCode;
@@ -1459,10 +1354,7 @@ class PrepareSendResponse {
final SendDestination destination;
final BigInt feesSat;
const PrepareSendResponse({
required this.destination,
required this.feesSat,
});
const PrepareSendResponse({required this.destination, required this.feesSat});
@override
int get hashCode => destination.hashCode ^ feesSat.hashCode;
@@ -1481,15 +1373,10 @@ sealed class ReceiveAmount with _$ReceiveAmount {
const ReceiveAmount._();
/// The amount in satoshi that should be paid
const factory ReceiveAmount.bitcoin({
required BigInt payerAmountSat,
}) = ReceiveAmount_Bitcoin;
const factory ReceiveAmount.bitcoin({required BigInt payerAmountSat}) = ReceiveAmount_Bitcoin;
/// The amount of an asset that should be paid
const factory ReceiveAmount.asset({
required String assetId,
double? payerAmount,
}) = ReceiveAmount_Asset;
const factory ReceiveAmount.asset({required String assetId, double? payerAmount}) = ReceiveAmount_Asset;
}
/// An argument when calling [crate::sdk::LiquidSdk::receive_payment].
@@ -1502,11 +1389,7 @@ class ReceivePaymentRequest {
/// If set to true, then the hash of the description will be used.
final bool? useDescriptionHash;
const ReceivePaymentRequest({
required this.prepareResponse,
this.description,
this.useDescriptionHash,
});
const ReceivePaymentRequest({required this.prepareResponse, this.description, this.useDescriptionHash});
@override
int get hashCode => prepareResponse.hashCode ^ description.hashCode ^ useDescriptionHash.hashCode;
@@ -1527,9 +1410,7 @@ class ReceivePaymentResponse {
/// or an invoice, depending on the [PrepareReceiveResponse] parameters
final String destination;
const ReceivePaymentResponse({
required this.destination,
});
const ReceivePaymentResponse({required this.destination});
@override
int get hashCode => destination.hashCode;
@@ -1610,9 +1491,7 @@ class RefundRequest {
class RefundResponse {
final String refundTxId;
const RefundResponse({
required this.refundTxId,
});
const RefundResponse({required this.refundTxId});
@override
int get hashCode => refundTxId.hashCode;
@@ -1660,9 +1539,7 @@ class RefundableSwap {
class RestoreRequest {
final String? backupPath;
const RestoreRequest({
this.backupPath,
});
const RestoreRequest({this.backupPath});
@override
int get hashCode => backupPath.hashCode;
@@ -1677,30 +1554,16 @@ class RestoreRequest {
sealed class SdkEvent with _$SdkEvent {
const SdkEvent._();
const factory SdkEvent.paymentFailed({
required Payment details,
}) = SdkEvent_PaymentFailed;
const factory SdkEvent.paymentPending({
required Payment details,
}) = SdkEvent_PaymentPending;
const factory SdkEvent.paymentRefundable({
required Payment details,
}) = SdkEvent_PaymentRefundable;
const factory SdkEvent.paymentRefunded({
required Payment details,
}) = SdkEvent_PaymentRefunded;
const factory SdkEvent.paymentRefundPending({
required Payment details,
}) = SdkEvent_PaymentRefundPending;
const factory SdkEvent.paymentSucceeded({
required Payment details,
}) = SdkEvent_PaymentSucceeded;
const factory SdkEvent.paymentWaitingConfirmation({
required Payment details,
}) = SdkEvent_PaymentWaitingConfirmation;
const factory SdkEvent.paymentWaitingFeeAcceptance({
required Payment details,
}) = SdkEvent_PaymentWaitingFeeAcceptance;
const factory SdkEvent.paymentFailed({required Payment details}) = SdkEvent_PaymentFailed;
const factory SdkEvent.paymentPending({required Payment details}) = SdkEvent_PaymentPending;
const factory SdkEvent.paymentRefundable({required Payment details}) = SdkEvent_PaymentRefundable;
const factory SdkEvent.paymentRefunded({required Payment details}) = SdkEvent_PaymentRefunded;
const factory SdkEvent.paymentRefundPending({required Payment details}) = SdkEvent_PaymentRefundPending;
const factory SdkEvent.paymentSucceeded({required Payment details}) = SdkEvent_PaymentSucceeded;
const factory SdkEvent.paymentWaitingConfirmation({required Payment details}) =
SdkEvent_PaymentWaitingConfirmation;
const factory SdkEvent.paymentWaitingFeeAcceptance({required Payment details}) =
SdkEvent_PaymentWaitingFeeAcceptance;
const factory SdkEvent.synced() = SdkEvent_Synced;
}
@@ -1708,9 +1571,8 @@ sealed class SdkEvent with _$SdkEvent {
sealed class SendDestination with _$SendDestination {
const SendDestination._();
const factory SendDestination.liquidAddress({
required LiquidAddressData addressData,
}) = SendDestination_LiquidAddress;
const factory SendDestination.liquidAddress({required LiquidAddressData addressData}) =
SendDestination_LiquidAddress;
const factory SendDestination.bolt11({
required LNInvoice invoice,
@@ -1730,9 +1592,7 @@ sealed class SendDestination with _$SendDestination {
class SendPaymentRequest {
final PrepareSendResponse prepareResponse;
const SendPaymentRequest({
required this.prepareResponse,
});
const SendPaymentRequest({required this.prepareResponse});
@override
int get hashCode => prepareResponse.hashCode;
@@ -1749,9 +1609,7 @@ class SendPaymentRequest {
class SendPaymentResponse {
final Payment payment;
const SendPaymentResponse({
required this.payment,
});
const SendPaymentResponse({required this.payment});
@override
int get hashCode => payment.hashCode;
@@ -1766,9 +1624,7 @@ class SendPaymentResponse {
class SignMessageRequest {
final String message;
const SignMessageRequest({
required this.message,
});
const SignMessageRequest({required this.message});
@override
int get hashCode => message.hashCode;
@@ -1783,9 +1639,7 @@ class SignMessageRequest {
class SignMessageResponse {
final String signature;
const SignMessageResponse({
required this.signature,
});
const SignMessageResponse({required this.signature});
@override
int get hashCode => signature.hashCode;

File diff suppressed because it is too large Load Diff

View File

@@ -11,19 +11,19 @@ platforms:
macos:
environment:
sdk: '>=3.4.0 <4.0.0'
sdk: '>=3.7.0 <4.0.0'
dev_dependencies:
build_runner: ^2.4.10
ffigen: ">=8.0.0 <=11.0.0"
freezed: ^2.5.3
lints: ">=2.0.0 <=4.0.0"
path: ^1.9.0
test: ^1.25.5
build_runner: ^2.4.14
ffigen: ">=8.0.0 <=17.0.0"
freezed: ^2.5.8
lints: ">=2.0.0 <=5.1.1"
path: ^1.9.1
test: ^1.25.15
dependencies:
ffi: ^2.1.2
flutter_rust_bridge: ">=2.4.0 <=2.7.0"
freezed_annotation: ^2.4.1
logging: ^1.2.0
ffi: ^2.1.4
flutter_rust_bridge: ">=2.4.0 <=2.8.0"
freezed_annotation: ^2.4.4
logging: ^1.3.0
meta: ^1.12.0 # meta is pinned to version 1.12.0 by integration_test from the flutter SDK.

View File

@@ -11,7 +11,8 @@ void main() {
await initApi();
ConnectRequest connectRequest = ConnectRequest(
mnemonic: "",
config: defaultConfig(network: LiquidNetwork.testnet, breezApiKey: "<breez-api-key>"));
config: defaultConfig(network: LiquidNetwork.testnet, breezApiKey: "<breez-api-key>"),
);
sdk = await connect(req: connectRequest);
});

View File

@@ -27,13 +27,16 @@ extension on String {
}
}
String dylibPath(String profile) => Uri.base
.resolve(p.joinAll([
String dylibPath(String profile) =>
Uri.base
.resolve(
p.joinAll([
'../../lib/target',
if (Platform.isMacOS && hostTriple.startsWith('aarch64')) hostTriple,
profile,
'breez_sdk_liquid'.dylib,
]))
]),
)
.toFilePath();
Future<void> initApi({String profile = 'frb-min'}) {

View File

@@ -22,7 +22,7 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec