mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-06 07:34:24 +01:00
Bump flutter_rust_bridge to 2.0.0 (#327)
This commit is contained in:
8
cli/Cargo.lock
generated
8
cli/Cargo.lock
generated
@@ -976,9 +976,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "flutter_rust_bridge"
|
||||
version = "2.0.0-dev.38"
|
||||
version = "2.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d0405761db6c536d430c753b8fc5a06cf36ad554d1485407af65be79624249e9"
|
||||
checksum = "033e831e28f1077ceae3490fb6d093dfdefefd09c5c6e8544c6579effe7e814f"
|
||||
dependencies = [
|
||||
"allo-isolate",
|
||||
"android_logger",
|
||||
@@ -1004,9 +1004,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "flutter_rust_bridge_macros"
|
||||
version = "2.0.0-dev.38"
|
||||
version = "2.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b69c76832e96fa57e8b043a3b5d715b9c858511b8b3f9b21036d85b7c77d6851"
|
||||
checksum = "0217fc4b7131b52578be60bbe38c76b3edfc2f9fecab46d9f930510f40ef9023"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"md-5",
|
||||
|
||||
8
lib/Cargo.lock
generated
8
lib/Cargo.lock
generated
@@ -1138,9 +1138,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "flutter_rust_bridge"
|
||||
version = "2.0.0-dev.38"
|
||||
version = "2.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d0405761db6c536d430c753b8fc5a06cf36ad554d1485407af65be79624249e9"
|
||||
checksum = "033e831e28f1077ceae3490fb6d093dfdefefd09c5c6e8544c6579effe7e814f"
|
||||
dependencies = [
|
||||
"allo-isolate",
|
||||
"android_logger",
|
||||
@@ -1166,9 +1166,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "flutter_rust_bridge_macros"
|
||||
version = "2.0.0-dev.38"
|
||||
version = "2.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b69c76832e96fa57e8b043a3b5d715b9c858511b8b3f9b21036d85b7c77d6851"
|
||||
checksum = "0217fc4b7131b52578be60bbe38c76b3edfc2f9fecab46d9f930510f40ef9023"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"md-5",
|
||||
|
||||
@@ -20,7 +20,7 @@ bootstrap frb='true' build='false':
|
||||
# Install flutter_rust_bridge_codegen dependencies
|
||||
frb:
|
||||
cargo install cargo-expand
|
||||
cargo install flutter_rust_bridge_codegen --version 2.0.0-dev.38
|
||||
cargo install flutter_rust_bridge_codegen --version 2.0.0
|
||||
dart pub global activate ffigen
|
||||
dart pub global activate ffi
|
||||
cargo install cargo-xcode
|
||||
|
||||
@@ -18,7 +18,7 @@ bip39 = { version = "2.0.0", features = ["serde"] }
|
||||
boltz-client = { git = "https://github.com/dangeross/boltz-rust", rev = "cb2cb02d44fb81cc8ce5d8000346f52cc26b3fc1" }
|
||||
chrono = "0.4"
|
||||
env_logger = "0.11"
|
||||
flutter_rust_bridge = { version = "=2.0.0-dev.38", features = ["chrono"], optional = true }
|
||||
flutter_rust_bridge = { version = "=2.0.0", features = ["chrono"], optional = true }
|
||||
log = { workspace = true }
|
||||
lwk_common = "0.5.1"
|
||||
lwk_signer = "0.5.1"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.38.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0.
|
||||
|
||||
// Section: imports
|
||||
|
||||
@@ -7,7 +7,7 @@ use super::*;
|
||||
use crate::bindings::*;
|
||||
use crate::model::EventListener;
|
||||
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
||||
use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable};
|
||||
use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable};
|
||||
use flutter_rust_bridge::{Handler, IntoIntoDart};
|
||||
|
||||
// Section: boilerplate
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.38.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0.
|
||||
|
||||
#![allow(
|
||||
non_camel_case_types,
|
||||
@@ -16,7 +16,11 @@
|
||||
clippy::too_many_arguments,
|
||||
clippy::match_single_binding,
|
||||
clippy::clone_on_copy,
|
||||
clippy::let_unit_value
|
||||
clippy::let_unit_value,
|
||||
clippy::deref_addrof,
|
||||
clippy::explicit_auto_deref,
|
||||
clippy::borrow_deref_ref,
|
||||
clippy::needless_borrow
|
||||
)]
|
||||
|
||||
// Section: imports
|
||||
@@ -24,7 +28,7 @@
|
||||
use crate::bindings::*;
|
||||
use crate::model::EventListener;
|
||||
use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
||||
use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable};
|
||||
use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable};
|
||||
use flutter_rust_bridge::{Handler, IntoIntoDart};
|
||||
|
||||
// Section: boilerplate
|
||||
@@ -34,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.0.0-dev.38";
|
||||
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0";
|
||||
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 540580972;
|
||||
|
||||
// Section: executor
|
||||
@@ -62,9 +66,9 @@ fn wire__crate__bindings__BindingLiquidSdk_add_event_listener_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_listener = listener.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::LiquidSdkError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -74,18 +78,19 @@ fn wire__crate__bindings__BindingLiquidSdk_add_event_listener_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::add_event_listener(
|
||||
api_that,
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok = crate::bindings::BindingLiquidSdk::add_event_listener(
|
||||
&*api_that_guard,
|
||||
api_listener,
|
||||
)
|
||||
.await
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -108,8 +113,8 @@ fn wire__crate__bindings__BindingLiquidSdk_backup_impl(
|
||||
move || {
|
||||
let api_that = that.cst_decode();
|
||||
let api_req = req.cst_decode();
|
||||
transform_result_dco((move || {
|
||||
let mut api_that_decoded = None;
|
||||
transform_result_dco::<_, _, crate::error::LiquidSdkError>((move || {
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
|
||||
flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -118,12 +123,14 @@ fn wire__crate__bindings__BindingLiquidSdk_backup_impl(
|
||||
]);
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => api_that_decoded = Some(api_that.lockable_decode_sync_ref()),
|
||||
0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::backup(api_that, api_req)
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok =
|
||||
crate::bindings::BindingLiquidSdk::backup(&*api_that_guard, api_req)?;
|
||||
Ok(output_ok)
|
||||
})())
|
||||
},
|
||||
)
|
||||
@@ -143,9 +150,9 @@ fn wire__crate__bindings__BindingLiquidSdk_disconnect_impl(
|
||||
move || {
|
||||
let api_that = that.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::LiquidSdkError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -155,14 +162,16 @@ fn wire__crate__bindings__BindingLiquidSdk_disconnect_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::disconnect(api_that).await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok =
|
||||
crate::bindings::BindingLiquidSdk::disconnect(&*api_that_guard).await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -183,8 +192,8 @@ fn wire__crate__bindings__BindingLiquidSdk_empty_wallet_cache_impl(
|
||||
},
|
||||
move || {
|
||||
let api_that = that.cst_decode();
|
||||
transform_result_dco((move || {
|
||||
let mut api_that_decoded = None;
|
||||
transform_result_dco::<_, _, crate::error::LiquidSdkError>((move || {
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
|
||||
flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -193,12 +202,14 @@ fn wire__crate__bindings__BindingLiquidSdk_empty_wallet_cache_impl(
|
||||
]);
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => api_that_decoded = Some(api_that.lockable_decode_sync_ref()),
|
||||
0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::empty_wallet_cache(api_that)
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok =
|
||||
crate::bindings::BindingLiquidSdk::empty_wallet_cache(&*api_that_guard)?;
|
||||
Ok(output_ok)
|
||||
})())
|
||||
},
|
||||
)
|
||||
@@ -218,9 +229,9 @@ fn wire__crate__bindings__BindingLiquidSdk_get_info_impl(
|
||||
move || {
|
||||
let api_that = that.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::LiquidSdkError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -230,14 +241,16 @@ fn wire__crate__bindings__BindingLiquidSdk_get_info_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::get_info(api_that).await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok =
|
||||
crate::bindings::BindingLiquidSdk::get_info(&*api_that_guard).await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -260,9 +273,9 @@ fn wire__crate__bindings__BindingLiquidSdk_list_payments_impl(
|
||||
move || {
|
||||
let api_that = that.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::PaymentError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -272,14 +285,17 @@ fn wire__crate__bindings__BindingLiquidSdk_list_payments_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::list_payments(api_that).await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok =
|
||||
crate::bindings::BindingLiquidSdk::list_payments(&*api_that_guard)
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -304,9 +320,9 @@ fn wire__crate__bindings__BindingLiquidSdk_lnurl_auth_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_req_data = req_data.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::bindings::duplicates::LnUrlAuthError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -316,14 +332,19 @@ fn wire__crate__bindings__BindingLiquidSdk_lnurl_auth_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::lnurl_auth(api_that, api_req_data).await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok = crate::bindings::BindingLiquidSdk::lnurl_auth(
|
||||
&*api_that_guard,
|
||||
api_req_data,
|
||||
)
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -348,9 +369,9 @@ fn wire__crate__bindings__BindingLiquidSdk_lnurl_pay_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_req = req.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::bindings::duplicates::LnUrlPayError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -360,14 +381,17 @@ fn wire__crate__bindings__BindingLiquidSdk_lnurl_pay_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::lnurl_pay(api_that, api_req).await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok =
|
||||
crate::bindings::BindingLiquidSdk::lnurl_pay(&*api_that_guard, api_req)
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -392,9 +416,9 @@ fn wire__crate__bindings__BindingLiquidSdk_lnurl_withdraw_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_req = req.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::bindings::duplicates::LnUrlWithdrawError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -404,14 +428,19 @@ fn wire__crate__bindings__BindingLiquidSdk_lnurl_withdraw_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::lnurl_withdraw(api_that, api_req).await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok = crate::bindings::BindingLiquidSdk::lnurl_withdraw(
|
||||
&*api_that_guard,
|
||||
api_req,
|
||||
)
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -436,9 +465,9 @@ fn wire__crate__bindings__BindingLiquidSdk_pay_onchain_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_req = req.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::PaymentError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -448,14 +477,19 @@ fn wire__crate__bindings__BindingLiquidSdk_pay_onchain_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::pay_onchain(api_that, api_req).await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok = crate::bindings::BindingLiquidSdk::pay_onchain(
|
||||
&*api_that_guard,
|
||||
api_req,
|
||||
)
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -480,9 +514,9 @@ fn wire__crate__bindings__BindingLiquidSdk_prepare_pay_onchain_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_req = req.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::PaymentError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -492,15 +526,19 @@ fn wire__crate__bindings__BindingLiquidSdk_prepare_pay_onchain_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::prepare_pay_onchain(api_that, api_req)
|
||||
.await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok = crate::bindings::BindingLiquidSdk::prepare_pay_onchain(
|
||||
&*api_that_guard,
|
||||
api_req,
|
||||
)
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -525,9 +563,9 @@ fn wire__crate__bindings__BindingLiquidSdk_prepare_receive_payment_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_req = req.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::PaymentError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -537,17 +575,19 @@ fn wire__crate__bindings__BindingLiquidSdk_prepare_receive_payment_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::prepare_receive_payment(
|
||||
api_that, api_req,
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok = crate::bindings::BindingLiquidSdk::prepare_receive_payment(
|
||||
&*api_that_guard,
|
||||
api_req,
|
||||
)
|
||||
.await
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -572,9 +612,9 @@ fn wire__crate__bindings__BindingLiquidSdk_prepare_send_payment_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_req = req.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::PaymentError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -584,15 +624,19 @@ fn wire__crate__bindings__BindingLiquidSdk_prepare_send_payment_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::prepare_send_payment(api_that, api_req)
|
||||
.await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok = crate::bindings::BindingLiquidSdk::prepare_send_payment(
|
||||
&*api_that_guard,
|
||||
api_req,
|
||||
)
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -617,9 +661,9 @@ fn wire__crate__bindings__BindingLiquidSdk_receive_payment_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_req = req.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::PaymentError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -629,14 +673,19 @@ fn wire__crate__bindings__BindingLiquidSdk_receive_payment_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::receive_payment(api_that, api_req).await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok = crate::bindings::BindingLiquidSdk::receive_payment(
|
||||
&*api_that_guard,
|
||||
api_req,
|
||||
)
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -659,8 +708,8 @@ fn wire__crate__bindings__BindingLiquidSdk_restore_impl(
|
||||
move || {
|
||||
let api_that = that.cst_decode();
|
||||
let api_req = req.cst_decode();
|
||||
transform_result_dco((move || {
|
||||
let mut api_that_decoded = None;
|
||||
transform_result_dco::<_, _, crate::error::LiquidSdkError>((move || {
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![
|
||||
flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -669,12 +718,14 @@ fn wire__crate__bindings__BindingLiquidSdk_restore_impl(
|
||||
]);
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => api_that_decoded = Some(api_that.lockable_decode_sync_ref()),
|
||||
0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()),
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::restore(api_that, api_req)
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok =
|
||||
crate::bindings::BindingLiquidSdk::restore(&*api_that_guard, api_req)?;
|
||||
Ok(output_ok)
|
||||
})())
|
||||
},
|
||||
)
|
||||
@@ -696,9 +747,9 @@ fn wire__crate__bindings__BindingLiquidSdk_send_payment_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_req = req.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::PaymentError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -708,14 +759,19 @@ fn wire__crate__bindings__BindingLiquidSdk_send_payment_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::send_payment(api_that, api_req).await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok = crate::bindings::BindingLiquidSdk::send_payment(
|
||||
&*api_that_guard,
|
||||
api_req,
|
||||
)
|
||||
.await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -738,9 +794,9 @@ fn wire__crate__bindings__BindingLiquidSdk_sync_impl(
|
||||
move || {
|
||||
let api_that = that.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
transform_result_dco::<_, _, crate::error::LiquidSdkError>(
|
||||
(move || async move {
|
||||
let mut api_that_decoded = None;
|
||||
let mut api_that_guard = None;
|
||||
let decode_indices_ =
|
||||
flutter_rust_bridge::for_generated::lockable_compute_decode_order(
|
||||
vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(
|
||||
@@ -750,14 +806,16 @@ fn wire__crate__bindings__BindingLiquidSdk_sync_impl(
|
||||
for i in decode_indices_ {
|
||||
match i {
|
||||
0 => {
|
||||
api_that_decoded =
|
||||
api_that_guard =
|
||||
Some(api_that.lockable_decode_async_ref().await)
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
let api_that = &*api_that_decoded.unwrap();
|
||||
crate::bindings::BindingLiquidSdk::sync(api_that).await
|
||||
let api_that_guard = api_that_guard.unwrap();
|
||||
let output_ok =
|
||||
crate::bindings::BindingLiquidSdk::sync(&*api_that_guard).await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
@@ -780,10 +838,11 @@ fn wire__crate__bindings__binding_event_listener_on_event_impl(
|
||||
let api_that = that.cst_decode();
|
||||
let api_e = e.cst_decode();
|
||||
move |context| {
|
||||
transform_result_dco((move || {
|
||||
Result::<_, ()>::Ok({
|
||||
transform_result_dco::<_, _, ()>((move || {
|
||||
let output_ok = Result::<_, ()>::Ok({
|
||||
crate::bindings::BindingEventListener::on_event(&api_that, api_e);
|
||||
})
|
||||
})?;
|
||||
Ok(output_ok)
|
||||
})())
|
||||
}
|
||||
},
|
||||
@@ -793,11 +852,24 @@ fn wire__crate__bindings__breez_log_stream_impl(
|
||||
port_: flutter_rust_bridge::for_generated::MessagePort,
|
||||
s: impl CstDecode<StreamSink<crate::model::LogEntry, flutter_rust_bridge::for_generated::DcoCodec>>,
|
||||
) {
|
||||
FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::DcoCodec,_,_>(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "breez_log_stream", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let api_s = s.cst_decode(); move |context| {
|
||||
transform_result_dco((move || {
|
||||
crate::bindings::breez_log_stream(api_s)
|
||||
})())
|
||||
} })
|
||||
FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::<flutter_rust_bridge::for_generated::DcoCodec, _, _>(
|
||||
flutter_rust_bridge::for_generated::TaskInfo {
|
||||
debug_name: "breez_log_stream",
|
||||
port: Some(port_),
|
||||
mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal,
|
||||
},
|
||||
move || {
|
||||
let api_s = s.cst_decode();
|
||||
move |context| {
|
||||
transform_result_dco::<_, _, flutter_rust_bridge::for_generated::anyhow::Error>(
|
||||
(move || {
|
||||
let output_ok = crate::bindings::breez_log_stream(api_s)?;
|
||||
Ok(output_ok)
|
||||
})(),
|
||||
)
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
fn wire__crate__bindings__connect_impl(
|
||||
port_: flutter_rust_bridge::for_generated::MessagePort,
|
||||
@@ -812,8 +884,12 @@ fn wire__crate__bindings__connect_impl(
|
||||
move || {
|
||||
let api_req = req.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
(move || async move { crate::bindings::connect(api_req).await })().await,
|
||||
transform_result_dco::<_, _, crate::error::LiquidSdkError>(
|
||||
(move || async move {
|
||||
let output_ok = crate::bindings::connect(api_req).await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
}
|
||||
},
|
||||
@@ -830,8 +906,9 @@ fn wire__crate__bindings__default_config_impl(
|
||||
},
|
||||
move || {
|
||||
let api_network = network.cst_decode();
|
||||
transform_result_dco((move || {
|
||||
Result::<_, ()>::Ok(crate::bindings::default_config(api_network))
|
||||
transform_result_dco::<_, _, ()>((move || {
|
||||
let output_ok = Result::<_, ()>::Ok(crate::bindings::default_config(api_network))?;
|
||||
Ok(output_ok)
|
||||
})())
|
||||
},
|
||||
)
|
||||
@@ -849,8 +926,12 @@ fn wire__crate__bindings__parse_impl(
|
||||
move || {
|
||||
let api_input = input.cst_decode();
|
||||
move |context| async move {
|
||||
transform_result_dco(
|
||||
(move || async move { crate::bindings::parse(api_input).await })().await,
|
||||
transform_result_dco::<_, _, crate::error::PaymentError>(
|
||||
(move || async move {
|
||||
let output_ok = crate::bindings::parse(api_input).await?;
|
||||
Ok(output_ok)
|
||||
})()
|
||||
.await,
|
||||
)
|
||||
}
|
||||
},
|
||||
@@ -867,7 +948,10 @@ fn wire__crate__bindings__parse_invoice_impl(
|
||||
},
|
||||
move || {
|
||||
let api_input = input.cst_decode();
|
||||
transform_result_dco((move || crate::bindings::parse_invoice(api_input))())
|
||||
transform_result_dco::<_, _, crate::error::PaymentError>((move || {
|
||||
let output_ok = crate::bindings::parse_invoice(api_input)?;
|
||||
Ok(output_ok)
|
||||
})())
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.38.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0.
|
||||
|
||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||
|
||||
@@ -13,6 +13,7 @@ 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 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}) =>
|
||||
RustLib.instance.api.crateBindingsConnect(req: req);
|
||||
|
||||
1027
packages/dart/lib/src/bindings.freezed.dart
Normal file
1027
packages/dart/lib/src/bindings.freezed.dart
Normal file
File diff suppressed because it is too large
Load Diff
178
packages/dart/lib/src/bindings/duplicates.dart
Normal file
178
packages/dart/lib/src/bindings/duplicates.dart
Normal file
@@ -0,0 +1,178 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0.
|
||||
|
||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||
|
||||
import '../bindings.dart';
|
||||
import '../frb_generated.dart';
|
||||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart' hide protected;
|
||||
part 'duplicates.freezed.dart';
|
||||
|
||||
// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `clone`, `clone`, `clone`, `clone`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`
|
||||
|
||||
@freezed
|
||||
sealed class LnUrlAuthError with _$LnUrlAuthError implements FrbException {
|
||||
const LnUrlAuthError._();
|
||||
|
||||
/// 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;
|
||||
|
||||
/// This error is raised when the decoded LNURL URI is not compliant to the specification.
|
||||
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;
|
||||
}
|
||||
|
||||
@freezed
|
||||
sealed class LnUrlCallbackStatus with _$LnUrlCallbackStatus {
|
||||
const LnUrlCallbackStatus._();
|
||||
|
||||
/// On-wire format is: `{"status": "OK"}`
|
||||
const factory LnUrlCallbackStatus.ok() = LnUrlCallbackStatus_Ok;
|
||||
|
||||
/// On-wire format is: `{"status": "ERROR", "reason": "error details..."}`
|
||||
const factory LnUrlCallbackStatus.errorStatus({
|
||||
required LnUrlErrorData data,
|
||||
}) = LnUrlCallbackStatus_ErrorStatus;
|
||||
}
|
||||
|
||||
@freezed
|
||||
sealed class LnUrlPayError with _$LnUrlPayError implements FrbException {
|
||||
const LnUrlPayError._();
|
||||
|
||||
/// This error is raised when attempting to pay an invoice that has already being paid.
|
||||
const factory LnUrlPayError.alreadyPaid() = LnUrlPayError_AlreadyPaid;
|
||||
|
||||
/// 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;
|
||||
|
||||
/// This error is raised when the amount from the parsed invoice is not set.
|
||||
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;
|
||||
|
||||
/// This error is raised when the lightning invoice is for a different Bitcoin network.
|
||||
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;
|
||||
|
||||
/// This error is raised when the lightning invoice has passed it's expiry time.
|
||||
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;
|
||||
|
||||
/// This error is raised when attempting to make a payment takes too long.
|
||||
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;
|
||||
|
||||
/// 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;
|
||||
|
||||
/// This error is raised when a connection to an external service fails.
|
||||
const factory LnUrlPayError.serviceConnectivity({
|
||||
required String err,
|
||||
}) = LnUrlPayError_ServiceConnectivity;
|
||||
}
|
||||
|
||||
@freezed
|
||||
sealed class LnUrlWithdrawError with _$LnUrlWithdrawError implements FrbException {
|
||||
const LnUrlWithdrawError._();
|
||||
|
||||
/// 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;
|
||||
|
||||
/// 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;
|
||||
|
||||
/// This error is raised when the lightning invoice cannot be parsed.
|
||||
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;
|
||||
|
||||
/// 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;
|
||||
|
||||
/// This error is raised when a connection to an external service fails.
|
||||
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.errorStatus({
|
||||
required LnUrlErrorData data,
|
||||
}) = LnUrlWithdrawResult_ErrorStatus;
|
||||
}
|
||||
|
||||
class LnUrlWithdrawSuccessData {
|
||||
final LNInvoice invoice;
|
||||
|
||||
const LnUrlWithdrawSuccessData({
|
||||
required this.invoice,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode => invoice.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is LnUrlWithdrawSuccessData && runtimeType == other.runtimeType && invoice == other.invoice;
|
||||
}
|
||||
1958
packages/dart/lib/src/bindings/duplicates.freezed.dart
Normal file
1958
packages/dart/lib/src/bindings/duplicates.freezed.dart
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.38.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0.
|
||||
|
||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.38.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0.
|
||||
|
||||
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'error.dart';
|
||||
import 'frb_generated.dart';
|
||||
import 'frb_generated.io.dart' if (dart.library.html) 'frb_generated.web.dart';
|
||||
import 'frb_generated.io.dart' if (dart.library.js_interop) 'frb_generated.web.dart';
|
||||
import 'model.dart';
|
||||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
||||
|
||||
@@ -52,7 +52,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
|
||||
ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig => kDefaultExternalLibraryLoaderConfig;
|
||||
|
||||
@override
|
||||
String get codegenVersion => '2.0.0-dev.38';
|
||||
String get codegenVersion => '2.0.0';
|
||||
|
||||
@override
|
||||
int get rustContentHash => 540580972;
|
||||
@@ -3010,7 +3010,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_String(
|
||||
self.setupAndSerialize(
|
||||
codec: DcoCodec(decodeSuccessData: dco_decode_liquid_sdk_event, decodeErrorData: null)),
|
||||
codec: DcoCodec(
|
||||
decodeSuccessData: dco_decode_liquid_sdk_event,
|
||||
decodeErrorData: dco_decode_AnyhowException,
|
||||
)),
|
||||
serializer);
|
||||
}
|
||||
|
||||
@@ -3019,7 +3022,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
|
||||
// Codec=Sse (Serialization based), see doc to use other codecs
|
||||
sse_encode_String(
|
||||
self.setupAndSerialize(
|
||||
codec: DcoCodec(decodeSuccessData: dco_decode_log_entry, decodeErrorData: null)),
|
||||
codec: DcoCodec(
|
||||
decodeSuccessData: dco_decode_log_entry,
|
||||
decodeErrorData: dco_decode_AnyhowException,
|
||||
)),
|
||||
serializer);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.38.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0.
|
||||
|
||||
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
|
||||
|
||||
@@ -653,7 +653,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
RustStreamSink<LiquidSdkEvent> raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
return cst_encode_String(raw.setupAndSerialize(
|
||||
codec: DcoCodec(decodeSuccessData: dco_decode_liquid_sdk_event, decodeErrorData: null)));
|
||||
codec: DcoCodec(
|
||||
decodeSuccessData: dco_decode_liquid_sdk_event,
|
||||
decodeErrorData: dco_decode_AnyhowException,
|
||||
)));
|
||||
}
|
||||
|
||||
@protected
|
||||
@@ -661,7 +664,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
RustStreamSink<LogEntry> raw) {
|
||||
// Codec=Cst (C-struct based), see doc to use other codecs
|
||||
return cst_encode_String(raw.setupAndSerialize(
|
||||
codec: DcoCodec(decodeSuccessData: dco_decode_log_entry, decodeErrorData: null)));
|
||||
codec: DcoCodec(
|
||||
decodeSuccessData: dco_decode_log_entry,
|
||||
decodeErrorData: dco_decode_AnyhowException,
|
||||
)));
|
||||
}
|
||||
|
||||
@protected
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.38.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0.
|
||||
|
||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||
|
||||
|
||||
@@ -23,6 +23,6 @@ dev_dependencies:
|
||||
test: ^1.25.5
|
||||
dependencies:
|
||||
ffi: ^2.1.2
|
||||
flutter_rust_bridge: ">=2.0.0-dev.38"
|
||||
flutter_rust_bridge: ^2.0.0
|
||||
freezed_annotation: ^2.4.1
|
||||
meta: ^1.12.0 # meta is pinned to version 1.12.0 by integration_test from the flutter SDK.
|
||||
|
||||
@@ -152,10 +152,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_rust_bridge
|
||||
sha256: "867ae0e50cf856ab9fe8d26f88319aa5ec47b3e641e055280bdc626d6f5cd0f2"
|
||||
sha256: f703c4b50e253e53efc604d50281bbaefe82d615856f8ae1e7625518ae252e98
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.0.0-dev.38"
|
||||
version: "2.0.0"
|
||||
flutter_secure_storage:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@@ -362,10 +362,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path_provider_android
|
||||
sha256: "9c96da072b421e98183f9ea7464898428e764bc0ce5567f27ec8693442e72514"
|
||||
sha256: bca87b0165ffd7cdb9cad8edd22d18d2201e886d9a9f19b4fb3452ea7df3a72a
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.2.5"
|
||||
version: "2.2.6"
|
||||
path_provider_foundation:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@@ -11,7 +11,7 @@ dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
flutter_rust_bridge: ">=2.0.0-dev.38"
|
||||
flutter_rust_bridge: ^2.0.0
|
||||
flutter_breez_liquid: ^0.1.0
|
||||
# When depending on this package from a real application you should use:
|
||||
# flutter_breez_liquid: ^x.y.z
|
||||
|
||||
Reference in New Issue
Block a user