From 4fdcfa0404fbf32a1070ef6a8ac7c2b35a3b6bd7 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sat, 24 Feb 2024 18:04:00 -0500 Subject: [PATCH 01/14] ohttp crate added --- example/lib/main.dart | 6 +++--- rust/Cargo.lock | 4 ++-- rust/Cargo.toml | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 88ac626..2c28eee 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -21,7 +21,7 @@ class _MyAppState extends State { Future buildPjUri(double amount, String address, String pj) async { try { - final pjUri = "${address}amount=${amount / 100000000.0}&pj=$pj"; + final pjUri = "bitcoin:$address?amount=${amount / 100000000.0}&pj=$pj"; return await Uri.fromStr(uri: pjUri); } catch (e) { debugPrint(e.toString()); @@ -46,8 +46,8 @@ class _MyAppState extends State { onPressed: () async { final uri = await buildPjUri( 10000000, - "bcrt1qaux734vuhykww9632v8cmdnk7z2mw5lsf74v6k", - "https://example.com"); + "12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX", + "https://testnet.demo.btcpayserver.org/BTC/pj"); print(await uri.address()); }, child: const Text("Build PjUri")) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 7182c19..9bbc95d 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -1946,14 +1946,13 @@ dependencies = [ [[package]] name = "payjoin_ffi" version = "0.13.0" -source = "git+https://github.com/LtbLightning/payjoin-ffi?branch=v0.13#c464dd6e6740ed87ea6ebf7077caeed8942e377b" +source = "git+https://github.com/LtbLightning/payjoin-ffi?branch=v0.13#373127df6035db627e58d9f0a6a6970bc33c11b3" dependencies = [ "bdk", "ohttp", "payjoin", "thiserror", "uniffi", - "url", ] [[package]] @@ -1964,6 +1963,7 @@ dependencies = [ "flutter_rust_bridge", "flutter_rust_bridge_codegen", "lazy_static", + "ohttp", "payjoin_ffi", "serde", "serde_json", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 8fbb6d7..197928e 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -10,6 +10,7 @@ crate-type = ["cdylib", "staticlib"] flutter_rust_bridge_codegen = { version = "=2.0.0-dev.24" } anyhow = "1.0.68" [dependencies] +ohttp = { version = "0.5.1" } payjoin_ffi = {git = "https://github.com/LtbLightning/payjoin-ffi", branch = "v0.13"} flutter_rust_bridge = { version = "=2.0.0-dev.24" } serde = "1.0.89" From 8cc036cce79aa4e40e65b8798a115b98e08e65d9 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sun, 25 Feb 2024 05:24:00 -0500 Subject: [PATCH 02/14] feat(receive): v2 mod completed --- rust/src/api/receive.rs | 578 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 570 insertions(+), 8 deletions(-) diff --git a/rust/src/api/receive.rs b/rust/src/api/receive.rs index 473a312..4df2da5 100644 --- a/rust/src/api/receive.rs +++ b/rust/src/api/receive.rs @@ -1,12 +1,63 @@ +use crate::api::send::Request; use crate::frb_generated::RustOpaque; pub use crate::utils::error::PayjoinError; use flutter_rust_bridge::DartFnFuture; use std::collections::HashMap; -use std::sync::Arc; +pub use std::sync::{Arc, Mutex}; #[derive(Clone)] pub struct Headers(pub HashMap); +/// A reference to a transaction output. +#[derive(Clone, Debug, PartialEq, Eq, Hash)] +pub struct OutPoint { + /// The referenced transaction's txid. + pub txid: String, + /// The index of the referenced output in its transaction's vout. + pub vout: u32, +} +impl From for payjoin_ffi::types::OutPoint { + fn from(value: OutPoint) -> Self { + payjoin_ffi::types::OutPoint { + txid: value.txid, + vout: value.vout, + } + } +} +impl From<&payjoin_ffi::types::OutPoint> for OutPoint { + fn from(value: &payjoin_ffi::types::OutPoint) -> Self { + OutPoint { + txid: value.txid.clone(), + vout: value.vout, + } + } +} + +#[derive(Debug, Clone)] +pub struct TxOut { + /// The value of the output, in satoshis. + pub value: u64, + /// The address of the output. + pub script_pubkey: Vec, +} + +impl From for payjoin_ffi::types::TxOut { + fn from(tx_out: TxOut) -> Self { + payjoin_ffi::types::TxOut { + value: tx_out.value, + script_pubkey: tx_out.script_pubkey, + } + } +} + +impl From for TxOut { + fn from(tx_out: payjoin_ffi::types::TxOut) -> Self { + TxOut { + value: tx_out.value, + script_pubkey: tx_out.script_pubkey, + } + } +} impl From for payjoin_ffi::receive::v1::Headers { fn from(value: Headers) -> Self { payjoin_ffi::receive::v1::Headers(value.0) @@ -66,15 +117,18 @@ impl UncheckedProposal { can_broadcast: impl Fn(Vec) -> DartFnFuture, ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); - - match self - .0 + self.0 .check_broadcast_suitability_with_callback(min_fee_rate, |x| { Ok(runtime.block_on(can_broadcast(x.clone()))) - }) { - Ok(e) => Ok(e.into()), - Err(e) => Err(e.into()), - } + }) + .map(|e| e.into()) + .map_err(|e| e.into()) + } + /// Call this method if the only way to initiate a Payjoin with this receiver requires manual intervention, as in most consumer wallets. + /// + /// So-called “non-interactive” receivers, like payment processors, that allow arbitrary requests are otherwise vulnerable to probing attacks. Those receivers call get_transaction_to_check_broadcast() and attest_tested_and_scheduled_broadcast() after making those checks downstream. + pub fn assume_interactive_receiver(&self) -> MaybeInputsOwned { + self.0.clone().assume_interactive_receiver().into() } } @@ -84,3 +138,511 @@ impl From> for MaybeInputsOwned Self(RustOpaque::new(value)) } } +impl MaybeInputsOwned { + pub fn check_inputs_not_owned( + &self, + is_owned: impl Fn(Vec) -> DartFnFuture, + ) -> Result { + let runtime = tokio::runtime::Runtime::new().unwrap(); + self.0 + .check_inputs_not_owned_with_callback(|o| Ok(runtime.block_on(is_owned(o.clone())))) + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} +pub struct MaybeMixedInputScripts( + pub RustOpaque>, +); +impl From> for MaybeMixedInputScripts { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} +impl MaybeMixedInputScripts { + /// Verify the original transaction did not have mixed input types Call this after checking downstream. + /// + /// Note: mixed spends do not necessarily indicate distinct wallet fingerprints. This check is intended to prevent some types of wallet fingerprinting. + pub fn check_no_mixed_input_scripts(&self) -> Result { + self.0 + .clone() + .check_no_mixed_input_scripts() + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} +pub struct MaybeInputsSeen(pub RustOpaque>); +impl From> for MaybeInputsSeen { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} + +impl MaybeInputsSeen { + pub fn check_no_inputs_seen_before( + &self, + is_known: impl Fn(OutPoint) -> DartFnFuture, + ) -> Result { + let runtime = tokio::runtime::Runtime::new().unwrap(); + self.0 + .check_no_inputs_seen_before_with_callback(|o| Ok(runtime.block_on(is_known(o.into())))) + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} + +pub struct OutputsUnknown(pub RustOpaque>); +impl From> for OutputsUnknown { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} + +impl OutputsUnknown { + pub fn identify_receiver_outputs( + &self, + is_receiver_output: impl Fn(Vec) -> DartFnFuture, + ) -> Result { + let runtime = tokio::runtime::Runtime::new().unwrap(); + self.0 + .identify_receiver_outputs_with_callback(|o| { + Ok(runtime.block_on(is_receiver_output(o.clone()))) + }) + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} + +pub struct ProvisionalProposal(pub RustOpaque>); +impl From> for ProvisionalProposal { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} +impl ProvisionalProposal { + pub fn substitute_output_address(&self, address: String) -> Result<(), PayjoinError> { + self.0 + .substitute_output_address(address) + .map_err(|e| e.into()) + } + pub fn contribute_witness_input( + &self, + txo: TxOut, + outpoint: OutPoint, + ) -> Result<(), PayjoinError> { + self.0 + .contribute_witness_input(txo.into(), outpoint.into()) + .map_err(|e| e.into()) + } + pub fn contribute_non_witness_input( + &self, + tx: Vec, + outpoint: OutPoint, + ) -> Result<(), PayjoinError> { + self.0 + .contribute_non_witness_input(tx, outpoint.into()) + .map_err(|e| e.into()) + } + /// Select receiver input such that the payjoin avoids surveillance. Return the input chosen that has been applied to the Proposal. + /// + /// Proper coin selection allows payjoin to resemble ordinary transactions. To ensure the resemblance, a number of heuristics must be avoided. + /// + /// UIH “Unnecessary input heuristic” is one class of them to avoid. We define UIH1 and UIH2 according to the BlockSci practice BlockSci UIH1 and UIH2: + pub fn try_preserving_privacy( + &self, + candidate_inputs: HashMap, + ) -> Result { + let candidate_inputs: HashMap = candidate_inputs + .into_iter() + .map(|(key, value)| (key, value.into())) + .collect(); + self.0 + .try_preserving_privacy(candidate_inputs) + .map_err(|e| e.into()) + .map(|o| (&o).into()) + } + + pub fn finalize_proposal( + &self, + process_psbt: impl Fn(String) -> DartFnFuture, + min_feerate_sat_per_vb: Option, + ) -> Result { + let runtime = tokio::runtime::Runtime::new().unwrap(); + self.0 + .finalize_proposal_with_callback( + |o| Ok(runtime.block_on(process_psbt(o.clone()))), + min_feerate_sat_per_vb, + ) + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} + +pub struct PayjoinProposal(pub RustOpaque>); +impl From> for PayjoinProposal { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} +impl PayjoinProposal { + pub fn utxos_to_be_locked(&self) -> Vec { + self.0 + .utxos_to_be_locked() + .iter() + .map(|x| x.into()) + .collect() + } + pub fn is_output_substitution_disabled(&self) -> bool { + self.0.is_output_substitution_disabled() + } + pub fn owned_vouts(&self) -> Vec { + self.0.owned_vouts().iter().map(|x| (*x).into()).collect() + } + pub fn psbt(&self) -> String { + self.0.psbt() + } +} +pub struct ClientResponse(pub RustOpaque>>); + +impl From for ohttp::ClientResponse { + fn from(value: ClientResponse) -> Self { + let mut data_guard = value.0.lock().unwrap(); + Option::take(&mut *data_guard).expect("ClientResponse moved out of memory") + } +} +impl From for ClientResponse { + fn from(value: ohttp::ClientResponse) -> Self { + Self(RustOpaque::new(Mutex::new(Some(value)))) + } +} + +#[derive(Clone, Debug)] +pub struct Enroller(pub RustOpaque); +pub struct RequestResponse { + pub request: Request, + pub client_response: ClientResponse, +} + +impl From for Enroller { + fn from(value: payjoin_ffi::receive::v2::Enroller) -> Self { + Self(RustOpaque::new(value)) + } +} +impl Enroller { + pub fn from_relay_config( + relay_url: String, + ohttp_config_base64: String, + ohttp_proxy_url: String, + ) -> Enroller { + payjoin_ffi::receive::v2::Enroller::from_relay_config( + relay_url, + ohttp_config_base64, + ohttp_proxy_url, + ) + .into() + } + + pub fn subdirectory(&self) -> String { + self.0.subdirectory() + } + pub fn payjoin_subdir(&self) -> String { + self.0.payjoin_subdir() + } + pub fn extract_req(&self) -> Result { + self.0 + .extract_req_as_tuple() + .map(|e| RequestResponse { + request: e.0.into(), + client_response: e.1.into(), + }) + .map_err(|e| e.into()) + } + pub fn process_res( + &self, + body: Vec, + ctx: ClientResponse, + ) -> Result { + self.0 + .process_res_with_ohttp_response(body, ctx.into()) + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} +#[derive(Clone, Debug)] +pub struct Enrolled(pub RustOpaque>); + +impl From> for Enrolled { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} +impl Enrolled { + pub fn subdirectory(&self) -> Vec { + self.0.pubkey() + } + pub fn fallback_target(&self) -> String { + self.0.fallback_target() + } + pub fn extract_req(&self) -> Result { + self.0 + .extract_req_as_tuple() + .map(|e| RequestResponse { + request: e.0.into(), + client_response: e.1.into(), + }) + .map_err(|e| e.into()) + } + pub fn process_res( + &self, + body: Vec, + ctx: ClientResponse, + ) -> Result, PayjoinError> { + self.0 + .process_res_with_ohttp_response(body, ctx.into()) + .map(|e| e.map(|o| o.into())) + .map_err(|e| e.into()) + } +} + +#[derive(Clone)] +pub struct V2UncheckedProposal(pub RustOpaque); +impl From for V2UncheckedProposal { + fn from(value: payjoin_ffi::receive::v2::V2UncheckedProposal) -> Self { + Self(RustOpaque::new(value)) + } +} +impl V2UncheckedProposal { + ///The Sender’s Original PSBT + pub fn extract_tx_to_schedule_broadcast(&self) -> Vec { + self.0.extract_tx_to_schedule_broadcast() + } + /// Call after checking that the Original PSBT can be broadcast. + /// + /// Receiver MUST check that the Original PSBT from the sender can be broadcast, i.e. testmempoolaccept bitcoind rpc returns { “allowed”: true,.. } for get_transaction_to_check_broadcast() before calling this method. + /// + /// Do this check if you generate bitcoin uri to receive Payjoin on sender request without manual human approval, like a payment processor. Such so called “non-interactive” receivers are otherwise vulnerable to probing attacks. If a sender can make requests at will, they can learn which bitcoin the receiver owns at no cost. Broadcasting the Original PSBT after some time in the failure case makes incurs sender cost and prevents probing. + /// + /// Call this after checking downstream. + pub fn check_broadcast_suitability( + &self, + min_fee_rate: Option, + can_broadcast: impl Fn(Vec) -> DartFnFuture, + ) -> Result { + let runtime = tokio::runtime::Runtime::new().unwrap(); + self.0 + .check_broadcast_suitability_with_callback(min_fee_rate, |x| { + Ok(runtime.block_on(can_broadcast(x.clone()))) + }) + .map(|e| e.into()) + .map_err(|e| e.into()) + } + /// Call this method if the only way to initiate a Payjoin with this receiver + /// requires manual intervention, as in most consumer wallets. + /// + /// So-called "non-interactive" receivers, like payment processors, that allow arbitrary requests are otherwise vulnerable to probing attacks. + /// Those receivers call `extract_tx_to_check_broadcast()` and `attest_tested_and_scheduled_broadcast()` after making those checks downstream. + pub fn assume_interactive_receiver(&self) -> Arc { + Arc::new(self.0.clone().assume_interactive_receiver().into()) + } +} +#[derive(Clone)] +pub struct V2MaybeInputsOwned(pub RustOpaque>); + +impl From> for V2MaybeInputsOwned { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} +impl V2MaybeInputsOwned { + ///Check that the Original PSBT has no receiver-owned inputs. Return original-psbt-rejected error or otherwise refuse to sign undesirable inputs. + /// An attacker could try to spend receiver's own inputs. This check prevents that. + pub fn check_inputs_not_owned( + &self, + is_owned: impl Fn(Vec) -> DartFnFuture, + ) -> Result { + let runtime = tokio::runtime::Runtime::new().unwrap(); + self.0 + .check_inputs_not_owned_with_callback(|o| Ok(runtime.block_on(is_owned(o.clone())))) + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} + +pub struct V2MaybeMixedInputScripts( + pub RustOpaque>, +); + +impl From> for V2MaybeMixedInputScripts { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} +impl V2MaybeMixedInputScripts { + /// Verify the original transaction did not have mixed input types + /// Call this after checking downstream. + /// + /// Note: mixed spends do not necessarily indicate distinct wallet fingerprints. + /// This check is intended to prevent some types of wallet fingerprinting. + pub fn check_no_mixed_input_scripts(&self) -> Result, PayjoinError> { + self.0 + .clone() + .check_no_mixed_input_scripts() + .map(|e| Arc::new(e.into())) + .map_err(|e| e.into()) + } +} +pub struct V2MaybeInputsSeen(pub RustOpaque>); + +impl From> for V2MaybeInputsSeen { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} +impl V2MaybeInputsSeen { + /// Make sure that the original transaction inputs have never been seen before. + /// This prevents probing attacks. This prevents reentrant Payjoin, where a sender + /// proposes a Payjoin PSBT as a new Original PSBT for a new Payjoin. + pub fn check_no_inputs_seen_before( + &self, + is_known: impl Fn(OutPoint) -> DartFnFuture, + ) -> Result { + let runtime = tokio::runtime::Runtime::new().unwrap(); + self.0 + .check_no_inputs_seen_before_with_callback(|o| Ok(runtime.block_on(is_known(o.into())))) + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} + +pub struct V2OutputsUnknown(pub RustOpaque>); + +impl From> for V2OutputsUnknown { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} +impl V2OutputsUnknown { + /// Find which outputs belong to the receiver + pub fn identify_receiver_outputs( + &self, + is_receiver_output: impl Fn(Vec) -> DartFnFuture, + ) -> Result { + let runtime = tokio::runtime::Runtime::new().unwrap(); + self.0 + .identify_receiver_outputs_with_callback(|o| { + Ok(runtime.block_on(is_receiver_output(o.clone()))) + }) + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} +pub struct V2ProvisionalProposal( + pub RustOpaque>, +); +impl From> for V2ProvisionalProposal { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} +impl V2ProvisionalProposal { + pub fn substitute_output_address(&self, address: String) -> Result<(), PayjoinError> { + self.0 + .substitute_output_address(address) + .map_err(|e| e.into()) + } + pub fn contribute_witness_input( + &self, + txo: TxOut, + outpoint: OutPoint, + ) -> Result<(), PayjoinError> { + self.0 + .contribute_witness_input(txo.into(), outpoint.into()) + .map_err(|e| e.into()) + } + pub fn contribute_non_witness_input( + &self, + tx: Vec, + outpoint: OutPoint, + ) -> Result<(), PayjoinError> { + self.0 + .contribute_non_witness_input(tx, outpoint.into()) + .map_err(|e| e.into()) + } + /// Select receiver input such that the payjoin avoids surveillance. Return the input chosen that has been applied to the Proposal. + /// + /// Proper coin selection allows payjoin to resemble ordinary transactions. To ensure the resemblance, a number of heuristics must be avoided. + /// + /// UIH “Unnecessary input heuristic” is one class of them to avoid. We define UIH1 and UIH2 according to the BlockSci practice BlockSci UIH1 and UIH2: + pub fn try_preserving_privacy( + &self, + candidate_inputs: HashMap, + ) -> Result { + let candidate_inputs: HashMap = candidate_inputs + .into_iter() + .map(|(key, value)| (key, value.into())) + .collect(); + self.0 + .try_preserving_privacy(candidate_inputs) + .map_err(|e| e.into()) + .map(|o| (&o).into()) + } + + pub fn finalize_proposal( + &self, + process_psbt: impl Fn(String) -> DartFnFuture, + min_feerate_sat_per_vb: Option, + ) -> Result { + let runtime = tokio::runtime::Runtime::new().unwrap(); + self.0 + .finalize_proposal_with_callback( + |o| Ok(runtime.block_on(process_psbt(o.clone()))), + min_feerate_sat_per_vb, + ) + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} +pub struct V2PayjoinProposal(pub RustOpaque>); +impl From> for V2PayjoinProposal { + fn from(value: Arc) -> Self { + Self(RustOpaque::new(value)) + } +} +impl V2PayjoinProposal { + pub fn utxos_to_be_locked(&self) -> Vec { + self.0 + .utxos_to_be_locked() + .iter() + .map(|x| x.into()) + .collect() + } + pub fn is_output_substitution_disabled(&self) -> bool { + self.0.is_output_substitution_disabled() + } + pub fn owned_vouts(&self) -> Vec { + self.0.owned_vouts().iter().map(|x| (*x).into()).collect() + } + pub fn psbt(&self) -> String { + self.0.psbt() + } + pub fn extract_v1_req(&self) -> String { + self.0.extract_v1_req() + } + pub fn extract_v2_req(&self) -> Result { + let (req, res) = self.0.clone().extract_v2_req_as_tuple()?; + Ok(RequestResponse { + request: req.into(), + client_response: res.into(), + }) + } + + pub fn deserialize_res( + &self, + res: Vec, + ohttp_context: ClientResponse, + ) -> Result, PayjoinError> { + self.0 + .deserialize_res_with_ohttp_response(res, ohttp_context.into()) + .map(|e| e) + .map_err(|e| e.into()) + } +} From 0561ba0bf09adadee8e7e73a229d4e7167fb24db Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sun, 25 Feb 2024 06:24:00 -0500 Subject: [PATCH 03/14] bindings code generated --- lib/src/generated/api/receive.dart | 1054 ++++- lib/src/generated/api/send.dart | 20 +- lib/src/generated/api/uri.dart | 1 + lib/src/generated/frb_generated.dart | 4774 ++++++++++++++++++---- lib/src/generated/frb_generated.io.dart | 4020 ++++++++++++++++-- lib/src/generated/frb_generated.web.dart | 1946 ++++++++- rust/src/frb_generated.io.rs | 1882 ++++++++- rust/src/frb_generated.rs | 2612 +++++++++++- rust/src/frb_generated.web.rs | 1549 ++++++- 9 files changed, 16325 insertions(+), 1533 deletions(-) diff --git a/lib/src/generated/api/receive.dart b/lib/src/generated/api/receive.dart index fc694c9..29cb7a6 100644 --- a/lib/src/generated/api/receive.dart +++ b/lib/src/generated/api/receive.dart @@ -6,6 +6,8 @@ import '../frb_generated.dart'; import '../utils/error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; +import 'send.dart'; +import 'uri.dart'; // Rust type: RustOpaqueNom> @sealed @@ -27,6 +29,321 @@ class ArcPayjoinFfiReceiveV1MaybeInputsOwned extends RustOpaque { ); } +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV1MaybeInputsSeen extends RustOpaque { + ArcPayjoinFfiReceiveV1MaybeInputsSeen.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV1MaybeInputsSeen.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeen, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeen, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeenPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV1MaybeMixedInputScripts extends RustOpaque { + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScripts, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScripts, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScriptsPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV1OutputsUnknown extends RustOpaque { + ArcPayjoinFfiReceiveV1OutputsUnknown.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV1OutputsUnknown.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknown, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknown, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknownPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV1PayjoinProposal extends RustOpaque { + ArcPayjoinFfiReceiveV1PayjoinProposal.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV1PayjoinProposal.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposal, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposal, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposalPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV1ProvisionalProposal extends RustOpaque { + ArcPayjoinFfiReceiveV1ProvisionalProposal.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV1ProvisionalProposal.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposal, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposal, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposalPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV2Enrolled extends RustOpaque { + ArcPayjoinFfiReceiveV2Enrolled.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV2Enrolled.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2Enrolled, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2Enrolled, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2EnrolledPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV2V2MaybeInputsOwned extends RustOpaque { + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwned, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwned, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwnedPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV2V2MaybeInputsSeen extends RustOpaque { + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeen, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeen, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeenPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts extends RustOpaque { + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScriptsPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV2V2OutputsUnknown extends RustOpaque { + ArcPayjoinFfiReceiveV2V2OutputsUnknown.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV2V2OutputsUnknown.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknown, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknown, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknownPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV2V2PayjoinProposal extends RustOpaque { + ArcPayjoinFfiReceiveV2V2PayjoinProposal.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV2V2PayjoinProposal.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposal, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposal, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposalPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiReceiveV2V2ProvisionalProposal extends RustOpaque { + ArcPayjoinFfiReceiveV2V2ProvisionalProposal.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiReceiveV2V2ProvisionalProposal.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposal, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposal, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposalPtr, + ); +} + +// Rust type: RustOpaqueNom> +@sealed +class ArcPayjoinFfiUriUrl extends RustOpaque { + ArcPayjoinFfiUriUrl.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcPayjoinFfiUriUrl.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore + .instance.api.rust_arc_increment_strong_count_ArcPayjoinFfiUriUrl, + rustArcDecrementStrongCount: PayjoinCore + .instance.api.rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrl, + rustArcDecrementStrongCountPtr: PayjoinCore + .instance.api.rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrlPtr, + ); +} + +// Rust type: RustOpaqueNom >> +@sealed +class MutexOptionOhttpClientResponse extends RustOpaque { + MutexOptionOhttpClientResponse.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + MutexOptionOhttpClientResponse.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_MutexOptionOhttpClientResponse, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_MutexOptionOhttpClientResponse, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_MutexOptionOhttpClientResponsePtr, + ); +} + +// Rust type: RustOpaqueNom>> +@sealed +class ArcV2MaybeInputsOwned extends RustOpaque { + ArcV2MaybeInputsOwned.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcV2MaybeInputsOwned.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore + .instance.api.rust_arc_increment_strong_count_ArcV2MaybeInputsOwned, + rustArcDecrementStrongCount: PayjoinCore + .instance.api.rust_arc_decrement_strong_count_ArcV2MaybeInputsOwned, + rustArcDecrementStrongCountPtr: PayjoinCore + .instance.api.rust_arc_decrement_strong_count_ArcV2MaybeInputsOwnedPtr, + ); +} + +// Rust type: RustOpaqueNom>> +@sealed +class ArcV2MaybeInputsSeen extends RustOpaque { + ArcV2MaybeInputsSeen.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + ArcV2MaybeInputsSeen.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore + .instance.api.rust_arc_increment_strong_count_ArcV2MaybeInputsSeen, + rustArcDecrementStrongCount: PayjoinCore + .instance.api.rust_arc_decrement_strong_count_ArcV2MaybeInputsSeen, + rustArcDecrementStrongCountPtr: PayjoinCore + .instance.api.rust_arc_decrement_strong_count_ArcV2MaybeInputsSeenPtr, + ); +} + // Rust type: RustOpaqueNom @sealed class PayjoinFfiReceiveV1UncheckedProposal extends RustOpaque { @@ -37,25 +354,345 @@ class PayjoinFfiReceiveV1UncheckedProposal extends RustOpaque { int ptr, int externalSizeOnNative) : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: PayjoinCore.instance.api - .rust_arc_increment_strong_count_PayjoinFfiReceiveV1UncheckedProposal, - rustArcDecrementStrongCount: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposal, - rustArcDecrementStrongCountPtr: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposalPtr, - ); + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_PayjoinFfiReceiveV1UncheckedProposal, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposal, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposalPtr, + ); +} + +// Rust type: RustOpaqueNom +@sealed +class PayjoinFfiReceiveV2Enroller extends RustOpaque { + PayjoinFfiReceiveV2Enroller.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + PayjoinFfiReceiveV2Enroller.sseDecode(int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_PayjoinFfiReceiveV2Enroller, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_PayjoinFfiReceiveV2Enroller, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_PayjoinFfiReceiveV2EnrollerPtr, + ); +} + +// Rust type: RustOpaqueNom +@sealed +class PayjoinFfiReceiveV2V2UncheckedProposal extends RustOpaque { + PayjoinFfiReceiveV2V2UncheckedProposal.dcoDecode(List wire) + : super.dcoDecode(wire, _kStaticData); + + PayjoinFfiReceiveV2V2UncheckedProposal.sseDecode( + int ptr, int externalSizeOnNative) + : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: PayjoinCore.instance.api + .rust_arc_increment_strong_count_PayjoinFfiReceiveV2V2UncheckedProposal, + rustArcDecrementStrongCount: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposal, + rustArcDecrementStrongCountPtr: PayjoinCore.instance.api + .rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposalPtr, + ); +} + +class ClientResponse { + final MutexOptionOhttpClientResponse field0; + + const ClientResponse({ + required this.field0, + }); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ClientResponse && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class Enrolled { + final ArcPayjoinFfiReceiveV2Enrolled field0; + + const Enrolled({ + required this.field0, + }); + + Future extractReq({dynamic hint}) => + PayjoinCore.instance.api.enrolledExtractReq( + that: this, + ); + + Future fallbackTarget({dynamic hint}) => + PayjoinCore.instance.api.enrolledFallbackTarget( + that: this, + ); + + Future processRes( + {required List body, + required ClientResponse ctx, + dynamic hint}) => + PayjoinCore.instance.api.enrolledProcessRes( + that: this, + body: body, + ctx: ctx, + ); + + Future subdirectory({dynamic hint}) => + PayjoinCore.instance.api.enrolledSubdirectory( + that: this, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is Enrolled && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class Enroller { + final PayjoinFfiReceiveV2Enroller field0; + + const Enroller({ + required this.field0, + }); + + Future extractReq({dynamic hint}) => + PayjoinCore.instance.api.enrollerExtractReq( + that: this, + ); + + static Future fromRelayConfig( + {required String relayUrl, + required String ohttpConfigBase64, + required String ohttpProxyUrl, + dynamic hint}) => + PayjoinCore.instance.api.enrollerFromRelayConfig( + relayUrl: relayUrl, + ohttpConfigBase64: ohttpConfigBase64, + ohttpProxyUrl: ohttpProxyUrl, + hint: hint); + + Future payjoinSubdir({dynamic hint}) => + PayjoinCore.instance.api.enrollerPayjoinSubdir( + that: this, + ); + + Future processRes( + {required List body, + required ClientResponse ctx, + dynamic hint}) => + PayjoinCore.instance.api.enrollerProcessRes( + that: this, + body: body, + ctx: ctx, + ); + + Future subdirectory({dynamic hint}) => + PayjoinCore.instance.api.enrollerSubdirectory( + that: this, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is Enroller && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class Headers { + final Map field0; + + const Headers({ + required this.field0, + }); + + static Future fromVec({required List body, dynamic hint}) => + PayjoinCore.instance.api.headersFromVec(body: body, hint: hint); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is Headers && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class MaybeInputsOwned { + final ArcPayjoinFfiReceiveV1MaybeInputsOwned field0; + + const MaybeInputsOwned({ + required this.field0, + }); + + Future checkInputsNotOwned( + {required FutureOr Function(Uint8List) isOwned, + dynamic hint}) => + PayjoinCore.instance.api.maybeInputsOwnedCheckInputsNotOwned( + that: this, + isOwned: isOwned, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is MaybeInputsOwned && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class MaybeInputsSeen { + final ArcPayjoinFfiReceiveV1MaybeInputsSeen field0; + + const MaybeInputsSeen({ + required this.field0, + }); + + Future checkNoInputsSeenBefore( + {required FutureOr Function(OutPoint) isKnown, dynamic hint}) => + PayjoinCore.instance.api.maybeInputsSeenCheckNoInputsSeenBefore( + that: this, + isKnown: isKnown, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is MaybeInputsSeen && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class MaybeMixedInputScripts { + final ArcPayjoinFfiReceiveV1MaybeMixedInputScripts field0; + + const MaybeMixedInputScripts({ + required this.field0, + }); + + /// Verify the original transaction did not have mixed input types Call this after checking downstream. + /// + /// Note: mixed spends do not necessarily indicate distinct wallet fingerprints. This check is intended to prevent some types of wallet fingerprinting. + Future checkNoMixedInputScripts({dynamic hint}) => + PayjoinCore.instance.api.maybeMixedInputScriptsCheckNoMixedInputScripts( + that: this, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is MaybeMixedInputScripts && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +/// A reference to a transaction output. +class OutPoint { + /// The referenced transaction's txid. + final String txid; + + /// The index of the referenced output in its transaction's vout. + final int vout; + + const OutPoint({ + required this.txid, + required this.vout, + }); + + @override + int get hashCode => txid.hashCode ^ vout.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is OutPoint && + runtimeType == other.runtimeType && + txid == other.txid && + vout == other.vout; +} + +class OutputsUnknown { + final ArcPayjoinFfiReceiveV1OutputsUnknown field0; + + const OutputsUnknown({ + required this.field0, + }); + + Future identifyReceiverOutputs( + {required FutureOr Function(Uint8List) isReceiverOutput, + dynamic hint}) => + PayjoinCore.instance.api.outputsUnknownIdentifyReceiverOutputs( + that: this, + isReceiverOutput: isReceiverOutput, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is OutputsUnknown && + runtimeType == other.runtimeType && + field0 == other.field0; } -class Headers { - final Map field0; +class PayjoinProposal { + final ArcPayjoinFfiReceiveV1PayjoinProposal field0; - const Headers({ + const PayjoinProposal({ required this.field0, }); - static Future fromVec({required List body, dynamic hint}) => - PayjoinCore.instance.api.headersFromVec(body: body, hint: hint); + Future isOutputSubstitutionDisabled({dynamic hint}) => + PayjoinCore.instance.api.payjoinProposalIsOutputSubstitutionDisabled( + that: this, + ); + + Future ownedVouts({dynamic hint}) => + PayjoinCore.instance.api.payjoinProposalOwnedVouts( + that: this, + ); + + Future psbt({dynamic hint}) => + PayjoinCore.instance.api.payjoinProposalPsbt( + that: this, + ); + + Future> utxosToBeLocked({dynamic hint}) => + PayjoinCore.instance.api.payjoinProposalUtxosToBeLocked( + that: this, + ); @override int get hashCode => field0.hashCode; @@ -63,29 +700,119 @@ class Headers { @override bool operator ==(Object other) => identical(this, other) || - other is Headers && + other is PayjoinProposal && runtimeType == other.runtimeType && field0 == other.field0; } -class MaybeInputsOwned { - final ArcPayjoinFfiReceiveV1MaybeInputsOwned field0; +class ProvisionalProposal { + final ArcPayjoinFfiReceiveV1ProvisionalProposal field0; - const MaybeInputsOwned({ + const ProvisionalProposal({ required this.field0, }); + Future contributeNonWitnessInput( + {required List tx, required OutPoint outpoint, dynamic hint}) => + PayjoinCore.instance.api.provisionalProposalContributeNonWitnessInput( + that: this, + tx: tx, + outpoint: outpoint, + ); + + Future contributeWitnessInput( + {required TxOut txo, required OutPoint outpoint, dynamic hint}) => + PayjoinCore.instance.api.provisionalProposalContributeWitnessInput( + that: this, + txo: txo, + outpoint: outpoint, + ); + + Future finalizeProposal( + {required FutureOr Function(String) processPsbt, + int? minFeerateSatPerVb, + dynamic hint}) => + PayjoinCore.instance.api.provisionalProposalFinalizeProposal( + that: this, + processPsbt: processPsbt, + minFeerateSatPerVb: minFeerateSatPerVb, + ); + + Future substituteOutputAddress( + {required String address, dynamic hint}) => + PayjoinCore.instance.api.provisionalProposalSubstituteOutputAddress( + that: this, + address: address, + ); + + /// Select receiver input such that the payjoin avoids surveillance. Return the input chosen that has been applied to the Proposal. + /// + /// Proper coin selection allows payjoin to resemble ordinary transactions. To ensure the resemblance, a number of heuristics must be avoided. + /// + /// UIH “Unnecessary input heuristic” is one class of them to avoid. We define UIH1 and UIH2 according to the BlockSci practice BlockSci UIH1 and UIH2: + Future tryPreservingPrivacy( + {required Map candidateInputs, dynamic hint}) => + PayjoinCore.instance.api.provisionalProposalTryPreservingPrivacy( + that: this, + candidateInputs: candidateInputs, + ); + @override int get hashCode => field0.hashCode; @override bool operator ==(Object other) => identical(this, other) || - other is MaybeInputsOwned && + other is ProvisionalProposal && runtimeType == other.runtimeType && field0 == other.field0; } +class RequestResponse { + final Request request; + final ClientResponse clientResponse; + + const RequestResponse({ + required this.request, + required this.clientResponse, + }); + + @override + int get hashCode => request.hashCode ^ clientResponse.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is RequestResponse && + runtimeType == other.runtimeType && + request == other.request && + clientResponse == other.clientResponse; +} + +class TxOut { + /// The value of the output, in satoshis. + final int value; + + /// The address of the output. + final Uint8List scriptPubkey; + + const TxOut({ + required this.value, + required this.scriptPubkey, + }); + + @override + int get hashCode => value.hashCode ^ scriptPubkey.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is TxOut && + runtimeType == other.runtimeType && + value == other.value && + scriptPubkey == other.scriptPubkey; +} + class UncheckedProposal { final PayjoinFfiReceiveV1UncheckedProposal field0; @@ -93,6 +820,14 @@ class UncheckedProposal { required this.field0, }); + /// Call this method if the only way to initiate a Payjoin with this receiver requires manual intervention, as in most consumer wallets. + /// + /// So-called “non-interactive” receivers, like payment processors, that allow arbitrary requests are otherwise vulnerable to probing attacks. Those receivers call get_transaction_to_check_broadcast() and attest_tested_and_scheduled_broadcast() after making those checks downstream. + Future assumeInteractiveReceiver({dynamic hint}) => + PayjoinCore.instance.api.uncheckedProposalAssumeInteractiveReceiver( + that: this, + ); + /// Call after checking that the Original PSBT can be broadcast. /// /// Receiver MUST check that the Original PSBT from the sender can be broadcast, i.e. testmempoolaccept bitcoind rpc returns { “allowed”: true,.. } for get_transaction_to_check_broadcast() before calling this method. @@ -134,3 +869,286 @@ class UncheckedProposal { runtimeType == other.runtimeType && field0 == other.field0; } + +class V2MaybeInputsOwned { + final ArcPayjoinFfiReceiveV2V2MaybeInputsOwned field0; + + const V2MaybeInputsOwned({ + required this.field0, + }); + + ///Check that the Original PSBT has no receiver-owned inputs. Return original-psbt-rejected error or otherwise refuse to sign undesirable inputs. + /// An attacker could try to spend receiver's own inputs. This check prevents that. + Future checkInputsNotOwned( + {required FutureOr Function(Uint8List) isOwned, + dynamic hint}) => + PayjoinCore.instance.api.v2MaybeInputsOwnedCheckInputsNotOwned( + that: this, + isOwned: isOwned, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is V2MaybeInputsOwned && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class V2MaybeInputsSeen { + final ArcPayjoinFfiReceiveV2V2MaybeInputsSeen field0; + + const V2MaybeInputsSeen({ + required this.field0, + }); + + /// Make sure that the original transaction inputs have never been seen before. + /// This prevents probing attacks. This prevents reentrant Payjoin, where a sender + /// proposes a Payjoin PSBT as a new Original PSBT for a new Payjoin. + Future checkNoInputsSeenBefore( + {required FutureOr Function(OutPoint) isKnown, dynamic hint}) => + PayjoinCore.instance.api.v2MaybeInputsSeenCheckNoInputsSeenBefore( + that: this, + isKnown: isKnown, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is V2MaybeInputsSeen && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class V2MaybeMixedInputScripts { + final ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts field0; + + const V2MaybeMixedInputScripts({ + required this.field0, + }); + + /// Verify the original transaction did not have mixed input types + /// Call this after checking downstream. + /// + /// Note: mixed spends do not necessarily indicate distinct wallet fingerprints. + /// This check is intended to prevent some types of wallet fingerprinting. + Future checkNoMixedInputScripts({dynamic hint}) => + PayjoinCore.instance.api.v2MaybeMixedInputScriptsCheckNoMixedInputScripts( + that: this, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is V2MaybeMixedInputScripts && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class V2OutputsUnknown { + final ArcPayjoinFfiReceiveV2V2OutputsUnknown field0; + + const V2OutputsUnknown({ + required this.field0, + }); + + /// Find which outputs belong to the receiver + Future identifyReceiverOutputs( + {required FutureOr Function(Uint8List) isReceiverOutput, + dynamic hint}) => + PayjoinCore.instance.api.v2OutputsUnknownIdentifyReceiverOutputs( + that: this, + isReceiverOutput: isReceiverOutput, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is V2OutputsUnknown && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class V2PayjoinProposal { + final ArcPayjoinFfiReceiveV2V2PayjoinProposal field0; + + const V2PayjoinProposal({ + required this.field0, + }); + + Future deserializeRes( + {required List res, + required ClientResponse ohttpContext, + dynamic hint}) => + PayjoinCore.instance.api.v2PayjoinProposalDeserializeRes( + that: this, + res: res, + ohttpContext: ohttpContext, + ); + + Future extractV1Req({dynamic hint}) => + PayjoinCore.instance.api.v2PayjoinProposalExtractV1Req( + that: this, + ); + + Future extractV2Req({dynamic hint}) => + PayjoinCore.instance.api.v2PayjoinProposalExtractV2Req( + that: this, + ); + + Future isOutputSubstitutionDisabled({dynamic hint}) => + PayjoinCore.instance.api.v2PayjoinProposalIsOutputSubstitutionDisabled( + that: this, + ); + + Future ownedVouts({dynamic hint}) => + PayjoinCore.instance.api.v2PayjoinProposalOwnedVouts( + that: this, + ); + + Future psbt({dynamic hint}) => + PayjoinCore.instance.api.v2PayjoinProposalPsbt( + that: this, + ); + + Future> utxosToBeLocked({dynamic hint}) => + PayjoinCore.instance.api.v2PayjoinProposalUtxosToBeLocked( + that: this, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is V2PayjoinProposal && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class V2ProvisionalProposal { + final ArcPayjoinFfiReceiveV2V2ProvisionalProposal field0; + + const V2ProvisionalProposal({ + required this.field0, + }); + + Future contributeNonWitnessInput( + {required List tx, required OutPoint outpoint, dynamic hint}) => + PayjoinCore.instance.api.v2ProvisionalProposalContributeNonWitnessInput( + that: this, + tx: tx, + outpoint: outpoint, + ); + + Future contributeWitnessInput( + {required TxOut txo, required OutPoint outpoint, dynamic hint}) => + PayjoinCore.instance.api.v2ProvisionalProposalContributeWitnessInput( + that: this, + txo: txo, + outpoint: outpoint, + ); + + Future finalizeProposal( + {required FutureOr Function(String) processPsbt, + int? minFeerateSatPerVb, + dynamic hint}) => + PayjoinCore.instance.api.v2ProvisionalProposalFinalizeProposal( + that: this, + processPsbt: processPsbt, + minFeerateSatPerVb: minFeerateSatPerVb, + ); + + Future substituteOutputAddress( + {required String address, dynamic hint}) => + PayjoinCore.instance.api.v2ProvisionalProposalSubstituteOutputAddress( + that: this, + address: address, + ); + + /// Select receiver input such that the payjoin avoids surveillance. Return the input chosen that has been applied to the Proposal. + /// + /// Proper coin selection allows payjoin to resemble ordinary transactions. To ensure the resemblance, a number of heuristics must be avoided. + /// + /// UIH “Unnecessary input heuristic” is one class of them to avoid. We define UIH1 and UIH2 according to the BlockSci practice BlockSci UIH1 and UIH2: + Future tryPreservingPrivacy( + {required Map candidateInputs, dynamic hint}) => + PayjoinCore.instance.api.v2ProvisionalProposalTryPreservingPrivacy( + that: this, + candidateInputs: candidateInputs, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is V2ProvisionalProposal && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class V2UncheckedProposal { + final PayjoinFfiReceiveV2V2UncheckedProposal field0; + + const V2UncheckedProposal({ + required this.field0, + }); + + /// Call this method if the only way to initiate a Payjoin with this receiver + /// requires manual intervention, as in most consumer wallets. + /// + /// So-called "non-interactive" receivers, like payment processors, that allow arbitrary requests are otherwise vulnerable to probing attacks. + /// Those receivers call `extract_tx_to_check_broadcast()` and `attest_tested_and_scheduled_broadcast()` after making those checks downstream. + Future assumeInteractiveReceiver({dynamic hint}) => + PayjoinCore.instance.api.v2UncheckedProposalAssumeInteractiveReceiver( + that: this, + ); + + /// Call after checking that the Original PSBT can be broadcast. + /// + /// Receiver MUST check that the Original PSBT from the sender can be broadcast, i.e. testmempoolaccept bitcoind rpc returns { “allowed”: true,.. } for get_transaction_to_check_broadcast() before calling this method. + /// + /// Do this check if you generate bitcoin uri to receive Payjoin on sender request without manual human approval, like a payment processor. Such so called “non-interactive” receivers are otherwise vulnerable to probing attacks. If a sender can make requests at will, they can learn which bitcoin the receiver owns at no cost. Broadcasting the Original PSBT after some time in the failure case makes incurs sender cost and prevents probing. + /// + /// Call this after checking downstream. + Future checkBroadcastSuitability( + {int? minFeeRate, + required FutureOr Function(Uint8List) canBroadcast, + dynamic hint}) => + PayjoinCore.instance.api.v2UncheckedProposalCheckBroadcastSuitability( + that: this, + minFeeRate: minFeeRate, + canBroadcast: canBroadcast, + ); + + ///The Sender’s Original PSBT + Future extractTxToScheduleBroadcast({dynamic hint}) => + PayjoinCore.instance.api.v2UncheckedProposalExtractTxToScheduleBroadcast( + that: this, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is V2UncheckedProposal && + runtimeType == other.runtimeType && + field0 == other.field0; +} diff --git a/lib/src/generated/api/send.dart b/lib/src/generated/api/send.dart index 8d9a67f..675d2a1 100644 --- a/lib/src/generated/api/send.dart +++ b/lib/src/generated/api/send.dart @@ -6,6 +6,7 @@ import '../frb_generated.dart'; import '../utils/error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; +import 'receive.dart'; import 'uri.dart'; // Rust type: RustOpaqueNom> @@ -103,25 +104,6 @@ class ArcPayjoinFfiUriUri extends RustOpaque { ); } -// Rust type: RustOpaqueNom> -@sealed -class ArcPayjoinFfiUriUrl extends RustOpaque { - ArcPayjoinFfiUriUrl.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ArcPayjoinFfiUriUrl.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: PayjoinCore - .instance.api.rust_arc_increment_strong_count_ArcPayjoinFfiUriUrl, - rustArcDecrementStrongCount: PayjoinCore - .instance.api.rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrl, - rustArcDecrementStrongCountPtr: PayjoinCore - .instance.api.rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrlPtr, - ); -} - class ContextV1 { final ArcPayjoinFfiSendV1ContextV1 field0; diff --git a/lib/src/generated/api/uri.dart b/lib/src/generated/api/uri.dart index 8f75a0a..b8c89a9 100644 --- a/lib/src/generated/api/uri.dart +++ b/lib/src/generated/api/uri.dart @@ -6,6 +6,7 @@ import '../frb_generated.dart'; import '../utils/error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; +import 'receive.dart'; import 'send.dart'; class Uri { diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index 8bae84c..57e1bc2 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -66,8 +66,102 @@ class PayjoinCore extends BaseEntrypoint enrolledExtractReq( + {required Enrolled that, dynamic hint}); + + Future enrolledFallbackTarget({required Enrolled that, dynamic hint}); + + Future enrolledProcessRes( + {required Enrolled that, + required List body, + required ClientResponse ctx, + dynamic hint}); + + Future enrolledSubdirectory( + {required Enrolled that, dynamic hint}); + + Future enrollerExtractReq( + {required Enroller that, dynamic hint}); + + Future enrollerFromRelayConfig( + {required String relayUrl, + required String ohttpConfigBase64, + required String ohttpProxyUrl, + dynamic hint}); + + Future enrollerPayjoinSubdir({required Enroller that, dynamic hint}); + + Future enrollerProcessRes( + {required Enroller that, + required List body, + required ClientResponse ctx, + dynamic hint}); + + Future enrollerSubdirectory({required Enroller that, dynamic hint}); + Future headersFromVec({required List body, dynamic hint}); + Future maybeInputsOwnedCheckInputsNotOwned( + {required MaybeInputsOwned that, + required FutureOr Function(Uint8List) isOwned, + dynamic hint}); + + Future maybeInputsSeenCheckNoInputsSeenBefore( + {required MaybeInputsSeen that, + required FutureOr Function(OutPoint) isKnown, + dynamic hint}); + + Future maybeMixedInputScriptsCheckNoMixedInputScripts( + {required MaybeMixedInputScripts that, dynamic hint}); + + Future outputsUnknownIdentifyReceiverOutputs( + {required OutputsUnknown that, + required FutureOr Function(Uint8List) isReceiverOutput, + dynamic hint}); + + Future payjoinProposalIsOutputSubstitutionDisabled( + {required PayjoinProposal that, dynamic hint}); + + Future payjoinProposalOwnedVouts( + {required PayjoinProposal that, dynamic hint}); + + Future payjoinProposalPsbt( + {required PayjoinProposal that, dynamic hint}); + + Future> payjoinProposalUtxosToBeLocked( + {required PayjoinProposal that, dynamic hint}); + + Future provisionalProposalContributeNonWitnessInput( + {required ProvisionalProposal that, + required List tx, + required OutPoint outpoint, + dynamic hint}); + + Future provisionalProposalContributeWitnessInput( + {required ProvisionalProposal that, + required TxOut txo, + required OutPoint outpoint, + dynamic hint}); + + Future provisionalProposalFinalizeProposal( + {required ProvisionalProposal that, + required FutureOr Function(String) processPsbt, + int? minFeerateSatPerVb, + dynamic hint}); + + Future provisionalProposalSubstituteOutputAddress( + {required ProvisionalProposal that, + required String address, + dynamic hint}); + + Future provisionalProposalTryPreservingPrivacy( + {required ProvisionalProposal that, + required Map candidateInputs, + dynamic hint}); + + Future uncheckedProposalAssumeInteractiveReceiver( + {required UncheckedProposal that, dynamic hint}); + Future uncheckedProposalCheckBroadcastSuitability( {required UncheckedProposal that, int? minFeeRate, @@ -83,6 +177,88 @@ abstract class PayjoinCoreApi extends BaseApi { required Headers headers, dynamic hint}); + Future v2MaybeInputsOwnedCheckInputsNotOwned( + {required V2MaybeInputsOwned that, + required FutureOr Function(Uint8List) isOwned, + dynamic hint}); + + Future v2MaybeInputsSeenCheckNoInputsSeenBefore( + {required V2MaybeInputsSeen that, + required FutureOr Function(OutPoint) isKnown, + dynamic hint}); + + Future v2MaybeMixedInputScriptsCheckNoMixedInputScripts( + {required V2MaybeMixedInputScripts that, dynamic hint}); + + Future v2OutputsUnknownIdentifyReceiverOutputs( + {required V2OutputsUnknown that, + required FutureOr Function(Uint8List) isReceiverOutput, + dynamic hint}); + + Future v2PayjoinProposalDeserializeRes( + {required V2PayjoinProposal that, + required List res, + required ClientResponse ohttpContext, + dynamic hint}); + + Future v2PayjoinProposalExtractV1Req( + {required V2PayjoinProposal that, dynamic hint}); + + Future v2PayjoinProposalExtractV2Req( + {required V2PayjoinProposal that, dynamic hint}); + + Future v2PayjoinProposalIsOutputSubstitutionDisabled( + {required V2PayjoinProposal that, dynamic hint}); + + Future v2PayjoinProposalOwnedVouts( + {required V2PayjoinProposal that, dynamic hint}); + + Future v2PayjoinProposalPsbt( + {required V2PayjoinProposal that, dynamic hint}); + + Future> v2PayjoinProposalUtxosToBeLocked( + {required V2PayjoinProposal that, dynamic hint}); + + Future v2ProvisionalProposalContributeNonWitnessInput( + {required V2ProvisionalProposal that, + required List tx, + required OutPoint outpoint, + dynamic hint}); + + Future v2ProvisionalProposalContributeWitnessInput( + {required V2ProvisionalProposal that, + required TxOut txo, + required OutPoint outpoint, + dynamic hint}); + + Future v2ProvisionalProposalFinalizeProposal( + {required V2ProvisionalProposal that, + required FutureOr Function(String) processPsbt, + int? minFeerateSatPerVb, + dynamic hint}); + + Future v2ProvisionalProposalSubstituteOutputAddress( + {required V2ProvisionalProposal that, + required String address, + dynamic hint}); + + Future v2ProvisionalProposalTryPreservingPrivacy( + {required V2ProvisionalProposal that, + required Map candidateInputs, + dynamic hint}); + + Future v2UncheckedProposalAssumeInteractiveReceiver( + {required V2UncheckedProposal that, dynamic hint}); + + Future v2UncheckedProposalCheckBroadcastSuitability( + {required V2UncheckedProposal that, + int? minFeeRate, + required FutureOr Function(Uint8List) canBroadcast, + dynamic hint}); + + Future v2UncheckedProposalExtractTxToScheduleBroadcast( + {required V2UncheckedProposal that, dynamic hint}); + Future contextV1ProcessResponse( {required ContextV1 that, required List response, dynamic hint}); @@ -138,6 +314,114 @@ abstract class PayjoinCoreApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwnedPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeen; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeen; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeenPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScripts; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScripts; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScriptsPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknown; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknown; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknownPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2Enrolled; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2Enrolled; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2EnrolledPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwned; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwned; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwnedPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeen; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeen; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeenPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScriptsPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknown; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknown; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknownPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposalPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1ContextV1; @@ -192,6 +476,33 @@ abstract class PayjoinCoreApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrlPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_MutexOptionOhttpClientResponse; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_MutexOptionOhttpClientResponse; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_MutexOptionOhttpClientResponsePtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcV2MaybeInputsOwned; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcV2MaybeInputsOwned; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcV2MaybeInputsOwnedPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcV2MaybeInputsSeen; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcV2MaybeInputsSeen; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcV2MaybeInputsSeenPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_PayjoinFfiReceiveV1UncheckedProposal; @@ -200,6 +511,24 @@ abstract class PayjoinCoreApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_PayjoinFfiReceiveV2Enroller; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2Enroller; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2EnrollerPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_PayjoinFfiReceiveV2V2UncheckedProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposalPtr; } class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform @@ -212,1184 +541,3380 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform }); @override - Future headersFromVec({required List body, dynamic hint}) { + Future enrolledExtractReq( + {required Enrolled that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_list_prim_u_8_loose(body); - return wire.wire_Headers_from_vec(port_, arg0); + var arg0 = cst_encode_box_autoadd_enrolled(that); + return wire.wire_Enrolled_extract_req(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_headers, + decodeSuccessData: dco_decode_request_response, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kEnrolledExtractReqConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kEnrolledExtractReqConstMeta => const TaskConstMeta( + debugName: "Enrolled_extract_req", + argNames: ["that"], + ); + + @override + Future enrolledFallbackTarget( + {required Enrolled that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_enrolled(that); + return wire.wire_Enrolled_fallback_target(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kHeadersFromVecConstMeta, - argValues: [body], + constMeta: kEnrolledFallbackTargetConstMeta, + argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kHeadersFromVecConstMeta => const TaskConstMeta( - debugName: "Headers_from_vec", - argNames: ["body"], + TaskConstMeta get kEnrolledFallbackTargetConstMeta => const TaskConstMeta( + debugName: "Enrolled_fallback_target", + argNames: ["that"], ); @override - Future uncheckedProposalCheckBroadcastSuitability( - {required UncheckedProposal that, - int? minFeeRate, - required FutureOr Function(Uint8List) canBroadcast, + Future enrolledProcessRes( + {required Enrolled that, + required List body, + required ClientResponse ctx, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_unchecked_proposal(that); - var arg1 = cst_encode_opt_box_autoadd_u_64(minFeeRate); - var arg2 = cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( - canBroadcast); - return wire.wire_UncheckedProposal_check_broadcast_suitability( - port_, arg0, arg1, arg2); + var arg0 = cst_encode_box_autoadd_enrolled(that); + var arg1 = cst_encode_list_prim_u_8_loose(body); + var arg2 = cst_encode_box_autoadd_client_response(ctx); + return wire.wire_Enrolled_process_res(port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_maybe_inputs_owned, + decodeSuccessData: dco_decode_opt_box_autoadd_v_2_unchecked_proposal, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUncheckedProposalCheckBroadcastSuitabilityConstMeta, - argValues: [that, minFeeRate, canBroadcast], + constMeta: kEnrolledProcessResConstMeta, + argValues: [that, body, ctx], apiImpl: this, hint: hint, )); } - TaskConstMeta get kUncheckedProposalCheckBroadcastSuitabilityConstMeta => - const TaskConstMeta( - debugName: "UncheckedProposal_check_broadcast_suitability", - argNames: ["that", "minFeeRate", "canBroadcast"], + TaskConstMeta get kEnrolledProcessResConstMeta => const TaskConstMeta( + debugName: "Enrolled_process_res", + argNames: ["that", "body", "ctx"], ); @override - Future uncheckedProposalExtractTxToScheduleBroadcast( - {required UncheckedProposal that, dynamic hint}) { + Future enrolledSubdirectory( + {required Enrolled that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_unchecked_proposal(that); - return wire.wire_UncheckedProposal_extract_tx_to_schedule_broadcast( - port_, arg0); + var arg0 = cst_encode_box_autoadd_enrolled(that); + return wire.wire_Enrolled_subdirectory(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_8_strict, decodeErrorData: null, ), - constMeta: kUncheckedProposalExtractTxToScheduleBroadcastConstMeta, + constMeta: kEnrolledSubdirectoryConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kUncheckedProposalExtractTxToScheduleBroadcastConstMeta => - const TaskConstMeta( - debugName: "UncheckedProposal_extract_tx_to_schedule_broadcast", + TaskConstMeta get kEnrolledSubdirectoryConstMeta => const TaskConstMeta( + debugName: "Enrolled_subdirectory", argNames: ["that"], ); @override - Future uncheckedProposalFromRequest( - {required List body, - required String query, - required Headers headers, - dynamic hint}) { + Future enrollerExtractReq( + {required Enroller that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_list_prim_u_8_loose(body); - var arg1 = cst_encode_String(query); - var arg2 = cst_encode_box_autoadd_headers(headers); - return wire.wire_UncheckedProposal_from_request( - port_, arg0, arg1, arg2); + var arg0 = cst_encode_box_autoadd_enroller(that); + return wire.wire_Enroller_extract_req(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_unchecked_proposal, + decodeSuccessData: dco_decode_request_response, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUncheckedProposalFromRequestConstMeta, - argValues: [body, query, headers], + constMeta: kEnrollerExtractReqConstMeta, + argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kUncheckedProposalFromRequestConstMeta => - const TaskConstMeta( - debugName: "UncheckedProposal_from_request", - argNames: ["body", "query", "headers"], + TaskConstMeta get kEnrollerExtractReqConstMeta => const TaskConstMeta( + debugName: "Enroller_extract_req", + argNames: ["that"], ); @override - Future contextV1ProcessResponse( - {required ContextV1 that, required List response, dynamic hint}) { + Future enrollerFromRelayConfig( + {required String relayUrl, + required String ohttpConfigBase64, + required String ohttpProxyUrl, + dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_context_v_1(that); - var arg1 = cst_encode_list_prim_u_8_loose(response); - return wire.wire_ContextV1_process_response(port_, arg0, arg1); + var arg0 = cst_encode_String(relayUrl); + var arg1 = cst_encode_String(ohttpConfigBase64); + var arg2 = cst_encode_String(ohttpProxyUrl); + return wire.wire_Enroller_from_relay_config(port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_String, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_enroller, + decodeErrorData: null, ), - constMeta: kContextV1ProcessResponseConstMeta, - argValues: [that, response], + constMeta: kEnrollerFromRelayConfigConstMeta, + argValues: [relayUrl, ohttpConfigBase64, ohttpProxyUrl], apiImpl: this, hint: hint, )); } - TaskConstMeta get kContextV1ProcessResponseConstMeta => const TaskConstMeta( - debugName: "ContextV1_process_response", - argNames: ["that", "response"], + TaskConstMeta get kEnrollerFromRelayConfigConstMeta => const TaskConstMeta( + debugName: "Enroller_from_relay_config", + argNames: ["relayUrl", "ohttpConfigBase64", "ohttpProxyUrl"], ); @override - Future contextV2ProcessResponse( - {required ContextV2 that, required List response, dynamic hint}) { + Future enrollerPayjoinSubdir({required Enroller that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_context_v_2(that); - var arg1 = cst_encode_list_prim_u_8_loose(response); - return wire.wire_ContextV2_process_response(port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_enroller(that); + return wire.wire_Enroller_payjoin_subdir(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_opt_String, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_String, + decodeErrorData: null, ), - constMeta: kContextV2ProcessResponseConstMeta, - argValues: [that, response], + constMeta: kEnrollerPayjoinSubdirConstMeta, + argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kContextV2ProcessResponseConstMeta => const TaskConstMeta( - debugName: "ContextV2_process_response", - argNames: ["that", "response"], + TaskConstMeta get kEnrollerPayjoinSubdirConstMeta => const TaskConstMeta( + debugName: "Enroller_payjoin_subdir", + argNames: ["that"], ); @override - Future requestBuilderAlwaysDisableOutputSubstitution( - {required RequestBuilder that, required bool disable, dynamic hint}) { + Future enrollerProcessRes( + {required Enroller that, + required List body, + required ClientResponse ctx, + dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_builder(that); - var arg1 = cst_encode_bool(disable); - return wire.wire_RequestBuilder_always_disable_output_substitution( - port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_enroller(that); + var arg1 = cst_encode_list_prim_u_8_loose(body); + var arg2 = cst_encode_box_autoadd_client_response(ctx); + return wire.wire_Enroller_process_res(port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_builder, - decodeErrorData: null, + decodeSuccessData: dco_decode_enrolled, + decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestBuilderAlwaysDisableOutputSubstitutionConstMeta, - argValues: [that, disable], + constMeta: kEnrollerProcessResConstMeta, + argValues: [that, body, ctx], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRequestBuilderAlwaysDisableOutputSubstitutionConstMeta => - const TaskConstMeta( - debugName: "RequestBuilder_always_disable_output_substitution", - argNames: ["that", "disable"], + TaskConstMeta get kEnrollerProcessResConstMeta => const TaskConstMeta( + debugName: "Enroller_process_res", + argNames: ["that", "body", "ctx"], ); @override - Future requestBuilderBuildNonIncentivizing( - {required RequestBuilder that, dynamic hint}) { + Future enrollerSubdirectory({required Enroller that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_builder(that); - return wire.wire_RequestBuilder_build_non_incentivizing(port_, arg0); + var arg0 = cst_encode_box_autoadd_enroller(that); + return wire.wire_Enroller_subdirectory(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_context, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_String, + decodeErrorData: null, ), - constMeta: kRequestBuilderBuildNonIncentivizingConstMeta, + constMeta: kEnrollerSubdirectoryConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRequestBuilderBuildNonIncentivizingConstMeta => - const TaskConstMeta( - debugName: "RequestBuilder_build_non_incentivizing", + TaskConstMeta get kEnrollerSubdirectoryConstMeta => const TaskConstMeta( + debugName: "Enroller_subdirectory", argNames: ["that"], ); @override - Future requestBuilderBuildRecommended( - {required RequestBuilder that, required int minFeeRate, dynamic hint}) { + Future headersFromVec({required List body, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_builder(that); - var arg1 = cst_encode_u_64(minFeeRate); - return wire.wire_RequestBuilder_build_recommended(port_, arg0, arg1); + var arg0 = cst_encode_list_prim_u_8_loose(body); + return wire.wire_Headers_from_vec(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_context, + decodeSuccessData: dco_decode_headers, + decodeErrorData: null, + ), + constMeta: kHeadersFromVecConstMeta, + argValues: [body], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kHeadersFromVecConstMeta => const TaskConstMeta( + debugName: "Headers_from_vec", + argNames: ["body"], + ); + + @override + Future maybeInputsOwnedCheckInputsNotOwned( + {required MaybeInputsOwned that, + required FutureOr Function(Uint8List) isOwned, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_maybe_inputs_owned(that); + var arg1 = + cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(isOwned); + return wire.wire_MaybeInputsOwned_check_inputs_not_owned( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_maybe_mixed_input_scripts, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestBuilderBuildRecommendedConstMeta, - argValues: [that, minFeeRate], + constMeta: kMaybeInputsOwnedCheckInputsNotOwnedConstMeta, + argValues: [that, isOwned], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRequestBuilderBuildRecommendedConstMeta => + TaskConstMeta get kMaybeInputsOwnedCheckInputsNotOwnedConstMeta => const TaskConstMeta( - debugName: "RequestBuilder_build_recommended", - argNames: ["that", "minFeeRate"], + debugName: "MaybeInputsOwned_check_inputs_not_owned", + argNames: ["that", "isOwned"], ); @override - Future requestBuilderBuildWithAdditionalFee( - {required RequestBuilder that, - required int maxFeeContribution, - int? changeIndex, - required int minFeeRate, - required bool clampFeeContribution, + Future maybeInputsSeenCheckNoInputsSeenBefore( + {required MaybeInputsSeen that, + required FutureOr Function(OutPoint) isKnown, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_builder(that); - var arg1 = cst_encode_u_64(maxFeeContribution); - var arg2 = cst_encode_opt_box_autoadd_u_8(changeIndex); - var arg3 = cst_encode_u_64(minFeeRate); - var arg4 = cst_encode_bool(clampFeeContribution); - return wire.wire_RequestBuilder_build_with_additional_fee( - port_, arg0, arg1, arg2, arg3, arg4); + var arg0 = cst_encode_box_autoadd_maybe_inputs_seen(that); + var arg1 = cst_encode_DartFn_Inputs_out_point_Output_bool(isKnown); + return wire.wire_MaybeInputsSeen_check_no_inputs_seen_before( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_context, + decodeSuccessData: dco_decode_outputs_unknown, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestBuilderBuildWithAdditionalFeeConstMeta, - argValues: [ - that, - maxFeeContribution, - changeIndex, - minFeeRate, - clampFeeContribution - ], + constMeta: kMaybeInputsSeenCheckNoInputsSeenBeforeConstMeta, + argValues: [that, isKnown], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRequestBuilderBuildWithAdditionalFeeConstMeta => + TaskConstMeta get kMaybeInputsSeenCheckNoInputsSeenBeforeConstMeta => const TaskConstMeta( - debugName: "RequestBuilder_build_with_additional_fee", - argNames: [ - "that", - "maxFeeContribution", - "changeIndex", - "minFeeRate", - "clampFeeContribution" - ], + debugName: "MaybeInputsSeen_check_no_inputs_seen_before", + argNames: ["that", "isKnown"], ); @override - Future requestBuilderFromPsbtAndUri( - {required String psbtBase64, required Uri uri, dynamic hint}) { + Future maybeMixedInputScriptsCheckNoMixedInputScripts( + {required MaybeMixedInputScripts that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_String(psbtBase64); - var arg1 = cst_encode_box_autoadd_uri(uri); - return wire.wire_RequestBuilder_from_psbt_and_uri(port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_maybe_mixed_input_scripts(that); + return wire.wire_MaybeMixedInputScripts_check_no_mixed_input_scripts( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_builder, + decodeSuccessData: dco_decode_maybe_inputs_seen, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestBuilderFromPsbtAndUriConstMeta, - argValues: [psbtBase64, uri], + constMeta: kMaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta, + argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRequestBuilderFromPsbtAndUriConstMeta => + TaskConstMeta get kMaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta => const TaskConstMeta( - debugName: "RequestBuilder_from_psbt_and_uri", - argNames: ["psbtBase64", "uri"], + debugName: "MaybeMixedInputScripts_check_no_mixed_input_scripts", + argNames: ["that"], ); @override - Future requestBuilderNew({dynamic hint}) { + Future outputsUnknownIdentifyReceiverOutputs( + {required OutputsUnknown that, + required FutureOr Function(Uint8List) isReceiverOutput, + dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - return wire.wire_RequestBuilder_new(port_); + var arg0 = cst_encode_box_autoadd_outputs_unknown(that); + var arg1 = cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( + isReceiverOutput); + return wire.wire_OutputsUnknown_identify_receiver_outputs( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_unit, - decodeErrorData: null, + decodeSuccessData: dco_decode_provisional_proposal, + decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestBuilderNewConstMeta, - argValues: [], + constMeta: kOutputsUnknownIdentifyReceiverOutputsConstMeta, + argValues: [that, isReceiverOutput], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRequestBuilderNewConstMeta => const TaskConstMeta( - debugName: "RequestBuilder_new", - argNames: [], + TaskConstMeta get kOutputsUnknownIdentifyReceiverOutputsConstMeta => + const TaskConstMeta( + debugName: "OutputsUnknown_identify_receiver_outputs", + argNames: ["that", "isReceiverOutput"], ); @override - Future requestContextExtractV1( - {required RequestContext that, dynamic hint}) { + Future payjoinProposalIsOutputSubstitutionDisabled( + {required PayjoinProposal that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_context(that); - return wire.wire_RequestContext_extract_v1(port_, arg0); + var arg0 = cst_encode_box_autoadd_payjoin_proposal(that); + return wire.wire_PayjoinProposal_is_output_substitution_disabled( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_context_v_1, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_bool, + decodeErrorData: null, ), - constMeta: kRequestContextExtractV1ConstMeta, + constMeta: kPayjoinProposalIsOutputSubstitutionDisabledConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRequestContextExtractV1ConstMeta => const TaskConstMeta( - debugName: "RequestContext_extract_v1", + TaskConstMeta get kPayjoinProposalIsOutputSubstitutionDisabledConstMeta => + const TaskConstMeta( + debugName: "PayjoinProposal_is_output_substitution_disabled", argNames: ["that"], ); @override - Future requestContextExtractV2( - {required RequestContext that, - required String ohttpProxyUrl, - dynamic hint}) { + Future payjoinProposalOwnedVouts( + {required PayjoinProposal that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_context(that); - var arg1 = cst_encode_String(ohttpProxyUrl); - return wire.wire_RequestContext_extract_v2(port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_payjoin_proposal(that); + return wire.wire_PayjoinProposal_owned_vouts(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_context_v_2, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_list_prim_u_64_strict, + decodeErrorData: null, ), - constMeta: kRequestContextExtractV2ConstMeta, - argValues: [that, ohttpProxyUrl], + constMeta: kPayjoinProposalOwnedVoutsConstMeta, + argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kRequestContextExtractV2ConstMeta => const TaskConstMeta( - debugName: "RequestContext_extract_v2", - argNames: ["that", "ohttpProxyUrl"], + TaskConstMeta get kPayjoinProposalOwnedVoutsConstMeta => const TaskConstMeta( + debugName: "PayjoinProposal_owned_vouts", + argNames: ["that"], ); @override - Future uriAddress({required Uri that, dynamic hint}) { + Future payjoinProposalPsbt( + {required PayjoinProposal that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_uri(that); - return wire.wire_Uri_address(port_, arg0); + var arg0 = cst_encode_box_autoadd_payjoin_proposal(that); + return wire.wire_PayjoinProposal_psbt(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kUriAddressConstMeta, + constMeta: kPayjoinProposalPsbtConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kUriAddressConstMeta => const TaskConstMeta( - debugName: "Uri_address", + TaskConstMeta get kPayjoinProposalPsbtConstMeta => const TaskConstMeta( + debugName: "PayjoinProposal_psbt", argNames: ["that"], ); @override - Future uriAmount({required Uri that, dynamic hint}) { + Future> payjoinProposalUtxosToBeLocked( + {required PayjoinProposal that, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_uri(that); - return wire.wire_Uri_amount(port_, arg0); + var arg0 = cst_encode_box_autoadd_payjoin_proposal(that); + return wire.wire_PayjoinProposal_utxos_to_be_locked(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_opt_box_autoadd_u_64, + decodeSuccessData: dco_decode_list_out_point, decodeErrorData: null, ), - constMeta: kUriAmountConstMeta, + constMeta: kPayjoinProposalUtxosToBeLockedConstMeta, argValues: [that], apiImpl: this, hint: hint, )); } - TaskConstMeta get kUriAmountConstMeta => const TaskConstMeta( - debugName: "Uri_amount", + TaskConstMeta get kPayjoinProposalUtxosToBeLockedConstMeta => + const TaskConstMeta( + debugName: "PayjoinProposal_utxos_to_be_locked", argNames: ["that"], ); @override - Future uriFromStr({required String uri, dynamic hint}) { + Future provisionalProposalContributeNonWitnessInput( + {required ProvisionalProposal that, + required List tx, + required OutPoint outpoint, + dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_String(uri); - return wire.wire_Uri_from_str(port_, arg0); + var arg0 = cst_encode_box_autoadd_provisional_proposal(that); + var arg1 = cst_encode_list_prim_u_8_loose(tx); + var arg2 = cst_encode_box_autoadd_out_point(outpoint); + return wire.wire_ProvisionalProposal_contribute_non_witness_input( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_uri, + decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUriFromStrConstMeta, - argValues: [uri], + constMeta: kProvisionalProposalContributeNonWitnessInputConstMeta, + argValues: [that, tx, outpoint], apiImpl: this, hint: hint, )); } - TaskConstMeta get kUriFromStrConstMeta => const TaskConstMeta( - debugName: "Uri_from_str", - argNames: ["uri"], + TaskConstMeta get kProvisionalProposalContributeNonWitnessInputConstMeta => + const TaskConstMeta( + debugName: "ProvisionalProposal_contribute_non_witness_input", + argNames: ["that", "tx", "outpoint"], ); @override - Future urlNew({required String input, dynamic hint}) { + Future provisionalProposalContributeWitnessInput( + {required ProvisionalProposal that, + required TxOut txo, + required OutPoint outpoint, + dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_String(input); - return wire.wire_Url_new(port_, arg0); + var arg0 = cst_encode_box_autoadd_provisional_proposal(that); + var arg1 = cst_encode_box_autoadd_tx_out(txo); + var arg2 = cst_encode_box_autoadd_out_point(outpoint); + return wire.wire_ProvisionalProposal_contribute_witness_input( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_url, + decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUrlNewConstMeta, - argValues: [input], + constMeta: kProvisionalProposalContributeWitnessInputConstMeta, + argValues: [that, txo, outpoint], apiImpl: this, hint: hint, )); } - TaskConstMeta get kUrlNewConstMeta => const TaskConstMeta( - debugName: "Url_new", - argNames: ["input"], + TaskConstMeta get kProvisionalProposalContributeWitnessInputConstMeta => + const TaskConstMeta( + debugName: "ProvisionalProposal_contribute_witness_input", + argNames: ["that", "txo", "outpoint"], ); @override - Future urlQuery({required Url that, dynamic hint}) { + Future provisionalProposalFinalizeProposal( + {required ProvisionalProposal that, + required FutureOr Function(String) processPsbt, + int? minFeerateSatPerVb, + dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_url(that); - return wire.wire_Url_query(port_, arg0); + var arg0 = cst_encode_box_autoadd_provisional_proposal(that); + var arg1 = cst_encode_DartFn_Inputs_String_Output_String(processPsbt); + var arg2 = cst_encode_opt_box_autoadd_u_64(minFeerateSatPerVb); + return wire.wire_ProvisionalProposal_finalize_proposal( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_opt_String, - decodeErrorData: null, + decodeSuccessData: dco_decode_payjoin_proposal, + decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUrlQueryConstMeta, - argValues: [that], + constMeta: kProvisionalProposalFinalizeProposalConstMeta, + argValues: [that, processPsbt, minFeerateSatPerVb], apiImpl: this, hint: hint, )); } - TaskConstMeta get kUrlQueryConstMeta => const TaskConstMeta( - debugName: "Url_query", - argNames: ["that"], + TaskConstMeta get kProvisionalProposalFinalizeProposalConstMeta => + const TaskConstMeta( + debugName: "ProvisionalProposal_finalize_proposal", + argNames: ["that", "processPsbt", "minFeerateSatPerVb"], ); - Future Function(int, dynamic) - encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( - FutureOr Function(Uint8List) raw) { - return (callId, rawArg0) async { - final arg0 = dco_decode_list_prim_u_8_strict(rawArg0); - - final rawOutput = await raw(arg0); - - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_bool(rawOutput, serializer); - final output = serializer.intoRaw(); - - generalizedFrbRustBinding.dartFnDeliverOutput( - callId: callId, - ptr: output.ptr, - rustVecLen: output.rustVecLen, - dataLen: output.dataLen); - }; + @override + Future provisionalProposalSubstituteOutputAddress( + {required ProvisionalProposal that, + required String address, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_provisional_proposal(that); + var arg1 = cst_encode_String(address); + return wire.wire_ProvisionalProposal_substitute_output_address( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unit, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kProvisionalProposalSubstituteOutputAddressConstMeta, + argValues: [that, address], + apiImpl: this, + hint: hint, + )); } - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwned => + TaskConstMeta get kProvisionalProposalSubstituteOutputAddressConstMeta => + const TaskConstMeta( + debugName: "ProvisionalProposal_substitute_output_address", + argNames: ["that", "address"], + ); + + @override + Future provisionalProposalTryPreservingPrivacy( + {required ProvisionalProposal that, + required Map candidateInputs, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_provisional_proposal(that); + var arg1 = cst_encode_Map_u_64_out_point(candidateInputs); + return wire.wire_ProvisionalProposal_try_preserving_privacy( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_out_point, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kProvisionalProposalTryPreservingPrivacyConstMeta, + argValues: [that, candidateInputs], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kProvisionalProposalTryPreservingPrivacyConstMeta => + const TaskConstMeta( + debugName: "ProvisionalProposal_try_preserving_privacy", + argNames: ["that", "candidateInputs"], + ); + + @override + Future uncheckedProposalAssumeInteractiveReceiver( + {required UncheckedProposal that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_unchecked_proposal(that); + return wire.wire_UncheckedProposal_assume_interactive_receiver( + port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_maybe_inputs_owned, + decodeErrorData: null, + ), + constMeta: kUncheckedProposalAssumeInteractiveReceiverConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kUncheckedProposalAssumeInteractiveReceiverConstMeta => + const TaskConstMeta( + debugName: "UncheckedProposal_assume_interactive_receiver", + argNames: ["that"], + ); + + @override + Future uncheckedProposalCheckBroadcastSuitability( + {required UncheckedProposal that, + int? minFeeRate, + required FutureOr Function(Uint8List) canBroadcast, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_unchecked_proposal(that); + var arg1 = cst_encode_opt_box_autoadd_u_64(minFeeRate); + var arg2 = cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( + canBroadcast); + return wire.wire_UncheckedProposal_check_broadcast_suitability( + port_, arg0, arg1, arg2); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_maybe_inputs_owned, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kUncheckedProposalCheckBroadcastSuitabilityConstMeta, + argValues: [that, minFeeRate, canBroadcast], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kUncheckedProposalCheckBroadcastSuitabilityConstMeta => + const TaskConstMeta( + debugName: "UncheckedProposal_check_broadcast_suitability", + argNames: ["that", "minFeeRate", "canBroadcast"], + ); + + @override + Future uncheckedProposalExtractTxToScheduleBroadcast( + {required UncheckedProposal that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_unchecked_proposal(that); + return wire.wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_list_prim_u_8_strict, + decodeErrorData: null, + ), + constMeta: kUncheckedProposalExtractTxToScheduleBroadcastConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kUncheckedProposalExtractTxToScheduleBroadcastConstMeta => + const TaskConstMeta( + debugName: "UncheckedProposal_extract_tx_to_schedule_broadcast", + argNames: ["that"], + ); + + @override + Future uncheckedProposalFromRequest( + {required List body, + required String query, + required Headers headers, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_list_prim_u_8_loose(body); + var arg1 = cst_encode_String(query); + var arg2 = cst_encode_box_autoadd_headers(headers); + return wire.wire_UncheckedProposal_from_request( + port_, arg0, arg1, arg2); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unchecked_proposal, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kUncheckedProposalFromRequestConstMeta, + argValues: [body, query, headers], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kUncheckedProposalFromRequestConstMeta => + const TaskConstMeta( + debugName: "UncheckedProposal_from_request", + argNames: ["body", "query", "headers"], + ); + + @override + Future v2MaybeInputsOwnedCheckInputsNotOwned( + {required V2MaybeInputsOwned that, + required FutureOr Function(Uint8List) isOwned, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_maybe_inputs_owned(that); + var arg1 = + cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(isOwned); + return wire.wire_V2MaybeInputsOwned_check_inputs_not_owned( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_v_2_maybe_mixed_input_scripts, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2MaybeInputsOwnedCheckInputsNotOwnedConstMeta, + argValues: [that, isOwned], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2MaybeInputsOwnedCheckInputsNotOwnedConstMeta => + const TaskConstMeta( + debugName: "V2MaybeInputsOwned_check_inputs_not_owned", + argNames: ["that", "isOwned"], + ); + + @override + Future v2MaybeInputsSeenCheckNoInputsSeenBefore( + {required V2MaybeInputsSeen that, + required FutureOr Function(OutPoint) isKnown, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_maybe_inputs_seen(that); + var arg1 = cst_encode_DartFn_Inputs_out_point_Output_bool(isKnown); + return wire.wire_V2MaybeInputsSeen_check_no_inputs_seen_before( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_v_2_outputs_unknown, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2MaybeInputsSeenCheckNoInputsSeenBeforeConstMeta, + argValues: [that, isKnown], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2MaybeInputsSeenCheckNoInputsSeenBeforeConstMeta => + const TaskConstMeta( + debugName: "V2MaybeInputsSeen_check_no_inputs_seen_before", + argNames: ["that", "isKnown"], + ); + + @override + Future v2MaybeMixedInputScriptsCheckNoMixedInputScripts( + {required V2MaybeMixedInputScripts that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_maybe_mixed_input_scripts(that); + return wire.wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts( + port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2MaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta + get kV2MaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta => + const TaskConstMeta( + debugName: "V2MaybeMixedInputScripts_check_no_mixed_input_scripts", + argNames: ["that"], + ); + + @override + Future v2OutputsUnknownIdentifyReceiverOutputs( + {required V2OutputsUnknown that, + required FutureOr Function(Uint8List) isReceiverOutput, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_outputs_unknown(that); + var arg1 = cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( + isReceiverOutput); + return wire.wire_V2OutputsUnknown_identify_receiver_outputs( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_v_2_provisional_proposal, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2OutputsUnknownIdentifyReceiverOutputsConstMeta, + argValues: [that, isReceiverOutput], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2OutputsUnknownIdentifyReceiverOutputsConstMeta => + const TaskConstMeta( + debugName: "V2OutputsUnknown_identify_receiver_outputs", + argNames: ["that", "isReceiverOutput"], + ); + + @override + Future v2PayjoinProposalDeserializeRes( + {required V2PayjoinProposal that, + required List res, + required ClientResponse ohttpContext, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); + var arg1 = cst_encode_list_prim_u_8_loose(res); + var arg2 = cst_encode_box_autoadd_client_response(ohttpContext); + return wire.wire_V2PayjoinProposal_deserialize_res( + port_, arg0, arg1, arg2); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_list_prim_u_8_strict, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2PayjoinProposalDeserializeResConstMeta, + argValues: [that, res, ohttpContext], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2PayjoinProposalDeserializeResConstMeta => + const TaskConstMeta( + debugName: "V2PayjoinProposal_deserialize_res", + argNames: ["that", "res", "ohttpContext"], + ); + + @override + Future v2PayjoinProposalExtractV1Req( + {required V2PayjoinProposal that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); + return wire.wire_V2PayjoinProposal_extract_v1_req(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kV2PayjoinProposalExtractV1ReqConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2PayjoinProposalExtractV1ReqConstMeta => + const TaskConstMeta( + debugName: "V2PayjoinProposal_extract_v1_req", + argNames: ["that"], + ); + + @override + Future v2PayjoinProposalExtractV2Req( + {required V2PayjoinProposal that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); + return wire.wire_V2PayjoinProposal_extract_v2_req(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_request_response, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2PayjoinProposalExtractV2ReqConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2PayjoinProposalExtractV2ReqConstMeta => + const TaskConstMeta( + debugName: "V2PayjoinProposal_extract_v2_req", + argNames: ["that"], + ); + + @override + Future v2PayjoinProposalIsOutputSubstitutionDisabled( + {required V2PayjoinProposal that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); + return wire.wire_V2PayjoinProposal_is_output_substitution_disabled( + port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_bool, + decodeErrorData: null, + ), + constMeta: kV2PayjoinProposalIsOutputSubstitutionDisabledConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2PayjoinProposalIsOutputSubstitutionDisabledConstMeta => + const TaskConstMeta( + debugName: "V2PayjoinProposal_is_output_substitution_disabled", + argNames: ["that"], + ); + + @override + Future v2PayjoinProposalOwnedVouts( + {required V2PayjoinProposal that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); + return wire.wire_V2PayjoinProposal_owned_vouts(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_list_prim_u_64_strict, + decodeErrorData: null, + ), + constMeta: kV2PayjoinProposalOwnedVoutsConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2PayjoinProposalOwnedVoutsConstMeta => + const TaskConstMeta( + debugName: "V2PayjoinProposal_owned_vouts", + argNames: ["that"], + ); + + @override + Future v2PayjoinProposalPsbt( + {required V2PayjoinProposal that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); + return wire.wire_V2PayjoinProposal_psbt(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kV2PayjoinProposalPsbtConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2PayjoinProposalPsbtConstMeta => const TaskConstMeta( + debugName: "V2PayjoinProposal_psbt", + argNames: ["that"], + ); + + @override + Future> v2PayjoinProposalUtxosToBeLocked( + {required V2PayjoinProposal that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); + return wire.wire_V2PayjoinProposal_utxos_to_be_locked(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_list_out_point, + decodeErrorData: null, + ), + constMeta: kV2PayjoinProposalUtxosToBeLockedConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2PayjoinProposalUtxosToBeLockedConstMeta => + const TaskConstMeta( + debugName: "V2PayjoinProposal_utxos_to_be_locked", + argNames: ["that"], + ); + + @override + Future v2ProvisionalProposalContributeNonWitnessInput( + {required V2ProvisionalProposal that, + required List tx, + required OutPoint outpoint, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_provisional_proposal(that); + var arg1 = cst_encode_list_prim_u_8_loose(tx); + var arg2 = cst_encode_box_autoadd_out_point(outpoint); + return wire.wire_V2ProvisionalProposal_contribute_non_witness_input( + port_, arg0, arg1, arg2); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unit, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2ProvisionalProposalContributeNonWitnessInputConstMeta, + argValues: [that, tx, outpoint], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2ProvisionalProposalContributeNonWitnessInputConstMeta => + const TaskConstMeta( + debugName: "V2ProvisionalProposal_contribute_non_witness_input", + argNames: ["that", "tx", "outpoint"], + ); + + @override + Future v2ProvisionalProposalContributeWitnessInput( + {required V2ProvisionalProposal that, + required TxOut txo, + required OutPoint outpoint, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_provisional_proposal(that); + var arg1 = cst_encode_box_autoadd_tx_out(txo); + var arg2 = cst_encode_box_autoadd_out_point(outpoint); + return wire.wire_V2ProvisionalProposal_contribute_witness_input( + port_, arg0, arg1, arg2); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unit, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2ProvisionalProposalContributeWitnessInputConstMeta, + argValues: [that, txo, outpoint], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2ProvisionalProposalContributeWitnessInputConstMeta => + const TaskConstMeta( + debugName: "V2ProvisionalProposal_contribute_witness_input", + argNames: ["that", "txo", "outpoint"], + ); + + @override + Future v2ProvisionalProposalFinalizeProposal( + {required V2ProvisionalProposal that, + required FutureOr Function(String) processPsbt, + int? minFeerateSatPerVb, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_provisional_proposal(that); + var arg1 = cst_encode_DartFn_Inputs_String_Output_String(processPsbt); + var arg2 = cst_encode_opt_box_autoadd_u_64(minFeerateSatPerVb); + return wire.wire_V2ProvisionalProposal_finalize_proposal( + port_, arg0, arg1, arg2); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_v_2_payjoin_proposal, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2ProvisionalProposalFinalizeProposalConstMeta, + argValues: [that, processPsbt, minFeerateSatPerVb], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2ProvisionalProposalFinalizeProposalConstMeta => + const TaskConstMeta( + debugName: "V2ProvisionalProposal_finalize_proposal", + argNames: ["that", "processPsbt", "minFeerateSatPerVb"], + ); + + @override + Future v2ProvisionalProposalSubstituteOutputAddress( + {required V2ProvisionalProposal that, + required String address, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_provisional_proposal(that); + var arg1 = cst_encode_String(address); + return wire.wire_V2ProvisionalProposal_substitute_output_address( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unit, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2ProvisionalProposalSubstituteOutputAddressConstMeta, + argValues: [that, address], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2ProvisionalProposalSubstituteOutputAddressConstMeta => + const TaskConstMeta( + debugName: "V2ProvisionalProposal_substitute_output_address", + argNames: ["that", "address"], + ); + + @override + Future v2ProvisionalProposalTryPreservingPrivacy( + {required V2ProvisionalProposal that, + required Map candidateInputs, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_provisional_proposal(that); + var arg1 = cst_encode_Map_u_64_out_point(candidateInputs); + return wire.wire_V2ProvisionalProposal_try_preserving_privacy( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_out_point, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2ProvisionalProposalTryPreservingPrivacyConstMeta, + argValues: [that, candidateInputs], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2ProvisionalProposalTryPreservingPrivacyConstMeta => + const TaskConstMeta( + debugName: "V2ProvisionalProposal_try_preserving_privacy", + argNames: ["that", "candidateInputs"], + ); + + @override + Future v2UncheckedProposalAssumeInteractiveReceiver( + {required V2UncheckedProposal that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_unchecked_proposal(that); + return wire.wire_V2UncheckedProposal_assume_interactive_receiver( + port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned, + decodeErrorData: null, + ), + constMeta: kV2UncheckedProposalAssumeInteractiveReceiverConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2UncheckedProposalAssumeInteractiveReceiverConstMeta => + const TaskConstMeta( + debugName: "V2UncheckedProposal_assume_interactive_receiver", + argNames: ["that"], + ); + + @override + Future v2UncheckedProposalCheckBroadcastSuitability( + {required V2UncheckedProposal that, + int? minFeeRate, + required FutureOr Function(Uint8List) canBroadcast, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_unchecked_proposal(that); + var arg1 = cst_encode_opt_box_autoadd_u_64(minFeeRate); + var arg2 = cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( + canBroadcast); + return wire.wire_V2UncheckedProposal_check_broadcast_suitability( + port_, arg0, arg1, arg2); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_v_2_maybe_inputs_owned, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kV2UncheckedProposalCheckBroadcastSuitabilityConstMeta, + argValues: [that, minFeeRate, canBroadcast], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2UncheckedProposalCheckBroadcastSuitabilityConstMeta => + const TaskConstMeta( + debugName: "V2UncheckedProposal_check_broadcast_suitability", + argNames: ["that", "minFeeRate", "canBroadcast"], + ); + + @override + Future v2UncheckedProposalExtractTxToScheduleBroadcast( + {required V2UncheckedProposal that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_v_2_unchecked_proposal(that); + return wire.wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast( + port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_list_prim_u_8_strict, + decodeErrorData: null, + ), + constMeta: kV2UncheckedProposalExtractTxToScheduleBroadcastConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kV2UncheckedProposalExtractTxToScheduleBroadcastConstMeta => + const TaskConstMeta( + debugName: "V2UncheckedProposal_extract_tx_to_schedule_broadcast", + argNames: ["that"], + ); + + @override + Future contextV1ProcessResponse( + {required ContextV1 that, required List response, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_context_v_1(that); + var arg1 = cst_encode_list_prim_u_8_loose(response); + return wire.wire_ContextV1_process_response(port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kContextV1ProcessResponseConstMeta, + argValues: [that, response], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kContextV1ProcessResponseConstMeta => const TaskConstMeta( + debugName: "ContextV1_process_response", + argNames: ["that", "response"], + ); + + @override + Future contextV2ProcessResponse( + {required ContextV2 that, required List response, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_context_v_2(that); + var arg1 = cst_encode_list_prim_u_8_loose(response); + return wire.wire_ContextV2_process_response(port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_opt_String, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kContextV2ProcessResponseConstMeta, + argValues: [that, response], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kContextV2ProcessResponseConstMeta => const TaskConstMeta( + debugName: "ContextV2_process_response", + argNames: ["that", "response"], + ); + + @override + Future requestBuilderAlwaysDisableOutputSubstitution( + {required RequestBuilder that, required bool disable, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_request_builder(that); + var arg1 = cst_encode_bool(disable); + return wire.wire_RequestBuilder_always_disable_output_substitution( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_request_builder, + decodeErrorData: null, + ), + constMeta: kRequestBuilderAlwaysDisableOutputSubstitutionConstMeta, + argValues: [that, disable], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRequestBuilderAlwaysDisableOutputSubstitutionConstMeta => + const TaskConstMeta( + debugName: "RequestBuilder_always_disable_output_substitution", + argNames: ["that", "disable"], + ); + + @override + Future requestBuilderBuildNonIncentivizing( + {required RequestBuilder that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_request_builder(that); + return wire.wire_RequestBuilder_build_non_incentivizing(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_request_context, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kRequestBuilderBuildNonIncentivizingConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRequestBuilderBuildNonIncentivizingConstMeta => + const TaskConstMeta( + debugName: "RequestBuilder_build_non_incentivizing", + argNames: ["that"], + ); + + @override + Future requestBuilderBuildRecommended( + {required RequestBuilder that, required int minFeeRate, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_request_builder(that); + var arg1 = cst_encode_u_64(minFeeRate); + return wire.wire_RequestBuilder_build_recommended(port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_request_context, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kRequestBuilderBuildRecommendedConstMeta, + argValues: [that, minFeeRate], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRequestBuilderBuildRecommendedConstMeta => + const TaskConstMeta( + debugName: "RequestBuilder_build_recommended", + argNames: ["that", "minFeeRate"], + ); + + @override + Future requestBuilderBuildWithAdditionalFee( + {required RequestBuilder that, + required int maxFeeContribution, + int? changeIndex, + required int minFeeRate, + required bool clampFeeContribution, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_request_builder(that); + var arg1 = cst_encode_u_64(maxFeeContribution); + var arg2 = cst_encode_opt_box_autoadd_u_8(changeIndex); + var arg3 = cst_encode_u_64(minFeeRate); + var arg4 = cst_encode_bool(clampFeeContribution); + return wire.wire_RequestBuilder_build_with_additional_fee( + port_, arg0, arg1, arg2, arg3, arg4); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_request_context, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kRequestBuilderBuildWithAdditionalFeeConstMeta, + argValues: [ + that, + maxFeeContribution, + changeIndex, + minFeeRate, + clampFeeContribution + ], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRequestBuilderBuildWithAdditionalFeeConstMeta => + const TaskConstMeta( + debugName: "RequestBuilder_build_with_additional_fee", + argNames: [ + "that", + "maxFeeContribution", + "changeIndex", + "minFeeRate", + "clampFeeContribution" + ], + ); + + @override + Future requestBuilderFromPsbtAndUri( + {required String psbtBase64, required Uri uri, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_String(psbtBase64); + var arg1 = cst_encode_box_autoadd_uri(uri); + return wire.wire_RequestBuilder_from_psbt_and_uri(port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_request_builder, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kRequestBuilderFromPsbtAndUriConstMeta, + argValues: [psbtBase64, uri], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRequestBuilderFromPsbtAndUriConstMeta => + const TaskConstMeta( + debugName: "RequestBuilder_from_psbt_and_uri", + argNames: ["psbtBase64", "uri"], + ); + + @override + Future requestBuilderNew({dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + return wire.wire_RequestBuilder_new(port_); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unit, + decodeErrorData: null, + ), + constMeta: kRequestBuilderNewConstMeta, + argValues: [], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRequestBuilderNewConstMeta => const TaskConstMeta( + debugName: "RequestBuilder_new", + argNames: [], + ); + + @override + Future requestContextExtractV1( + {required RequestContext that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_request_context(that); + return wire.wire_RequestContext_extract_v1(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_request_context_v_1, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kRequestContextExtractV1ConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRequestContextExtractV1ConstMeta => const TaskConstMeta( + debugName: "RequestContext_extract_v1", + argNames: ["that"], + ); + + @override + Future requestContextExtractV2( + {required RequestContext that, + required String ohttpProxyUrl, + dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_request_context(that); + var arg1 = cst_encode_String(ohttpProxyUrl); + return wire.wire_RequestContext_extract_v2(port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_request_context_v_2, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kRequestContextExtractV2ConstMeta, + argValues: [that, ohttpProxyUrl], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kRequestContextExtractV2ConstMeta => const TaskConstMeta( + debugName: "RequestContext_extract_v2", + argNames: ["that", "ohttpProxyUrl"], + ); + + @override + Future uriAddress({required Uri that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_uri(that); + return wire.wire_Uri_address(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kUriAddressConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kUriAddressConstMeta => const TaskConstMeta( + debugName: "Uri_address", + argNames: ["that"], + ); + + @override + Future uriAmount({required Uri that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_uri(that); + return wire.wire_Uri_amount(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_opt_box_autoadd_u_64, + decodeErrorData: null, + ), + constMeta: kUriAmountConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kUriAmountConstMeta => const TaskConstMeta( + debugName: "Uri_amount", + argNames: ["that"], + ); + + @override + Future uriFromStr({required String uri, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_String(uri); + return wire.wire_Uri_from_str(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_uri, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kUriFromStrConstMeta, + argValues: [uri], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kUriFromStrConstMeta => const TaskConstMeta( + debugName: "Uri_from_str", + argNames: ["uri"], + ); + + @override + Future urlNew({required String input, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_String(input); + return wire.wire_Url_new(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_url, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kUrlNewConstMeta, + argValues: [input], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kUrlNewConstMeta => const TaskConstMeta( + debugName: "Url_new", + argNames: ["input"], + ); + + @override + Future urlQuery({required Url that, dynamic hint}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_url(that); + return wire.wire_Url_query(port_, arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_opt_String, + decodeErrorData: null, + ), + constMeta: kUrlQueryConstMeta, + argValues: [that], + apiImpl: this, + hint: hint, + )); + } + + TaskConstMeta get kUrlQueryConstMeta => const TaskConstMeta( + debugName: "Url_query", + argNames: ["that"], + ); + + Future Function(int, dynamic) encode_DartFn_Inputs_String_Output_String( + FutureOr Function(String) raw) { + return (callId, rawArg0) async { + final arg0 = dco_decode_String(rawArg0); + + final rawOutput = await raw(arg0); + + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(rawOutput, serializer); + final output = serializer.intoRaw(); + + generalizedFrbRustBinding.dartFnDeliverOutput( + callId: callId, + ptr: output.ptr, + rustVecLen: output.rustVecLen, + dataLen: output.dataLen); + }; + } + + Future Function(int, dynamic) + encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( + FutureOr Function(Uint8List) raw) { + return (callId, rawArg0) async { + final arg0 = dco_decode_list_prim_u_8_strict(rawArg0); + + final rawOutput = await raw(arg0); + + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_bool(rawOutput, serializer); + final output = serializer.intoRaw(); + + generalizedFrbRustBinding.dartFnDeliverOutput( + callId: callId, + ptr: output.ptr, + rustVecLen: output.rustVecLen, + dataLen: output.dataLen); + }; + } + + Future Function(int, dynamic) + encode_DartFn_Inputs_out_point_Output_bool( + FutureOr Function(OutPoint) raw) { + return (callId, rawArg0) async { + final arg0 = dco_decode_out_point(rawArg0); + + final rawOutput = await raw(arg0); + + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_bool(rawOutput, serializer); + final output = serializer.intoRaw(); + + generalizedFrbRustBinding.dartFnDeliverOutput( + callId: callId, + ptr: output.ptr, + rustVecLen: output.rustVecLen, + dataLen: output.dataLen); + }; + } + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwned => wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned; - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwned => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwned => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeen => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeen => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScripts => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScripts => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknown => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknown => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposal => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposal => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposal => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposal => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2Enrolled => wire + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2Enrolled => wire + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwned => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwned => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeen => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeen => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknown => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknown => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposal => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposal => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposal => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposal => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1ContextV1 => wire + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1ContextV1 => wire + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1RequestBuilder => wire + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestBuilder => wire + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1RequestContext => wire + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestContext => wire + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiSendV2ContextV2 => wire + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV2ContextV2 => wire + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiUriUri => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUri => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcPayjoinFfiUriUrl => + wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrl => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_MutexOptionOhttpClientResponse => wire + .rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_MutexOptionOhttpClientResponse => wire + .rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcV2MaybeInputsOwned => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcV2MaybeInputsOwned => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_ArcV2MaybeInputsSeen => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_ArcV2MaybeInputsSeen => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_PayjoinFfiReceiveV1UncheckedProposal => + wire.rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposal => + wire.rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_PayjoinFfiReceiveV2Enroller => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2Enroller => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_PayjoinFfiReceiveV2V2UncheckedProposal => + wire.rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposal => + wire.rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal; + + @protected + ArcV2MaybeInputsOwned + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcV2MaybeInputsOwned.dcoDecode(raw as List); + } + + @protected + ArcV2MaybeInputsSeen + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcV2MaybeInputsSeen.dcoDecode(raw as List); + } + + @protected + FutureOr Function(String) + dco_decode_DartFn_Inputs_String_Output_String(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError(''); + } + + @protected + FutureOr Function(Uint8List) + dco_decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError(''); + } + + @protected + FutureOr Function(OutPoint) + dco_decode_DartFn_Inputs_out_point_Output_bool(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError(''); + } + + @protected + Object dco_decode_DartOpaque(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return decodeDartOpaque(raw, generalizedFrbRustBinding); + } + + @protected + Map dco_decode_Map_String_String(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return Map.fromEntries(dco_decode_list_record_string_string(raw) + .map((e) => MapEntry(e.$1, e.$2))); + } + + @protected + Map dco_decode_Map_u_64_out_point(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return Map.fromEntries(dco_decode_list_record_u_64_out_point(raw) + .map((e) => MapEntry(e.$1, e.$2))); + } + + @protected + ArcPayjoinFfiReceiveV1MaybeInputsOwned + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1MaybeInputsOwned.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiReceiveV1MaybeInputsSeen + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1MaybeInputsSeen.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1MaybeMixedInputScripts.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiReceiveV1OutputsUnknown + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1OutputsUnknown.dcoDecode(raw as List); + } + + @protected + ArcPayjoinFfiReceiveV1PayjoinProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1PayjoinProposal.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiReceiveV1ProvisionalProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1ProvisionalProposal.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiReceiveV2Enrolled + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2Enrolled.dcoDecode(raw as List); + } + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2MaybeInputsOwned.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2MaybeInputsSeen.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiReceiveV2V2OutputsUnknown + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2OutputsUnknown.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiReceiveV2V2PayjoinProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2PayjoinProposal.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiReceiveV2V2ProvisionalProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2ProvisionalProposal.dcoDecode( + raw as List); + } + + @protected + ArcPayjoinFfiSendV1ContextV1 + dco_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiSendV1ContextV1.dcoDecode(raw as List); + } + + @protected + ArcPayjoinFfiSendV1RequestBuilder + dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiSendV1RequestBuilder.dcoDecode(raw as List); + } + + @protected + ArcPayjoinFfiSendV1RequestContext + dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiSendV1RequestContext.dcoDecode(raw as List); + } + + @protected + ArcPayjoinFfiSendV2ContextV2 + dco_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiSendV2ContextV2.dcoDecode(raw as List); + } + + @protected + ArcPayjoinFfiUriUri dco_decode_RustOpaque_Arcpayjoin_ffiuriUri(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiUriUri.dcoDecode(raw as List); + } + + @protected + ArcPayjoinFfiUriUrl dco_decode_RustOpaque_Arcpayjoin_ffiuriUrl(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcPayjoinFfiUriUrl.dcoDecode(raw as List); + } + + @protected + MutexOptionOhttpClientResponse + dco_decode_RustOpaque_MutexOptionohttpClientResponse(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return MutexOptionOhttpClientResponse.dcoDecode(raw as List); + } + + @protected + ArcV2MaybeInputsOwned + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcV2MaybeInputsOwned.dcoDecode(raw as List); + } + + @protected + ArcV2MaybeInputsSeen + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return ArcV2MaybeInputsSeen.dcoDecode(raw as List); + } + + @protected + PayjoinFfiReceiveV1UncheckedProposal + dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return PayjoinFfiReceiveV1UncheckedProposal.dcoDecode(raw as List); + } + + @protected + PayjoinFfiReceiveV2Enroller + dco_decode_RustOpaque_payjoin_ffireceivev2Enroller(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return PayjoinFfiReceiveV2Enroller.dcoDecode(raw as List); + } + + @protected + PayjoinFfiReceiveV2V2UncheckedProposal + dco_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return PayjoinFfiReceiveV2V2UncheckedProposal.dcoDecode( + raw as List); + } + + @protected + String dco_decode_String(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as String; + } + + @protected + bool dco_decode_bool(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as bool; + } + + @protected + ClientResponse dco_decode_box_autoadd_client_response(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_client_response(raw); + } + + @protected + ContextV1 dco_decode_box_autoadd_context_v_1(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_context_v_1(raw); + } + + @protected + ContextV2 dco_decode_box_autoadd_context_v_2(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_context_v_2(raw); + } + + @protected + Enrolled dco_decode_box_autoadd_enrolled(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_enrolled(raw); + } + + @protected + Enroller dco_decode_box_autoadd_enroller(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_enroller(raw); + } + + @protected + Headers dco_decode_box_autoadd_headers(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_headers(raw); + } + + @protected + MaybeInputsOwned dco_decode_box_autoadd_maybe_inputs_owned(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_maybe_inputs_owned(raw); + } + + @protected + MaybeInputsSeen dco_decode_box_autoadd_maybe_inputs_seen(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_maybe_inputs_seen(raw); + } + + @protected + MaybeMixedInputScripts dco_decode_box_autoadd_maybe_mixed_input_scripts( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_maybe_mixed_input_scripts(raw); + } + + @protected + OutPoint dco_decode_box_autoadd_out_point(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_out_point(raw); + } + + @protected + OutputsUnknown dco_decode_box_autoadd_outputs_unknown(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_outputs_unknown(raw); + } + + @protected + PayjoinProposal dco_decode_box_autoadd_payjoin_proposal(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_payjoin_proposal(raw); + } + + @protected + ProvisionalProposal dco_decode_box_autoadd_provisional_proposal(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_provisional_proposal(raw); + } + + @protected + RequestBuilder dco_decode_box_autoadd_request_builder(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_request_builder(raw); + } + + @protected + RequestContext dco_decode_box_autoadd_request_context(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_request_context(raw); + } + + @protected + TxOut dco_decode_box_autoadd_tx_out(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_tx_out(raw); + } + + @protected + int dco_decode_box_autoadd_u_64(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_u_64(raw); + } + + @protected + int dco_decode_box_autoadd_u_8(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as int; + } + + @protected + UncheckedProposal dco_decode_box_autoadd_unchecked_proposal(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_unchecked_proposal(raw); + } + + @protected + Uri dco_decode_box_autoadd_uri(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_uri(raw); + } + + @protected + Url dco_decode_box_autoadd_url(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_url(raw); + } + + @protected + V2MaybeInputsOwned dco_decode_box_autoadd_v_2_maybe_inputs_owned( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_v_2_maybe_inputs_owned(raw); + } + + @protected + V2MaybeInputsSeen dco_decode_box_autoadd_v_2_maybe_inputs_seen(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_v_2_maybe_inputs_seen(raw); + } + + @protected + V2MaybeMixedInputScripts dco_decode_box_autoadd_v_2_maybe_mixed_input_scripts( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_v_2_maybe_mixed_input_scripts(raw); + } + + @protected + V2OutputsUnknown dco_decode_box_autoadd_v_2_outputs_unknown(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_v_2_outputs_unknown(raw); + } + + @protected + V2PayjoinProposal dco_decode_box_autoadd_v_2_payjoin_proposal(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_v_2_payjoin_proposal(raw); + } + + @protected + V2ProvisionalProposal dco_decode_box_autoadd_v_2_provisional_proposal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_v_2_provisional_proposal(raw); + } + + @protected + V2UncheckedProposal dco_decode_box_autoadd_v_2_unchecked_proposal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_v_2_unchecked_proposal(raw); + } + + @protected + ClientResponse dco_decode_client_response(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return ClientResponse( + field0: dco_decode_RustOpaque_MutexOptionohttpClientResponse(arr[0]), + ); + } + + @protected + ContextV1 dco_decode_context_v_1(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return ContextV1( + field0: dco_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(arr[0]), + ); + } + + @protected + ContextV2 dco_decode_context_v_2(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return ContextV2( + field0: dco_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(arr[0]), + ); + } + + @protected + Enrolled dco_decode_enrolled(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return Enrolled( + field0: dco_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(arr[0]), + ); + } + + @protected + Enroller dco_decode_enroller(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return Enroller( + field0: dco_decode_RustOpaque_payjoin_ffireceivev2Enroller(arr[0]), + ); + } + + @protected + Headers dco_decode_headers(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return Headers( + field0: dco_decode_Map_String_String(arr[0]), + ); + } + + @protected + List dco_decode_list_out_point(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return (raw as List).map(dco_decode_out_point).toList(); + } + + @protected + Uint64List dco_decode_list_prim_u_64_strict(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return Uint64List.from(raw); + } + + @protected + List dco_decode_list_prim_u_8_loose(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as List; + } + + @protected + Uint8List dco_decode_list_prim_u_8_strict(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as Uint8List; + } + + @protected + List<(String, String)> dco_decode_list_record_string_string(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return (raw as List).map(dco_decode_record_string_string).toList(); + } + + @protected + List<(int, OutPoint)> dco_decode_list_record_u_64_out_point(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return (raw as List) + .map(dco_decode_record_u_64_out_point) + .toList(); + } + + @protected + MaybeInputsOwned dco_decode_maybe_inputs_owned(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return MaybeInputsOwned( + field0: + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned(arr[0]), + ); + } + + @protected + MaybeInputsSeen dco_decode_maybe_inputs_seen(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return MaybeInputsSeen( + field0: + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen(arr[0]), + ); + } + + @protected + MaybeMixedInputScripts dco_decode_maybe_mixed_input_scripts(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return MaybeMixedInputScripts( + field0: + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + arr[0]), + ); + } + + @protected + String? dco_decode_opt_String(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_String(raw); + } - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1ContextV1 => wire - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1; + @protected + int? dco_decode_opt_box_autoadd_u_64(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_box_autoadd_u_64(raw); + } - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1ContextV1 => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1; + @protected + int? dco_decode_opt_box_autoadd_u_8(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_box_autoadd_u_8(raw); + } - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1RequestBuilder => wire - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder; + @protected + V2UncheckedProposal? dco_decode_opt_box_autoadd_v_2_unchecked_proposal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null + ? null + : dco_decode_box_autoadd_v_2_unchecked_proposal(raw); + } - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestBuilder => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder; + @protected + OutPoint dco_decode_out_point(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + return OutPoint( + txid: dco_decode_String(arr[0]), + vout: dco_decode_u_32(arr[1]), + ); + } - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1RequestContext => wire - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext; + @protected + OutputsUnknown dco_decode_outputs_unknown(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return OutputsUnknown( + field0: + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(arr[0]), + ); + } - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestContext => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext; + @protected + PayjoinError dco_decode_payjoin_error(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + switch (raw[0]) { + case 0: + return PayjoinError_InvalidAddress( + message: dco_decode_String(raw[1]), + ); + case 1: + return PayjoinError_InvalidScript( + message: dco_decode_String(raw[1]), + ); + case 2: + return PayjoinError_NetworkValidation( + message: dco_decode_String(raw[1]), + ); + case 3: + return PayjoinError_PsbtParseError( + message: dco_decode_String(raw[1]), + ); + case 4: + return PayjoinError_ResponseError( + message: dco_decode_String(raw[1]), + ); + case 5: + return PayjoinError_RequestError( + message: dco_decode_String(raw[1]), + ); + case 6: + return PayjoinError_TransactionError( + message: dco_decode_String(raw[1]), + ); + case 7: + return PayjoinError_ServerError( + message: dco_decode_String(raw[1]), + ); + case 8: + return PayjoinError_SelectionError( + message: dco_decode_String(raw[1]), + ); + case 9: + return PayjoinError_CreateRequestError( + message: dco_decode_String(raw[1]), + ); + case 10: + return PayjoinError_PjParseError( + message: dco_decode_String(raw[1]), + ); + case 11: + return PayjoinError_PjNotSupported( + message: dco_decode_String(raw[1]), + ); + case 12: + return PayjoinError_ValidationError( + message: dco_decode_String(raw[1]), + ); + case 13: + return PayjoinError_V2Error( + message: dco_decode_String(raw[1]), + ); + case 14: + return PayjoinError_UnexpectedError( + message: dco_decode_String(raw[1]), + ); + case 15: + return PayjoinError_OhttpError( + message: dco_decode_String(raw[1]), + ); + case 16: + return PayjoinError_UrlError( + message: dco_decode_String(raw[1]), + ); + default: + throw Exception("unreachable"); + } + } - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV2ContextV2 => wire - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2; + @protected + PayjoinProposal dco_decode_payjoin_proposal(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return PayjoinProposal( + field0: + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal(arr[0]), + ); + } - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV2ContextV2 => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2; + @protected + ProvisionalProposal dco_decode_provisional_proposal(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return ProvisionalProposal( + field0: dco_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + arr[0]), + ); + } - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiUriUri => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri; + @protected + (String, String) dco_decode_record_string_string(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) { + throw Exception('Expected 2 elements, got ${arr.length}'); + } + return ( + dco_decode_String(arr[0]), + dco_decode_String(arr[1]), + ); + } - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUri => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri; + @protected + (int, OutPoint) dco_decode_record_u_64_out_point(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) { + throw Exception('Expected 2 elements, got ${arr.length}'); + } + return ( + dco_decode_u_64(arr[0]), + dco_decode_out_point(arr[1]), + ); + } - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiUriUrl => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl; + @protected + Request dco_decode_request(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + return Request( + url: dco_decode_url(arr[0]), + body: dco_decode_list_prim_u_8_strict(arr[1]), + ); + } - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrl => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl; + @protected + RequestBuilder dco_decode_request_builder(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return RequestBuilder( + field0: dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(arr[0]), + ); + } - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_PayjoinFfiReceiveV1UncheckedProposal => - wire.rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal; + @protected + RequestContext dco_decode_request_context(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return RequestContext( + field0: dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext(arr[0]), + ); + } - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposal => - wire.rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal; + @protected + RequestContextV1 dco_decode_request_context_v_1(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + return RequestContextV1( + request: dco_decode_request(arr[0]), + contextV1: dco_decode_context_v_1(arr[1]), + ); + } + + @protected + RequestContextV2 dco_decode_request_context_v_2(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + return RequestContextV2( + request: dco_decode_request(arr[0]), + contextV2: dco_decode_context_v_2(arr[1]), + ); + } + + @protected + RequestResponse dco_decode_request_response(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + return RequestResponse( + request: dco_decode_request(arr[0]), + clientResponse: dco_decode_client_response(arr[1]), + ); + } @protected - FutureOr Function(Uint8List) - dco_decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(dynamic raw) { + TxOut dco_decode_tx_out(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError(''); + final arr = raw as List; + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + return TxOut( + value: dco_decode_u_64(arr[0]), + scriptPubkey: dco_decode_list_prim_u_8_strict(arr[1]), + ); } @protected - Object dco_decode_DartOpaque(dynamic raw) { + int dco_decode_u_32(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return decodeDartOpaque(raw, generalizedFrbRustBinding); + return raw as int; } @protected - Map dco_decode_Map_String_String(dynamic raw) { + int dco_decode_u_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Map.fromEntries(dco_decode_list_record_string_string(raw) - .map((e) => MapEntry(e.$1, e.$2))); + return dcoDecodeI64OrU64(raw); } @protected - ArcPayjoinFfiReceiveV1MaybeInputsOwned - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - dynamic raw) { + int dco_decode_u_8(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1MaybeInputsOwned.dcoDecode( - raw as List); + return raw as int; } @protected - ArcPayjoinFfiSendV1ContextV1 - dco_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(dynamic raw) { + UncheckedProposal dco_decode_unchecked_proposal(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiSendV1ContextV1.dcoDecode(raw as List); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return UncheckedProposal( + field0: + dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(arr[0]), + ); } @protected - ArcPayjoinFfiSendV1RequestBuilder - dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(dynamic raw) { + void dco_decode_unit(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiSendV1RequestBuilder.dcoDecode(raw as List); + return; } @protected - ArcPayjoinFfiSendV1RequestContext - dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext(dynamic raw) { + Uri dco_decode_uri(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiSendV1RequestContext.dcoDecode(raw as List); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return Uri( + field0: dco_decode_RustOpaque_Arcpayjoin_ffiuriUri(arr[0]), + ); } @protected - ArcPayjoinFfiSendV2ContextV2 - dco_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(dynamic raw) { + Url dco_decode_url(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiSendV2ContextV2.dcoDecode(raw as List); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return Url( + field0: dco_decode_RustOpaque_Arcpayjoin_ffiuriUrl(arr[0]), + ); } @protected - ArcPayjoinFfiUriUri dco_decode_RustOpaque_Arcpayjoin_ffiuriUri(dynamic raw) { + int dco_decode_usize(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiUriUri.dcoDecode(raw as List); + return dcoDecodeI64OrU64(raw); } @protected - ArcPayjoinFfiUriUrl dco_decode_RustOpaque_Arcpayjoin_ffiuriUrl(dynamic raw) { + V2MaybeInputsOwned dco_decode_v_2_maybe_inputs_owned(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiUriUrl.dcoDecode(raw as List); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return V2MaybeInputsOwned( + field0: dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + arr[0]), + ); } @protected - PayjoinFfiReceiveV1UncheckedProposal - dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(dynamic raw) { + V2MaybeInputsSeen dco_decode_v_2_maybe_inputs_seen(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return PayjoinFfiReceiveV1UncheckedProposal.dcoDecode(raw as List); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return V2MaybeInputsSeen( + field0: dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + arr[0]), + ); } @protected - String dco_decode_String(dynamic raw) { + V2MaybeMixedInputScripts dco_decode_v_2_maybe_mixed_input_scripts( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as String; + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return V2MaybeMixedInputScripts( + field0: + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + arr[0]), + ); } @protected - bool dco_decode_bool(dynamic raw) { + V2OutputsUnknown dco_decode_v_2_outputs_unknown(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as bool; + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return V2OutputsUnknown( + field0: + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown(arr[0]), + ); } @protected - ContextV1 dco_decode_box_autoadd_context_v_1(dynamic raw) { + V2PayjoinProposal dco_decode_v_2_payjoin_proposal(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_context_v_1(raw); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return V2PayjoinProposal( + field0: dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + arr[0]), + ); } @protected - ContextV2 dco_decode_box_autoadd_context_v_2(dynamic raw) { + V2ProvisionalProposal dco_decode_v_2_provisional_proposal(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_context_v_2(raw); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return V2ProvisionalProposal( + field0: + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + arr[0]), + ); } @protected - Headers dco_decode_box_autoadd_headers(dynamic raw) { + V2UncheckedProposal dco_decode_v_2_unchecked_proposal(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_headers(raw); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return V2UncheckedProposal( + field0: + dco_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal(arr[0]), + ); } @protected - RequestBuilder dco_decode_box_autoadd_request_builder(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_request_builder(raw); + ArcV2MaybeInputsOwned + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcV2MaybeInputsOwned.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RequestContext dco_decode_box_autoadd_request_context(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_request_context(raw); + ArcV2MaybeInputsSeen + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcV2MaybeInputsSeen.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - int dco_decode_box_autoadd_u_64(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_u_64(raw); + Object sse_decode_DartOpaque(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = sse_decode_usize(deserializer); + return decodeDartOpaque(inner, generalizedFrbRustBinding); } @protected - int dco_decode_box_autoadd_u_8(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as int; + Map sse_decode_Map_String_String( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = sse_decode_list_record_string_string(deserializer); + return Map.fromEntries(inner.map((e) => MapEntry(e.$1, e.$2))); } @protected - UncheckedProposal dco_decode_box_autoadd_unchecked_proposal(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_unchecked_proposal(raw); + Map sse_decode_Map_u_64_out_point( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = sse_decode_list_record_u_64_out_point(deserializer); + return Map.fromEntries(inner.map((e) => MapEntry(e.$1, e.$2))); } @protected - Uri dco_decode_box_autoadd_uri(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_uri(raw); + ArcPayjoinFfiReceiveV1MaybeInputsOwned + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1MaybeInputsOwned.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - Url dco_decode_box_autoadd_url(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_url(raw); + ArcPayjoinFfiReceiveV1MaybeInputsSeen + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1MaybeInputsSeen.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ContextV1 dco_decode_context_v_1(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return ContextV1( - field0: dco_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(arr[0]), - ); + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1MaybeMixedInputScripts.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ContextV2 dco_decode_context_v_2(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return ContextV2( - field0: dco_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(arr[0]), - ); + ArcPayjoinFfiReceiveV1OutputsUnknown + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1OutputsUnknown.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - Headers dco_decode_headers(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return Headers( - field0: dco_decode_Map_String_String(arr[0]), - ); + ArcPayjoinFfiReceiveV1PayjoinProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1PayjoinProposal.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - List dco_decode_list_prim_u_8_loose(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as List; + ArcPayjoinFfiReceiveV1ProvisionalProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV1ProvisionalProposal.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - Uint8List dco_decode_list_prim_u_8_strict(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as Uint8List; + ArcPayjoinFfiReceiveV2Enrolled + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2Enrolled.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2MaybeInputsOwned.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2MaybeInputsSeen.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + ArcPayjoinFfiReceiveV2V2OutputsUnknown + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2OutputsUnknown.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + ArcPayjoinFfiReceiveV2V2PayjoinProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2PayjoinProposal.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + ArcPayjoinFfiReceiveV2V2ProvisionalProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiReceiveV2V2ProvisionalProposal.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + ArcPayjoinFfiSendV1ContextV1 + sse_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiSendV1ContextV1.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + ArcPayjoinFfiSendV1RequestBuilder + sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiSendV1RequestBuilder.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - List<(String, String)> dco_decode_list_record_string_string(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return (raw as List).map(dco_decode_record_string_string).toList(); + ArcPayjoinFfiSendV1RequestContext + sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiSendV1RequestContext.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - MaybeInputsOwned dco_decode_maybe_inputs_owned(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return MaybeInputsOwned( - field0: - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned(arr[0]), - ); + ArcPayjoinFfiSendV2ContextV2 + sse_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiSendV2ContextV2.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - String? dco_decode_opt_String(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_String(raw); + ArcPayjoinFfiUriUri sse_decode_RustOpaque_Arcpayjoin_ffiuriUri( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiUriUri.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - int? dco_decode_opt_box_autoadd_u_64(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_box_autoadd_u_64(raw); + ArcPayjoinFfiUriUrl sse_decode_RustOpaque_Arcpayjoin_ffiuriUrl( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcPayjoinFfiUriUrl.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - int? dco_decode_opt_box_autoadd_u_8(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_box_autoadd_u_8(raw); + MutexOptionOhttpClientResponse + sse_decode_RustOpaque_MutexOptionohttpClientResponse( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return MutexOptionOhttpClientResponse.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - PayjoinError dco_decode_payjoin_error(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - switch (raw[0]) { - case 0: - return PayjoinError_InvalidAddress( - message: dco_decode_String(raw[1]), - ); - case 1: - return PayjoinError_InvalidScript( - message: dco_decode_String(raw[1]), - ); - case 2: - return PayjoinError_NetworkValidation( - message: dco_decode_String(raw[1]), - ); - case 3: - return PayjoinError_PsbtParseError( - message: dco_decode_String(raw[1]), - ); - case 4: - return PayjoinError_ResponseError( - message: dco_decode_String(raw[1]), - ); - case 5: - return PayjoinError_RequestError( - message: dco_decode_String(raw[1]), - ); - case 6: - return PayjoinError_TransactionError( - message: dco_decode_String(raw[1]), - ); - case 7: - return PayjoinError_ServerError( - message: dco_decode_String(raw[1]), - ); - case 8: - return PayjoinError_SelectionError( - message: dco_decode_String(raw[1]), - ); - case 9: - return PayjoinError_CreateRequestError( - message: dco_decode_String(raw[1]), - ); - case 10: - return PayjoinError_PjParseError( - message: dco_decode_String(raw[1]), - ); - case 11: - return PayjoinError_PjNotSupported( - message: dco_decode_String(raw[1]), - ); - case 12: - return PayjoinError_ValidationError( - message: dco_decode_String(raw[1]), - ); - case 13: - return PayjoinError_V2Error( - message: dco_decode_String(raw[1]), - ); - case 14: - return PayjoinError_UnexpectedError( - message: dco_decode_String(raw[1]), - ); - case 15: - return PayjoinError_OhttpError( - message: dco_decode_String(raw[1]), - ); - case 16: - return PayjoinError_UrlError( - message: dco_decode_String(raw[1]), - ); - default: - throw Exception("unreachable"); - } + ArcV2MaybeInputsOwned + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcV2MaybeInputsOwned.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - (String, String) dco_decode_record_string_string(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 2) { - throw Exception('Expected 2 elements, got ${arr.length}'); - } - return ( - dco_decode_String(arr[0]), - dco_decode_String(arr[1]), - ); + ArcV2MaybeInputsSeen + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcV2MaybeInputsSeen.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - Request dco_decode_request(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 2) - throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); - return Request( - url: dco_decode_url(arr[0]), - body: dco_decode_list_prim_u_8_strict(arr[1]), - ); + PayjoinFfiReceiveV1UncheckedProposal + sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return PayjoinFfiReceiveV1UncheckedProposal.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RequestBuilder dco_decode_request_builder(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return RequestBuilder( - field0: dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(arr[0]), - ); + PayjoinFfiReceiveV2Enroller + sse_decode_RustOpaque_payjoin_ffireceivev2Enroller( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return PayjoinFfiReceiveV2Enroller.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RequestContext dco_decode_request_context(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return RequestContext( - field0: dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext(arr[0]), - ); + PayjoinFfiReceiveV2V2UncheckedProposal + sse_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return PayjoinFfiReceiveV2V2UncheckedProposal.sseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RequestContextV1 dco_decode_request_context_v_1(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 2) - throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); - return RequestContextV1( - request: dco_decode_request(arr[0]), - contextV1: dco_decode_context_v_1(arr[1]), - ); + String sse_decode_String(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = sse_decode_list_prim_u_8_strict(deserializer); + return utf8.decoder.convert(inner); } @protected - RequestContextV2 dco_decode_request_context_v_2(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 2) - throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); - return RequestContextV2( - request: dco_decode_request(arr[0]), - contextV2: dco_decode_context_v_2(arr[1]), - ); + bool sse_decode_bool(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getUint8() != 0; } @protected - int dco_decode_u_64(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dcoDecodeI64OrU64(raw); + ClientResponse sse_decode_box_autoadd_client_response( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_client_response(deserializer)); } @protected - int dco_decode_u_8(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as int; + ContextV1 sse_decode_box_autoadd_context_v_1(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_context_v_1(deserializer)); } @protected - UncheckedProposal dco_decode_unchecked_proposal(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return UncheckedProposal( - field0: - dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(arr[0]), - ); + ContextV2 sse_decode_box_autoadd_context_v_2(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_context_v_2(deserializer)); } @protected - void dco_decode_unit(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return; + Enrolled sse_decode_box_autoadd_enrolled(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_enrolled(deserializer)); } @protected - Uri dco_decode_uri(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return Uri( - field0: dco_decode_RustOpaque_Arcpayjoin_ffiuriUri(arr[0]), - ); + Enroller sse_decode_box_autoadd_enroller(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_enroller(deserializer)); } @protected - Url dco_decode_url(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - final arr = raw as List; - if (arr.length != 1) - throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); - return Url( - field0: dco_decode_RustOpaque_Arcpayjoin_ffiuriUrl(arr[0]), - ); + Headers sse_decode_box_autoadd_headers(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_headers(deserializer)); } @protected - int dco_decode_usize(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dcoDecodeI64OrU64(raw); + MaybeInputsOwned sse_decode_box_autoadd_maybe_inputs_owned( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_maybe_inputs_owned(deserializer)); } @protected - Object sse_decode_DartOpaque(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = sse_decode_usize(deserializer); - return decodeDartOpaque(inner, generalizedFrbRustBinding); + MaybeInputsSeen sse_decode_box_autoadd_maybe_inputs_seen( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_maybe_inputs_seen(deserializer)); } @protected - Map sse_decode_Map_String_String( + MaybeMixedInputScripts sse_decode_box_autoadd_maybe_mixed_input_scripts( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var inner = sse_decode_list_record_string_string(deserializer); - return Map.fromEntries(inner.map((e) => MapEntry(e.$1, e.$2))); + return (sse_decode_maybe_mixed_input_scripts(deserializer)); } @protected - ArcPayjoinFfiReceiveV1MaybeInputsOwned - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - SseDeserializer deserializer) { + OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1MaybeInputsOwned.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_out_point(deserializer)); } @protected - ArcPayjoinFfiSendV1ContextV1 - sse_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - SseDeserializer deserializer) { + OutputsUnknown sse_decode_box_autoadd_outputs_unknown( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiSendV1ContextV1.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_outputs_unknown(deserializer)); } @protected - ArcPayjoinFfiSendV1RequestBuilder - sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - SseDeserializer deserializer) { + PayjoinProposal sse_decode_box_autoadd_payjoin_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiSendV1RequestBuilder.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_payjoin_proposal(deserializer)); } @protected - ArcPayjoinFfiSendV1RequestContext - sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - SseDeserializer deserializer) { + ProvisionalProposal sse_decode_box_autoadd_provisional_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiSendV1RequestContext.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_provisional_proposal(deserializer)); } @protected - ArcPayjoinFfiSendV2ContextV2 - sse_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - SseDeserializer deserializer) { + RequestBuilder sse_decode_box_autoadd_request_builder( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiSendV2ContextV2.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_request_builder(deserializer)); } @protected - ArcPayjoinFfiUriUri sse_decode_RustOpaque_Arcpayjoin_ffiuriUri( + RequestContext sse_decode_box_autoadd_request_context( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiUriUri.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_request_context(deserializer)); } @protected - ArcPayjoinFfiUriUrl sse_decode_RustOpaque_Arcpayjoin_ffiuriUrl( - SseDeserializer deserializer) { + TxOut sse_decode_box_autoadd_tx_out(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiUriUrl.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_tx_out(deserializer)); } @protected - PayjoinFfiReceiveV1UncheckedProposal - sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( - SseDeserializer deserializer) { + int sse_decode_box_autoadd_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return PayjoinFfiReceiveV1UncheckedProposal.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_u_64(deserializer)); } @protected - String sse_decode_String(SseDeserializer deserializer) { + int sse_decode_box_autoadd_u_8(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var inner = sse_decode_list_prim_u_8_strict(deserializer); - return utf8.decoder.convert(inner); + return (sse_decode_u_8(deserializer)); } @protected - bool sse_decode_bool(SseDeserializer deserializer) { + UncheckedProposal sse_decode_box_autoadd_unchecked_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint8() != 0; + return (sse_decode_unchecked_proposal(deserializer)); } @protected - ContextV1 sse_decode_box_autoadd_context_v_1(SseDeserializer deserializer) { + Uri sse_decode_box_autoadd_uri(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_context_v_1(deserializer)); + return (sse_decode_uri(deserializer)); } @protected - ContextV2 sse_decode_box_autoadd_context_v_2(SseDeserializer deserializer) { + Url sse_decode_box_autoadd_url(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_context_v_2(deserializer)); + return (sse_decode_url(deserializer)); } @protected - Headers sse_decode_box_autoadd_headers(SseDeserializer deserializer) { + V2MaybeInputsOwned sse_decode_box_autoadd_v_2_maybe_inputs_owned( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_headers(deserializer)); + return (sse_decode_v_2_maybe_inputs_owned(deserializer)); } @protected - RequestBuilder sse_decode_box_autoadd_request_builder( + V2MaybeInputsSeen sse_decode_box_autoadd_v_2_maybe_inputs_seen( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_request_builder(deserializer)); + return (sse_decode_v_2_maybe_inputs_seen(deserializer)); } @protected - RequestContext sse_decode_box_autoadd_request_context( + V2MaybeMixedInputScripts sse_decode_box_autoadd_v_2_maybe_mixed_input_scripts( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_request_context(deserializer)); + return (sse_decode_v_2_maybe_mixed_input_scripts(deserializer)); } @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer) { + V2OutputsUnknown sse_decode_box_autoadd_v_2_outputs_unknown( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_u_64(deserializer)); + return (sse_decode_v_2_outputs_unknown(deserializer)); } @protected - int sse_decode_box_autoadd_u_8(SseDeserializer deserializer) { + V2PayjoinProposal sse_decode_box_autoadd_v_2_payjoin_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_u_8(deserializer)); + return (sse_decode_v_2_payjoin_proposal(deserializer)); } @protected - UncheckedProposal sse_decode_box_autoadd_unchecked_proposal( + V2ProvisionalProposal sse_decode_box_autoadd_v_2_provisional_proposal( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_unchecked_proposal(deserializer)); + return (sse_decode_v_2_provisional_proposal(deserializer)); } @protected - Uri sse_decode_box_autoadd_uri(SseDeserializer deserializer) { + V2UncheckedProposal sse_decode_box_autoadd_v_2_unchecked_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_uri(deserializer)); + return (sse_decode_v_2_unchecked_proposal(deserializer)); } @protected - Url sse_decode_box_autoadd_url(SseDeserializer deserializer) { + ClientResponse sse_decode_client_response(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_url(deserializer)); + var var_field0 = + sse_decode_RustOpaque_MutexOptionohttpClientResponse(deserializer); + return ClientResponse(field0: var_field0); } @protected @@ -1408,6 +3933,22 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return ContextV2(field0: var_field0); } + @protected + Enrolled sse_decode_enrolled(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(deserializer); + return Enrolled(field0: var_field0); + } + + @protected + Enroller sse_decode_enroller(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev2Enroller(deserializer); + return Enroller(field0: var_field0); + } + @protected Headers sse_decode_headers(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1415,6 +3956,25 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return Headers(field0: var_field0); } + @protected + List sse_decode_list_out_point(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + var len_ = sse_decode_i_32(deserializer); + var ans_ = []; + for (var idx_ = 0; idx_ < len_; ++idx_) { + ans_.add(sse_decode_out_point(deserializer)); + } + return ans_; + } + + @protected + Uint64List sse_decode_list_prim_u_64_strict(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var len_ = sse_decode_i_32(deserializer); + return deserializer.buffer.getUint64List(len_); + } + @protected List sse_decode_list_prim_u_8_loose(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1442,6 +4002,19 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return ans_; } + @protected + List<(int, OutPoint)> sse_decode_list_record_u_64_out_point( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + var len_ = sse_decode_i_32(deserializer); + var ans_ = <(int, OutPoint)>[]; + for (var idx_ = 0; idx_ < len_; ++idx_) { + ans_.add(sse_decode_record_u_64_out_point(deserializer)); + } + return ans_; + } + @protected MaybeInputsOwned sse_decode_maybe_inputs_owned(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1451,6 +4024,25 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return MaybeInputsOwned(field0: var_field0); } + @protected + MaybeInputsSeen sse_decode_maybe_inputs_seen(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + deserializer); + return MaybeInputsSeen(field0: var_field0); + } + + @protected + MaybeMixedInputScripts sse_decode_maybe_mixed_input_scripts( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + deserializer); + return MaybeMixedInputScripts(field0: var_field0); + } + @protected String? sse_decode_opt_String(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1484,6 +4076,35 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } } + @protected + V2UncheckedProposal? sse_decode_opt_box_autoadd_v_2_unchecked_proposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + if (sse_decode_bool(deserializer)) { + return (sse_decode_box_autoadd_v_2_unchecked_proposal(deserializer)); + } else { + return null; + } + } + + @protected + OutPoint sse_decode_out_point(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_txid = sse_decode_String(deserializer); + var var_vout = sse_decode_u_32(deserializer); + return OutPoint(txid: var_txid, vout: var_vout); + } + + @protected + OutputsUnknown sse_decode_outputs_unknown(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + deserializer); + return OutputsUnknown(field0: var_field0); + } + @protected PayjoinError sse_decode_payjoin_error(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1546,6 +4167,25 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } } + @protected + PayjoinProposal sse_decode_payjoin_proposal(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + deserializer); + return PayjoinProposal(field0: var_field0); + } + + @protected + ProvisionalProposal sse_decode_provisional_proposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + deserializer); + return ProvisionalProposal(field0: var_field0); + } + @protected (String, String) sse_decode_record_string_string( SseDeserializer deserializer) { @@ -1555,6 +4195,15 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return (var_field0, var_field1); } + @protected + (int, OutPoint) sse_decode_record_u_64_out_point( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = sse_decode_u_64(deserializer); + var var_field1 = sse_decode_out_point(deserializer); + return (var_field0, var_field1); + } + @protected Request sse_decode_request(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1589,65 +4238,182 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - RequestContextV2 sse_decode_request_context_v_2( + RequestContextV2 sse_decode_request_context_v_2( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_request = sse_decode_request(deserializer); + var var_contextV2 = sse_decode_context_v_2(deserializer); + return RequestContextV2(request: var_request, contextV2: var_contextV2); + } + + @protected + RequestResponse sse_decode_request_response(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_request = sse_decode_request(deserializer); + var var_clientResponse = sse_decode_client_response(deserializer); + return RequestResponse( + request: var_request, clientResponse: var_clientResponse); + } + + @protected + TxOut sse_decode_tx_out(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_value = sse_decode_u_64(deserializer); + var var_scriptPubkey = sse_decode_list_prim_u_8_strict(deserializer); + return TxOut(value: var_value, scriptPubkey: var_scriptPubkey); + } + + @protected + int sse_decode_u_32(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getUint32(); + } + + @protected + int sse_decode_u_64(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getUint64(); + } + + @protected + int sse_decode_u_8(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getUint8(); + } + + @protected + UncheckedProposal sse_decode_unchecked_proposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + deserializer); + return UncheckedProposal(field0: var_field0); + } + + @protected + void sse_decode_unit(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + } + + @protected + Uri sse_decode_uri(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = sse_decode_RustOpaque_Arcpayjoin_ffiuriUri(deserializer); + return Uri(field0: var_field0); + } + + @protected + Url sse_decode_url(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = sse_decode_RustOpaque_Arcpayjoin_ffiuriUrl(deserializer); + return Url(field0: var_field0); + } + + @protected + int sse_decode_usize(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getUint64(); + } + + @protected + V2MaybeInputsOwned sse_decode_v_2_maybe_inputs_owned( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + deserializer); + return V2MaybeInputsOwned(field0: var_field0); + } + + @protected + V2MaybeInputsSeen sse_decode_v_2_maybe_inputs_seen( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + deserializer); + return V2MaybeInputsSeen(field0: var_field0); + } + + @protected + V2MaybeMixedInputScripts sse_decode_v_2_maybe_mixed_input_scripts( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_request = sse_decode_request(deserializer); - var var_contextV2 = sse_decode_context_v_2(deserializer); - return RequestContextV2(request: var_request, contextV2: var_contextV2); + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + deserializer); + return V2MaybeMixedInputScripts(field0: var_field0); } @protected - int sse_decode_u_64(SseDeserializer deserializer) { + V2OutputsUnknown sse_decode_v_2_outputs_unknown( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint64(); + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + deserializer); + return V2OutputsUnknown(field0: var_field0); } @protected - int sse_decode_u_8(SseDeserializer deserializer) { + V2PayjoinProposal sse_decode_v_2_payjoin_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint8(); + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + deserializer); + return V2PayjoinProposal(field0: var_field0); } @protected - UncheckedProposal sse_decode_unchecked_proposal( + V2ProvisionalProposal sse_decode_v_2_provisional_proposal( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_field0 = - sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( deserializer); - return UncheckedProposal(field0: var_field0); + return V2ProvisionalProposal(field0: var_field0); } @protected - void sse_decode_unit(SseDeserializer deserializer) { + V2UncheckedProposal sse_decode_v_2_unchecked_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + deserializer); + return V2UncheckedProposal(field0: var_field0); } @protected - Uri sse_decode_uri(SseDeserializer deserializer) { + int sse_decode_i_32(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = sse_decode_RustOpaque_Arcpayjoin_ffiuriUri(deserializer); - return Uri(field0: var_field0); + return deserializer.buffer.getInt32(); } @protected - Url sse_decode_url(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = sse_decode_RustOpaque_Arcpayjoin_ffiuriUrl(deserializer); - return Url(field0: var_field0); + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(move: true); } @protected - int sse_decode_usize(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint64(); + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(move: true); } @protected - int sse_decode_i_32(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getInt32(); + PlatformPointer cst_encode_DartFn_Inputs_String_Output_String( + FutureOr Function(String) raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_DartOpaque( + encode_DartFn_Inputs_String_Output_String(raw)); } @protected @@ -1658,6 +4424,14 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(raw)); } + @protected + PlatformPointer cst_encode_DartFn_Inputs_out_point_Output_bool( + FutureOr Function(OutPoint) raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_DartOpaque( + encode_DartFn_Inputs_out_point_Output_bool(raw)); + } + @protected PlatformPointer cst_encode_DartOpaque(Object raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1673,6 +4447,102 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return raw.cstEncode(); } + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ArcPayjoinFfiReceiveV1MaybeInputsSeen raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ArcPayjoinFfiReceiveV1OutputsUnknown raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ArcPayjoinFfiReceiveV1PayjoinProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ArcPayjoinFfiReceiveV1ProvisionalProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ArcPayjoinFfiReceiveV2Enrolled raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ArcPayjoinFfiReceiveV2V2OutputsUnknown raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ArcPayjoinFfiReceiveV2V2PayjoinProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ArcPayjoinFfiReceiveV2V2ProvisionalProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + @protected int cst_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( ArcPayjoinFfiSendV1ContextV1 raw) { @@ -1719,6 +4589,30 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return raw.cstEncode(); } + @protected + int cst_encode_RustOpaque_MutexOptionohttpClientResponse( + MutexOptionOhttpClientResponse raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + @protected int cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( PayjoinFfiReceiveV1UncheckedProposal raw) { @@ -1727,6 +4621,22 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return raw.cstEncode(); } + @protected + int cst_encode_RustOpaque_payjoin_ffireceivev2Enroller( + PayjoinFfiReceiveV2Enroller raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + + @protected + int cst_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + PayjoinFfiReceiveV2V2UncheckedProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return raw.cstEncode(); + } + @protected bool cst_encode_bool(bool raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -1734,52 +4644,186 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - int cst_encode_u_8(int raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw; + int cst_encode_u_32(int raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw; + } + + @protected + int cst_encode_u_8(int raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw; + } + + @protected + void cst_encode_unit(void raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw; + } + + @protected + int cst_encode_usize(int raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw; + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: true), serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: true), serializer); + } + + @protected + void sse_encode_DartFn_Inputs_String_Output_String( + FutureOr Function(String) self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_DartOpaque( + encode_DartFn_Inputs_String_Output_String(self), serializer); + } + + @protected + void sse_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( + FutureOr Function(Uint8List) self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_DartOpaque( + encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(self), + serializer); + } + + @protected + void sse_encode_DartFn_Inputs_out_point_Output_bool( + FutureOr Function(OutPoint) self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_DartOpaque( + encode_DartFn_Inputs_out_point_Output_bool(self), serializer); + } + + @protected + void sse_encode_DartOpaque(Object self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + PlatformPointerUtil.ptrToInt(encodeDartOpaque( + self, portManager.dartHandlerPort, generalizedFrbRustBinding)), + serializer); + } + + @protected + void sse_encode_Map_String_String( + Map self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_list_record_string_string( + self.entries.map((e) => (e.key, e.value)).toList(), serializer); + } + + @protected + void sse_encode_Map_u_64_out_point( + Map self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_list_record_u_64_out_point( + self.entries.map((e) => (e.key, e.value)).toList(), serializer); + } + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + ArcPayjoinFfiReceiveV1MaybeInputsOwned self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ArcPayjoinFfiReceiveV1MaybeInputsSeen self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts self, + SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ArcPayjoinFfiReceiveV1OutputsUnknown self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ArcPayjoinFfiReceiveV1PayjoinProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ArcPayjoinFfiReceiveV1ProvisionalProposal self, + SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ArcPayjoinFfiReceiveV2Enrolled self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); } @protected - void cst_encode_unit(void raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw; + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); } @protected - int cst_encode_usize(int raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw; + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); } @protected - void sse_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( - FutureOr Function(Uint8List) self, SseSerializer serializer) { + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts self, + SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_DartOpaque( - encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(self), - serializer); + sse_encode_usize(self.sseEncode(move: null), serializer); } @protected - void sse_encode_DartOpaque(Object self, SseSerializer serializer) { + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ArcPayjoinFfiReceiveV2V2OutputsUnknown self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - PlatformPointerUtil.ptrToInt(encodeDartOpaque( - self, portManager.dartHandlerPort, generalizedFrbRustBinding)), - serializer); + sse_encode_usize(self.sseEncode(move: null), serializer); } @protected - void sse_encode_Map_String_String( - Map self, SseSerializer serializer) { + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ArcPayjoinFfiReceiveV2V2PayjoinProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_list_record_string_string( - self.entries.map((e) => (e.key, e.value)).toList(), serializer); + sse_encode_usize(self.sseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - ArcPayjoinFfiReceiveV1MaybeInputsOwned self, SseSerializer serializer) { + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ArcPayjoinFfiReceiveV2V2ProvisionalProposal self, + SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize(self.sseEncode(move: null), serializer); } @@ -1826,6 +4870,29 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform sse_encode_usize(self.sseEncode(move: null), serializer); } + @protected + void sse_encode_RustOpaque_MutexOptionohttpClientResponse( + MutexOptionOhttpClientResponse self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + @protected void sse_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( PayjoinFfiReceiveV1UncheckedProposal self, SseSerializer serializer) { @@ -1833,6 +4900,20 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform sse_encode_usize(self.sseEncode(move: null), serializer); } + @protected + void sse_encode_RustOpaque_payjoin_ffireceivev2Enroller( + PayjoinFfiReceiveV2Enroller self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + + @protected + void sse_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + PayjoinFfiReceiveV2V2UncheckedProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize(self.sseEncode(move: null), serializer); + } + @protected void sse_encode_String(String self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1845,6 +4926,13 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform serializer.buffer.putUint8(self ? 1 : 0); } + @protected + void sse_encode_box_autoadd_client_response( + ClientResponse self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_client_response(self, serializer); + } + @protected void sse_encode_box_autoadd_context_v_1( ContextV1 self, SseSerializer serializer) { @@ -1859,12 +4947,75 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform sse_encode_context_v_2(self, serializer); } + @protected + void sse_encode_box_autoadd_enrolled( + Enrolled self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_enrolled(self, serializer); + } + + @protected + void sse_encode_box_autoadd_enroller( + Enroller self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_enroller(self, serializer); + } + @protected void sse_encode_box_autoadd_headers(Headers self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_headers(self, serializer); } + @protected + void sse_encode_box_autoadd_maybe_inputs_owned( + MaybeInputsOwned self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_maybe_inputs_owned(self, serializer); + } + + @protected + void sse_encode_box_autoadd_maybe_inputs_seen( + MaybeInputsSeen self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_maybe_inputs_seen(self, serializer); + } + + @protected + void sse_encode_box_autoadd_maybe_mixed_input_scripts( + MaybeMixedInputScripts self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_maybe_mixed_input_scripts(self, serializer); + } + + @protected + void sse_encode_box_autoadd_out_point( + OutPoint self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_out_point(self, serializer); + } + + @protected + void sse_encode_box_autoadd_outputs_unknown( + OutputsUnknown self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_outputs_unknown(self, serializer); + } + + @protected + void sse_encode_box_autoadd_payjoin_proposal( + PayjoinProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_payjoin_proposal(self, serializer); + } + + @protected + void sse_encode_box_autoadd_provisional_proposal( + ProvisionalProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_provisional_proposal(self, serializer); + } + @protected void sse_encode_box_autoadd_request_builder( RequestBuilder self, SseSerializer serializer) { @@ -1879,6 +5030,12 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform sse_encode_request_context(self, serializer); } + @protected + void sse_encode_box_autoadd_tx_out(TxOut self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_tx_out(self, serializer); + } + @protected void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1910,6 +5067,63 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform sse_encode_url(self, serializer); } + @protected + void sse_encode_box_autoadd_v_2_maybe_inputs_owned( + V2MaybeInputsOwned self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_v_2_maybe_inputs_owned(self, serializer); + } + + @protected + void sse_encode_box_autoadd_v_2_maybe_inputs_seen( + V2MaybeInputsSeen self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_v_2_maybe_inputs_seen(self, serializer); + } + + @protected + void sse_encode_box_autoadd_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_v_2_maybe_mixed_input_scripts(self, serializer); + } + + @protected + void sse_encode_box_autoadd_v_2_outputs_unknown( + V2OutputsUnknown self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_v_2_outputs_unknown(self, serializer); + } + + @protected + void sse_encode_box_autoadd_v_2_payjoin_proposal( + V2PayjoinProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_v_2_payjoin_proposal(self, serializer); + } + + @protected + void sse_encode_box_autoadd_v_2_provisional_proposal( + V2ProvisionalProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_v_2_provisional_proposal(self, serializer); + } + + @protected + void sse_encode_box_autoadd_v_2_unchecked_proposal( + V2UncheckedProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_v_2_unchecked_proposal(self, serializer); + } + + @protected + void sse_encode_client_response( + ClientResponse self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_MutexOptionohttpClientResponse( + self.field0, serializer); + } + @protected void sse_encode_context_v_1(ContextV1 self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1924,12 +5138,43 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform self.field0, serializer); } + @protected + void sse_encode_enrolled(Enrolled self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + self.field0, serializer); + } + + @protected + void sse_encode_enroller(Enroller self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_payjoin_ffireceivev2Enroller(self.field0, serializer); + } + @protected void sse_encode_headers(Headers self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_Map_String_String(self.field0, serializer); } + @protected + void sse_encode_list_out_point( + List self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_i_32(self.length, serializer); + for (final item in self) { + sse_encode_out_point(item, serializer); + } + } + + @protected + void sse_encode_list_prim_u_64_strict( + Uint64List self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_i_32(self.length, serializer); + serializer.buffer.putUint64List(self); + } + @protected void sse_encode_list_prim_u_8_loose( List self, SseSerializer serializer) { @@ -1957,6 +5202,16 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } } + @protected + void sse_encode_list_record_u_64_out_point( + List<(int, OutPoint)> self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_i_32(self.length, serializer); + for (final item in self) { + sse_encode_record_u_64_out_point(item, serializer); + } + } + @protected void sse_encode_maybe_inputs_owned( MaybeInputsOwned self, SseSerializer serializer) { @@ -1965,6 +5220,22 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform self.field0, serializer); } + @protected + void sse_encode_maybe_inputs_seen( + MaybeInputsSeen self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + self.field0, serializer); + } + + @protected + void sse_encode_maybe_mixed_input_scripts( + MaybeMixedInputScripts self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + self.field0, serializer); + } + @protected void sse_encode_opt_String(String? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1995,6 +5266,32 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } } + @protected + void sse_encode_opt_box_autoadd_v_2_unchecked_proposal( + V2UncheckedProposal? self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + sse_encode_bool(self != null, serializer); + if (self != null) { + sse_encode_box_autoadd_v_2_unchecked_proposal(self, serializer); + } + } + + @protected + void sse_encode_out_point(OutPoint self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_String(self.txid, serializer); + sse_encode_u_32(self.vout, serializer); + } + + @protected + void sse_encode_outputs_unknown( + OutputsUnknown self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + self.field0, serializer); + } + @protected void sse_encode_payjoin_error(PayjoinError self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -2053,6 +5350,22 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } } + @protected + void sse_encode_payjoin_proposal( + PayjoinProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + self.field0, serializer); + } + + @protected + void sse_encode_provisional_proposal( + ProvisionalProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + self.field0, serializer); + } + @protected void sse_encode_record_string_string( (String, String) self, SseSerializer serializer) { @@ -2061,6 +5374,14 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform sse_encode_String(self.$2, serializer); } + @protected + void sse_encode_record_u_64_out_point( + (int, OutPoint) self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_u_64(self.$1, serializer); + sse_encode_out_point(self.$2, serializer); + } + @protected void sse_encode_request(Request self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -2100,6 +5421,27 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform sse_encode_context_v_2(self.contextV2, serializer); } + @protected + void sse_encode_request_response( + RequestResponse self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_request(self.request, serializer); + sse_encode_client_response(self.clientResponse, serializer); + } + + @protected + void sse_encode_tx_out(TxOut self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_u_64(self.value, serializer); + sse_encode_list_prim_u_8_strict(self.scriptPubkey, serializer); + } + + @protected + void sse_encode_u_32(int self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + serializer.buffer.putUint32(self); + } + @protected void sse_encode_u_64(int self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -2143,6 +5485,62 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform serializer.buffer.putUint64(self); } + @protected + void sse_encode_v_2_maybe_inputs_owned( + V2MaybeInputsOwned self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + self.field0, serializer); + } + + @protected + void sse_encode_v_2_maybe_inputs_seen( + V2MaybeInputsSeen self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + self.field0, serializer); + } + + @protected + void sse_encode_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + self.field0, serializer); + } + + @protected + void sse_encode_v_2_outputs_unknown( + V2OutputsUnknown self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + self.field0, serializer); + } + + @protected + void sse_encode_v_2_payjoin_proposal( + V2PayjoinProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + self.field0, serializer); + } + + @protected + void sse_encode_v_2_provisional_proposal( + V2ProvisionalProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + self.field0, serializer); + } + + @protected + void sse_encode_v_2_unchecked_proposal( + V2UncheckedProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + self.field0, serializer); + } + @protected void sse_encode_i_32(int self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index 4f6e899..4b827f2 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -25,6 +25,54 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwnedPtr => wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeenPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeenPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScriptsPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScriptsPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknownPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknownPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposalPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposalPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposalPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposalPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2EnrolledPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2EnrolledPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwnedPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwnedPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeenPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeenPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScriptsPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScriptsPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknownPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknownPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposalPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposalPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposalPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposalPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1ContextV1Ptr => wire ._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr; @@ -49,25 +97,122 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrlPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_MutexOptionOhttpClientResponsePtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponsePtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcV2MaybeInputsOwnedPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwnedPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcV2MaybeInputsSeenPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeenPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposalPtr => wire._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2EnrollerPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2EnrollerPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposalPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr; + + @protected + ArcV2MaybeInputsOwned + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + dynamic raw); + + @protected + ArcV2MaybeInputsSeen + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + dynamic raw); + + @protected + FutureOr Function(String) + dco_decode_DartFn_Inputs_String_Output_String(dynamic raw); + @protected FutureOr Function(Uint8List) dco_decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(dynamic raw); + @protected + FutureOr Function(OutPoint) + dco_decode_DartFn_Inputs_out_point_Output_bool(dynamic raw); + @protected Object dco_decode_DartOpaque(dynamic raw); @protected Map dco_decode_Map_String_String(dynamic raw); + @protected + Map dco_decode_Map_u_64_out_point(dynamic raw); + @protected ArcPayjoinFfiReceiveV1MaybeInputsOwned dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( dynamic raw); + @protected + ArcPayjoinFfiReceiveV1MaybeInputsSeen + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen(dynamic raw); + + @protected + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV1OutputsUnknown + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(dynamic raw); + + @protected + ArcPayjoinFfiReceiveV1PayjoinProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal(dynamic raw); + + @protected + ArcPayjoinFfiReceiveV1ProvisionalProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2Enrolled + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2OutputsUnknown + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2PayjoinProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2ProvisionalProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + dynamic raw); + @protected ArcPayjoinFfiSendV1ContextV1 dco_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(dynamic raw); @@ -90,31 +235,88 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected ArcPayjoinFfiUriUrl dco_decode_RustOpaque_Arcpayjoin_ffiuriUrl(dynamic raw); + @protected + MutexOptionOhttpClientResponse + dco_decode_RustOpaque_MutexOptionohttpClientResponse(dynamic raw); + + @protected + ArcV2MaybeInputsOwned + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + dynamic raw); + + @protected + ArcV2MaybeInputsSeen + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + dynamic raw); + @protected PayjoinFfiReceiveV1UncheckedProposal dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(dynamic raw); + @protected + PayjoinFfiReceiveV2Enroller + dco_decode_RustOpaque_payjoin_ffireceivev2Enroller(dynamic raw); + + @protected + PayjoinFfiReceiveV2V2UncheckedProposal + dco_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + dynamic raw); + @protected String dco_decode_String(dynamic raw); @protected bool dco_decode_bool(dynamic raw); + @protected + ClientResponse dco_decode_box_autoadd_client_response(dynamic raw); + @protected ContextV1 dco_decode_box_autoadd_context_v_1(dynamic raw); @protected ContextV2 dco_decode_box_autoadd_context_v_2(dynamic raw); + @protected + Enrolled dco_decode_box_autoadd_enrolled(dynamic raw); + + @protected + Enroller dco_decode_box_autoadd_enroller(dynamic raw); + @protected Headers dco_decode_box_autoadd_headers(dynamic raw); + @protected + MaybeInputsOwned dco_decode_box_autoadd_maybe_inputs_owned(dynamic raw); + + @protected + MaybeInputsSeen dco_decode_box_autoadd_maybe_inputs_seen(dynamic raw); + + @protected + MaybeMixedInputScripts dco_decode_box_autoadd_maybe_mixed_input_scripts( + dynamic raw); + + @protected + OutPoint dco_decode_box_autoadd_out_point(dynamic raw); + + @protected + OutputsUnknown dco_decode_box_autoadd_outputs_unknown(dynamic raw); + + @protected + PayjoinProposal dco_decode_box_autoadd_payjoin_proposal(dynamic raw); + + @protected + ProvisionalProposal dco_decode_box_autoadd_provisional_proposal(dynamic raw); + @protected RequestBuilder dco_decode_box_autoadd_request_builder(dynamic raw); @protected RequestContext dco_decode_box_autoadd_request_context(dynamic raw); + @protected + TxOut dco_decode_box_autoadd_tx_out(dynamic raw); + @protected int dco_decode_box_autoadd_u_64(dynamic raw); @@ -130,15 +332,54 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected Url dco_decode_box_autoadd_url(dynamic raw); + @protected + V2MaybeInputsOwned dco_decode_box_autoadd_v_2_maybe_inputs_owned(dynamic raw); + + @protected + V2MaybeInputsSeen dco_decode_box_autoadd_v_2_maybe_inputs_seen(dynamic raw); + + @protected + V2MaybeMixedInputScripts dco_decode_box_autoadd_v_2_maybe_mixed_input_scripts( + dynamic raw); + + @protected + V2OutputsUnknown dco_decode_box_autoadd_v_2_outputs_unknown(dynamic raw); + + @protected + V2PayjoinProposal dco_decode_box_autoadd_v_2_payjoin_proposal(dynamic raw); + + @protected + V2ProvisionalProposal dco_decode_box_autoadd_v_2_provisional_proposal( + dynamic raw); + + @protected + V2UncheckedProposal dco_decode_box_autoadd_v_2_unchecked_proposal( + dynamic raw); + + @protected + ClientResponse dco_decode_client_response(dynamic raw); + @protected ContextV1 dco_decode_context_v_1(dynamic raw); @protected ContextV2 dco_decode_context_v_2(dynamic raw); + @protected + Enrolled dco_decode_enrolled(dynamic raw); + + @protected + Enroller dco_decode_enroller(dynamic raw); + @protected Headers dco_decode_headers(dynamic raw); + @protected + List dco_decode_list_out_point(dynamic raw); + + @protected + Uint64List dco_decode_list_prim_u_64_strict(dynamic raw); + @protected List dco_decode_list_prim_u_8_loose(dynamic raw); @@ -148,9 +389,18 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected List<(String, String)> dco_decode_list_record_string_string(dynamic raw); + @protected + List<(int, OutPoint)> dco_decode_list_record_u_64_out_point(dynamic raw); + @protected MaybeInputsOwned dco_decode_maybe_inputs_owned(dynamic raw); + @protected + MaybeInputsSeen dco_decode_maybe_inputs_seen(dynamic raw); + + @protected + MaybeMixedInputScripts dco_decode_maybe_mixed_input_scripts(dynamic raw); + @protected String? dco_decode_opt_String(dynamic raw); @@ -160,12 +410,31 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int? dco_decode_opt_box_autoadd_u_8(dynamic raw); + @protected + V2UncheckedProposal? dco_decode_opt_box_autoadd_v_2_unchecked_proposal( + dynamic raw); + + @protected + OutPoint dco_decode_out_point(dynamic raw); + + @protected + OutputsUnknown dco_decode_outputs_unknown(dynamic raw); + @protected PayjoinError dco_decode_payjoin_error(dynamic raw); + @protected + PayjoinProposal dco_decode_payjoin_proposal(dynamic raw); + + @protected + ProvisionalProposal dco_decode_provisional_proposal(dynamic raw); + @protected (String, String) dco_decode_record_string_string(dynamic raw); + @protected + (int, OutPoint) dco_decode_record_u_64_out_point(dynamic raw); + @protected Request dco_decode_request(dynamic raw); @@ -181,6 +450,15 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected RequestContextV2 dco_decode_request_context_v_2(dynamic raw); + @protected + RequestResponse dco_decode_request_response(dynamic raw); + + @protected + TxOut dco_decode_tx_out(dynamic raw); + + @protected + int dco_decode_u_32(dynamic raw); + @protected int dco_decode_u_64(dynamic raw); @@ -202,6 +480,38 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int dco_decode_usize(dynamic raw); + @protected + V2MaybeInputsOwned dco_decode_v_2_maybe_inputs_owned(dynamic raw); + + @protected + V2MaybeInputsSeen dco_decode_v_2_maybe_inputs_seen(dynamic raw); + + @protected + V2MaybeMixedInputScripts dco_decode_v_2_maybe_mixed_input_scripts( + dynamic raw); + + @protected + V2OutputsUnknown dco_decode_v_2_outputs_unknown(dynamic raw); + + @protected + V2PayjoinProposal dco_decode_v_2_payjoin_proposal(dynamic raw); + + @protected + V2ProvisionalProposal dco_decode_v_2_provisional_proposal(dynamic raw); + + @protected + V2UncheckedProposal dco_decode_v_2_unchecked_proposal(dynamic raw); + + @protected + ArcV2MaybeInputsOwned + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + SseDeserializer deserializer); + + @protected + ArcV2MaybeInputsSeen + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + SseDeserializer deserializer); + @protected Object sse_decode_DartOpaque(SseDeserializer deserializer); @@ -209,11 +519,75 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { Map sse_decode_Map_String_String( SseDeserializer deserializer); + @protected + Map sse_decode_Map_u_64_out_point( + SseDeserializer deserializer); + @protected ArcPayjoinFfiReceiveV1MaybeInputsOwned sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( SseDeserializer deserializer); + @protected + ArcPayjoinFfiReceiveV1MaybeInputsSeen + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV1OutputsUnknown + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV1PayjoinProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV1ProvisionalProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2Enrolled + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2OutputsUnknown + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2PayjoinProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2ProvisionalProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + SseDeserializer deserializer); + @protected ArcPayjoinFfiSendV1ContextV1 sse_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( @@ -242,59 +616,167 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { ArcPayjoinFfiUriUrl sse_decode_RustOpaque_Arcpayjoin_ffiuriUrl( SseDeserializer deserializer); + @protected + MutexOptionOhttpClientResponse + sse_decode_RustOpaque_MutexOptionohttpClientResponse( + SseDeserializer deserializer); + + @protected + ArcV2MaybeInputsOwned + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + SseDeserializer deserializer); + + @protected + ArcV2MaybeInputsSeen + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + SseDeserializer deserializer); + @protected PayjoinFfiReceiveV1UncheckedProposal sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( SseDeserializer deserializer); + @protected + PayjoinFfiReceiveV2Enroller + sse_decode_RustOpaque_payjoin_ffireceivev2Enroller( + SseDeserializer deserializer); + + @protected + PayjoinFfiReceiveV2V2UncheckedProposal + sse_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + SseDeserializer deserializer); + @protected String sse_decode_String(SseDeserializer deserializer); @protected bool sse_decode_bool(SseDeserializer deserializer); + @protected + ClientResponse sse_decode_box_autoadd_client_response( + SseDeserializer deserializer); + @protected ContextV1 sse_decode_box_autoadd_context_v_1(SseDeserializer deserializer); @protected ContextV2 sse_decode_box_autoadd_context_v_2(SseDeserializer deserializer); + @protected + Enrolled sse_decode_box_autoadd_enrolled(SseDeserializer deserializer); + + @protected + Enroller sse_decode_box_autoadd_enroller(SseDeserializer deserializer); + @protected Headers sse_decode_box_autoadd_headers(SseDeserializer deserializer); @protected - RequestBuilder sse_decode_box_autoadd_request_builder( + MaybeInputsOwned sse_decode_box_autoadd_maybe_inputs_owned( SseDeserializer deserializer); @protected - RequestContext sse_decode_box_autoadd_request_context( + MaybeInputsSeen sse_decode_box_autoadd_maybe_inputs_seen( SseDeserializer deserializer); @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer); + MaybeMixedInputScripts sse_decode_box_autoadd_maybe_mixed_input_scripts( + SseDeserializer deserializer); @protected - int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); + OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer); @protected - UncheckedProposal sse_decode_box_autoadd_unchecked_proposal( + OutputsUnknown sse_decode_box_autoadd_outputs_unknown( SseDeserializer deserializer); @protected - Uri sse_decode_box_autoadd_uri(SseDeserializer deserializer); + PayjoinProposal sse_decode_box_autoadd_payjoin_proposal( + SseDeserializer deserializer); @protected - Url sse_decode_box_autoadd_url(SseDeserializer deserializer); + ProvisionalProposal sse_decode_box_autoadd_provisional_proposal( + SseDeserializer deserializer); @protected - ContextV1 sse_decode_context_v_1(SseDeserializer deserializer); + RequestBuilder sse_decode_box_autoadd_request_builder( + SseDeserializer deserializer); @protected - ContextV2 sse_decode_context_v_2(SseDeserializer deserializer); + RequestContext sse_decode_box_autoadd_request_context( + SseDeserializer deserializer); + + @protected + TxOut sse_decode_box_autoadd_tx_out(SseDeserializer deserializer); + + @protected + int sse_decode_box_autoadd_u_64(SseDeserializer deserializer); + + @protected + int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); + + @protected + UncheckedProposal sse_decode_box_autoadd_unchecked_proposal( + SseDeserializer deserializer); + + @protected + Uri sse_decode_box_autoadd_uri(SseDeserializer deserializer); + + @protected + Url sse_decode_box_autoadd_url(SseDeserializer deserializer); + + @protected + V2MaybeInputsOwned sse_decode_box_autoadd_v_2_maybe_inputs_owned( + SseDeserializer deserializer); + + @protected + V2MaybeInputsSeen sse_decode_box_autoadd_v_2_maybe_inputs_seen( + SseDeserializer deserializer); + + @protected + V2MaybeMixedInputScripts sse_decode_box_autoadd_v_2_maybe_mixed_input_scripts( + SseDeserializer deserializer); + + @protected + V2OutputsUnknown sse_decode_box_autoadd_v_2_outputs_unknown( + SseDeserializer deserializer); + + @protected + V2PayjoinProposal sse_decode_box_autoadd_v_2_payjoin_proposal( + SseDeserializer deserializer); + + @protected + V2ProvisionalProposal sse_decode_box_autoadd_v_2_provisional_proposal( + SseDeserializer deserializer); + + @protected + V2UncheckedProposal sse_decode_box_autoadd_v_2_unchecked_proposal( + SseDeserializer deserializer); + + @protected + ClientResponse sse_decode_client_response(SseDeserializer deserializer); + + @protected + ContextV1 sse_decode_context_v_1(SseDeserializer deserializer); + + @protected + ContextV2 sse_decode_context_v_2(SseDeserializer deserializer); + + @protected + Enrolled sse_decode_enrolled(SseDeserializer deserializer); + + @protected + Enroller sse_decode_enroller(SseDeserializer deserializer); @protected Headers sse_decode_headers(SseDeserializer deserializer); + @protected + List sse_decode_list_out_point(SseDeserializer deserializer); + + @protected + Uint64List sse_decode_list_prim_u_64_strict(SseDeserializer deserializer); + @protected List sse_decode_list_prim_u_8_loose(SseDeserializer deserializer); @@ -305,9 +787,20 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { List<(String, String)> sse_decode_list_record_string_string( SseDeserializer deserializer); + @protected + List<(int, OutPoint)> sse_decode_list_record_u_64_out_point( + SseDeserializer deserializer); + @protected MaybeInputsOwned sse_decode_maybe_inputs_owned(SseDeserializer deserializer); + @protected + MaybeInputsSeen sse_decode_maybe_inputs_seen(SseDeserializer deserializer); + + @protected + MaybeMixedInputScripts sse_decode_maybe_mixed_input_scripts( + SseDeserializer deserializer); + @protected String? sse_decode_opt_String(SseDeserializer deserializer); @@ -317,13 +810,34 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int? sse_decode_opt_box_autoadd_u_8(SseDeserializer deserializer); + @protected + V2UncheckedProposal? sse_decode_opt_box_autoadd_v_2_unchecked_proposal( + SseDeserializer deserializer); + + @protected + OutPoint sse_decode_out_point(SseDeserializer deserializer); + + @protected + OutputsUnknown sse_decode_outputs_unknown(SseDeserializer deserializer); + @protected PayjoinError sse_decode_payjoin_error(SseDeserializer deserializer); + @protected + PayjoinProposal sse_decode_payjoin_proposal(SseDeserializer deserializer); + + @protected + ProvisionalProposal sse_decode_provisional_proposal( + SseDeserializer deserializer); + @protected (String, String) sse_decode_record_string_string( SseDeserializer deserializer); + @protected + (int, OutPoint) sse_decode_record_u_64_out_point( + SseDeserializer deserializer); + @protected Request sse_decode_request(SseDeserializer deserializer); @@ -339,6 +853,15 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected RequestContextV2 sse_decode_request_context_v_2(SseDeserializer deserializer); + @protected + RequestResponse sse_decode_request_response(SseDeserializer deserializer); + + @protected + TxOut sse_decode_tx_out(SseDeserializer deserializer); + + @protected + int sse_decode_u_32(SseDeserializer deserializer); + @protected int sse_decode_u_64(SseDeserializer deserializer); @@ -360,6 +883,33 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int sse_decode_usize(SseDeserializer deserializer); + @protected + V2MaybeInputsOwned sse_decode_v_2_maybe_inputs_owned( + SseDeserializer deserializer); + + @protected + V2MaybeInputsSeen sse_decode_v_2_maybe_inputs_seen( + SseDeserializer deserializer); + + @protected + V2MaybeMixedInputScripts sse_decode_v_2_maybe_mixed_input_scripts( + SseDeserializer deserializer); + + @protected + V2OutputsUnknown sse_decode_v_2_outputs_unknown(SseDeserializer deserializer); + + @protected + V2PayjoinProposal sse_decode_v_2_payjoin_proposal( + SseDeserializer deserializer); + + @protected + V2ProvisionalProposal sse_decode_v_2_provisional_proposal( + SseDeserializer deserializer); + + @protected + V2UncheckedProposal sse_decode_v_2_unchecked_proposal( + SseDeserializer deserializer); + @protected int sse_decode_i_32(SseDeserializer deserializer); @@ -371,12 +921,29 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { raw.entries.map((e) => (e.key, e.value)).toList()); } + @protected + ffi.Pointer + cst_encode_Map_u_64_out_point(Map raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_list_record_u_64_out_point( + raw.entries.map((e) => (e.key, e.value)).toList()); + } + @protected ffi.Pointer cst_encode_String(String raw) { // Codec=Cst (C-struct based), see doc to use other codecs return cst_encode_list_prim_u_8_strict(utf8.encoder.convert(raw)); } + @protected + ffi.Pointer cst_encode_box_autoadd_client_response( + ClientResponse raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_client_response(); + cst_api_fill_to_wire_client_response(raw, ptr.ref); + return ptr; + } + @protected ffi.Pointer cst_encode_box_autoadd_context_v_1( ContextV1 raw) { @@ -395,6 +962,22 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return ptr; } + @protected + ffi.Pointer cst_encode_box_autoadd_enrolled(Enrolled raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_enrolled(); + cst_api_fill_to_wire_enrolled(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer cst_encode_box_autoadd_enroller(Enroller raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_enroller(); + cst_api_fill_to_wire_enroller(raw, ptr.ref); + return ptr; + } + @protected ffi.Pointer cst_encode_box_autoadd_headers(Headers raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -403,6 +986,70 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return ptr; } + @protected + ffi.Pointer + cst_encode_box_autoadd_maybe_inputs_owned(MaybeInputsOwned raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_maybe_inputs_owned(); + cst_api_fill_to_wire_maybe_inputs_owned(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_maybe_inputs_seen(MaybeInputsSeen raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_maybe_inputs_seen(); + cst_api_fill_to_wire_maybe_inputs_seen(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_maybe_mixed_input_scripts( + MaybeMixedInputScripts raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_maybe_mixed_input_scripts(); + cst_api_fill_to_wire_maybe_mixed_input_scripts(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer cst_encode_box_autoadd_out_point( + OutPoint raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_out_point(); + cst_api_fill_to_wire_out_point(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer cst_encode_box_autoadd_outputs_unknown( + OutputsUnknown raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_outputs_unknown(); + cst_api_fill_to_wire_outputs_unknown(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_payjoin_proposal(PayjoinProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_payjoin_proposal(); + cst_api_fill_to_wire_payjoin_proposal(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_provisional_proposal(ProvisionalProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_provisional_proposal(); + cst_api_fill_to_wire_provisional_proposal(raw, ptr.ref); + return ptr; + } + @protected ffi.Pointer cst_encode_box_autoadd_request_builder( RequestBuilder raw) { @@ -421,6 +1068,14 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return ptr; } + @protected + ffi.Pointer cst_encode_box_autoadd_tx_out(TxOut raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_tx_out(); + cst_api_fill_to_wire_tx_out(raw, ptr.ref); + return ptr; + } + @protected ffi.Pointer cst_encode_box_autoadd_u_64(int raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -458,6 +1113,91 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return ptr; } + @protected + ffi.Pointer + cst_encode_box_autoadd_v_2_maybe_inputs_owned(V2MaybeInputsOwned raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_v_2_maybe_inputs_owned(); + cst_api_fill_to_wire_v_2_maybe_inputs_owned(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_v_2_maybe_inputs_seen(V2MaybeInputsSeen raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_v_2_maybe_inputs_seen(); + cst_api_fill_to_wire_v_2_maybe_inputs_seen(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_v_2_maybe_mixed_input_scripts(); + cst_api_fill_to_wire_v_2_maybe_mixed_input_scripts(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_v_2_outputs_unknown(V2OutputsUnknown raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_v_2_outputs_unknown(); + cst_api_fill_to_wire_v_2_outputs_unknown(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_v_2_payjoin_proposal(V2PayjoinProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_v_2_payjoin_proposal(); + cst_api_fill_to_wire_v_2_payjoin_proposal(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_v_2_provisional_proposal( + V2ProvisionalProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_v_2_provisional_proposal(); + cst_api_fill_to_wire_v_2_provisional_proposal(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_v_2_unchecked_proposal(V2UncheckedProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ptr = wire.cst_new_box_autoadd_v_2_unchecked_proposal(); + cst_api_fill_to_wire_v_2_unchecked_proposal(raw, ptr.ref); + return ptr; + } + + @protected + ffi.Pointer cst_encode_list_out_point( + List raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ans = wire.cst_new_list_out_point(raw.length); + for (var i = 0; i < raw.length; ++i) { + cst_api_fill_to_wire_out_point(raw[i], ans.ref.ptr[i]); + } + return ans; + } + + @protected + ffi.Pointer cst_encode_list_prim_u_64_strict( + Uint64List raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ans = wire.cst_new_list_prim_u_64_strict(raw.length); + ans.ref.ptr.asTypedList(raw.length).setAll(0, raw.inner); + return ans; + } + @protected ffi.Pointer cst_encode_list_prim_u_8_loose( List raw) { @@ -487,6 +1227,17 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return ans; } + @protected + ffi.Pointer + cst_encode_list_record_u_64_out_point(List<(int, OutPoint)> raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + final ans = wire.cst_new_list_record_u_64_out_point(raw.length); + for (var i = 0; i < raw.length; ++i) { + cst_api_fill_to_wire_record_u_64_out_point(raw[i], ans.ref.ptr[i]); + } + return ans; + } + @protected ffi.Pointer cst_encode_opt_String( String? raw) { @@ -506,12 +1257,28 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return raw == null ? ffi.nullptr : cst_encode_box_autoadd_u_8(raw); } + @protected + ffi.Pointer + cst_encode_opt_box_autoadd_v_2_unchecked_proposal( + V2UncheckedProposal? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null + ? ffi.nullptr + : cst_encode_box_autoadd_v_2_unchecked_proposal(raw); + } + @protected int cst_encode_u_64(int raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw.toInt(); } + @protected + void cst_api_fill_to_wire_box_autoadd_client_response( + ClientResponse apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_client_response(apiObj, wireObj.ref); + } + @protected void cst_api_fill_to_wire_box_autoadd_context_v_1( ContextV1 apiObj, ffi.Pointer wireObj) { @@ -524,6 +1291,18 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { cst_api_fill_to_wire_context_v_2(apiObj, wireObj.ref); } + @protected + void cst_api_fill_to_wire_box_autoadd_enrolled( + Enrolled apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_enrolled(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_enroller( + Enroller apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_enroller(apiObj, wireObj.ref); + } + @protected void cst_api_fill_to_wire_box_autoadd_headers( Headers apiObj, ffi.Pointer wireObj) { @@ -531,50 +1310,171 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { } @protected - void cst_api_fill_to_wire_box_autoadd_request_builder( - RequestBuilder apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_request_builder(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_maybe_inputs_owned( + MaybeInputsOwned apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_maybe_inputs_owned(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_request_context( - RequestContext apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_request_context(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_maybe_inputs_seen( + MaybeInputsSeen apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_maybe_inputs_seen(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_unchecked_proposal( - UncheckedProposal apiObj, - ffi.Pointer wireObj) { - cst_api_fill_to_wire_unchecked_proposal(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_maybe_mixed_input_scripts( + MaybeMixedInputScripts apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_maybe_mixed_input_scripts(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_uri( - Uri apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_uri(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_out_point( + OutPoint apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_out_point(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_url( - Url apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_url(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_outputs_unknown( + OutputsUnknown apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_outputs_unknown(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_context_v_1( - ContextV1 apiObj, wire_cst_context_v_1 wireObj) { - wireObj.field0 = - cst_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(apiObj.field0); + void cst_api_fill_to_wire_box_autoadd_payjoin_proposal( + PayjoinProposal apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_payjoin_proposal(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_context_v_2( - ContextV2 apiObj, wire_cst_context_v_2 wireObj) { - wireObj.field0 = + void cst_api_fill_to_wire_box_autoadd_provisional_proposal( + ProvisionalProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_provisional_proposal(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_request_builder( + RequestBuilder apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_request_builder(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_request_context( + RequestContext apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_request_context(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_tx_out( + TxOut apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_tx_out(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_unchecked_proposal( + UncheckedProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_unchecked_proposal(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_uri( + Uri apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_uri(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_url( + Url apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_url(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_v_2_maybe_inputs_owned( + V2MaybeInputsOwned apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_v_2_maybe_inputs_owned(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_v_2_maybe_inputs_seen( + V2MaybeInputsSeen apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_v_2_maybe_inputs_seen(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_v_2_maybe_mixed_input_scripts(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_v_2_outputs_unknown( + V2OutputsUnknown apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_v_2_outputs_unknown(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_v_2_payjoin_proposal( + V2PayjoinProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_v_2_payjoin_proposal(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_v_2_provisional_proposal( + V2ProvisionalProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_v_2_provisional_proposal(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_v_2_unchecked_proposal( + V2UncheckedProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_v_2_unchecked_proposal(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_client_response( + ClientResponse apiObj, wire_cst_client_response wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_MutexOptionohttpClientResponse(apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_context_v_1( + ContextV1 apiObj, wire_cst_context_v_1 wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_context_v_2( + ContextV2 apiObj, wire_cst_context_v_2 wireObj) { + wireObj.field0 = cst_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(apiObj.field0); } + @protected + void cst_api_fill_to_wire_enrolled( + Enrolled apiObj, wire_cst_enrolled wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_enroller( + Enroller apiObj, wire_cst_enroller wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_payjoin_ffireceivev2Enroller(apiObj.field0); + } + @protected void cst_api_fill_to_wire_headers(Headers apiObj, wire_cst_headers wireObj) { wireObj.field0 = cst_encode_Map_String_String(apiObj.field0); @@ -588,6 +1488,38 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { apiObj.field0); } + @protected + void cst_api_fill_to_wire_maybe_inputs_seen( + MaybeInputsSeen apiObj, wire_cst_maybe_inputs_seen wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_maybe_mixed_input_scripts( + MaybeMixedInputScripts apiObj, + wire_cst_maybe_mixed_input_scripts wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_out_point( + OutPoint apiObj, wire_cst_out_point wireObj) { + wireObj.txid = cst_encode_String(apiObj.txid); + wireObj.vout = cst_encode_u_32(apiObj.vout); + } + + @protected + void cst_api_fill_to_wire_outputs_unknown( + OutputsUnknown apiObj, wire_cst_outputs_unknown wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + apiObj.field0); + } + @protected void cst_api_fill_to_wire_payjoin_error( PayjoinError apiObj, wire_cst_payjoin_error wireObj) { @@ -695,6 +1627,22 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { } } + @protected + void cst_api_fill_to_wire_payjoin_proposal( + PayjoinProposal apiObj, wire_cst_payjoin_proposal wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_provisional_proposal( + ProvisionalProposal apiObj, wire_cst_provisional_proposal wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + apiObj.field0); + } + @protected void cst_api_fill_to_wire_record_string_string( (String, String) apiObj, wire_cst_record_string_string wireObj) { @@ -702,6 +1650,13 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { wireObj.field1 = cst_encode_String(apiObj.$2); } + @protected + void cst_api_fill_to_wire_record_u_64_out_point( + (int, OutPoint) apiObj, wire_cst_record_u_64_out_point wireObj) { + wireObj.field0 = cst_encode_u_64(apiObj.$1); + cst_api_fill_to_wire_out_point(apiObj.$2, wireObj.field1); + } + @protected void cst_api_fill_to_wire_request(Request apiObj, wire_cst_request wireObj) { cst_api_fill_to_wire_url(apiObj.url, wireObj.url); @@ -736,6 +1691,21 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { cst_api_fill_to_wire_context_v_2(apiObj.contextV2, wireObj.context_v2); } + @protected + void cst_api_fill_to_wire_request_response( + RequestResponse apiObj, wire_cst_request_response wireObj) { + cst_api_fill_to_wire_request(apiObj.request, wireObj.request); + cst_api_fill_to_wire_client_response( + apiObj.clientResponse, wireObj.client_response); + } + + @protected + void cst_api_fill_to_wire_tx_out(TxOut apiObj, wire_cst_tx_out wireObj) { + wireObj.value = cst_encode_u_64(apiObj.value); + wireObj.script_pubkey = + cst_encode_list_prim_u_8_strict(apiObj.scriptPubkey); + } + @protected void cst_api_fill_to_wire_unchecked_proposal( UncheckedProposal apiObj, wire_cst_unchecked_proposal wireObj) { @@ -754,10 +1724,83 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { wireObj.field0 = cst_encode_RustOpaque_Arcpayjoin_ffiuriUrl(apiObj.field0); } + @protected + void cst_api_fill_to_wire_v_2_maybe_inputs_owned( + V2MaybeInputsOwned apiObj, wire_cst_v_2_maybe_inputs_owned wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_v_2_maybe_inputs_seen( + V2MaybeInputsSeen apiObj, wire_cst_v_2_maybe_inputs_seen wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts apiObj, + wire_cst_v_2_maybe_mixed_input_scripts wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_v_2_outputs_unknown( + V2OutputsUnknown apiObj, wire_cst_v_2_outputs_unknown wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_v_2_payjoin_proposal( + V2PayjoinProposal apiObj, wire_cst_v_2_payjoin_proposal wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_v_2_provisional_proposal( + V2ProvisionalProposal apiObj, wire_cst_v_2_provisional_proposal wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_v_2_unchecked_proposal( + V2UncheckedProposal apiObj, wire_cst_v_2_unchecked_proposal wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + apiObj.field0); + } + + @protected + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned raw); + + @protected + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen raw); + + @protected + PlatformPointer cst_encode_DartFn_Inputs_String_Output_String( + FutureOr Function(String) raw); + @protected PlatformPointer cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( FutureOr Function(Uint8List) raw); + @protected + PlatformPointer cst_encode_DartFn_Inputs_out_point_Output_bool( + FutureOr Function(OutPoint) raw); + @protected PlatformPointer cst_encode_DartOpaque(Object raw); @@ -765,6 +1808,54 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( ArcPayjoinFfiReceiveV1MaybeInputsOwned raw); + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ArcPayjoinFfiReceiveV1MaybeInputsSeen raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ArcPayjoinFfiReceiveV1OutputsUnknown raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ArcPayjoinFfiReceiveV1PayjoinProposal raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ArcPayjoinFfiReceiveV1ProvisionalProposal raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ArcPayjoinFfiReceiveV2Enrolled raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ArcPayjoinFfiReceiveV2V2OutputsUnknown raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ArcPayjoinFfiReceiveV2V2PayjoinProposal raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ArcPayjoinFfiReceiveV2V2ProvisionalProposal raw); + @protected int cst_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( ArcPayjoinFfiSendV1ContextV1 raw); @@ -787,13 +1878,36 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int cst_encode_RustOpaque_Arcpayjoin_ffiuriUrl(ArcPayjoinFfiUriUrl raw); + @protected + int cst_encode_RustOpaque_MutexOptionohttpClientResponse( + MutexOptionOhttpClientResponse raw); + + @protected + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned raw); + + @protected + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen raw); + @protected int cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( PayjoinFfiReceiveV1UncheckedProposal raw); + @protected + int cst_encode_RustOpaque_payjoin_ffireceivev2Enroller( + PayjoinFfiReceiveV2Enroller raw); + + @protected + int cst_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + PayjoinFfiReceiveV2V2UncheckedProposal raw); + @protected bool cst_encode_bool(bool raw); + @protected + int cst_encode_u_32(int raw); + @protected int cst_encode_u_8(int raw); @@ -803,10 +1917,28 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int cst_encode_usize(int raw); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_DartFn_Inputs_String_Output_String( + FutureOr Function(String) self, SseSerializer serializer); + @protected void sse_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( FutureOr Function(Uint8List) self, SseSerializer serializer); + @protected + void sse_encode_DartFn_Inputs_out_point_Output_bool( + FutureOr Function(OutPoint) self, SseSerializer serializer); + @protected void sse_encode_DartOpaque(Object self, SseSerializer serializer); @@ -814,10 +1946,65 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_Map_String_String( Map self, SseSerializer serializer); + @protected + void sse_encode_Map_u_64_out_point( + Map self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( ArcPayjoinFfiReceiveV1MaybeInputsOwned self, SseSerializer serializer); + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ArcPayjoinFfiReceiveV1MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts self, + SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ArcPayjoinFfiReceiveV1OutputsUnknown self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ArcPayjoinFfiReceiveV1PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ArcPayjoinFfiReceiveV1ProvisionalProposal self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ArcPayjoinFfiReceiveV2Enrolled self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts self, + SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ArcPayjoinFfiReceiveV2V2OutputsUnknown self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ArcPayjoinFfiReceiveV2V2PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ArcPayjoinFfiReceiveV2V2ProvisionalProposal self, + SseSerializer serializer); + @protected void sse_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( ArcPayjoinFfiSendV1ContextV1 self, SseSerializer serializer); @@ -842,16 +2029,42 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_RustOpaque_Arcpayjoin_ffiuriUrl( ArcPayjoinFfiUriUrl self, SseSerializer serializer); + @protected + void sse_encode_RustOpaque_MutexOptionohttpClientResponse( + MutexOptionOhttpClientResponse self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( PayjoinFfiReceiveV1UncheckedProposal self, SseSerializer serializer); + @protected + void sse_encode_RustOpaque_payjoin_ffireceivev2Enroller( + PayjoinFfiReceiveV2Enroller self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + PayjoinFfiReceiveV2V2UncheckedProposal self, SseSerializer serializer); + @protected void sse_encode_String(String self, SseSerializer serializer); @protected void sse_encode_bool(bool self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_client_response( + ClientResponse self, SseSerializer serializer); + @protected void sse_encode_box_autoadd_context_v_1( ContextV1 self, SseSerializer serializer); @@ -861,21 +2074,58 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { ContextV2 self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_headers(Headers self, SseSerializer serializer); + void sse_encode_box_autoadd_enrolled(Enrolled self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_request_builder( - RequestBuilder self, SseSerializer serializer); + void sse_encode_box_autoadd_enroller(Enroller self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_request_context( - RequestContext self, SseSerializer serializer); + void sse_encode_box_autoadd_headers(Headers self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer); + void sse_encode_box_autoadd_maybe_inputs_owned( + MaybeInputsOwned self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer); + void sse_encode_box_autoadd_maybe_inputs_seen( + MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_maybe_mixed_input_scripts( + MaybeMixedInputScripts self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_out_point( + OutPoint self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_outputs_unknown( + OutputsUnknown self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_payjoin_proposal( + PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_provisional_proposal( + ProvisionalProposal self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_request_builder( + RequestBuilder self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_request_context( + RequestContext self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_tx_out(TxOut self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer); @protected void sse_encode_box_autoadd_unchecked_proposal( @@ -887,15 +2137,60 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_box_autoadd_url(Url self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_v_2_maybe_inputs_owned( + V2MaybeInputsOwned self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_maybe_inputs_seen( + V2MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_outputs_unknown( + V2OutputsUnknown self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_payjoin_proposal( + V2PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_provisional_proposal( + V2ProvisionalProposal self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_unchecked_proposal( + V2UncheckedProposal self, SseSerializer serializer); + + @protected + void sse_encode_client_response( + ClientResponse self, SseSerializer serializer); + @protected void sse_encode_context_v_1(ContextV1 self, SseSerializer serializer); @protected void sse_encode_context_v_2(ContextV2 self, SseSerializer serializer); + @protected + void sse_encode_enrolled(Enrolled self, SseSerializer serializer); + + @protected + void sse_encode_enroller(Enroller self, SseSerializer serializer); + @protected void sse_encode_headers(Headers self, SseSerializer serializer); + @protected + void sse_encode_list_out_point(List self, SseSerializer serializer); + + @protected + void sse_encode_list_prim_u_64_strict( + Uint64List self, SseSerializer serializer); + @protected void sse_encode_list_prim_u_8_loose(List self, SseSerializer serializer); @@ -907,10 +2202,22 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_list_record_string_string( List<(String, String)> self, SseSerializer serializer); + @protected + void sse_encode_list_record_u_64_out_point( + List<(int, OutPoint)> self, SseSerializer serializer); + @protected void sse_encode_maybe_inputs_owned( MaybeInputsOwned self, SseSerializer serializer); + @protected + void sse_encode_maybe_inputs_seen( + MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_maybe_mixed_input_scripts( + MaybeMixedInputScripts self, SseSerializer serializer); + @protected void sse_encode_opt_String(String? self, SseSerializer serializer); @@ -920,13 +2227,36 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_opt_box_autoadd_u_8(int? self, SseSerializer serializer); + @protected + void sse_encode_opt_box_autoadd_v_2_unchecked_proposal( + V2UncheckedProposal? self, SseSerializer serializer); + + @protected + void sse_encode_out_point(OutPoint self, SseSerializer serializer); + + @protected + void sse_encode_outputs_unknown( + OutputsUnknown self, SseSerializer serializer); + @protected void sse_encode_payjoin_error(PayjoinError self, SseSerializer serializer); + @protected + void sse_encode_payjoin_proposal( + PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_provisional_proposal( + ProvisionalProposal self, SseSerializer serializer); + @protected void sse_encode_record_string_string( (String, String) self, SseSerializer serializer); + @protected + void sse_encode_record_u_64_out_point( + (int, OutPoint) self, SseSerializer serializer); + @protected void sse_encode_request(Request self, SseSerializer serializer); @@ -946,6 +2276,16 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_request_context_v_2( RequestContextV2 self, SseSerializer serializer); + @protected + void sse_encode_request_response( + RequestResponse self, SseSerializer serializer); + + @protected + void sse_encode_tx_out(TxOut self, SseSerializer serializer); + + @protected + void sse_encode_u_32(int self, SseSerializer serializer); + @protected void sse_encode_u_64(int self, SseSerializer serializer); @@ -968,6 +2308,34 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_usize(int self, SseSerializer serializer); + @protected + void sse_encode_v_2_maybe_inputs_owned( + V2MaybeInputsOwned self, SseSerializer serializer); + + @protected + void sse_encode_v_2_maybe_inputs_seen( + V2MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts self, SseSerializer serializer); + + @protected + void sse_encode_v_2_outputs_unknown( + V2OutputsUnknown self, SseSerializer serializer); + + @protected + void sse_encode_v_2_payjoin_proposal( + V2PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_v_2_provisional_proposal( + V2ProvisionalProposal self, SseSerializer serializer); + + @protected + void sse_encode_v_2_unchecked_proposal( + V2UncheckedProposal self, SseSerializer serializer); + @protected void sse_encode_i_32(int self, SseSerializer serializer); } @@ -999,654 +2367,2152 @@ class PayjoinCoreWire implements BaseWire { lookup) : _lookup = lookup; - void wire_Headers_from_vec( + void wire_Enrolled_extract_req( + int port_, + ffi.Pointer that, + ) { + return _wire_Enrolled_extract_req( + port_, + that, + ); + } + + late final _wire_Enrolled_extract_reqPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Enrolled_extract_req'); + late final _wire_Enrolled_extract_req = _wire_Enrolled_extract_reqPtr + .asFunction)>(); + + void wire_Enrolled_fallback_target( + int port_, + ffi.Pointer that, + ) { + return _wire_Enrolled_fallback_target( + port_, + that, + ); + } + + late final _wire_Enrolled_fallback_targetPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Enrolled_fallback_target'); + late final _wire_Enrolled_fallback_target = _wire_Enrolled_fallback_targetPtr + .asFunction)>(); + + void wire_Enrolled_process_res( int port_, + ffi.Pointer that, ffi.Pointer body, + ffi.Pointer ctx, ) { - return _wire_Headers_from_vec( + return _wire_Enrolled_process_res( port_, + that, body, + ctx, ); } - late final _wire_Headers_from_vecPtr = _lookup< + late final _wire_Enrolled_process_resPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_Headers_from_vec'); - late final _wire_Headers_from_vec = _wire_Headers_from_vecPtr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Enrolled_process_res'); + late final _wire_Enrolled_process_res = + _wire_Enrolled_process_resPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire_UncheckedProposal_check_broadcast_suitability( + void wire_Enrolled_subdirectory( int port_, - ffi.Pointer that, - ffi.Pointer min_fee_rate, - ffi.Pointer can_broadcast, + ffi.Pointer that, ) { - return _wire_UncheckedProposal_check_broadcast_suitability( + return _wire_Enrolled_subdirectory( port_, that, - min_fee_rate, - can_broadcast, ); } - late final _wire_UncheckedProposal_check_broadcast_suitabilityPtr = _lookup< + late final _wire_Enrolled_subdirectoryPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_UncheckedProposal_check_broadcast_suitability'); - late final _wire_UncheckedProposal_check_broadcast_suitability = - _wire_UncheckedProposal_check_broadcast_suitabilityPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Enrolled_subdirectory'); + late final _wire_Enrolled_subdirectory = _wire_Enrolled_subdirectoryPtr + .asFunction)>(); - void wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + void wire_Enroller_extract_req( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + return _wire_Enroller_extract_req( port_, that, ); } - late final _wire_UncheckedProposal_extract_tx_to_schedule_broadcastPtr = _lookup< + late final _wire_Enroller_extract_reqPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_UncheckedProposal_extract_tx_to_schedule_broadcast'); - late final _wire_UncheckedProposal_extract_tx_to_schedule_broadcast = - _wire_UncheckedProposal_extract_tx_to_schedule_broadcastPtr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Enroller_extract_req'); + late final _wire_Enroller_extract_req = _wire_Enroller_extract_reqPtr + .asFunction)>(); - void wire_UncheckedProposal_from_request( + void wire_Enroller_from_relay_config( int port_, - ffi.Pointer body, - ffi.Pointer query, - ffi.Pointer headers, + ffi.Pointer relay_url, + ffi.Pointer ohttp_config_base64, + ffi.Pointer ohttp_proxy_url, ) { - return _wire_UncheckedProposal_from_request( + return _wire_Enroller_from_relay_config( port_, - body, - query, - headers, + relay_url, + ohttp_config_base64, + ohttp_proxy_url, ); } - late final _wire_UncheckedProposal_from_requestPtr = _lookup< + late final _wire_Enroller_from_relay_configPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_UncheckedProposal_from_request'); - late final _wire_UncheckedProposal_from_request = - _wire_UncheckedProposal_from_requestPtr.asFunction< + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Enroller_from_relay_config'); + late final _wire_Enroller_from_relay_config = + _wire_Enroller_from_relay_configPtr.asFunction< void Function( int, - ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer)>(); - void wire_ContextV1_process_response( + void wire_Enroller_payjoin_subdir( int port_, - ffi.Pointer that, - ffi.Pointer response, + ffi.Pointer that, ) { - return _wire_ContextV1_process_response( + return _wire_Enroller_payjoin_subdir( port_, that, - response, ); } - late final _wire_ContextV1_process_responsePtr = _lookup< + late final _wire_Enroller_payjoin_subdirPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_ContextV1_process_response'); - late final _wire_ContextV1_process_response = - _wire_ContextV1_process_responsePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Enroller_payjoin_subdir'); + late final _wire_Enroller_payjoin_subdir = _wire_Enroller_payjoin_subdirPtr + .asFunction)>(); - void wire_ContextV2_process_response( + void wire_Enroller_process_res( int port_, - ffi.Pointer that, - ffi.Pointer response, + ffi.Pointer that, + ffi.Pointer body, + ffi.Pointer ctx, ) { - return _wire_ContextV2_process_response( + return _wire_Enroller_process_res( port_, that, - response, + body, + ctx, ); } - late final _wire_ContextV2_process_responsePtr = _lookup< + late final _wire_Enroller_process_resPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_ContextV2_process_response'); - late final _wire_ContextV2_process_response = - _wire_ContextV2_process_responsePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Enroller_process_res'); + late final _wire_Enroller_process_res = + _wire_Enroller_process_resPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire_RequestBuilder_always_disable_output_substitution( + void wire_Enroller_subdirectory( int port_, - ffi.Pointer that, - bool disable, + ffi.Pointer that, ) { - return _wire_RequestBuilder_always_disable_output_substitution( + return _wire_Enroller_subdirectory( port_, that, - disable, ); } - late final _wire_RequestBuilder_always_disable_output_substitutionPtr = _lookup< + late final _wire_Enroller_subdirectoryPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer, ffi.Bool)>>( - 'frbgen_payjoin_flutter_wire_RequestBuilder_always_disable_output_substitution'); - late final _wire_RequestBuilder_always_disable_output_substitution = - _wire_RequestBuilder_always_disable_output_substitutionPtr.asFunction< - void Function(int, ffi.Pointer, bool)>(); + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Enroller_subdirectory'); + late final _wire_Enroller_subdirectory = _wire_Enroller_subdirectoryPtr + .asFunction)>(); - void wire_RequestBuilder_build_non_incentivizing( + void wire_Headers_from_vec( int port_, - ffi.Pointer that, + ffi.Pointer body, ) { - return _wire_RequestBuilder_build_non_incentivizing( + return _wire_Headers_from_vec( port_, - that, + body, ); } - late final _wire_RequestBuilder_build_non_incentivizingPtr = _lookup< + late final _wire_Headers_from_vecPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_RequestBuilder_build_non_incentivizing'); - late final _wire_RequestBuilder_build_non_incentivizing = - _wire_RequestBuilder_build_non_incentivizingPtr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Headers_from_vec'); + late final _wire_Headers_from_vec = _wire_Headers_from_vecPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_RequestBuilder_build_recommended( + void wire_MaybeInputsOwned_check_inputs_not_owned( int port_, - ffi.Pointer that, - int min_fee_rate, + ffi.Pointer that, + ffi.Pointer is_owned, ) { - return _wire_RequestBuilder_build_recommended( + return _wire_MaybeInputsOwned_check_inputs_not_owned( port_, that, - min_fee_rate, + is_owned, ); } - late final _wire_RequestBuilder_build_recommendedPtr = _lookup< + late final _wire_MaybeInputsOwned_check_inputs_not_ownedPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, - ffi.Pointer, ffi.Uint64)>>( - 'frbgen_payjoin_flutter_wire_RequestBuilder_build_recommended'); - late final _wire_RequestBuilder_build_recommended = - _wire_RequestBuilder_build_recommendedPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_MaybeInputsOwned_check_inputs_not_owned'); + late final _wire_MaybeInputsOwned_check_inputs_not_owned = + _wire_MaybeInputsOwned_check_inputs_not_ownedPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - void wire_RequestBuilder_build_with_additional_fee( + void wire_MaybeInputsSeen_check_no_inputs_seen_before( int port_, - ffi.Pointer that, - int max_fee_contribution, - ffi.Pointer change_index, - int min_fee_rate, - bool clamp_fee_contribution, + ffi.Pointer that, + ffi.Pointer is_known, ) { - return _wire_RequestBuilder_build_with_additional_fee( + return _wire_MaybeInputsSeen_check_no_inputs_seen_before( port_, that, - max_fee_contribution, - change_index, - min_fee_rate, - clamp_fee_contribution, + is_known, ); } - late final _wire_RequestBuilder_build_with_additional_feePtr = _lookup< + late final _wire_MaybeInputsSeen_check_no_inputs_seen_beforePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Uint64, - ffi.Pointer, - ffi.Uint64, - ffi.Bool)>>( - 'frbgen_payjoin_flutter_wire_RequestBuilder_build_with_additional_fee'); - late final _wire_RequestBuilder_build_with_additional_fee = - _wire_RequestBuilder_build_with_additional_feePtr.asFunction< - void Function(int, ffi.Pointer, int, - ffi.Pointer, int, bool)>(); + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_MaybeInputsSeen_check_no_inputs_seen_before'); + late final _wire_MaybeInputsSeen_check_no_inputs_seen_before = + _wire_MaybeInputsSeen_check_no_inputs_seen_beforePtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - void wire_RequestBuilder_from_psbt_and_uri( + void wire_MaybeMixedInputScripts_check_no_mixed_input_scripts( int port_, - ffi.Pointer psbt_base64, - ffi.Pointer uri, + ffi.Pointer that, ) { - return _wire_RequestBuilder_from_psbt_and_uri( + return _wire_MaybeMixedInputScripts_check_no_mixed_input_scripts( port_, - psbt_base64, - uri, + that, ); } - late final _wire_RequestBuilder_from_psbt_and_uriPtr = _lookup< + late final _wire_MaybeMixedInputScripts_check_no_mixed_input_scriptsPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_RequestBuilder_from_psbt_and_uri'); - late final _wire_RequestBuilder_from_psbt_and_uri = - _wire_RequestBuilder_from_psbt_and_uriPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_MaybeMixedInputScripts_check_no_mixed_input_scripts'); + late final _wire_MaybeMixedInputScripts_check_no_mixed_input_scripts = + _wire_MaybeMixedInputScripts_check_no_mixed_input_scriptsPtr.asFunction< + void Function( + int, ffi.Pointer)>(); - void wire_RequestBuilder_new( + void wire_OutputsUnknown_identify_receiver_outputs( int port_, + ffi.Pointer that, + ffi.Pointer is_receiver_output, ) { - return _wire_RequestBuilder_new( + return _wire_OutputsUnknown_identify_receiver_outputs( port_, + that, + is_receiver_output, ); } - late final _wire_RequestBuilder_newPtr = - _lookup>( - 'frbgen_payjoin_flutter_wire_RequestBuilder_new'); - late final _wire_RequestBuilder_new = - _wire_RequestBuilder_newPtr.asFunction(); + late final _wire_OutputsUnknown_identify_receiver_outputsPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_OutputsUnknown_identify_receiver_outputs'); + late final _wire_OutputsUnknown_identify_receiver_outputs = + _wire_OutputsUnknown_identify_receiver_outputsPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - void wire_RequestContext_extract_v1( + void wire_PayjoinProposal_is_output_substitution_disabled( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_RequestContext_extract_v1( + return _wire_PayjoinProposal_is_output_substitution_disabled( port_, that, ); } - late final _wire_RequestContext_extract_v1Ptr = _lookup< + late final _wire_PayjoinProposal_is_output_substitution_disabledPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_RequestContext_extract_v1'); - late final _wire_RequestContext_extract_v1 = - _wire_RequestContext_extract_v1Ptr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_PayjoinProposal_is_output_substitution_disabled'); + late final _wire_PayjoinProposal_is_output_substitution_disabled = + _wire_PayjoinProposal_is_output_substitution_disabledPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_RequestContext_extract_v2( + void wire_PayjoinProposal_owned_vouts( int port_, - ffi.Pointer that, - ffi.Pointer ohttp_proxy_url, + ffi.Pointer that, ) { - return _wire_RequestContext_extract_v2( + return _wire_PayjoinProposal_owned_vouts( port_, that, - ohttp_proxy_url, ); } - late final _wire_RequestContext_extract_v2Ptr = _lookup< + late final _wire_PayjoinProposal_owned_voutsPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_RequestContext_extract_v2'); - late final _wire_RequestContext_extract_v2 = - _wire_RequestContext_extract_v2Ptr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_PayjoinProposal_owned_vouts'); + late final _wire_PayjoinProposal_owned_vouts = + _wire_PayjoinProposal_owned_voutsPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_Uri_address( + void wire_PayjoinProposal_psbt( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_Uri_address( + return _wire_PayjoinProposal_psbt( port_, that, ); } - late final _wire_Uri_addressPtr = _lookup< + late final _wire_PayjoinProposal_psbtPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_Uri_address'); - late final _wire_Uri_address = _wire_Uri_addressPtr - .asFunction)>(); + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_PayjoinProposal_psbt'); + late final _wire_PayjoinProposal_psbt = _wire_PayjoinProposal_psbtPtr + .asFunction)>(); - void wire_Uri_amount( + void wire_PayjoinProposal_utxos_to_be_locked( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_Uri_amount( + return _wire_PayjoinProposal_utxos_to_be_locked( port_, that, ); } - late final _wire_Uri_amountPtr = _lookup< + late final _wire_PayjoinProposal_utxos_to_be_lockedPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_Uri_amount'); - late final _wire_Uri_amount = _wire_Uri_amountPtr - .asFunction)>(); + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_PayjoinProposal_utxos_to_be_locked'); + late final _wire_PayjoinProposal_utxos_to_be_locked = + _wire_PayjoinProposal_utxos_to_be_lockedPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_Uri_from_str( + void wire_ProvisionalProposal_contribute_non_witness_input( int port_, - ffi.Pointer uri, + ffi.Pointer that, + ffi.Pointer tx, + ffi.Pointer outpoint, ) { - return _wire_Uri_from_str( + return _wire_ProvisionalProposal_contribute_non_witness_input( port_, - uri, + that, + tx, + outpoint, ); } - late final _wire_Uri_from_strPtr = _lookup< + late final _wire_ProvisionalProposal_contribute_non_witness_inputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_Uri_from_str'); - late final _wire_Uri_from_str = _wire_Uri_from_strPtr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_ProvisionalProposal_contribute_non_witness_input'); + late final _wire_ProvisionalProposal_contribute_non_witness_input = + _wire_ProvisionalProposal_contribute_non_witness_inputPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire_Url_new( + void wire_ProvisionalProposal_contribute_witness_input( int port_, - ffi.Pointer input, + ffi.Pointer that, + ffi.Pointer txo, + ffi.Pointer outpoint, ) { - return _wire_Url_new( + return _wire_ProvisionalProposal_contribute_witness_input( port_, - input, + that, + txo, + outpoint, ); } - late final _wire_Url_newPtr = _lookup< + late final _wire_ProvisionalProposal_contribute_witness_inputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_Url_new'); - late final _wire_Url_new = _wire_Url_newPtr.asFunction< - void Function(int, ffi.Pointer)>(); - - void wire_Url_query( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_ProvisionalProposal_contribute_witness_input'); + late final _wire_ProvisionalProposal_contribute_witness_input = + _wire_ProvisionalProposal_contribute_witness_inputPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void wire_ProvisionalProposal_finalize_proposal( int port_, - ffi.Pointer that, + ffi.Pointer that, + ffi.Pointer process_psbt, + ffi.Pointer min_feerate_sat_per_vb, ) { - return _wire_Url_query( + return _wire_ProvisionalProposal_finalize_proposal( port_, that, + process_psbt, + min_feerate_sat_per_vb, ); } - late final _wire_Url_queryPtr = _lookup< + late final _wire_ProvisionalProposal_finalize_proposalPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_Url_query'); - late final _wire_Url_query = _wire_Url_queryPtr - .asFunction)>(); - - void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - ffi.Pointer ptr, + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_ProvisionalProposal_finalize_proposal'); + late final _wire_ProvisionalProposal_finalize_proposal = + _wire_ProvisionalProposal_finalize_proposalPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void wire_ProvisionalProposal_substitute_output_address( + int port_, + ffi.Pointer that, + ffi.Pointer address, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - ptr, + return _wire_ProvisionalProposal_substitute_output_address( + port_, + that, + address, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr = - _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned'); - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned = - _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr - .asFunction)>(); + late final _wire_ProvisionalProposal_substitute_output_addressPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_ProvisionalProposal_substitute_output_address'); + late final _wire_ProvisionalProposal_substitute_output_address = + _wire_ProvisionalProposal_substitute_output_addressPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - ffi.Pointer ptr, + void wire_ProvisionalProposal_try_preserving_privacy( + int port_, + ffi.Pointer that, + ffi.Pointer candidate_inputs, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - ptr, + return _wire_ProvisionalProposal_try_preserving_privacy( + port_, + that, + candidate_inputs, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr = - _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned'); - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned = - _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr - .asFunction)>(); - - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - ffi.Pointer ptr, + late final _wire_ProvisionalProposal_try_preserving_privacyPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_ProvisionalProposal_try_preserving_privacy'); + late final _wire_ProvisionalProposal_try_preserving_privacy = + _wire_ProvisionalProposal_try_preserving_privacyPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_UncheckedProposal_assume_interactive_receiver( + int port_, + ffi.Pointer that, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - ptr, + return _wire_UncheckedProposal_assume_interactive_receiver( + port_, + that, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr = - _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1'); - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1 = - _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr - .asFunction)>(); + late final _wire_UncheckedProposal_assume_interactive_receiverPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_UncheckedProposal_assume_interactive_receiver'); + late final _wire_UncheckedProposal_assume_interactive_receiver = + _wire_UncheckedProposal_assume_interactive_receiverPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - ffi.Pointer ptr, + void wire_UncheckedProposal_check_broadcast_suitability( + int port_, + ffi.Pointer that, + ffi.Pointer min_fee_rate, + ffi.Pointer can_broadcast, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - ptr, + return _wire_UncheckedProposal_check_broadcast_suitability( + port_, + that, + min_fee_rate, + can_broadcast, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr = - _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1'); - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1 = - _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr - .asFunction)>(); + late final _wire_UncheckedProposal_check_broadcast_suitabilityPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_UncheckedProposal_check_broadcast_suitability'); + late final _wire_UncheckedProposal_check_broadcast_suitability = + _wire_UncheckedProposal_check_broadcast_suitabilityPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ffi.Pointer ptr, + void wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + int port_, + ffi.Pointer that, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ptr, + return _wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + port_, + that, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr = - _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder'); - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder = - _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr - .asFunction)>(); + late final _wire_UncheckedProposal_extract_tx_to_schedule_broadcastPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_UncheckedProposal_extract_tx_to_schedule_broadcast'); + late final _wire_UncheckedProposal_extract_tx_to_schedule_broadcast = + _wire_UncheckedProposal_extract_tx_to_schedule_broadcastPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ffi.Pointer ptr, + void wire_UncheckedProposal_from_request( + int port_, + ffi.Pointer body, + ffi.Pointer query, + ffi.Pointer headers, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ptr, + return _wire_UncheckedProposal_from_request( + port_, + body, + query, + headers, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr = + late final _wire_UncheckedProposal_from_requestPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_UncheckedProposal_from_request'); + late final _wire_UncheckedProposal_from_request = + _wire_UncheckedProposal_from_requestPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void wire_V2MaybeInputsOwned_check_inputs_not_owned( + int port_, + ffi.Pointer that, + ffi.Pointer is_owned, + ) { + return _wire_V2MaybeInputsOwned_check_inputs_not_owned( + port_, + that, + is_owned, + ); + } + + late final _wire_V2MaybeInputsOwned_check_inputs_not_ownedPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2MaybeInputsOwned_check_inputs_not_owned'); + late final _wire_V2MaybeInputsOwned_check_inputs_not_owned = + _wire_V2MaybeInputsOwned_check_inputs_not_ownedPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_V2MaybeInputsSeen_check_no_inputs_seen_before( + int port_, + ffi.Pointer that, + ffi.Pointer is_known, + ) { + return _wire_V2MaybeInputsSeen_check_no_inputs_seen_before( + port_, + that, + is_known, + ); + } + + late final _wire_V2MaybeInputsSeen_check_no_inputs_seen_beforePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2MaybeInputsSeen_check_no_inputs_seen_before'); + late final _wire_V2MaybeInputsSeen_check_no_inputs_seen_before = + _wire_V2MaybeInputsSeen_check_no_inputs_seen_beforePtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts( + int port_, + ffi.Pointer that, + ) { + return _wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts( + port_, + that, + ); + } + + late final _wire_V2MaybeMixedInputScripts_check_no_mixed_input_scriptsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts'); + late final _wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts = + _wire_V2MaybeMixedInputScripts_check_no_mixed_input_scriptsPtr.asFunction< + void Function( + int, ffi.Pointer)>(); + + void wire_V2OutputsUnknown_identify_receiver_outputs( + int port_, + ffi.Pointer that, + ffi.Pointer is_receiver_output, + ) { + return _wire_V2OutputsUnknown_identify_receiver_outputs( + port_, + that, + is_receiver_output, + ); + } + + late final _wire_V2OutputsUnknown_identify_receiver_outputsPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2OutputsUnknown_identify_receiver_outputs'); + late final _wire_V2OutputsUnknown_identify_receiver_outputs = + _wire_V2OutputsUnknown_identify_receiver_outputsPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_V2PayjoinProposal_deserialize_res( + int port_, + ffi.Pointer that, + ffi.Pointer res, + ffi.Pointer ohttp_context, + ) { + return _wire_V2PayjoinProposal_deserialize_res( + port_, + that, + res, + ohttp_context, + ); + } + + late final _wire_V2PayjoinProposal_deserialize_resPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2PayjoinProposal_deserialize_res'); + late final _wire_V2PayjoinProposal_deserialize_res = + _wire_V2PayjoinProposal_deserialize_resPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void wire_V2PayjoinProposal_extract_v1_req( + int port_, + ffi.Pointer that, + ) { + return _wire_V2PayjoinProposal_extract_v1_req( + port_, + that, + ); + } + + late final _wire_V2PayjoinProposal_extract_v1_reqPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2PayjoinProposal_extract_v1_req'); + late final _wire_V2PayjoinProposal_extract_v1_req = + _wire_V2PayjoinProposal_extract_v1_reqPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_V2PayjoinProposal_extract_v2_req( + int port_, + ffi.Pointer that, + ) { + return _wire_V2PayjoinProposal_extract_v2_req( + port_, + that, + ); + } + + late final _wire_V2PayjoinProposal_extract_v2_reqPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2PayjoinProposal_extract_v2_req'); + late final _wire_V2PayjoinProposal_extract_v2_req = + _wire_V2PayjoinProposal_extract_v2_reqPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_V2PayjoinProposal_is_output_substitution_disabled( + int port_, + ffi.Pointer that, + ) { + return _wire_V2PayjoinProposal_is_output_substitution_disabled( + port_, + that, + ); + } + + late final _wire_V2PayjoinProposal_is_output_substitution_disabledPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2PayjoinProposal_is_output_substitution_disabled'); + late final _wire_V2PayjoinProposal_is_output_substitution_disabled = + _wire_V2PayjoinProposal_is_output_substitution_disabledPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_V2PayjoinProposal_owned_vouts( + int port_, + ffi.Pointer that, + ) { + return _wire_V2PayjoinProposal_owned_vouts( + port_, + that, + ); + } + + late final _wire_V2PayjoinProposal_owned_voutsPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2PayjoinProposal_owned_vouts'); + late final _wire_V2PayjoinProposal_owned_vouts = + _wire_V2PayjoinProposal_owned_voutsPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_V2PayjoinProposal_psbt( + int port_, + ffi.Pointer that, + ) { + return _wire_V2PayjoinProposal_psbt( + port_, + that, + ); + } + + late final _wire_V2PayjoinProposal_psbtPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2PayjoinProposal_psbt'); + late final _wire_V2PayjoinProposal_psbt = + _wire_V2PayjoinProposal_psbtPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_V2PayjoinProposal_utxos_to_be_locked( + int port_, + ffi.Pointer that, + ) { + return _wire_V2PayjoinProposal_utxos_to_be_locked( + port_, + that, + ); + } + + late final _wire_V2PayjoinProposal_utxos_to_be_lockedPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2PayjoinProposal_utxos_to_be_locked'); + late final _wire_V2PayjoinProposal_utxos_to_be_locked = + _wire_V2PayjoinProposal_utxos_to_be_lockedPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_V2ProvisionalProposal_contribute_non_witness_input( + int port_, + ffi.Pointer that, + ffi.Pointer tx, + ffi.Pointer outpoint, + ) { + return _wire_V2ProvisionalProposal_contribute_non_witness_input( + port_, + that, + tx, + outpoint, + ); + } + + late final _wire_V2ProvisionalProposal_contribute_non_witness_inputPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2ProvisionalProposal_contribute_non_witness_input'); + late final _wire_V2ProvisionalProposal_contribute_non_witness_input = + _wire_V2ProvisionalProposal_contribute_non_witness_inputPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void wire_V2ProvisionalProposal_contribute_witness_input( + int port_, + ffi.Pointer that, + ffi.Pointer txo, + ffi.Pointer outpoint, + ) { + return _wire_V2ProvisionalProposal_contribute_witness_input( + port_, + that, + txo, + outpoint, + ); + } + + late final _wire_V2ProvisionalProposal_contribute_witness_inputPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2ProvisionalProposal_contribute_witness_input'); + late final _wire_V2ProvisionalProposal_contribute_witness_input = + _wire_V2ProvisionalProposal_contribute_witness_inputPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void wire_V2ProvisionalProposal_finalize_proposal( + int port_, + ffi.Pointer that, + ffi.Pointer process_psbt, + ffi.Pointer min_feerate_sat_per_vb, + ) { + return _wire_V2ProvisionalProposal_finalize_proposal( + port_, + that, + process_psbt, + min_feerate_sat_per_vb, + ); + } + + late final _wire_V2ProvisionalProposal_finalize_proposalPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2ProvisionalProposal_finalize_proposal'); + late final _wire_V2ProvisionalProposal_finalize_proposal = + _wire_V2ProvisionalProposal_finalize_proposalPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void wire_V2ProvisionalProposal_substitute_output_address( + int port_, + ffi.Pointer that, + ffi.Pointer address, + ) { + return _wire_V2ProvisionalProposal_substitute_output_address( + port_, + that, + address, + ); + } + + late final _wire_V2ProvisionalProposal_substitute_output_addressPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2ProvisionalProposal_substitute_output_address'); + late final _wire_V2ProvisionalProposal_substitute_output_address = + _wire_V2ProvisionalProposal_substitute_output_addressPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_V2ProvisionalProposal_try_preserving_privacy( + int port_, + ffi.Pointer that, + ffi.Pointer candidate_inputs, + ) { + return _wire_V2ProvisionalProposal_try_preserving_privacy( + port_, + that, + candidate_inputs, + ); + } + + late final _wire_V2ProvisionalProposal_try_preserving_privacyPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2ProvisionalProposal_try_preserving_privacy'); + late final _wire_V2ProvisionalProposal_try_preserving_privacy = + _wire_V2ProvisionalProposal_try_preserving_privacyPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_V2UncheckedProposal_assume_interactive_receiver( + int port_, + ffi.Pointer that, + ) { + return _wire_V2UncheckedProposal_assume_interactive_receiver( + port_, + that, + ); + } + + late final _wire_V2UncheckedProposal_assume_interactive_receiverPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2UncheckedProposal_assume_interactive_receiver'); + late final _wire_V2UncheckedProposal_assume_interactive_receiver = + _wire_V2UncheckedProposal_assume_interactive_receiverPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_V2UncheckedProposal_check_broadcast_suitability( + int port_, + ffi.Pointer that, + ffi.Pointer min_fee_rate, + ffi.Pointer can_broadcast, + ) { + return _wire_V2UncheckedProposal_check_broadcast_suitability( + port_, + that, + min_fee_rate, + can_broadcast, + ); + } + + late final _wire_V2UncheckedProposal_check_broadcast_suitabilityPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2UncheckedProposal_check_broadcast_suitability'); + late final _wire_V2UncheckedProposal_check_broadcast_suitability = + _wire_V2UncheckedProposal_check_broadcast_suitabilityPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast( + int port_, + ffi.Pointer that, + ) { + return _wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast( + port_, + that, + ); + } + + late final _wire_V2UncheckedProposal_extract_tx_to_schedule_broadcastPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast'); + late final _wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast = + _wire_V2UncheckedProposal_extract_tx_to_schedule_broadcastPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_ContextV1_process_response( + int port_, + ffi.Pointer that, + ffi.Pointer response, + ) { + return _wire_ContextV1_process_response( + port_, + that, + response, + ); + } + + late final _wire_ContextV1_process_responsePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_ContextV1_process_response'); + late final _wire_ContextV1_process_response = + _wire_ContextV1_process_responsePtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_ContextV2_process_response( + int port_, + ffi.Pointer that, + ffi.Pointer response, + ) { + return _wire_ContextV2_process_response( + port_, + that, + response, + ); + } + + late final _wire_ContextV2_process_responsePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_ContextV2_process_response'); + late final _wire_ContextV2_process_response = + _wire_ContextV2_process_responsePtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_RequestBuilder_always_disable_output_substitution( + int port_, + ffi.Pointer that, + bool disable, + ) { + return _wire_RequestBuilder_always_disable_output_substitution( + port_, + that, + disable, + ); + } + + late final _wire_RequestBuilder_always_disable_output_substitutionPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer, ffi.Bool)>>( + 'frbgen_payjoin_flutter_wire_RequestBuilder_always_disable_output_substitution'); + late final _wire_RequestBuilder_always_disable_output_substitution = + _wire_RequestBuilder_always_disable_output_substitutionPtr.asFunction< + void Function(int, ffi.Pointer, bool)>(); + + void wire_RequestBuilder_build_non_incentivizing( + int port_, + ffi.Pointer that, + ) { + return _wire_RequestBuilder_build_non_incentivizing( + port_, + that, + ); + } + + late final _wire_RequestBuilder_build_non_incentivizingPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_RequestBuilder_build_non_incentivizing'); + late final _wire_RequestBuilder_build_non_incentivizing = + _wire_RequestBuilder_build_non_incentivizingPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_RequestBuilder_build_recommended( + int port_, + ffi.Pointer that, + int min_fee_rate, + ) { + return _wire_RequestBuilder_build_recommended( + port_, + that, + min_fee_rate, + ); + } + + late final _wire_RequestBuilder_build_recommendedPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Uint64)>>( + 'frbgen_payjoin_flutter_wire_RequestBuilder_build_recommended'); + late final _wire_RequestBuilder_build_recommended = + _wire_RequestBuilder_build_recommendedPtr.asFunction< + void Function(int, ffi.Pointer, int)>(); + + void wire_RequestBuilder_build_with_additional_fee( + int port_, + ffi.Pointer that, + int max_fee_contribution, + ffi.Pointer change_index, + int min_fee_rate, + bool clamp_fee_contribution, + ) { + return _wire_RequestBuilder_build_with_additional_fee( + port_, + that, + max_fee_contribution, + change_index, + min_fee_rate, + clamp_fee_contribution, + ); + } + + late final _wire_RequestBuilder_build_with_additional_feePtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Uint64, + ffi.Pointer, + ffi.Uint64, + ffi.Bool)>>( + 'frbgen_payjoin_flutter_wire_RequestBuilder_build_with_additional_fee'); + late final _wire_RequestBuilder_build_with_additional_fee = + _wire_RequestBuilder_build_with_additional_feePtr.asFunction< + void Function(int, ffi.Pointer, int, + ffi.Pointer, int, bool)>(); + + void wire_RequestBuilder_from_psbt_and_uri( + int port_, + ffi.Pointer psbt_base64, + ffi.Pointer uri, + ) { + return _wire_RequestBuilder_from_psbt_and_uri( + port_, + psbt_base64, + uri, + ); + } + + late final _wire_RequestBuilder_from_psbt_and_uriPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_RequestBuilder_from_psbt_and_uri'); + late final _wire_RequestBuilder_from_psbt_and_uri = + _wire_RequestBuilder_from_psbt_and_uriPtr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_RequestBuilder_new( + int port_, + ) { + return _wire_RequestBuilder_new( + port_, + ); + } + + late final _wire_RequestBuilder_newPtr = + _lookup>( + 'frbgen_payjoin_flutter_wire_RequestBuilder_new'); + late final _wire_RequestBuilder_new = + _wire_RequestBuilder_newPtr.asFunction(); + + void wire_RequestContext_extract_v1( + int port_, + ffi.Pointer that, + ) { + return _wire_RequestContext_extract_v1( + port_, + that, + ); + } + + late final _wire_RequestContext_extract_v1Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_RequestContext_extract_v1'); + late final _wire_RequestContext_extract_v1 = + _wire_RequestContext_extract_v1Ptr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_RequestContext_extract_v2( + int port_, + ffi.Pointer that, + ffi.Pointer ohttp_proxy_url, + ) { + return _wire_RequestContext_extract_v2( + port_, + that, + ohttp_proxy_url, + ); + } + + late final _wire_RequestContext_extract_v2Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_RequestContext_extract_v2'); + late final _wire_RequestContext_extract_v2 = + _wire_RequestContext_extract_v2Ptr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire_Uri_address( + int port_, + ffi.Pointer that, + ) { + return _wire_Uri_address( + port_, + that, + ); + } + + late final _wire_Uri_addressPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Uri_address'); + late final _wire_Uri_address = _wire_Uri_addressPtr + .asFunction)>(); + + void wire_Uri_amount( + int port_, + ffi.Pointer that, + ) { + return _wire_Uri_amount( + port_, + that, + ); + } + + late final _wire_Uri_amountPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Uri_amount'); + late final _wire_Uri_amount = _wire_Uri_amountPtr + .asFunction)>(); + + void wire_Uri_from_str( + int port_, + ffi.Pointer uri, + ) { + return _wire_Uri_from_str( + port_, + uri, + ); + } + + late final _wire_Uri_from_strPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Uri_from_str'); + late final _wire_Uri_from_str = _wire_Uri_from_strPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_Url_new( + int port_, + ffi.Pointer input, + ) { + return _wire_Url_new( + port_, + input, + ); + } + + late final _wire_Url_newPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Url_new'); + late final _wire_Url_new = _wire_Url_newPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + void wire_Url_query( + int port_, + ffi.Pointer that, + ) { + return _wire_Url_query( + port_, + that, + ); + } + + late final _wire_Url_queryPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire_Url_query'); + late final _wire_Url_query = _wire_Url_queryPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeenPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeenPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeenPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeenPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScriptsPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScriptsPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScriptsPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScriptsPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknownPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknownPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknownPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknownPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposalPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposalPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposalPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposalPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposalPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposalPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2EnrolledPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2EnrolledPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2EnrolledPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2EnrolledPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwnedPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwnedPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwnedPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwnedPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeenPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeenPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeenPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeenPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScriptsPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScriptsPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScriptsPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScriptsPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknownPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknownPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknownPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknownPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposalPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposalPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposalPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposalPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposalPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposalPtr + .asFunction)>(); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1 = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr + .asFunction)>(); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1 = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr + .asFunction)>(); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2 = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr + .asFunction)>(); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2 = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr + .asFunction)>(); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr + .asFunction)>(); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr + .asFunction)>(); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl'); + late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl = + _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr + .asFunction)>(); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl'); + late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl = + _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponsePtr = + _lookup)>>( + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse'); + late final _rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse = + _rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponsePtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponsePtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder'); - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder = - _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse'); + late final _rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse = + _rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponsePtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwnedPtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext'); - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext = - _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwnedPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwnedPtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext'); - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext = - _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwnedPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr = + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeenPtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2'); - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2 = - _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeenPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr = + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeenPtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2'); - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2 = - _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeenPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + void + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri'); - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri = - _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + void + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri'); - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri = - _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + void rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2EnrollerPtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl'); - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl = - _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2EnrollerPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2EnrollerPtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl'); - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl = - _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2EnrollerPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal'); - late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal = - _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal'); - late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal = - _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr .asFunction)>(); + ffi.Pointer cst_new_box_autoadd_client_response() { + return _cst_new_box_autoadd_client_response(); + } + + late final _cst_new_box_autoadd_client_responsePtr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_client_response'); + late final _cst_new_box_autoadd_client_response = + _cst_new_box_autoadd_client_responsePtr + .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_context_v_1() { return _cst_new_box_autoadd_context_v_1(); } @@ -1669,6 +4535,26 @@ class PayjoinCoreWire implements BaseWire { _cst_new_box_autoadd_context_v_2Ptr .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_enrolled() { + return _cst_new_box_autoadd_enrolled(); + } + + late final _cst_new_box_autoadd_enrolledPtr = + _lookup Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_enrolled'); + late final _cst_new_box_autoadd_enrolled = _cst_new_box_autoadd_enrolledPtr + .asFunction Function()>(); + + ffi.Pointer cst_new_box_autoadd_enroller() { + return _cst_new_box_autoadd_enroller(); + } + + late final _cst_new_box_autoadd_enrollerPtr = + _lookup Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_enroller'); + late final _cst_new_box_autoadd_enroller = _cst_new_box_autoadd_enrollerPtr + .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_headers() { return _cst_new_box_autoadd_headers(); } @@ -1679,6 +4565,92 @@ class PayjoinCoreWire implements BaseWire { late final _cst_new_box_autoadd_headers = _cst_new_box_autoadd_headersPtr .asFunction Function()>(); + ffi.Pointer + cst_new_box_autoadd_maybe_inputs_owned() { + return _cst_new_box_autoadd_maybe_inputs_owned(); + } + + late final _cst_new_box_autoadd_maybe_inputs_ownedPtr = _lookup< + ffi + .NativeFunction Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_inputs_owned'); + late final _cst_new_box_autoadd_maybe_inputs_owned = + _cst_new_box_autoadd_maybe_inputs_ownedPtr + .asFunction Function()>(); + + ffi.Pointer + cst_new_box_autoadd_maybe_inputs_seen() { + return _cst_new_box_autoadd_maybe_inputs_seen(); + } + + late final _cst_new_box_autoadd_maybe_inputs_seenPtr = _lookup< + ffi + .NativeFunction Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_inputs_seen'); + late final _cst_new_box_autoadd_maybe_inputs_seen = + _cst_new_box_autoadd_maybe_inputs_seenPtr + .asFunction Function()>(); + + ffi.Pointer + cst_new_box_autoadd_maybe_mixed_input_scripts() { + return _cst_new_box_autoadd_maybe_mixed_input_scripts(); + } + + late final _cst_new_box_autoadd_maybe_mixed_input_scriptsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_mixed_input_scripts'); + late final _cst_new_box_autoadd_maybe_mixed_input_scripts = + _cst_new_box_autoadd_maybe_mixed_input_scriptsPtr.asFunction< + ffi.Pointer Function()>(); + + ffi.Pointer cst_new_box_autoadd_out_point() { + return _cst_new_box_autoadd_out_point(); + } + + late final _cst_new_box_autoadd_out_pointPtr = + _lookup Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_out_point'); + late final _cst_new_box_autoadd_out_point = _cst_new_box_autoadd_out_pointPtr + .asFunction Function()>(); + + ffi.Pointer cst_new_box_autoadd_outputs_unknown() { + return _cst_new_box_autoadd_outputs_unknown(); + } + + late final _cst_new_box_autoadd_outputs_unknownPtr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_outputs_unknown'); + late final _cst_new_box_autoadd_outputs_unknown = + _cst_new_box_autoadd_outputs_unknownPtr + .asFunction Function()>(); + + ffi.Pointer + cst_new_box_autoadd_payjoin_proposal() { + return _cst_new_box_autoadd_payjoin_proposal(); + } + + late final _cst_new_box_autoadd_payjoin_proposalPtr = _lookup< + ffi + .NativeFunction Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_payjoin_proposal'); + late final _cst_new_box_autoadd_payjoin_proposal = + _cst_new_box_autoadd_payjoin_proposalPtr + .asFunction Function()>(); + + ffi.Pointer + cst_new_box_autoadd_provisional_proposal() { + return _cst_new_box_autoadd_provisional_proposal(); + } + + late final _cst_new_box_autoadd_provisional_proposalPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_provisional_proposal'); + late final _cst_new_box_autoadd_provisional_proposal = + _cst_new_box_autoadd_provisional_proposalPtr + .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_request_builder() { return _cst_new_box_autoadd_request_builder(); } @@ -1701,6 +4673,16 @@ class PayjoinCoreWire implements BaseWire { _cst_new_box_autoadd_request_contextPtr .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_tx_out() { + return _cst_new_box_autoadd_tx_out(); + } + + late final _cst_new_box_autoadd_tx_outPtr = + _lookup Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_tx_out'); + late final _cst_new_box_autoadd_tx_out = _cst_new_box_autoadd_tx_outPtr + .asFunction Function()>(); + ffi.Pointer cst_new_box_autoadd_u_64( int value, ) { @@ -1762,6 +4744,127 @@ class PayjoinCoreWire implements BaseWire { late final _cst_new_box_autoadd_url = _cst_new_box_autoadd_urlPtr .asFunction Function()>(); + ffi.Pointer + cst_new_box_autoadd_v_2_maybe_inputs_owned() { + return _cst_new_box_autoadd_v_2_maybe_inputs_owned(); + } + + late final _cst_new_box_autoadd_v_2_maybe_inputs_ownedPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_inputs_owned'); + late final _cst_new_box_autoadd_v_2_maybe_inputs_owned = + _cst_new_box_autoadd_v_2_maybe_inputs_ownedPtr.asFunction< + ffi.Pointer Function()>(); + + ffi.Pointer + cst_new_box_autoadd_v_2_maybe_inputs_seen() { + return _cst_new_box_autoadd_v_2_maybe_inputs_seen(); + } + + late final _cst_new_box_autoadd_v_2_maybe_inputs_seenPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_inputs_seen'); + late final _cst_new_box_autoadd_v_2_maybe_inputs_seen = + _cst_new_box_autoadd_v_2_maybe_inputs_seenPtr + .asFunction Function()>(); + + ffi.Pointer + cst_new_box_autoadd_v_2_maybe_mixed_input_scripts() { + return _cst_new_box_autoadd_v_2_maybe_mixed_input_scripts(); + } + + late final _cst_new_box_autoadd_v_2_maybe_mixed_input_scriptsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_mixed_input_scripts'); + late final _cst_new_box_autoadd_v_2_maybe_mixed_input_scripts = + _cst_new_box_autoadd_v_2_maybe_mixed_input_scriptsPtr.asFunction< + ffi.Pointer Function()>(); + + ffi.Pointer + cst_new_box_autoadd_v_2_outputs_unknown() { + return _cst_new_box_autoadd_v_2_outputs_unknown(); + } + + late final _cst_new_box_autoadd_v_2_outputs_unknownPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_outputs_unknown'); + late final _cst_new_box_autoadd_v_2_outputs_unknown = + _cst_new_box_autoadd_v_2_outputs_unknownPtr + .asFunction Function()>(); + + ffi.Pointer + cst_new_box_autoadd_v_2_payjoin_proposal() { + return _cst_new_box_autoadd_v_2_payjoin_proposal(); + } + + late final _cst_new_box_autoadd_v_2_payjoin_proposalPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_payjoin_proposal'); + late final _cst_new_box_autoadd_v_2_payjoin_proposal = + _cst_new_box_autoadd_v_2_payjoin_proposalPtr + .asFunction Function()>(); + + ffi.Pointer + cst_new_box_autoadd_v_2_provisional_proposal() { + return _cst_new_box_autoadd_v_2_provisional_proposal(); + } + + late final _cst_new_box_autoadd_v_2_provisional_proposalPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_provisional_proposal'); + late final _cst_new_box_autoadd_v_2_provisional_proposal = + _cst_new_box_autoadd_v_2_provisional_proposalPtr.asFunction< + ffi.Pointer Function()>(); + + ffi.Pointer + cst_new_box_autoadd_v_2_unchecked_proposal() { + return _cst_new_box_autoadd_v_2_unchecked_proposal(); + } + + late final _cst_new_box_autoadd_v_2_unchecked_proposalPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_unchecked_proposal'); + late final _cst_new_box_autoadd_v_2_unchecked_proposal = + _cst_new_box_autoadd_v_2_unchecked_proposalPtr.asFunction< + ffi.Pointer Function()>(); + + ffi.Pointer cst_new_list_out_point( + int len, + ) { + return _cst_new_list_out_point( + len, + ); + } + + late final _cst_new_list_out_pointPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int32)>>('frbgen_payjoin_flutter_cst_new_list_out_point'); + late final _cst_new_list_out_point = _cst_new_list_out_pointPtr + .asFunction Function(int)>(); + + ffi.Pointer cst_new_list_prim_u_64_strict( + int len, + ) { + return _cst_new_list_prim_u_64_strict( + len, + ); + } + + late final _cst_new_list_prim_u_64_strictPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Int32)>>( + 'frbgen_payjoin_flutter_cst_new_list_prim_u_64_strict'); + late final _cst_new_list_prim_u_64_strict = _cst_new_list_prim_u_64_strictPtr + .asFunction Function(int)>(); + ffi.Pointer cst_new_list_prim_u_8_loose( int len, ) { @@ -1810,6 +4913,24 @@ class PayjoinCoreWire implements BaseWire { _cst_new_list_record_string_stringPtr.asFunction< ffi.Pointer Function(int)>(); + ffi.Pointer + cst_new_list_record_u_64_out_point( + int len, + ) { + return _cst_new_list_record_u_64_out_point( + len, + ); + } + + late final _cst_new_list_record_u_64_out_pointPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Int32)>>( + 'frbgen_payjoin_flutter_cst_new_list_record_u_64_out_point'); + late final _cst_new_list_record_u_64_out_point = + _cst_new_list_record_u_64_out_pointPtr.asFunction< + ffi.Pointer Function(int)>(); + int dummy_method_to_enforce_bundling() { return _dummy_method_to_enforce_bundling(); } @@ -1821,6 +4942,11 @@ class PayjoinCoreWire implements BaseWire { _dummy_method_to_enforce_bundlingPtr.asFunction(); } +final class wire_cst_enrolled extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + final class wire_cst_list_prim_u_8_loose extends ffi.Struct { external ffi.Pointer ptr; @@ -1828,7 +4954,12 @@ final class wire_cst_list_prim_u_8_loose extends ffi.Struct { external int len; } -final class wire_cst_unchecked_proposal extends ffi.Struct { +final class wire_cst_client_response extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_enroller extends ffi.Struct { @ffi.UintPtr() external int field0; } @@ -1840,6 +4971,69 @@ final class wire_cst_list_prim_u_8_strict extends ffi.Struct { external int len; } +final class wire_cst_maybe_inputs_owned extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_maybe_inputs_seen extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_maybe_mixed_input_scripts extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_outputs_unknown extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_payjoin_proposal extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_provisional_proposal extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_out_point extends ffi.Struct { + external ffi.Pointer txid; + + @ffi.Uint32() + external int vout; +} + +final class wire_cst_tx_out extends ffi.Struct { + @ffi.Uint64() + external int value; + + external ffi.Pointer script_pubkey; +} + +final class wire_cst_record_u_64_out_point extends ffi.Struct { + @ffi.Uint64() + external int field0; + + external wire_cst_out_point field1; +} + +final class wire_cst_list_record_u_64_out_point extends ffi.Struct { + external ffi.Pointer ptr; + + @ffi.Int32() + external int len; +} + +final class wire_cst_unchecked_proposal extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + final class wire_cst_record_string_string extends ffi.Struct { external ffi.Pointer field0; @@ -1857,6 +5051,41 @@ final class wire_cst_headers extends ffi.Struct { external ffi.Pointer field0; } +final class wire_cst_v_2_maybe_inputs_owned extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_v_2_maybe_inputs_seen extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_v_2_maybe_mixed_input_scripts extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_v_2_outputs_unknown extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_v_2_payjoin_proposal extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_v_2_provisional_proposal extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_v_2_unchecked_proposal extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + final class wire_cst_context_v_1 extends ffi.Struct { @ffi.UintPtr() external int field0; @@ -1887,9 +5116,18 @@ final class wire_cst_url extends ffi.Struct { external int field0; } -final class wire_cst_maybe_inputs_owned extends ffi.Struct { - @ffi.UintPtr() - external int field0; +final class wire_cst_list_out_point extends ffi.Struct { + external ffi.Pointer ptr; + + @ffi.Int32() + external int len; +} + +final class wire_cst_list_prim_u_64_strict extends ffi.Struct { + external ffi.Pointer ptr; + + @ffi.Int32() + external int len; } final class wire_cst_PayjoinError_InvalidAddress extends ffi.Struct { @@ -2020,3 +5258,9 @@ final class wire_cst_request_context_v_2 extends ffi.Struct { external wire_cst_context_v_2 context_v2; } + +final class wire_cst_request_response extends ffi.Struct { + external wire_cst_request request; + + external wire_cst_client_response client_response; +} diff --git a/lib/src/generated/frb_generated.web.dart b/lib/src/generated/frb_generated.web.dart index 762a1d3..c072fae 100644 --- a/lib/src/generated/frb_generated.web.dart +++ b/lib/src/generated/frb_generated.web.dart @@ -24,6 +24,54 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwnedPtr => wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeenPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScriptsPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknownPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposalPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposalPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2EnrolledPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwnedPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeenPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScriptsPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknownPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposalPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposalPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1ContextV1Ptr => wire .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1; @@ -48,25 +96,122 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrlPtr => wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_MutexOptionOhttpClientResponsePtr => wire + .rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcV2MaybeInputsOwnedPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_ArcV2MaybeInputsSeenPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposalPtr => wire.rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2EnrollerPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposalPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal; + + @protected + ArcV2MaybeInputsOwned + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + dynamic raw); + + @protected + ArcV2MaybeInputsSeen + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + dynamic raw); + + @protected + FutureOr Function(String) + dco_decode_DartFn_Inputs_String_Output_String(dynamic raw); + @protected FutureOr Function(Uint8List) dco_decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(dynamic raw); + @protected + FutureOr Function(OutPoint) + dco_decode_DartFn_Inputs_out_point_Output_bool(dynamic raw); + @protected Object dco_decode_DartOpaque(dynamic raw); @protected Map dco_decode_Map_String_String(dynamic raw); + @protected + Map dco_decode_Map_u_64_out_point(dynamic raw); + @protected ArcPayjoinFfiReceiveV1MaybeInputsOwned dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( dynamic raw); + @protected + ArcPayjoinFfiReceiveV1MaybeInputsSeen + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen(dynamic raw); + + @protected + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV1OutputsUnknown + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(dynamic raw); + + @protected + ArcPayjoinFfiReceiveV1PayjoinProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal(dynamic raw); + + @protected + ArcPayjoinFfiReceiveV1ProvisionalProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2Enrolled + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2OutputsUnknown + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2PayjoinProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + dynamic raw); + + @protected + ArcPayjoinFfiReceiveV2V2ProvisionalProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + dynamic raw); + @protected ArcPayjoinFfiSendV1ContextV1 dco_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(dynamic raw); @@ -89,31 +234,88 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected ArcPayjoinFfiUriUrl dco_decode_RustOpaque_Arcpayjoin_ffiuriUrl(dynamic raw); + @protected + MutexOptionOhttpClientResponse + dco_decode_RustOpaque_MutexOptionohttpClientResponse(dynamic raw); + + @protected + ArcV2MaybeInputsOwned + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + dynamic raw); + + @protected + ArcV2MaybeInputsSeen + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + dynamic raw); + @protected PayjoinFfiReceiveV1UncheckedProposal dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(dynamic raw); + @protected + PayjoinFfiReceiveV2Enroller + dco_decode_RustOpaque_payjoin_ffireceivev2Enroller(dynamic raw); + + @protected + PayjoinFfiReceiveV2V2UncheckedProposal + dco_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + dynamic raw); + @protected String dco_decode_String(dynamic raw); @protected bool dco_decode_bool(dynamic raw); + @protected + ClientResponse dco_decode_box_autoadd_client_response(dynamic raw); + @protected ContextV1 dco_decode_box_autoadd_context_v_1(dynamic raw); @protected ContextV2 dco_decode_box_autoadd_context_v_2(dynamic raw); + @protected + Enrolled dco_decode_box_autoadd_enrolled(dynamic raw); + + @protected + Enroller dco_decode_box_autoadd_enroller(dynamic raw); + @protected Headers dco_decode_box_autoadd_headers(dynamic raw); + @protected + MaybeInputsOwned dco_decode_box_autoadd_maybe_inputs_owned(dynamic raw); + + @protected + MaybeInputsSeen dco_decode_box_autoadd_maybe_inputs_seen(dynamic raw); + + @protected + MaybeMixedInputScripts dco_decode_box_autoadd_maybe_mixed_input_scripts( + dynamic raw); + + @protected + OutPoint dco_decode_box_autoadd_out_point(dynamic raw); + + @protected + OutputsUnknown dco_decode_box_autoadd_outputs_unknown(dynamic raw); + + @protected + PayjoinProposal dco_decode_box_autoadd_payjoin_proposal(dynamic raw); + + @protected + ProvisionalProposal dco_decode_box_autoadd_provisional_proposal(dynamic raw); + @protected RequestBuilder dco_decode_box_autoadd_request_builder(dynamic raw); @protected RequestContext dco_decode_box_autoadd_request_context(dynamic raw); + @protected + TxOut dco_decode_box_autoadd_tx_out(dynamic raw); + @protected int dco_decode_box_autoadd_u_64(dynamic raw); @@ -129,15 +331,54 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected Url dco_decode_box_autoadd_url(dynamic raw); + @protected + V2MaybeInputsOwned dco_decode_box_autoadd_v_2_maybe_inputs_owned(dynamic raw); + + @protected + V2MaybeInputsSeen dco_decode_box_autoadd_v_2_maybe_inputs_seen(dynamic raw); + + @protected + V2MaybeMixedInputScripts dco_decode_box_autoadd_v_2_maybe_mixed_input_scripts( + dynamic raw); + + @protected + V2OutputsUnknown dco_decode_box_autoadd_v_2_outputs_unknown(dynamic raw); + + @protected + V2PayjoinProposal dco_decode_box_autoadd_v_2_payjoin_proposal(dynamic raw); + + @protected + V2ProvisionalProposal dco_decode_box_autoadd_v_2_provisional_proposal( + dynamic raw); + + @protected + V2UncheckedProposal dco_decode_box_autoadd_v_2_unchecked_proposal( + dynamic raw); + + @protected + ClientResponse dco_decode_client_response(dynamic raw); + @protected ContextV1 dco_decode_context_v_1(dynamic raw); @protected ContextV2 dco_decode_context_v_2(dynamic raw); + @protected + Enrolled dco_decode_enrolled(dynamic raw); + + @protected + Enroller dco_decode_enroller(dynamic raw); + @protected Headers dco_decode_headers(dynamic raw); + @protected + List dco_decode_list_out_point(dynamic raw); + + @protected + Uint64List dco_decode_list_prim_u_64_strict(dynamic raw); + @protected List dco_decode_list_prim_u_8_loose(dynamic raw); @@ -147,9 +388,18 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected List<(String, String)> dco_decode_list_record_string_string(dynamic raw); + @protected + List<(int, OutPoint)> dco_decode_list_record_u_64_out_point(dynamic raw); + @protected MaybeInputsOwned dco_decode_maybe_inputs_owned(dynamic raw); + @protected + MaybeInputsSeen dco_decode_maybe_inputs_seen(dynamic raw); + + @protected + MaybeMixedInputScripts dco_decode_maybe_mixed_input_scripts(dynamic raw); + @protected String? dco_decode_opt_String(dynamic raw); @@ -159,12 +409,31 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int? dco_decode_opt_box_autoadd_u_8(dynamic raw); + @protected + V2UncheckedProposal? dco_decode_opt_box_autoadd_v_2_unchecked_proposal( + dynamic raw); + + @protected + OutPoint dco_decode_out_point(dynamic raw); + + @protected + OutputsUnknown dco_decode_outputs_unknown(dynamic raw); + @protected PayjoinError dco_decode_payjoin_error(dynamic raw); + @protected + PayjoinProposal dco_decode_payjoin_proposal(dynamic raw); + + @protected + ProvisionalProposal dco_decode_provisional_proposal(dynamic raw); + @protected (String, String) dco_decode_record_string_string(dynamic raw); + @protected + (int, OutPoint) dco_decode_record_u_64_out_point(dynamic raw); + @protected Request dco_decode_request(dynamic raw); @@ -180,6 +449,15 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected RequestContextV2 dco_decode_request_context_v_2(dynamic raw); + @protected + RequestResponse dco_decode_request_response(dynamic raw); + + @protected + TxOut dco_decode_tx_out(dynamic raw); + + @protected + int dco_decode_u_32(dynamic raw); + @protected int dco_decode_u_64(dynamic raw); @@ -201,6 +479,38 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int dco_decode_usize(dynamic raw); + @protected + V2MaybeInputsOwned dco_decode_v_2_maybe_inputs_owned(dynamic raw); + + @protected + V2MaybeInputsSeen dco_decode_v_2_maybe_inputs_seen(dynamic raw); + + @protected + V2MaybeMixedInputScripts dco_decode_v_2_maybe_mixed_input_scripts( + dynamic raw); + + @protected + V2OutputsUnknown dco_decode_v_2_outputs_unknown(dynamic raw); + + @protected + V2PayjoinProposal dco_decode_v_2_payjoin_proposal(dynamic raw); + + @protected + V2ProvisionalProposal dco_decode_v_2_provisional_proposal(dynamic raw); + + @protected + V2UncheckedProposal dco_decode_v_2_unchecked_proposal(dynamic raw); + + @protected + ArcV2MaybeInputsOwned + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + SseDeserializer deserializer); + + @protected + ArcV2MaybeInputsSeen + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + SseDeserializer deserializer); + @protected Object sse_decode_DartOpaque(SseDeserializer deserializer); @@ -208,11 +518,75 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { Map sse_decode_Map_String_String( SseDeserializer deserializer); + @protected + Map sse_decode_Map_u_64_out_point( + SseDeserializer deserializer); + @protected ArcPayjoinFfiReceiveV1MaybeInputsOwned sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( SseDeserializer deserializer); + @protected + ArcPayjoinFfiReceiveV1MaybeInputsSeen + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV1OutputsUnknown + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV1PayjoinProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV1ProvisionalProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2Enrolled + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2OutputsUnknown + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2PayjoinProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + SseDeserializer deserializer); + + @protected + ArcPayjoinFfiReceiveV2V2ProvisionalProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + SseDeserializer deserializer); + @protected ArcPayjoinFfiSendV1ContextV1 sse_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( @@ -241,59 +615,167 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { ArcPayjoinFfiUriUrl sse_decode_RustOpaque_Arcpayjoin_ffiuriUrl( SseDeserializer deserializer); + @protected + MutexOptionOhttpClientResponse + sse_decode_RustOpaque_MutexOptionohttpClientResponse( + SseDeserializer deserializer); + + @protected + ArcV2MaybeInputsOwned + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + SseDeserializer deserializer); + + @protected + ArcV2MaybeInputsSeen + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + SseDeserializer deserializer); + @protected PayjoinFfiReceiveV1UncheckedProposal sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( SseDeserializer deserializer); + @protected + PayjoinFfiReceiveV2Enroller + sse_decode_RustOpaque_payjoin_ffireceivev2Enroller( + SseDeserializer deserializer); + + @protected + PayjoinFfiReceiveV2V2UncheckedProposal + sse_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + SseDeserializer deserializer); + @protected String sse_decode_String(SseDeserializer deserializer); @protected bool sse_decode_bool(SseDeserializer deserializer); + @protected + ClientResponse sse_decode_box_autoadd_client_response( + SseDeserializer deserializer); + @protected ContextV1 sse_decode_box_autoadd_context_v_1(SseDeserializer deserializer); @protected ContextV2 sse_decode_box_autoadd_context_v_2(SseDeserializer deserializer); + @protected + Enrolled sse_decode_box_autoadd_enrolled(SseDeserializer deserializer); + + @protected + Enroller sse_decode_box_autoadd_enroller(SseDeserializer deserializer); + @protected Headers sse_decode_box_autoadd_headers(SseDeserializer deserializer); @protected - RequestBuilder sse_decode_box_autoadd_request_builder( + MaybeInputsOwned sse_decode_box_autoadd_maybe_inputs_owned( SseDeserializer deserializer); @protected - RequestContext sse_decode_box_autoadd_request_context( + MaybeInputsSeen sse_decode_box_autoadd_maybe_inputs_seen( SseDeserializer deserializer); @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer); + MaybeMixedInputScripts sse_decode_box_autoadd_maybe_mixed_input_scripts( + SseDeserializer deserializer); @protected - int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); + OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer); @protected - UncheckedProposal sse_decode_box_autoadd_unchecked_proposal( + OutputsUnknown sse_decode_box_autoadd_outputs_unknown( SseDeserializer deserializer); @protected - Uri sse_decode_box_autoadd_uri(SseDeserializer deserializer); + PayjoinProposal sse_decode_box_autoadd_payjoin_proposal( + SseDeserializer deserializer); @protected - Url sse_decode_box_autoadd_url(SseDeserializer deserializer); + ProvisionalProposal sse_decode_box_autoadd_provisional_proposal( + SseDeserializer deserializer); @protected - ContextV1 sse_decode_context_v_1(SseDeserializer deserializer); + RequestBuilder sse_decode_box_autoadd_request_builder( + SseDeserializer deserializer); @protected - ContextV2 sse_decode_context_v_2(SseDeserializer deserializer); + RequestContext sse_decode_box_autoadd_request_context( + SseDeserializer deserializer); + + @protected + TxOut sse_decode_box_autoadd_tx_out(SseDeserializer deserializer); + + @protected + int sse_decode_box_autoadd_u_64(SseDeserializer deserializer); + + @protected + int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); + + @protected + UncheckedProposal sse_decode_box_autoadd_unchecked_proposal( + SseDeserializer deserializer); + + @protected + Uri sse_decode_box_autoadd_uri(SseDeserializer deserializer); + + @protected + Url sse_decode_box_autoadd_url(SseDeserializer deserializer); + + @protected + V2MaybeInputsOwned sse_decode_box_autoadd_v_2_maybe_inputs_owned( + SseDeserializer deserializer); + + @protected + V2MaybeInputsSeen sse_decode_box_autoadd_v_2_maybe_inputs_seen( + SseDeserializer deserializer); + + @protected + V2MaybeMixedInputScripts sse_decode_box_autoadd_v_2_maybe_mixed_input_scripts( + SseDeserializer deserializer); + + @protected + V2OutputsUnknown sse_decode_box_autoadd_v_2_outputs_unknown( + SseDeserializer deserializer); + + @protected + V2PayjoinProposal sse_decode_box_autoadd_v_2_payjoin_proposal( + SseDeserializer deserializer); + + @protected + V2ProvisionalProposal sse_decode_box_autoadd_v_2_provisional_proposal( + SseDeserializer deserializer); + + @protected + V2UncheckedProposal sse_decode_box_autoadd_v_2_unchecked_proposal( + SseDeserializer deserializer); + + @protected + ClientResponse sse_decode_client_response(SseDeserializer deserializer); + + @protected + ContextV1 sse_decode_context_v_1(SseDeserializer deserializer); + + @protected + ContextV2 sse_decode_context_v_2(SseDeserializer deserializer); + + @protected + Enrolled sse_decode_enrolled(SseDeserializer deserializer); + + @protected + Enroller sse_decode_enroller(SseDeserializer deserializer); @protected Headers sse_decode_headers(SseDeserializer deserializer); + @protected + List sse_decode_list_out_point(SseDeserializer deserializer); + + @protected + Uint64List sse_decode_list_prim_u_64_strict(SseDeserializer deserializer); + @protected List sse_decode_list_prim_u_8_loose(SseDeserializer deserializer); @@ -304,9 +786,20 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { List<(String, String)> sse_decode_list_record_string_string( SseDeserializer deserializer); + @protected + List<(int, OutPoint)> sse_decode_list_record_u_64_out_point( + SseDeserializer deserializer); + @protected MaybeInputsOwned sse_decode_maybe_inputs_owned(SseDeserializer deserializer); + @protected + MaybeInputsSeen sse_decode_maybe_inputs_seen(SseDeserializer deserializer); + + @protected + MaybeMixedInputScripts sse_decode_maybe_mixed_input_scripts( + SseDeserializer deserializer); + @protected String? sse_decode_opt_String(SseDeserializer deserializer); @@ -316,13 +809,34 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int? sse_decode_opt_box_autoadd_u_8(SseDeserializer deserializer); + @protected + V2UncheckedProposal? sse_decode_opt_box_autoadd_v_2_unchecked_proposal( + SseDeserializer deserializer); + + @protected + OutPoint sse_decode_out_point(SseDeserializer deserializer); + + @protected + OutputsUnknown sse_decode_outputs_unknown(SseDeserializer deserializer); + @protected PayjoinError sse_decode_payjoin_error(SseDeserializer deserializer); + @protected + PayjoinProposal sse_decode_payjoin_proposal(SseDeserializer deserializer); + + @protected + ProvisionalProposal sse_decode_provisional_proposal( + SseDeserializer deserializer); + @protected (String, String) sse_decode_record_string_string( SseDeserializer deserializer); + @protected + (int, OutPoint) sse_decode_record_u_64_out_point( + SseDeserializer deserializer); + @protected Request sse_decode_request(SseDeserializer deserializer); @@ -338,6 +852,15 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected RequestContextV2 sse_decode_request_context_v_2(SseDeserializer deserializer); + @protected + RequestResponse sse_decode_request_response(SseDeserializer deserializer); + + @protected + TxOut sse_decode_tx_out(SseDeserializer deserializer); + + @protected + int sse_decode_u_32(SseDeserializer deserializer); + @protected int sse_decode_u_64(SseDeserializer deserializer); @@ -359,6 +882,33 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int sse_decode_usize(SseDeserializer deserializer); + @protected + V2MaybeInputsOwned sse_decode_v_2_maybe_inputs_owned( + SseDeserializer deserializer); + + @protected + V2MaybeInputsSeen sse_decode_v_2_maybe_inputs_seen( + SseDeserializer deserializer); + + @protected + V2MaybeMixedInputScripts sse_decode_v_2_maybe_mixed_input_scripts( + SseDeserializer deserializer); + + @protected + V2OutputsUnknown sse_decode_v_2_outputs_unknown(SseDeserializer deserializer); + + @protected + V2PayjoinProposal sse_decode_v_2_payjoin_proposal( + SseDeserializer deserializer); + + @protected + V2ProvisionalProposal sse_decode_v_2_provisional_proposal( + SseDeserializer deserializer); + + @protected + V2UncheckedProposal sse_decode_v_2_unchecked_proposal( + SseDeserializer deserializer); + @protected int sse_decode_i_32(SseDeserializer deserializer); @@ -369,12 +919,25 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { raw.entries.map((e) => (e.key, e.value)).toList()); } + @protected + List cst_encode_Map_u_64_out_point(Map raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_list_record_u_64_out_point( + raw.entries.map((e) => (e.key, e.value)).toList()); + } + @protected String cst_encode_String(String raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw; } + @protected + List cst_encode_box_autoadd_client_response(ClientResponse raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_client_response(raw); + } + @protected List cst_encode_box_autoadd_context_v_1(ContextV1 raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -387,12 +950,69 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return cst_encode_context_v_2(raw); } + @protected + List cst_encode_box_autoadd_enrolled(Enrolled raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_enrolled(raw); + } + + @protected + List cst_encode_box_autoadd_enroller(Enroller raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_enroller(raw); + } + @protected List cst_encode_box_autoadd_headers(Headers raw) { // Codec=Cst (C-struct based), see doc to use other codecs return cst_encode_headers(raw); } + @protected + List cst_encode_box_autoadd_maybe_inputs_owned( + MaybeInputsOwned raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_maybe_inputs_owned(raw); + } + + @protected + List cst_encode_box_autoadd_maybe_inputs_seen(MaybeInputsSeen raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_maybe_inputs_seen(raw); + } + + @protected + List cst_encode_box_autoadd_maybe_mixed_input_scripts( + MaybeMixedInputScripts raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_maybe_mixed_input_scripts(raw); + } + + @protected + List cst_encode_box_autoadd_out_point(OutPoint raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_out_point(raw); + } + + @protected + List cst_encode_box_autoadd_outputs_unknown(OutputsUnknown raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_outputs_unknown(raw); + } + + @protected + List cst_encode_box_autoadd_payjoin_proposal(PayjoinProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_payjoin_proposal(raw); + } + + @protected + List cst_encode_box_autoadd_provisional_proposal( + ProvisionalProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_provisional_proposal(raw); + } + @protected List cst_encode_box_autoadd_request_builder(RequestBuilder raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -405,6 +1025,12 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return cst_encode_request_context(raw); } + @protected + List cst_encode_box_autoadd_tx_out(TxOut raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_tx_out(raw); + } + @protected Object cst_encode_box_autoadd_u_64(int raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -436,6 +1062,61 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return cst_encode_url(raw); } + @protected + List cst_encode_box_autoadd_v_2_maybe_inputs_owned( + V2MaybeInputsOwned raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_v_2_maybe_inputs_owned(raw); + } + + @protected + List cst_encode_box_autoadd_v_2_maybe_inputs_seen( + V2MaybeInputsSeen raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_v_2_maybe_inputs_seen(raw); + } + + @protected + List cst_encode_box_autoadd_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_v_2_maybe_mixed_input_scripts(raw); + } + + @protected + List cst_encode_box_autoadd_v_2_outputs_unknown( + V2OutputsUnknown raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_v_2_outputs_unknown(raw); + } + + @protected + List cst_encode_box_autoadd_v_2_payjoin_proposal( + V2PayjoinProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_v_2_payjoin_proposal(raw); + } + + @protected + List cst_encode_box_autoadd_v_2_provisional_proposal( + V2ProvisionalProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_v_2_provisional_proposal(raw); + } + + @protected + List cst_encode_box_autoadd_v_2_unchecked_proposal( + V2UncheckedProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_v_2_unchecked_proposal(raw); + } + + @protected + List cst_encode_client_response(ClientResponse raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [cst_encode_RustOpaque_MutexOptionohttpClientResponse(raw.field0)]; + } + @protected List cst_encode_context_v_1(ContextV1 raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -448,12 +1129,36 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return [cst_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(raw.field0)]; } + @protected + List cst_encode_enrolled(Enrolled raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [cst_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(raw.field0)]; + } + + @protected + List cst_encode_enroller(Enroller raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [cst_encode_RustOpaque_payjoin_ffireceivev2Enroller(raw.field0)]; + } + @protected List cst_encode_headers(Headers raw) { // Codec=Cst (C-struct based), see doc to use other codecs return [cst_encode_Map_String_String(raw.field0)]; } + @protected + List cst_encode_list_out_point(List raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw.map(cst_encode_out_point).toList(); + } + + @protected + Object /* BigInt64Array */ cst_encode_list_prim_u_64_strict(Uint64List raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw.inner; + } + @protected List cst_encode_list_prim_u_8_loose(List raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -473,6 +1178,13 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return raw.map(cst_encode_record_string_string).toList(); } + @protected + List cst_encode_list_record_u_64_out_point( + List<(int, OutPoint)> raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw.map(cst_encode_record_u_64_out_point).toList(); + } + @protected List cst_encode_maybe_inputs_owned(MaybeInputsOwned raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -481,6 +1193,24 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { ]; } + @protected + List cst_encode_maybe_inputs_seen(MaybeInputsSeen raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen(raw.field0) + ]; + } + + @protected + List cst_encode_maybe_mixed_input_scripts( + MaybeMixedInputScripts raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + raw.field0) + ]; + } + @protected String? cst_encode_opt_String(String? raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -499,6 +1229,29 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return raw == null ? null : cst_encode_box_autoadd_u_8(raw); } + @protected + List? cst_encode_opt_box_autoadd_v_2_unchecked_proposal( + V2UncheckedProposal? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null + ? null + : cst_encode_box_autoadd_v_2_unchecked_proposal(raw); + } + + @protected + List cst_encode_out_point(OutPoint raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [cst_encode_String(raw.txid), cst_encode_u_32(raw.vout)]; + } + + @protected + List cst_encode_outputs_unknown(OutputsUnknown raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(raw.field0) + ]; + } + @protected List cst_encode_payjoin_error(PayjoinError raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -557,12 +1310,35 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { throw Exception('unreachable'); } + @protected + List cst_encode_payjoin_proposal(PayjoinProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal(raw.field0) + ]; + } + + @protected + List cst_encode_provisional_proposal(ProvisionalProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + raw.field0) + ]; + } + @protected List cst_encode_record_string_string((String, String) raw) { // Codec=Cst (C-struct based), see doc to use other codecs return [cst_encode_String(raw.$1), cst_encode_String(raw.$2)]; } + @protected + List cst_encode_record_u_64_out_point((int, OutPoint) raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [cst_encode_u_64(raw.$1), cst_encode_out_point(raw.$2)]; + } + @protected List cst_encode_request(Request raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -604,16 +1380,34 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { } @protected - Object cst_encode_u_64(int raw) { + List cst_encode_request_response(RequestResponse raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return castNativeBigInt(raw); + return [ + cst_encode_request(raw.request), + cst_encode_client_response(raw.clientResponse) + ]; } @protected - List cst_encode_unchecked_proposal(UncheckedProposal raw) { + List cst_encode_tx_out(TxOut raw) { // Codec=Cst (C-struct based), see doc to use other codecs return [ - cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(raw.field0) + cst_encode_u_64(raw.value), + cst_encode_list_prim_u_8_strict(raw.scriptPubkey) + ]; + } + + @protected + Object cst_encode_u_64(int raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return castNativeBigInt(raw); + } + + @protected + List cst_encode_unchecked_proposal(UncheckedProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(raw.field0) ]; } @@ -629,10 +1423,86 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { return [cst_encode_RustOpaque_Arcpayjoin_ffiuriUrl(raw.field0)]; } + @protected + List cst_encode_v_2_maybe_inputs_owned(V2MaybeInputsOwned raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + raw.field0) + ]; + } + + @protected + List cst_encode_v_2_maybe_inputs_seen(V2MaybeInputsSeen raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen(raw.field0) + ]; + } + + @protected + List cst_encode_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + raw.field0) + ]; + } + + @protected + List cst_encode_v_2_outputs_unknown(V2OutputsUnknown raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown(raw.field0) + ]; + } + + @protected + List cst_encode_v_2_payjoin_proposal(V2PayjoinProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal(raw.field0) + ]; + } + + @protected + List cst_encode_v_2_provisional_proposal(V2ProvisionalProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + raw.field0) + ]; + } + + @protected + List cst_encode_v_2_unchecked_proposal(V2UncheckedProposal raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return [ + cst_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal(raw.field0) + ]; + } + + @protected + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned raw); + + @protected + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen raw); + + @protected + PlatformPointer cst_encode_DartFn_Inputs_String_Output_String( + FutureOr Function(String) raw); + @protected PlatformPointer cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( FutureOr Function(Uint8List) raw); + @protected + PlatformPointer cst_encode_DartFn_Inputs_out_point_Output_bool( + FutureOr Function(OutPoint) raw); + @protected PlatformPointer cst_encode_DartOpaque(Object raw); @@ -640,6 +1510,54 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( ArcPayjoinFfiReceiveV1MaybeInputsOwned raw); + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ArcPayjoinFfiReceiveV1MaybeInputsSeen raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ArcPayjoinFfiReceiveV1OutputsUnknown raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ArcPayjoinFfiReceiveV1PayjoinProposal raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ArcPayjoinFfiReceiveV1ProvisionalProposal raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ArcPayjoinFfiReceiveV2Enrolled raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ArcPayjoinFfiReceiveV2V2OutputsUnknown raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ArcPayjoinFfiReceiveV2V2PayjoinProposal raw); + + @protected + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ArcPayjoinFfiReceiveV2V2ProvisionalProposal raw); + @protected int cst_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( ArcPayjoinFfiSendV1ContextV1 raw); @@ -662,13 +1580,36 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int cst_encode_RustOpaque_Arcpayjoin_ffiuriUrl(ArcPayjoinFfiUriUrl raw); + @protected + int cst_encode_RustOpaque_MutexOptionohttpClientResponse( + MutexOptionOhttpClientResponse raw); + + @protected + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned raw); + + @protected + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen raw); + @protected int cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( PayjoinFfiReceiveV1UncheckedProposal raw); + @protected + int cst_encode_RustOpaque_payjoin_ffireceivev2Enroller( + PayjoinFfiReceiveV2Enroller raw); + + @protected + int cst_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + PayjoinFfiReceiveV2V2UncheckedProposal raw); + @protected bool cst_encode_bool(bool raw); + @protected + int cst_encode_u_32(int raw); + @protected int cst_encode_u_8(int raw); @@ -678,10 +1619,28 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected int cst_encode_usize(int raw); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_DartFn_Inputs_String_Output_String( + FutureOr Function(String) self, SseSerializer serializer); + @protected void sse_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( FutureOr Function(Uint8List) self, SseSerializer serializer); + @protected + void sse_encode_DartFn_Inputs_out_point_Output_bool( + FutureOr Function(OutPoint) self, SseSerializer serializer); + @protected void sse_encode_DartOpaque(Object self, SseSerializer serializer); @@ -689,10 +1648,65 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_Map_String_String( Map self, SseSerializer serializer); + @protected + void sse_encode_Map_u_64_out_point( + Map self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( ArcPayjoinFfiReceiveV1MaybeInputsOwned self, SseSerializer serializer); + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ArcPayjoinFfiReceiveV1MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV1MaybeMixedInputScripts self, + SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ArcPayjoinFfiReceiveV1OutputsUnknown self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ArcPayjoinFfiReceiveV1PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ArcPayjoinFfiReceiveV1ProvisionalProposal self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ArcPayjoinFfiReceiveV2Enrolled self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ArcPayjoinFfiReceiveV2V2MaybeInputsOwned self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ArcPayjoinFfiReceiveV2V2MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts self, + SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ArcPayjoinFfiReceiveV2V2OutputsUnknown self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ArcPayjoinFfiReceiveV2V2PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ArcPayjoinFfiReceiveV2V2ProvisionalProposal self, + SseSerializer serializer); + @protected void sse_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( ArcPayjoinFfiSendV1ContextV1 self, SseSerializer serializer); @@ -717,16 +1731,42 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_RustOpaque_Arcpayjoin_ffiuriUrl( ArcPayjoinFfiUriUrl self, SseSerializer serializer); + @protected + void sse_encode_RustOpaque_MutexOptionohttpClientResponse( + MutexOptionOhttpClientResponse self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ArcV2MaybeInputsOwned self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ArcV2MaybeInputsSeen self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( PayjoinFfiReceiveV1UncheckedProposal self, SseSerializer serializer); + @protected + void sse_encode_RustOpaque_payjoin_ffireceivev2Enroller( + PayjoinFfiReceiveV2Enroller self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + PayjoinFfiReceiveV2V2UncheckedProposal self, SseSerializer serializer); + @protected void sse_encode_String(String self, SseSerializer serializer); @protected void sse_encode_bool(bool self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_client_response( + ClientResponse self, SseSerializer serializer); + @protected void sse_encode_box_autoadd_context_v_1( ContextV1 self, SseSerializer serializer); @@ -735,9 +1775,43 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_box_autoadd_context_v_2( ContextV2 self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_enrolled(Enrolled self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_enroller(Enroller self, SseSerializer serializer); + @protected void sse_encode_box_autoadd_headers(Headers self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_maybe_inputs_owned( + MaybeInputsOwned self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_maybe_inputs_seen( + MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_maybe_mixed_input_scripts( + MaybeMixedInputScripts self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_out_point( + OutPoint self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_outputs_unknown( + OutputsUnknown self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_payjoin_proposal( + PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_provisional_proposal( + ProvisionalProposal self, SseSerializer serializer); + @protected void sse_encode_box_autoadd_request_builder( RequestBuilder self, SseSerializer serializer); @@ -746,6 +1820,9 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_box_autoadd_request_context( RequestContext self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_tx_out(TxOut self, SseSerializer serializer); + @protected void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer); @@ -762,15 +1839,60 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_box_autoadd_url(Url self, SseSerializer serializer); + @protected + void sse_encode_box_autoadd_v_2_maybe_inputs_owned( + V2MaybeInputsOwned self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_maybe_inputs_seen( + V2MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_outputs_unknown( + V2OutputsUnknown self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_payjoin_proposal( + V2PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_provisional_proposal( + V2ProvisionalProposal self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_v_2_unchecked_proposal( + V2UncheckedProposal self, SseSerializer serializer); + + @protected + void sse_encode_client_response( + ClientResponse self, SseSerializer serializer); + @protected void sse_encode_context_v_1(ContextV1 self, SseSerializer serializer); @protected void sse_encode_context_v_2(ContextV2 self, SseSerializer serializer); + @protected + void sse_encode_enrolled(Enrolled self, SseSerializer serializer); + + @protected + void sse_encode_enroller(Enroller self, SseSerializer serializer); + @protected void sse_encode_headers(Headers self, SseSerializer serializer); + @protected + void sse_encode_list_out_point(List self, SseSerializer serializer); + + @protected + void sse_encode_list_prim_u_64_strict( + Uint64List self, SseSerializer serializer); + @protected void sse_encode_list_prim_u_8_loose(List self, SseSerializer serializer); @@ -782,10 +1904,22 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_list_record_string_string( List<(String, String)> self, SseSerializer serializer); + @protected + void sse_encode_list_record_u_64_out_point( + List<(int, OutPoint)> self, SseSerializer serializer); + @protected void sse_encode_maybe_inputs_owned( MaybeInputsOwned self, SseSerializer serializer); + @protected + void sse_encode_maybe_inputs_seen( + MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_maybe_mixed_input_scripts( + MaybeMixedInputScripts self, SseSerializer serializer); + @protected void sse_encode_opt_String(String? self, SseSerializer serializer); @@ -795,13 +1929,36 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_opt_box_autoadd_u_8(int? self, SseSerializer serializer); + @protected + void sse_encode_opt_box_autoadd_v_2_unchecked_proposal( + V2UncheckedProposal? self, SseSerializer serializer); + + @protected + void sse_encode_out_point(OutPoint self, SseSerializer serializer); + + @protected + void sse_encode_outputs_unknown( + OutputsUnknown self, SseSerializer serializer); + @protected void sse_encode_payjoin_error(PayjoinError self, SseSerializer serializer); + @protected + void sse_encode_payjoin_proposal( + PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_provisional_proposal( + ProvisionalProposal self, SseSerializer serializer); + @protected void sse_encode_record_string_string( (String, String) self, SseSerializer serializer); + @protected + void sse_encode_record_u_64_out_point( + (int, OutPoint) self, SseSerializer serializer); + @protected void sse_encode_request(Request self, SseSerializer serializer); @@ -821,6 +1978,16 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_request_context_v_2( RequestContextV2 self, SseSerializer serializer); + @protected + void sse_encode_request_response( + RequestResponse self, SseSerializer serializer); + + @protected + void sse_encode_tx_out(TxOut self, SseSerializer serializer); + + @protected + void sse_encode_u_32(int self, SseSerializer serializer); + @protected void sse_encode_u_64(int self, SseSerializer serializer); @@ -843,6 +2010,34 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_usize(int self, SseSerializer serializer); + @protected + void sse_encode_v_2_maybe_inputs_owned( + V2MaybeInputsOwned self, SseSerializer serializer); + + @protected + void sse_encode_v_2_maybe_inputs_seen( + V2MaybeInputsSeen self, SseSerializer serializer); + + @protected + void sse_encode_v_2_maybe_mixed_input_scripts( + V2MaybeMixedInputScripts self, SseSerializer serializer); + + @protected + void sse_encode_v_2_outputs_unknown( + V2OutputsUnknown self, SseSerializer serializer); + + @protected + void sse_encode_v_2_payjoin_proposal( + V2PayjoinProposal self, SseSerializer serializer); + + @protected + void sse_encode_v_2_provisional_proposal( + V2ProvisionalProposal self, SseSerializer serializer); + + @protected + void sse_encode_v_2_unchecked_proposal( + V2UncheckedProposal self, SseSerializer serializer); + @protected void sse_encode_i_32(int self, SseSerializer serializer); } @@ -852,30 +2047,232 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { class PayjoinCoreWire implements BaseWire { PayjoinCoreWire.fromExternalLibrary(ExternalLibrary lib); + void wire_Enrolled_extract_req(NativePortType port_, List that) => + wasmModule.wire_Enrolled_extract_req(port_, that); + + void wire_Enrolled_fallback_target( + NativePortType port_, List that) => + wasmModule.wire_Enrolled_fallback_target(port_, that); + + void wire_Enrolled_process_res(NativePortType port_, List that, + List body, List ctx) => + wasmModule.wire_Enrolled_process_res(port_, that, body, ctx); + + void wire_Enrolled_subdirectory(NativePortType port_, List that) => + wasmModule.wire_Enrolled_subdirectory(port_, that); + + void wire_Enroller_extract_req(NativePortType port_, List that) => + wasmModule.wire_Enroller_extract_req(port_, that); + + void wire_Enroller_from_relay_config(NativePortType port_, String relay_url, + String ohttp_config_base64, String ohttp_proxy_url) => + wasmModule.wire_Enroller_from_relay_config( + port_, relay_url, ohttp_config_base64, ohttp_proxy_url); + + void wire_Enroller_payjoin_subdir(NativePortType port_, List that) => + wasmModule.wire_Enroller_payjoin_subdir(port_, that); + + void wire_Enroller_process_res(NativePortType port_, List that, + List body, List ctx) => + wasmModule.wire_Enroller_process_res(port_, that, body, ctx); + + void wire_Enroller_subdirectory(NativePortType port_, List that) => + wasmModule.wire_Enroller_subdirectory(port_, that); + void wire_Headers_from_vec(NativePortType port_, List body) => wasmModule.wire_Headers_from_vec(port_, body); - void wire_UncheckedProposal_check_broadcast_suitability( - NativePortType port_, - List that, - Object? min_fee_rate, - PlatformPointer can_broadcast) => - wasmModule.wire_UncheckedProposal_check_broadcast_suitability( - port_, that, min_fee_rate, can_broadcast); + void wire_MaybeInputsOwned_check_inputs_not_owned( + NativePortType port_, List that, PlatformPointer is_owned) => + wasmModule.wire_MaybeInputsOwned_check_inputs_not_owned( + port_, that, is_owned); - void wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + void wire_MaybeInputsSeen_check_no_inputs_seen_before( + NativePortType port_, List that, PlatformPointer is_known) => + wasmModule.wire_MaybeInputsSeen_check_no_inputs_seen_before( + port_, that, is_known); + + void wire_MaybeMixedInputScripts_check_no_mixed_input_scripts( NativePortType port_, List that) => - wasmModule.wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + wasmModule.wire_MaybeMixedInputScripts_check_no_mixed_input_scripts( port_, that); - void wire_UncheckedProposal_from_request(NativePortType port_, List body, - String query, List headers) => - wasmModule.wire_UncheckedProposal_from_request( - port_, body, query, headers); + void wire_OutputsUnknown_identify_receiver_outputs(NativePortType port_, + List that, PlatformPointer is_receiver_output) => + wasmModule.wire_OutputsUnknown_identify_receiver_outputs( + port_, that, is_receiver_output); - void wire_ContextV1_process_response( - NativePortType port_, List that, List response) => - wasmModule.wire_ContextV1_process_response(port_, that, response); + void wire_PayjoinProposal_is_output_substitution_disabled( + NativePortType port_, List that) => + wasmModule.wire_PayjoinProposal_is_output_substitution_disabled( + port_, that); + + void wire_PayjoinProposal_owned_vouts( + NativePortType port_, List that) => + wasmModule.wire_PayjoinProposal_owned_vouts(port_, that); + + void wire_PayjoinProposal_psbt(NativePortType port_, List that) => + wasmModule.wire_PayjoinProposal_psbt(port_, that); + + void wire_PayjoinProposal_utxos_to_be_locked( + NativePortType port_, List that) => + wasmModule.wire_PayjoinProposal_utxos_to_be_locked(port_, that); + + void wire_ProvisionalProposal_contribute_non_witness_input( + NativePortType port_, + List that, + List tx, + List outpoint) => + wasmModule.wire_ProvisionalProposal_contribute_non_witness_input( + port_, that, tx, outpoint); + + void wire_ProvisionalProposal_contribute_witness_input(NativePortType port_, + List that, List txo, List outpoint) => + wasmModule.wire_ProvisionalProposal_contribute_witness_input( + port_, that, txo, outpoint); + + void wire_ProvisionalProposal_finalize_proposal( + NativePortType port_, + List that, + PlatformPointer process_psbt, + Object? min_feerate_sat_per_vb) => + wasmModule.wire_ProvisionalProposal_finalize_proposal( + port_, that, process_psbt, min_feerate_sat_per_vb); + + void wire_ProvisionalProposal_substitute_output_address( + NativePortType port_, List that, String address) => + wasmModule.wire_ProvisionalProposal_substitute_output_address( + port_, that, address); + + void wire_ProvisionalProposal_try_preserving_privacy(NativePortType port_, + List that, List candidate_inputs) => + wasmModule.wire_ProvisionalProposal_try_preserving_privacy( + port_, that, candidate_inputs); + + void wire_UncheckedProposal_assume_interactive_receiver( + NativePortType port_, List that) => + wasmModule.wire_UncheckedProposal_assume_interactive_receiver( + port_, that); + + void wire_UncheckedProposal_check_broadcast_suitability( + NativePortType port_, + List that, + Object? min_fee_rate, + PlatformPointer can_broadcast) => + wasmModule.wire_UncheckedProposal_check_broadcast_suitability( + port_, that, min_fee_rate, can_broadcast); + + void wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + NativePortType port_, List that) => + wasmModule.wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + port_, that); + + void wire_UncheckedProposal_from_request(NativePortType port_, List body, + String query, List headers) => + wasmModule.wire_UncheckedProposal_from_request( + port_, body, query, headers); + + void wire_V2MaybeInputsOwned_check_inputs_not_owned( + NativePortType port_, List that, PlatformPointer is_owned) => + wasmModule.wire_V2MaybeInputsOwned_check_inputs_not_owned( + port_, that, is_owned); + + void wire_V2MaybeInputsSeen_check_no_inputs_seen_before( + NativePortType port_, List that, PlatformPointer is_known) => + wasmModule.wire_V2MaybeInputsSeen_check_no_inputs_seen_before( + port_, that, is_known); + + void wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts( + NativePortType port_, List that) => + wasmModule.wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts( + port_, that); + + void wire_V2OutputsUnknown_identify_receiver_outputs(NativePortType port_, + List that, PlatformPointer is_receiver_output) => + wasmModule.wire_V2OutputsUnknown_identify_receiver_outputs( + port_, that, is_receiver_output); + + void wire_V2PayjoinProposal_deserialize_res(NativePortType port_, + List that, List res, List ohttp_context) => + wasmModule.wire_V2PayjoinProposal_deserialize_res( + port_, that, res, ohttp_context); + + void wire_V2PayjoinProposal_extract_v1_req( + NativePortType port_, List that) => + wasmModule.wire_V2PayjoinProposal_extract_v1_req(port_, that); + + void wire_V2PayjoinProposal_extract_v2_req( + NativePortType port_, List that) => + wasmModule.wire_V2PayjoinProposal_extract_v2_req(port_, that); + + void wire_V2PayjoinProposal_is_output_substitution_disabled( + NativePortType port_, List that) => + wasmModule.wire_V2PayjoinProposal_is_output_substitution_disabled( + port_, that); + + void wire_V2PayjoinProposal_owned_vouts( + NativePortType port_, List that) => + wasmModule.wire_V2PayjoinProposal_owned_vouts(port_, that); + + void wire_V2PayjoinProposal_psbt(NativePortType port_, List that) => + wasmModule.wire_V2PayjoinProposal_psbt(port_, that); + + void wire_V2PayjoinProposal_utxos_to_be_locked( + NativePortType port_, List that) => + wasmModule.wire_V2PayjoinProposal_utxos_to_be_locked(port_, that); + + void wire_V2ProvisionalProposal_contribute_non_witness_input( + NativePortType port_, + List that, + List tx, + List outpoint) => + wasmModule.wire_V2ProvisionalProposal_contribute_non_witness_input( + port_, that, tx, outpoint); + + void wire_V2ProvisionalProposal_contribute_witness_input(NativePortType port_, + List that, List txo, List outpoint) => + wasmModule.wire_V2ProvisionalProposal_contribute_witness_input( + port_, that, txo, outpoint); + + void wire_V2ProvisionalProposal_finalize_proposal( + NativePortType port_, + List that, + PlatformPointer process_psbt, + Object? min_feerate_sat_per_vb) => + wasmModule.wire_V2ProvisionalProposal_finalize_proposal( + port_, that, process_psbt, min_feerate_sat_per_vb); + + void wire_V2ProvisionalProposal_substitute_output_address( + NativePortType port_, List that, String address) => + wasmModule.wire_V2ProvisionalProposal_substitute_output_address( + port_, that, address); + + void wire_V2ProvisionalProposal_try_preserving_privacy(NativePortType port_, + List that, List candidate_inputs) => + wasmModule.wire_V2ProvisionalProposal_try_preserving_privacy( + port_, that, candidate_inputs); + + void wire_V2UncheckedProposal_assume_interactive_receiver( + NativePortType port_, List that) => + wasmModule.wire_V2UncheckedProposal_assume_interactive_receiver( + port_, that); + + void wire_V2UncheckedProposal_check_broadcast_suitability( + NativePortType port_, + List that, + Object? min_fee_rate, + PlatformPointer can_broadcast) => + wasmModule.wire_V2UncheckedProposal_check_broadcast_suitability( + port_, that, min_fee_rate, can_broadcast); + + void wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast( + NativePortType port_, List that) => + wasmModule.wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast( + port_, that); + + void wire_ContextV1_process_response( + NativePortType port_, List that, List response) => + wasmModule.wire_ContextV1_process_response(port_, that, response); void wire_ContextV2_process_response( NativePortType port_, List that, List response) => @@ -952,6 +2349,150 @@ class PayjoinCoreWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( ptr); + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ptr); + void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( dynamic ptr) => wasmModule @@ -1020,6 +2561,42 @@ class PayjoinCoreWire implements BaseWire { wasmModule .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl(ptr); + void rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ptr); + void rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( dynamic ptr) => wasmModule @@ -1031,6 +2608,30 @@ class PayjoinCoreWire implements BaseWire { wasmModule .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ptr); + + void rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + dynamic ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + dynamic ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + ptr); } @JS('wasm_bindgen') @@ -1045,8 +2646,88 @@ class PayjoinCoreWasmModule implements WasmModule { @override external PayjoinCoreWasmModule bind(dynamic thisArg, String moduleName); + external void wire_Enrolled_extract_req( + NativePortType port_, List that); + + external void wire_Enrolled_fallback_target( + NativePortType port_, List that); + + external void wire_Enrolled_process_res(NativePortType port_, + List that, List body, List ctx); + + external void wire_Enrolled_subdirectory( + NativePortType port_, List that); + + external void wire_Enroller_extract_req( + NativePortType port_, List that); + + external void wire_Enroller_from_relay_config(NativePortType port_, + String relay_url, String ohttp_config_base64, String ohttp_proxy_url); + + external void wire_Enroller_payjoin_subdir( + NativePortType port_, List that); + + external void wire_Enroller_process_res(NativePortType port_, + List that, List body, List ctx); + + external void wire_Enroller_subdirectory( + NativePortType port_, List that); + external void wire_Headers_from_vec(NativePortType port_, List body); + external void wire_MaybeInputsOwned_check_inputs_not_owned( + NativePortType port_, List that, PlatformPointer is_owned); + + external void wire_MaybeInputsSeen_check_no_inputs_seen_before( + NativePortType port_, List that, PlatformPointer is_known); + + external void wire_MaybeMixedInputScripts_check_no_mixed_input_scripts( + NativePortType port_, List that); + + external void wire_OutputsUnknown_identify_receiver_outputs( + NativePortType port_, + List that, + PlatformPointer is_receiver_output); + + external void wire_PayjoinProposal_is_output_substitution_disabled( + NativePortType port_, List that); + + external void wire_PayjoinProposal_owned_vouts( + NativePortType port_, List that); + + external void wire_PayjoinProposal_psbt( + NativePortType port_, List that); + + external void wire_PayjoinProposal_utxos_to_be_locked( + NativePortType port_, List that); + + external void wire_ProvisionalProposal_contribute_non_witness_input( + NativePortType port_, + List that, + List tx, + List outpoint); + + external void wire_ProvisionalProposal_contribute_witness_input( + NativePortType port_, + List that, + List txo, + List outpoint); + + external void wire_ProvisionalProposal_finalize_proposal( + NativePortType port_, + List that, + PlatformPointer process_psbt, + Object? min_feerate_sat_per_vb); + + external void wire_ProvisionalProposal_substitute_output_address( + NativePortType port_, List that, String address); + + external void wire_ProvisionalProposal_try_preserving_privacy( + NativePortType port_, List that, List candidate_inputs); + + external void wire_UncheckedProposal_assume_interactive_receiver( + NativePortType port_, List that); + external void wire_UncheckedProposal_check_broadcast_suitability( NativePortType port_, List that, @@ -1059,6 +2740,77 @@ class PayjoinCoreWasmModule implements WasmModule { external void wire_UncheckedProposal_from_request(NativePortType port_, List body, String query, List headers); + external void wire_V2MaybeInputsOwned_check_inputs_not_owned( + NativePortType port_, List that, PlatformPointer is_owned); + + external void wire_V2MaybeInputsSeen_check_no_inputs_seen_before( + NativePortType port_, List that, PlatformPointer is_known); + + external void wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts( + NativePortType port_, List that); + + external void wire_V2OutputsUnknown_identify_receiver_outputs( + NativePortType port_, + List that, + PlatformPointer is_receiver_output); + + external void wire_V2PayjoinProposal_deserialize_res(NativePortType port_, + List that, List res, List ohttp_context); + + external void wire_V2PayjoinProposal_extract_v1_req( + NativePortType port_, List that); + + external void wire_V2PayjoinProposal_extract_v2_req( + NativePortType port_, List that); + + external void wire_V2PayjoinProposal_is_output_substitution_disabled( + NativePortType port_, List that); + + external void wire_V2PayjoinProposal_owned_vouts( + NativePortType port_, List that); + + external void wire_V2PayjoinProposal_psbt( + NativePortType port_, List that); + + external void wire_V2PayjoinProposal_utxos_to_be_locked( + NativePortType port_, List that); + + external void wire_V2ProvisionalProposal_contribute_non_witness_input( + NativePortType port_, + List that, + List tx, + List outpoint); + + external void wire_V2ProvisionalProposal_contribute_witness_input( + NativePortType port_, + List that, + List txo, + List outpoint); + + external void wire_V2ProvisionalProposal_finalize_proposal( + NativePortType port_, + List that, + PlatformPointer process_psbt, + Object? min_feerate_sat_per_vb); + + external void wire_V2ProvisionalProposal_substitute_output_address( + NativePortType port_, List that, String address); + + external void wire_V2ProvisionalProposal_try_preserving_privacy( + NativePortType port_, List that, List candidate_inputs); + + external void wire_V2UncheckedProposal_assume_interactive_receiver( + NativePortType port_, List that); + + external void wire_V2UncheckedProposal_check_broadcast_suitability( + NativePortType port_, + List that, + Object? min_fee_rate, + PlatformPointer can_broadcast); + + external void wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast( + NativePortType port_, List that); + external void wire_ContextV1_process_response( NativePortType port_, List that, List response); @@ -1111,6 +2863,102 @@ class PayjoinCoreWasmModule implements WasmModule { rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( dynamic ptr); + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + dynamic ptr); + external void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( dynamic ptr); @@ -1155,6 +3003,30 @@ class PayjoinCoreWasmModule implements WasmModule { external void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( dynamic ptr); + external void + rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + dynamic ptr); + external void rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( dynamic ptr); @@ -1162,4 +3034,20 @@ class PayjoinCoreWasmModule implements WasmModule { external void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + dynamic ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + dynamic ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + dynamic ptr); } diff --git a/rust/src/frb_generated.io.rs b/rust/src/frb_generated.io.rs index b0e074b..a2d20b7 100644 --- a/rust/src/frb_generated.io.rs +++ b/rust/src/frb_generated.io.rs @@ -16,6 +16,28 @@ flutter_rust_bridge::frb_generated_boilerplate_io!(); // Section: dart2rust +impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Arc { + CstDecode::< + RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + >, + >::cst_decode(self) + .rust_auto_opaque_decode_owned() + } +} +impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Arc { + CstDecode::< + RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + >, + >::cst_decode(self) + .rust_auto_opaque_decode_owned() + } +} impl CstDecode for *const std::ffi::c_void { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> flutter_rust_bridge::DartOpaque { @@ -31,12 +53,93 @@ impl CstDecode> vec.into_iter().collect() } } +impl CstDecode> + for *mut wire_cst_list_record_u_64_out_point +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> std::collections::HashMap { + let vec: Vec<(u64, crate::api::receive::OutPoint)> = self.cst_decode(); + vec.into_iter().collect() + } +} impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> RustOpaqueNom> { @@ -73,12 +176,61 @@ impl CstDecode>> for usize { unsafe { decode_rust_opaque_nom(self as _) } } } +impl CstDecode>>> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom>> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl + CstDecode< + RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + >, + > for usize +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode( + self, + ) -> RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + > { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl + CstDecode< + RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + >, + > for usize +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode( + self, + ) -> RustOpaqueNom>> + { + unsafe { decode_rust_opaque_nom(self as _) } + } +} impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } +impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + unsafe { decode_rust_opaque_nom(self as _) } + } +} +impl CstDecode> for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + unsafe { decode_rust_opaque_nom(self as _) } + } +} impl CstDecode for *mut wire_cst_list_prim_u_8_strict { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> String { @@ -86,6 +238,13 @@ impl CstDecode for *mut wire_cst_list_prim_u_8_strict { String::from_utf8(vec).unwrap() } } +impl CstDecode for *mut wire_cst_client_response { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::ClientResponse { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} impl CstDecode for *mut wire_cst_context_v_1 { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::send::ContextV1 { @@ -100,6 +259,20 @@ impl CstDecode for *mut wire_cst_context_v_2 { CstDecode::::cst_decode(*wrap).into() } } +impl CstDecode for *mut wire_cst_enrolled { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::Enrolled { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_enroller { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::Enroller { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} impl CstDecode for *mut wire_cst_headers { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::receive::Headers { @@ -107,6 +280,57 @@ impl CstDecode for *mut wire_cst_headers { CstDecode::::cst_decode(*wrap).into() } } +impl CstDecode for *mut wire_cst_maybe_inputs_owned { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::MaybeInputsOwned { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_maybe_inputs_seen { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::MaybeInputsSeen { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode + for *mut wire_cst_maybe_mixed_input_scripts +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::MaybeMixedInputScripts { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_out_point { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::OutPoint { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_outputs_unknown { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::OutputsUnknown { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_payjoin_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::PayjoinProposal { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_provisional_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::ProvisionalProposal { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} impl CstDecode for *mut wire_cst_request_builder { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::send::RequestBuilder { @@ -121,6 +345,13 @@ impl CstDecode for *mut wire_cst_request_conte CstDecode::::cst_decode(*wrap).into() } } +impl CstDecode for *mut wire_cst_tx_out { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::TxOut { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} impl CstDecode for *mut u64 { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> u64 { @@ -154,6 +385,65 @@ impl CstDecode for *mut wire_cst_url { CstDecode::::cst_decode(*wrap).into() } } +impl CstDecode for *mut wire_cst_v_2_maybe_inputs_owned { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2MaybeInputsOwned { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_v_2_maybe_inputs_seen { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2MaybeInputsSeen { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode + for *mut wire_cst_v_2_maybe_mixed_input_scripts +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2MaybeMixedInputScripts { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_v_2_outputs_unknown { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2OutputsUnknown { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_v_2_payjoin_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2PayjoinProposal { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode + for *mut wire_cst_v_2_provisional_proposal +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2ProvisionalProposal { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_v_2_unchecked_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2UncheckedProposal { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for wire_cst_client_response { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::ClientResponse { + crate::api::receive::ClientResponse(self.field0.cst_decode()) + } +} impl CstDecode for wire_cst_context_v_1 { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::send::ContextV1 { @@ -166,12 +456,43 @@ impl CstDecode for wire_cst_context_v_2 { crate::api::send::ContextV2(self.field0.cst_decode()) } } +impl CstDecode for wire_cst_enrolled { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::Enrolled { + crate::api::receive::Enrolled(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_enroller { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::Enroller { + crate::api::receive::Enroller(self.field0.cst_decode()) + } +} impl CstDecode for wire_cst_headers { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::receive::Headers { crate::api::receive::Headers(self.field0.cst_decode()) } } +impl CstDecode> for *mut wire_cst_list_out_point { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } +} +impl CstDecode> for *mut wire_cst_list_prim_u_64_strict { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + } + } +} impl CstDecode> for *mut wire_cst_list_prim_u_8_loose { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Vec { @@ -200,12 +521,51 @@ impl CstDecode> for *mut wire_cst_list_record_string_strin vec.into_iter().map(CstDecode::cst_decode).collect() } } +impl CstDecode> + for *mut wire_cst_list_record_u_64_out_point +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec<(u64, crate::api::receive::OutPoint)> { + let vec = unsafe { + let wrap = flutter_rust_bridge::for_generated::box_from_leak_ptr(self); + flutter_rust_bridge::for_generated::vec_from_leak_ptr(wrap.ptr, wrap.len) + }; + vec.into_iter().map(CstDecode::cst_decode).collect() + } +} impl CstDecode for wire_cst_maybe_inputs_owned { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::receive::MaybeInputsOwned { crate::api::receive::MaybeInputsOwned(self.field0.cst_decode()) } } +impl CstDecode for wire_cst_maybe_inputs_seen { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::MaybeInputsSeen { + crate::api::receive::MaybeInputsSeen(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_maybe_mixed_input_scripts { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::MaybeMixedInputScripts { + crate::api::receive::MaybeMixedInputScripts(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_out_point { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::OutPoint { + crate::api::receive::OutPoint { + txid: self.txid.cst_decode(), + vout: self.vout.cst_decode(), + } + } +} +impl CstDecode for wire_cst_outputs_unknown { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::OutputsUnknown { + crate::api::receive::OutputsUnknown(self.field0.cst_decode()) + } +} impl CstDecode for wire_cst_payjoin_error { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::utils::error::PayjoinError { @@ -316,12 +676,30 @@ impl CstDecode for wire_cst_payjoin_error { } } } +impl CstDecode for wire_cst_payjoin_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::PayjoinProposal { + crate::api::receive::PayjoinProposal(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_provisional_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::ProvisionalProposal { + crate::api::receive::ProvisionalProposal(self.field0.cst_decode()) + } +} impl CstDecode<(String, String)> for wire_cst_record_string_string { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> (String, String) { (self.field0.cst_decode(), self.field1.cst_decode()) } } +impl CstDecode<(u64, crate::api::receive::OutPoint)> for wire_cst_record_u_64_out_point { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> (u64, crate::api::receive::OutPoint) { + (self.field0.cst_decode(), self.field1.cst_decode()) + } +} impl CstDecode for wire_cst_request { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::send::Request { @@ -361,6 +739,24 @@ impl CstDecode for wire_cst_request_context_ } } } +impl CstDecode for wire_cst_request_response { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::RequestResponse { + crate::api::receive::RequestResponse { + request: self.request.cst_decode(), + client_response: self.client_response.cst_decode(), + } + } +} +impl CstDecode for wire_cst_tx_out { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::TxOut { + crate::api::receive::TxOut { + value: self.value.cst_decode(), + script_pubkey: self.script_pubkey.cst_decode(), + } + } +} impl CstDecode for wire_cst_unchecked_proposal { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::receive::UncheckedProposal { @@ -379,38 +775,118 @@ impl CstDecode for wire_cst_url { crate::api::uri::Url(self.field0.cst_decode()) } } -impl NewWithNullPtr for wire_cst_context_v_1 { +impl CstDecode for wire_cst_v_2_maybe_inputs_owned { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2MaybeInputsOwned { + crate::api::receive::V2MaybeInputsOwned(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_v_2_maybe_inputs_seen { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2MaybeInputsSeen { + crate::api::receive::V2MaybeInputsSeen(self.field0.cst_decode()) + } +} +impl CstDecode + for wire_cst_v_2_maybe_mixed_input_scripts +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2MaybeMixedInputScripts { + crate::api::receive::V2MaybeMixedInputScripts(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_v_2_outputs_unknown { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2OutputsUnknown { + crate::api::receive::V2OutputsUnknown(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_v_2_payjoin_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2PayjoinProposal { + crate::api::receive::V2PayjoinProposal(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_v_2_provisional_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2ProvisionalProposal { + crate::api::receive::V2ProvisionalProposal(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_v_2_unchecked_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2UncheckedProposal { + crate::api::receive::V2UncheckedProposal(self.field0.cst_decode()) + } +} +impl NewWithNullPtr for wire_cst_client_response { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_context_v_1 { +impl Default for wire_cst_client_response { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_context_v_2 { +impl NewWithNullPtr for wire_cst_context_v_1 { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_context_v_2 { +impl Default for wire_cst_context_v_1 { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_headers { +impl NewWithNullPtr for wire_cst_context_v_2 { fn new_with_null_ptr() -> Self { Self { - field0: core::ptr::null_mut(), + field0: Default::default(), } } } -impl Default for wire_cst_headers { +impl Default for wire_cst_context_v_2 { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_enrolled { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_enrolled { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_enroller { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_enroller { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_headers { + fn new_with_null_ptr() -> Self { + Self { + field0: core::ptr::null_mut(), + } + } +} +impl Default for wire_cst_headers { fn default() -> Self { Self::new_with_null_ptr() } @@ -427,6 +903,55 @@ impl Default for wire_cst_maybe_inputs_owned { Self::new_with_null_ptr() } } +impl NewWithNullPtr for wire_cst_maybe_inputs_seen { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_maybe_inputs_seen { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_maybe_mixed_input_scripts { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_maybe_mixed_input_scripts { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_out_point { + fn new_with_null_ptr() -> Self { + Self { + txid: core::ptr::null_mut(), + vout: Default::default(), + } + } +} +impl Default for wire_cst_out_point { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_outputs_unknown { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_outputs_unknown { + fn default() -> Self { + Self::new_with_null_ptr() + } +} impl NewWithNullPtr for wire_cst_payjoin_error { fn new_with_null_ptr() -> Self { Self { @@ -440,6 +965,30 @@ impl Default for wire_cst_payjoin_error { Self::new_with_null_ptr() } } +impl NewWithNullPtr for wire_cst_payjoin_proposal { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_payjoin_proposal { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_provisional_proposal { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_provisional_proposal { + fn default() -> Self { + Self::new_with_null_ptr() + } +} impl NewWithNullPtr for wire_cst_record_string_string { fn new_with_null_ptr() -> Self { Self { @@ -453,6 +1002,19 @@ impl Default for wire_cst_record_string_string { Self::new_with_null_ptr() } } +impl NewWithNullPtr for wire_cst_record_u_64_out_point { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + field1: Default::default(), + } + } +} +impl Default for wire_cst_record_u_64_out_point { + fn default() -> Self { + Self::new_with_null_ptr() + } +} impl NewWithNullPtr for wire_cst_request { fn new_with_null_ptr() -> Self { Self { @@ -516,6 +1078,32 @@ impl Default for wire_cst_request_context_v_2 { Self::new_with_null_ptr() } } +impl NewWithNullPtr for wire_cst_request_response { + fn new_with_null_ptr() -> Self { + Self { + request: Default::default(), + client_response: Default::default(), + } + } +} +impl Default for wire_cst_request_response { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_tx_out { + fn new_with_null_ptr() -> Self { + Self { + value: Default::default(), + script_pubkey: core::ptr::null_mut(), + } + } +} +impl Default for wire_cst_tx_out { + fn default() -> Self { + Self::new_with_null_ptr() + } +} impl NewWithNullPtr for wire_cst_unchecked_proposal { fn new_with_null_ptr() -> Self { Self { @@ -552,123 +1140,590 @@ impl Default for wire_cst_url { Self::new_with_null_ptr() } } +impl NewWithNullPtr for wire_cst_v_2_maybe_inputs_owned { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_v_2_maybe_inputs_owned { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_v_2_maybe_inputs_seen { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_v_2_maybe_inputs_seen { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_v_2_maybe_mixed_input_scripts { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_v_2_maybe_mixed_input_scripts { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_v_2_outputs_unknown { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_v_2_outputs_unknown { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_v_2_payjoin_proposal { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_v_2_payjoin_proposal { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_v_2_provisional_proposal { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_v_2_provisional_proposal { + fn default() -> Self { + Self::new_with_null_ptr() + } +} +impl NewWithNullPtr for wire_cst_v_2_unchecked_proposal { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } + } +} +impl Default for wire_cst_v_2_unchecked_proposal { + fn default() -> Self { + Self::new_with_null_ptr() + } +} #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_Headers_from_vec( +pub extern "C" fn frbgen_payjoin_flutter_wire_Enrolled_extract_req( port_: i64, - body: *mut wire_cst_list_prim_u_8_loose, + that: *mut wire_cst_enrolled, ) { - wire_Headers_from_vec_impl(port_, body) + wire_Enrolled_extract_req_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_UncheckedProposal_check_broadcast_suitability( +pub extern "C" fn frbgen_payjoin_flutter_wire_Enrolled_fallback_target( port_: i64, - that: *mut wire_cst_unchecked_proposal, - min_fee_rate: *mut u64, - can_broadcast: *const std::ffi::c_void, + that: *mut wire_cst_enrolled, ) { - wire_UncheckedProposal_check_broadcast_suitability_impl( - port_, - that, - min_fee_rate, - can_broadcast, - ) + wire_Enrolled_fallback_target_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_UncheckedProposal_extract_tx_to_schedule_broadcast( +pub extern "C" fn frbgen_payjoin_flutter_wire_Enrolled_process_res( port_: i64, - that: *mut wire_cst_unchecked_proposal, + that: *mut wire_cst_enrolled, + body: *mut wire_cst_list_prim_u_8_loose, + ctx: *mut wire_cst_client_response, ) { - wire_UncheckedProposal_extract_tx_to_schedule_broadcast_impl(port_, that) + wire_Enrolled_process_res_impl(port_, that, body, ctx) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_UncheckedProposal_from_request( +pub extern "C" fn frbgen_payjoin_flutter_wire_Enrolled_subdirectory( port_: i64, - body: *mut wire_cst_list_prim_u_8_loose, - query: *mut wire_cst_list_prim_u_8_strict, - headers: *mut wire_cst_headers, + that: *mut wire_cst_enrolled, ) { - wire_UncheckedProposal_from_request_impl(port_, body, query, headers) + wire_Enrolled_subdirectory_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_ContextV1_process_response( +pub extern "C" fn frbgen_payjoin_flutter_wire_Enroller_extract_req( port_: i64, - that: *mut wire_cst_context_v_1, - response: *mut wire_cst_list_prim_u_8_loose, + that: *mut wire_cst_enroller, ) { - wire_ContextV1_process_response_impl(port_, that, response) + wire_Enroller_extract_req_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_ContextV2_process_response( +pub extern "C" fn frbgen_payjoin_flutter_wire_Enroller_from_relay_config( port_: i64, - that: *mut wire_cst_context_v_2, - response: *mut wire_cst_list_prim_u_8_loose, + relay_url: *mut wire_cst_list_prim_u_8_strict, + ohttp_config_base64: *mut wire_cst_list_prim_u_8_strict, + ohttp_proxy_url: *mut wire_cst_list_prim_u_8_strict, ) { - wire_ContextV2_process_response_impl(port_, that, response) + wire_Enroller_from_relay_config_impl(port_, relay_url, ohttp_config_base64, ohttp_proxy_url) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_always_disable_output_substitution( +pub extern "C" fn frbgen_payjoin_flutter_wire_Enroller_payjoin_subdir( port_: i64, - that: *mut wire_cst_request_builder, - disable: bool, + that: *mut wire_cst_enroller, ) { - wire_RequestBuilder_always_disable_output_substitution_impl(port_, that, disable) + wire_Enroller_payjoin_subdir_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_build_non_incentivizing( +pub extern "C" fn frbgen_payjoin_flutter_wire_Enroller_process_res( port_: i64, - that: *mut wire_cst_request_builder, + that: *mut wire_cst_enroller, + body: *mut wire_cst_list_prim_u_8_loose, + ctx: *mut wire_cst_client_response, ) { - wire_RequestBuilder_build_non_incentivizing_impl(port_, that) + wire_Enroller_process_res_impl(port_, that, body, ctx) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_build_recommended( +pub extern "C" fn frbgen_payjoin_flutter_wire_Enroller_subdirectory( port_: i64, - that: *mut wire_cst_request_builder, - min_fee_rate: u64, + that: *mut wire_cst_enroller, ) { - wire_RequestBuilder_build_recommended_impl(port_, that, min_fee_rate) + wire_Enroller_subdirectory_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_build_with_additional_fee( +pub extern "C" fn frbgen_payjoin_flutter_wire_Headers_from_vec( port_: i64, - that: *mut wire_cst_request_builder, - max_fee_contribution: u64, - change_index: *mut u8, - min_fee_rate: u64, - clamp_fee_contribution: bool, + body: *mut wire_cst_list_prim_u_8_loose, ) { - wire_RequestBuilder_build_with_additional_fee_impl( - port_, - that, - max_fee_contribution, - change_index, - min_fee_rate, - clamp_fee_contribution, - ) + wire_Headers_from_vec_impl(port_, body) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_from_psbt_and_uri( +pub extern "C" fn frbgen_payjoin_flutter_wire_MaybeInputsOwned_check_inputs_not_owned( port_: i64, - psbt_base64: *mut wire_cst_list_prim_u_8_strict, - uri: *mut wire_cst_uri, + that: *mut wire_cst_maybe_inputs_owned, + is_owned: *const std::ffi::c_void, ) { - wire_RequestBuilder_from_psbt_and_uri_impl(port_, psbt_base64, uri) + wire_MaybeInputsOwned_check_inputs_not_owned_impl(port_, that, is_owned) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_new(port_: i64) { - wire_RequestBuilder_new_impl(port_) +pub extern "C" fn frbgen_payjoin_flutter_wire_MaybeInputsSeen_check_no_inputs_seen_before( + port_: i64, + that: *mut wire_cst_maybe_inputs_seen, + is_known: *const std::ffi::c_void, +) { + wire_MaybeInputsSeen_check_no_inputs_seen_before_impl(port_, that, is_known) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_MaybeMixedInputScripts_check_no_mixed_input_scripts( + port_: i64, + that: *mut wire_cst_maybe_mixed_input_scripts, +) { + wire_MaybeMixedInputScripts_check_no_mixed_input_scripts_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_OutputsUnknown_identify_receiver_outputs( + port_: i64, + that: *mut wire_cst_outputs_unknown, + is_receiver_output: *const std::ffi::c_void, +) { + wire_OutputsUnknown_identify_receiver_outputs_impl(port_, that, is_receiver_output) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_PayjoinProposal_is_output_substitution_disabled( + port_: i64, + that: *mut wire_cst_payjoin_proposal, +) { + wire_PayjoinProposal_is_output_substitution_disabled_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_PayjoinProposal_owned_vouts( + port_: i64, + that: *mut wire_cst_payjoin_proposal, +) { + wire_PayjoinProposal_owned_vouts_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_PayjoinProposal_psbt( + port_: i64, + that: *mut wire_cst_payjoin_proposal, +) { + wire_PayjoinProposal_psbt_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_PayjoinProposal_utxos_to_be_locked( + port_: i64, + that: *mut wire_cst_payjoin_proposal, +) { + wire_PayjoinProposal_utxos_to_be_locked_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_ProvisionalProposal_contribute_non_witness_input( + port_: i64, + that: *mut wire_cst_provisional_proposal, + tx: *mut wire_cst_list_prim_u_8_loose, + outpoint: *mut wire_cst_out_point, +) { + wire_ProvisionalProposal_contribute_non_witness_input_impl(port_, that, tx, outpoint) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_ProvisionalProposal_contribute_witness_input( + port_: i64, + that: *mut wire_cst_provisional_proposal, + txo: *mut wire_cst_tx_out, + outpoint: *mut wire_cst_out_point, +) { + wire_ProvisionalProposal_contribute_witness_input_impl(port_, that, txo, outpoint) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_ProvisionalProposal_finalize_proposal( + port_: i64, + that: *mut wire_cst_provisional_proposal, + process_psbt: *const std::ffi::c_void, + min_feerate_sat_per_vb: *mut u64, +) { + wire_ProvisionalProposal_finalize_proposal_impl( + port_, + that, + process_psbt, + min_feerate_sat_per_vb, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_ProvisionalProposal_substitute_output_address( + port_: i64, + that: *mut wire_cst_provisional_proposal, + address: *mut wire_cst_list_prim_u_8_strict, +) { + wire_ProvisionalProposal_substitute_output_address_impl(port_, that, address) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_ProvisionalProposal_try_preserving_privacy( + port_: i64, + that: *mut wire_cst_provisional_proposal, + candidate_inputs: *mut wire_cst_list_record_u_64_out_point, +) { + wire_ProvisionalProposal_try_preserving_privacy_impl(port_, that, candidate_inputs) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_UncheckedProposal_assume_interactive_receiver( + port_: i64, + that: *mut wire_cst_unchecked_proposal, +) { + wire_UncheckedProposal_assume_interactive_receiver_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_UncheckedProposal_check_broadcast_suitability( + port_: i64, + that: *mut wire_cst_unchecked_proposal, + min_fee_rate: *mut u64, + can_broadcast: *const std::ffi::c_void, +) { + wire_UncheckedProposal_check_broadcast_suitability_impl( + port_, + that, + min_fee_rate, + can_broadcast, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + port_: i64, + that: *mut wire_cst_unchecked_proposal, +) { + wire_UncheckedProposal_extract_tx_to_schedule_broadcast_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_UncheckedProposal_from_request( + port_: i64, + body: *mut wire_cst_list_prim_u_8_loose, + query: *mut wire_cst_list_prim_u_8_strict, + headers: *mut wire_cst_headers, +) { + wire_UncheckedProposal_from_request_impl(port_, body, query, headers) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2MaybeInputsOwned_check_inputs_not_owned( + port_: i64, + that: *mut wire_cst_v_2_maybe_inputs_owned, + is_owned: *const std::ffi::c_void, +) { + wire_V2MaybeInputsOwned_check_inputs_not_owned_impl(port_, that, is_owned) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2MaybeInputsSeen_check_no_inputs_seen_before( + port_: i64, + that: *mut wire_cst_v_2_maybe_inputs_seen, + is_known: *const std::ffi::c_void, +) { + wire_V2MaybeInputsSeen_check_no_inputs_seen_before_impl(port_, that, is_known) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts( + port_: i64, + that: *mut wire_cst_v_2_maybe_mixed_input_scripts, +) { + wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2OutputsUnknown_identify_receiver_outputs( + port_: i64, + that: *mut wire_cst_v_2_outputs_unknown, + is_receiver_output: *const std::ffi::c_void, +) { + wire_V2OutputsUnknown_identify_receiver_outputs_impl(port_, that, is_receiver_output) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2PayjoinProposal_deserialize_res( + port_: i64, + that: *mut wire_cst_v_2_payjoin_proposal, + res: *mut wire_cst_list_prim_u_8_loose, + ohttp_context: *mut wire_cst_client_response, +) { + wire_V2PayjoinProposal_deserialize_res_impl(port_, that, res, ohttp_context) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2PayjoinProposal_extract_v1_req( + port_: i64, + that: *mut wire_cst_v_2_payjoin_proposal, +) { + wire_V2PayjoinProposal_extract_v1_req_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2PayjoinProposal_extract_v2_req( + port_: i64, + that: *mut wire_cst_v_2_payjoin_proposal, +) { + wire_V2PayjoinProposal_extract_v2_req_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2PayjoinProposal_is_output_substitution_disabled( + port_: i64, + that: *mut wire_cst_v_2_payjoin_proposal, +) { + wire_V2PayjoinProposal_is_output_substitution_disabled_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2PayjoinProposal_owned_vouts( + port_: i64, + that: *mut wire_cst_v_2_payjoin_proposal, +) { + wire_V2PayjoinProposal_owned_vouts_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2PayjoinProposal_psbt( + port_: i64, + that: *mut wire_cst_v_2_payjoin_proposal, +) { + wire_V2PayjoinProposal_psbt_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2PayjoinProposal_utxos_to_be_locked( + port_: i64, + that: *mut wire_cst_v_2_payjoin_proposal, +) { + wire_V2PayjoinProposal_utxos_to_be_locked_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2ProvisionalProposal_contribute_non_witness_input( + port_: i64, + that: *mut wire_cst_v_2_provisional_proposal, + tx: *mut wire_cst_list_prim_u_8_loose, + outpoint: *mut wire_cst_out_point, +) { + wire_V2ProvisionalProposal_contribute_non_witness_input_impl(port_, that, tx, outpoint) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2ProvisionalProposal_contribute_witness_input( + port_: i64, + that: *mut wire_cst_v_2_provisional_proposal, + txo: *mut wire_cst_tx_out, + outpoint: *mut wire_cst_out_point, +) { + wire_V2ProvisionalProposal_contribute_witness_input_impl(port_, that, txo, outpoint) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2ProvisionalProposal_finalize_proposal( + port_: i64, + that: *mut wire_cst_v_2_provisional_proposal, + process_psbt: *const std::ffi::c_void, + min_feerate_sat_per_vb: *mut u64, +) { + wire_V2ProvisionalProposal_finalize_proposal_impl( + port_, + that, + process_psbt, + min_feerate_sat_per_vb, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2ProvisionalProposal_substitute_output_address( + port_: i64, + that: *mut wire_cst_v_2_provisional_proposal, + address: *mut wire_cst_list_prim_u_8_strict, +) { + wire_V2ProvisionalProposal_substitute_output_address_impl(port_, that, address) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2ProvisionalProposal_try_preserving_privacy( + port_: i64, + that: *mut wire_cst_v_2_provisional_proposal, + candidate_inputs: *mut wire_cst_list_record_u_64_out_point, +) { + wire_V2ProvisionalProposal_try_preserving_privacy_impl(port_, that, candidate_inputs) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2UncheckedProposal_assume_interactive_receiver( + port_: i64, + that: *mut wire_cst_v_2_unchecked_proposal, +) { + wire_V2UncheckedProposal_assume_interactive_receiver_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2UncheckedProposal_check_broadcast_suitability( + port_: i64, + that: *mut wire_cst_v_2_unchecked_proposal, + min_fee_rate: *mut u64, + can_broadcast: *const std::ffi::c_void, +) { + wire_V2UncheckedProposal_check_broadcast_suitability_impl( + port_, + that, + min_fee_rate, + can_broadcast, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast( + port_: i64, + that: *mut wire_cst_v_2_unchecked_proposal, +) { + wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_ContextV1_process_response( + port_: i64, + that: *mut wire_cst_context_v_1, + response: *mut wire_cst_list_prim_u_8_loose, +) { + wire_ContextV1_process_response_impl(port_, that, response) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_ContextV2_process_response( + port_: i64, + that: *mut wire_cst_context_v_2, + response: *mut wire_cst_list_prim_u_8_loose, +) { + wire_ContextV2_process_response_impl(port_, that, response) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_always_disable_output_substitution( + port_: i64, + that: *mut wire_cst_request_builder, + disable: bool, +) { + wire_RequestBuilder_always_disable_output_substitution_impl(port_, that, disable) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_build_non_incentivizing( + port_: i64, + that: *mut wire_cst_request_builder, +) { + wire_RequestBuilder_build_non_incentivizing_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_build_recommended( + port_: i64, + that: *mut wire_cst_request_builder, + min_fee_rate: u64, +) { + wire_RequestBuilder_build_recommended_impl(port_, that, min_fee_rate) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_build_with_additional_fee( + port_: i64, + that: *mut wire_cst_request_builder, + max_fee_contribution: u64, + change_index: *mut u8, + min_fee_rate: u64, + clamp_fee_contribution: bool, +) { + wire_RequestBuilder_build_with_additional_fee_impl( + port_, + that, + max_fee_contribution, + change_index, + min_fee_rate, + clamp_fee_contribution, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_from_psbt_and_uri( + port_: i64, + psbt_base64: *mut wire_cst_list_prim_u_8_strict, + uri: *mut wire_cst_uri, +) { + wire_RequestBuilder_from_psbt_and_uri_impl(port_, psbt_base64, uri) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_RequestBuilder_new(port_: i64) { + wire_RequestBuilder_new_impl(port_) } #[no_mangle] @@ -711,158 +1766,500 @@ pub extern "C" fn frbgen_payjoin_flutter_wire_Url_new( port_: i64, input: *mut wire_cst_list_prim_u_8_strict, ) { - wire_Url_new_impl(port_, input) + wire_Url_new_impl(port_, input) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire_Url_query(port_: i64, that: *mut wire_cst_url) { + wire_Url_query_impl(port_, that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_Url_query(port_: i64, that: *mut wire_cst_url) { - wire_Url_query_impl(port_, that) +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::>>::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::>>::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count(ptr as _); + StdArc::::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count(ptr as _); + StdArc::::decrement_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::::increment_strong_count(ptr as _); + StdArc::::increment_strong_count(ptr as _); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::::decrement_strong_count(ptr as _); + StdArc::::decrement_strong_count(ptr as _); } } +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_client_response( +) -> *mut wire_cst_client_response { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_client_response::new_with_null_ptr(), + ) +} + #[no_mangle] pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_1( ) -> *mut wire_cst_context_v_1 { @@ -875,11 +2272,75 @@ pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_2( flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_context_v_2::new_with_null_ptr()) } +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_enrolled() -> *mut wire_cst_enrolled { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_enrolled::new_with_null_ptr()) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_enroller() -> *mut wire_cst_enroller { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_enroller::new_with_null_ptr()) +} + #[no_mangle] pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_headers() -> *mut wire_cst_headers { flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_headers::new_with_null_ptr()) } +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_inputs_owned( +) -> *mut wire_cst_maybe_inputs_owned { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_maybe_inputs_owned::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_inputs_seen( +) -> *mut wire_cst_maybe_inputs_seen { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_maybe_inputs_seen::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_mixed_input_scripts( +) -> *mut wire_cst_maybe_mixed_input_scripts { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_maybe_mixed_input_scripts::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_out_point() -> *mut wire_cst_out_point +{ + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_out_point::new_with_null_ptr()) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_outputs_unknown( +) -> *mut wire_cst_outputs_unknown { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_outputs_unknown::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_payjoin_proposal( +) -> *mut wire_cst_payjoin_proposal { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_payjoin_proposal::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_provisional_proposal( +) -> *mut wire_cst_provisional_proposal { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_provisional_proposal::new_with_null_ptr(), + ) +} + #[no_mangle] pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_request_builder( ) -> *mut wire_cst_request_builder { @@ -896,6 +2357,11 @@ pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_request_context( ) } +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_tx_out() -> *mut wire_cst_tx_out { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_tx_out::new_with_null_ptr()) +} + #[no_mangle] pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_u_64(value: u64) -> *mut u64 { flutter_rust_bridge::for_generated::new_leak_box_ptr(value) @@ -924,6 +2390,87 @@ pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_url() -> *mut wire_ flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_url::new_with_null_ptr()) } +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_inputs_owned( +) -> *mut wire_cst_v_2_maybe_inputs_owned { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_v_2_maybe_inputs_owned::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_inputs_seen( +) -> *mut wire_cst_v_2_maybe_inputs_seen { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_v_2_maybe_inputs_seen::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_mixed_input_scripts( +) -> *mut wire_cst_v_2_maybe_mixed_input_scripts { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_v_2_maybe_mixed_input_scripts::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_outputs_unknown( +) -> *mut wire_cst_v_2_outputs_unknown { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_v_2_outputs_unknown::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_payjoin_proposal( +) -> *mut wire_cst_v_2_payjoin_proposal { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_v_2_payjoin_proposal::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_provisional_proposal( +) -> *mut wire_cst_v_2_provisional_proposal { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_v_2_provisional_proposal::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_unchecked_proposal( +) -> *mut wire_cst_v_2_unchecked_proposal { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_v_2_unchecked_proposal::new_with_null_ptr(), + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_list_out_point( + len: i32, +) -> *mut wire_cst_list_out_point { + let wrap = wire_cst_list_out_point { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_list_prim_u_64_strict( + len: i32, +) -> *mut wire_cst_list_prim_u_64_strict { + let ans = wire_cst_list_prim_u_64_strict { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr(Default::default(), len), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(ans) +} + #[no_mangle] pub extern "C" fn frbgen_payjoin_flutter_cst_new_list_prim_u_8_loose( len: i32, @@ -960,6 +2507,25 @@ pub extern "C" fn frbgen_payjoin_flutter_cst_new_list_record_string_string( flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) } +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_list_record_u_64_out_point( + len: i32, +) -> *mut wire_cst_list_record_u_64_out_point { + let wrap = wire_cst_list_record_u_64_out_point { + ptr: flutter_rust_bridge::for_generated::new_leak_vec_ptr( + ::new_with_null_ptr(), + len, + ), + len, + }; + flutter_rust_bridge::for_generated::new_leak_box_ptr(wrap) +} + +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_client_response { + field0: usize, +} #[repr(C)] #[derive(Clone, Copy)] pub struct wire_cst_context_v_1 { @@ -972,11 +2538,33 @@ pub struct wire_cst_context_v_2 { } #[repr(C)] #[derive(Clone, Copy)] +pub struct wire_cst_enrolled { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_enroller { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] pub struct wire_cst_headers { field0: *mut wire_cst_list_record_string_string, } #[repr(C)] #[derive(Clone, Copy)] +pub struct wire_cst_list_out_point { + ptr: *mut wire_cst_out_point, + len: i32, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_list_prim_u_64_strict { + ptr: *mut u64, + len: i32, +} +#[repr(C)] +#[derive(Clone, Copy)] pub struct wire_cst_list_prim_u_8_loose { ptr: *mut u8, len: i32, @@ -995,11 +2583,38 @@ pub struct wire_cst_list_record_string_string { } #[repr(C)] #[derive(Clone, Copy)] +pub struct wire_cst_list_record_u_64_out_point { + ptr: *mut wire_cst_record_u_64_out_point, + len: i32, +} +#[repr(C)] +#[derive(Clone, Copy)] pub struct wire_cst_maybe_inputs_owned { field0: usize, } #[repr(C)] #[derive(Clone, Copy)] +pub struct wire_cst_maybe_inputs_seen { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_maybe_mixed_input_scripts { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_out_point { + txid: *mut wire_cst_list_prim_u_8_strict, + vout: u32, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_outputs_unknown { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] pub struct wire_cst_payjoin_error { tag: i32, kind: PayjoinErrorKind, @@ -1113,12 +2728,28 @@ pub struct wire_cst_PayjoinError_UrlError { } #[repr(C)] #[derive(Clone, Copy)] +pub struct wire_cst_payjoin_proposal { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_provisional_proposal { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] pub struct wire_cst_record_string_string { field0: *mut wire_cst_list_prim_u_8_strict, field1: *mut wire_cst_list_prim_u_8_strict, } #[repr(C)] #[derive(Clone, Copy)] +pub struct wire_cst_record_u_64_out_point { + field0: u64, + field1: wire_cst_out_point, +} +#[repr(C)] +#[derive(Clone, Copy)] pub struct wire_cst_request { url: wire_cst_url, body: *mut wire_cst_list_prim_u_8_strict, @@ -1147,6 +2778,18 @@ pub struct wire_cst_request_context_v_2 { } #[repr(C)] #[derive(Clone, Copy)] +pub struct wire_cst_request_response { + request: wire_cst_request, + client_response: wire_cst_client_response, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_tx_out { + value: u64, + script_pubkey: *mut wire_cst_list_prim_u_8_strict, +} +#[repr(C)] +#[derive(Clone, Copy)] pub struct wire_cst_unchecked_proposal { field0: usize, } @@ -1160,3 +2803,38 @@ pub struct wire_cst_uri { pub struct wire_cst_url { field0: usize, } +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_v_2_maybe_inputs_owned { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_v_2_maybe_inputs_seen { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_v_2_maybe_mixed_input_scripts { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_v_2_outputs_unknown { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_v_2_payjoin_proposal { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_v_2_provisional_proposal { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_v_2_unchecked_proposal { + field0: usize, +} diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index d01cef2..149ada5 100644 --- a/rust/src/frb_generated.rs +++ b/rust/src/frb_generated.rs @@ -40,62 +40,97 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire_Headers_from_vec_impl( +fn wire_Enrolled_extract_req_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Enrolled_extract_req", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::Enrolled::extract_req(&api_that) + })()) + } + }, + ) +} +fn wire_Enrolled_fallback_target_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Enrolled_fallback_target", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::receive::Enrolled::fallback_target(&api_that)) + })()) + } + }, + ) +} +fn wire_Enrolled_process_res_impl( port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, body: impl CstDecode>, + ctx: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "Headers_from_vec", + debug_name: "Enrolled_process_res", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { + let api_that = that.cst_decode(); let api_body = body.cst_decode(); + let api_ctx = ctx.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::receive::Headers::from_vec(api_body)) + crate::api::receive::Enrolled::process_res(&api_that, api_body, api_ctx) })()) } }, ) } -fn wire_UncheckedProposal_check_broadcast_suitability_impl( +fn wire_Enrolled_subdirectory_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - min_fee_rate: impl CstDecode>, - can_broadcast: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "UncheckedProposal_check_broadcast_suitability", + debug_name: "Enrolled_subdirectory", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_min_fee_rate = min_fee_rate.cst_decode(); - let api_can_broadcast = - decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(can_broadcast.cst_decode()); move |context| { transform_result_dco((move || { - crate::api::receive::UncheckedProposal::check_broadcast_suitability( - &api_that, - api_min_fee_rate, - api_can_broadcast, - ) + Result::<_, ()>::Ok(crate::api::receive::Enrolled::subdirectory(&api_that)) })()) } }, ) } -fn wire_UncheckedProposal_extract_tx_to_schedule_broadcast_impl( +fn wire_Enroller_extract_req_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "UncheckedProposal_extract_tx_to_schedule_broadcast", + debug_name: "Enroller_extract_req", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -103,236 +138,277 @@ fn wire_UncheckedProposal_extract_tx_to_schedule_broadcast_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok( - crate::api::receive::UncheckedProposal::extract_tx_to_schedule_broadcast( - &api_that, - ), - ) + crate::api::receive::Enroller::extract_req(&api_that) })()) } }, ) } -fn wire_UncheckedProposal_from_request_impl( +fn wire_Enroller_from_relay_config_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + relay_url: impl CstDecode, + ohttp_config_base64: impl CstDecode, + ohttp_proxy_url: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Enroller_from_relay_config", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_relay_url = relay_url.cst_decode(); + let api_ohttp_config_base64 = ohttp_config_base64.cst_decode(); + let api_ohttp_proxy_url = ohttp_proxy_url.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::receive::Enroller::from_relay_config( + api_relay_url, + api_ohttp_config_base64, + api_ohttp_proxy_url, + )) + })()) + } + }, + ) +} +fn wire_Enroller_payjoin_subdir_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Enroller_payjoin_subdir", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::receive::Enroller::payjoin_subdir(&api_that)) + })()) + } + }, + ) +} +fn wire_Enroller_process_res_impl( port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, body: impl CstDecode>, - query: impl CstDecode, - headers: impl CstDecode, + ctx: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "UncheckedProposal_from_request", + debug_name: "Enroller_process_res", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { + let api_that = that.cst_decode(); let api_body = body.cst_decode(); - let api_query = query.cst_decode(); - let api_headers = headers.cst_decode(); + let api_ctx = ctx.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::receive::UncheckedProposal::from_request( - api_body, - api_query, - api_headers, - ) + crate::api::receive::Enroller::process_res(&api_that, api_body, api_ctx) })()) } }, ) } -fn wire_ContextV1_process_response_impl( +fn wire_Enroller_subdirectory_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - response: impl CstDecode>, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ContextV1_process_response", + debug_name: "Enroller_subdirectory", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_response = response.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::send::ContextV1::process_response(&api_that, api_response) + Result::<_, ()>::Ok(crate::api::receive::Enroller::subdirectory(&api_that)) })()) } }, ) } -fn wire_ContextV2_process_response_impl( +fn wire_Headers_from_vec_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - response: impl CstDecode>, + body: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ContextV2_process_response", + debug_name: "Headers_from_vec", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_that = that.cst_decode(); - let api_response = response.cst_decode(); + let api_body = body.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::send::ContextV2::process_response(&api_that, api_response) + Result::<_, ()>::Ok(crate::api::receive::Headers::from_vec(api_body)) })()) } }, ) } -fn wire_RequestBuilder_always_disable_output_substitution_impl( +fn wire_MaybeInputsOwned_check_inputs_not_owned_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - disable: impl CstDecode, + that: impl CstDecode, + is_owned: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "RequestBuilder_always_disable_output_substitution", + debug_name: "MaybeInputsOwned_check_inputs_not_owned", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_disable = disable.cst_decode(); + let api_is_owned = + decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(is_owned.cst_decode()); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok( - crate::api::send::RequestBuilder::always_disable_output_substitution( - &api_that, - api_disable, - ), + crate::api::receive::MaybeInputsOwned::check_inputs_not_owned( + &api_that, + api_is_owned, ) })()) } }, ) } -fn wire_RequestBuilder_build_non_incentivizing_impl( +fn wire_MaybeInputsSeen_check_no_inputs_seen_before_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, + is_known: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "RequestBuilder_build_non_incentivizing", + debug_name: "MaybeInputsSeen_check_no_inputs_seen_before", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); + let api_is_known = decode_DartFn_Inputs_out_point_Output_bool(is_known.cst_decode()); move |context| { transform_result_dco((move || { - crate::api::send::RequestBuilder::build_non_incentivizing(&api_that) + crate::api::receive::MaybeInputsSeen::check_no_inputs_seen_before( + &api_that, + api_is_known, + ) })()) } }, ) } -fn wire_RequestBuilder_build_recommended_impl( +fn wire_MaybeMixedInputScripts_check_no_mixed_input_scripts_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - min_fee_rate: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "RequestBuilder_build_recommended", + debug_name: "MaybeMixedInputScripts_check_no_mixed_input_scripts", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_min_fee_rate = min_fee_rate.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::send::RequestBuilder::build_recommended(&api_that, api_min_fee_rate) + crate::api::receive::MaybeMixedInputScripts::check_no_mixed_input_scripts( + &api_that, + ) })()) } }, ) } -fn wire_RequestBuilder_build_with_additional_fee_impl( +fn wire_OutputsUnknown_identify_receiver_outputs_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - max_fee_contribution: impl CstDecode, - change_index: impl CstDecode>, - min_fee_rate: impl CstDecode, - clamp_fee_contribution: impl CstDecode, + that: impl CstDecode, + is_receiver_output: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "RequestBuilder_build_with_additional_fee", + debug_name: "OutputsUnknown_identify_receiver_outputs", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_max_fee_contribution = max_fee_contribution.cst_decode(); - let api_change_index = change_index.cst_decode(); - let api_min_fee_rate = min_fee_rate.cst_decode(); - let api_clamp_fee_contribution = clamp_fee_contribution.cst_decode(); + let api_is_receiver_output = decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( + is_receiver_output.cst_decode(), + ); move |context| { transform_result_dco((move || { - crate::api::send::RequestBuilder::build_with_additional_fee( + crate::api::receive::OutputsUnknown::identify_receiver_outputs( &api_that, - api_max_fee_contribution, - api_change_index, - api_min_fee_rate, - api_clamp_fee_contribution, + api_is_receiver_output, ) })()) } }, ) } -fn wire_RequestBuilder_from_psbt_and_uri_impl( +fn wire_PayjoinProposal_is_output_substitution_disabled_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - psbt_base64: impl CstDecode, - uri: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "RequestBuilder_from_psbt_and_uri", + debug_name: "PayjoinProposal_is_output_substitution_disabled", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_psbt_base64 = psbt_base64.cst_decode(); - let api_uri = uri.cst_decode(); + let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::send::RequestBuilder::from_psbt_and_uri(api_psbt_base64, api_uri) + Result::<_, ()>::Ok( + crate::api::receive::PayjoinProposal::is_output_substitution_disabled( + &api_that, + ), + ) })()) } }, ) } -fn wire_RequestBuilder_new_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { +fn wire_PayjoinProposal_owned_vouts_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "RequestBuilder_new", + debug_name: "PayjoinProposal_owned_vouts", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { + let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::send::RequestBuilder::new()) + Result::<_, ()>::Ok(crate::api::receive::PayjoinProposal::owned_vouts( + &api_that, + )) })()) } }, ) } -fn wire_RequestContext_extract_v1_impl( +fn wire_PayjoinProposal_psbt_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "RequestContext_extract_v1", + debug_name: "PayjoinProposal_psbt", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -340,148 +416,1128 @@ fn wire_RequestContext_extract_v1_impl( let api_that = that.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::send::RequestContext::extract_v1(&api_that) + Result::<_, ()>::Ok(crate::api::receive::PayjoinProposal::psbt(&api_that)) })()) } }, ) } -fn wire_RequestContext_extract_v2_impl( +fn wire_PayjoinProposal_utxos_to_be_locked_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - ohttp_proxy_url: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "RequestContext_extract_v2", + debug_name: "PayjoinProposal_utxos_to_be_locked", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); - let api_ohttp_proxy_url = ohttp_proxy_url.cst_decode(); move |context| { transform_result_dco((move || { - crate::api::send::RequestContext::extract_v2(&api_that, api_ohttp_proxy_url) + Result::<_, ()>::Ok(crate::api::receive::PayjoinProposal::utxos_to_be_locked( + &api_that, + )) })()) } }, ) } -fn wire_Uri_address_impl( +fn wire_ProvisionalProposal_contribute_non_witness_input_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, + tx: impl CstDecode>, + outpoint: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "Uri_address", + debug_name: "ProvisionalProposal_contribute_non_witness_input", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); + let api_tx = tx.cst_decode(); + let api_outpoint = outpoint.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::uri::Uri::address(&api_that)) + crate::api::receive::ProvisionalProposal::contribute_non_witness_input( + &api_that, + api_tx, + api_outpoint, + ) })()) } }, ) } -fn wire_Uri_amount_impl( +fn wire_ProvisionalProposal_contribute_witness_input_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, + txo: impl CstDecode, + outpoint: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "Uri_amount", + debug_name: "ProvisionalProposal_contribute_witness_input", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); + let api_txo = txo.cst_decode(); + let api_outpoint = outpoint.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::uri::Uri::amount(&api_that)) + crate::api::receive::ProvisionalProposal::contribute_witness_input( + &api_that, + api_txo, + api_outpoint, + ) })()) } }, ) } -fn wire_Uri_from_str_impl( +fn wire_ProvisionalProposal_finalize_proposal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - uri: impl CstDecode, + that: impl CstDecode, + process_psbt: impl CstDecode, + min_feerate_sat_per_vb: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "Uri_from_str", + debug_name: "ProvisionalProposal_finalize_proposal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_uri = uri.cst_decode(); - move |context| transform_result_dco((move || crate::api::uri::Uri::from_str(api_uri))()) + let api_that = that.cst_decode(); + let api_process_psbt = + decode_DartFn_Inputs_String_Output_String(process_psbt.cst_decode()); + let api_min_feerate_sat_per_vb = min_feerate_sat_per_vb.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::ProvisionalProposal::finalize_proposal( + &api_that, + api_process_psbt, + api_min_feerate_sat_per_vb, + ) + })()) + } }, ) } -fn wire_Url_new_impl( +fn wire_ProvisionalProposal_substitute_output_address_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - input: impl CstDecode, + that: impl CstDecode, + address: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "Url_new", + debug_name: "ProvisionalProposal_substitute_output_address", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_input = input.cst_decode(); - move |context| transform_result_dco((move || crate::api::uri::Url::new(api_input))()) + let api_that = that.cst_decode(); + let api_address = address.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::ProvisionalProposal::substitute_output_address( + &api_that, + api_address, + ) + })()) + } }, ) } -fn wire_Url_query_impl( +fn wire_ProvisionalProposal_try_preserving_privacy_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, + candidate_inputs: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "Url_query", + debug_name: "ProvisionalProposal_try_preserving_privacy", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_that = that.cst_decode(); + let api_candidate_inputs = candidate_inputs.cst_decode(); move |context| { transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::uri::Url::query(&api_that)) + crate::api::receive::ProvisionalProposal::try_preserving_privacy( + &api_that, + api_candidate_inputs, + ) })()) } }, ) } - -// Section: related_funcs - -fn decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( - dart_opaque: flutter_rust_bridge::DartOpaque, -) -> impl Fn(Vec) -> flutter_rust_bridge::DartFnFuture { - use flutter_rust_bridge::IntoDart; - - async fn body(dart_opaque: flutter_rust_bridge::DartOpaque, arg0: Vec) -> bool { - let args = vec![arg0.into_into_dart().into_dart()]; - let message = FLUTTER_RUST_BRIDGE_HANDLER - .dart_fn_invoke(dart_opaque, args) - .await; - ::sse_decode_single(message) - } - - move |arg0: Vec| { - flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body( - dart_opaque.clone(), - arg0, - )) - } +fn wire_UncheckedProposal_assume_interactive_receiver_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "UncheckedProposal_assume_interactive_receiver", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok( + crate::api::receive::UncheckedProposal::assume_interactive_receiver( + &api_that, + ), + ) + })()) + } + }, + ) +} +fn wire_UncheckedProposal_check_broadcast_suitability_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + min_fee_rate: impl CstDecode>, + can_broadcast: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "UncheckedProposal_check_broadcast_suitability", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_min_fee_rate = min_fee_rate.cst_decode(); + let api_can_broadcast = + decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(can_broadcast.cst_decode()); + move |context| { + transform_result_dco((move || { + crate::api::receive::UncheckedProposal::check_broadcast_suitability( + &api_that, + api_min_fee_rate, + api_can_broadcast, + ) + })()) + } + }, + ) +} +fn wire_UncheckedProposal_extract_tx_to_schedule_broadcast_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "UncheckedProposal_extract_tx_to_schedule_broadcast", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok( + crate::api::receive::UncheckedProposal::extract_tx_to_schedule_broadcast( + &api_that, + ), + ) + })()) + } + }, + ) +} +fn wire_UncheckedProposal_from_request_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + body: impl CstDecode>, + query: impl CstDecode, + headers: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "UncheckedProposal_from_request", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_body = body.cst_decode(); + let api_query = query.cst_decode(); + let api_headers = headers.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::UncheckedProposal::from_request( + api_body, + api_query, + api_headers, + ) + })()) + } + }, + ) +} +fn wire_V2MaybeInputsOwned_check_inputs_not_owned_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + is_owned: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2MaybeInputsOwned_check_inputs_not_owned", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_is_owned = + decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(is_owned.cst_decode()); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2MaybeInputsOwned::check_inputs_not_owned( + &api_that, + api_is_owned, + ) + })()) + } + }, + ) +} +fn wire_V2MaybeInputsSeen_check_no_inputs_seen_before_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + is_known: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2MaybeInputsSeen_check_no_inputs_seen_before", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_is_known = decode_DartFn_Inputs_out_point_Output_bool(is_known.cst_decode()); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2MaybeInputsSeen::check_no_inputs_seen_before( + &api_that, + api_is_known, + ) + })()) + } + }, + ) +} +fn wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2MaybeMixedInputScripts_check_no_mixed_input_scripts", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2MaybeMixedInputScripts::check_no_mixed_input_scripts( + &api_that, + ) + })()) + } + }, + ) +} +fn wire_V2OutputsUnknown_identify_receiver_outputs_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + is_receiver_output: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2OutputsUnknown_identify_receiver_outputs", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_is_receiver_output = decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( + is_receiver_output.cst_decode(), + ); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2OutputsUnknown::identify_receiver_outputs( + &api_that, + api_is_receiver_output, + ) + })()) + } + }, + ) +} +fn wire_V2PayjoinProposal_deserialize_res_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + res: impl CstDecode>, + ohttp_context: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2PayjoinProposal_deserialize_res", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_res = res.cst_decode(); + let api_ohttp_context = ohttp_context.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2PayjoinProposal::deserialize_res( + &api_that, + api_res, + api_ohttp_context, + ) + })()) + } + }, + ) +} +fn wire_V2PayjoinProposal_extract_v1_req_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2PayjoinProposal_extract_v1_req", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::receive::V2PayjoinProposal::extract_v1_req( + &api_that, + )) + })()) + } + }, + ) +} +fn wire_V2PayjoinProposal_extract_v2_req_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2PayjoinProposal_extract_v2_req", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2PayjoinProposal::extract_v2_req(&api_that) + })()) + } + }, + ) +} +fn wire_V2PayjoinProposal_is_output_substitution_disabled_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2PayjoinProposal_is_output_substitution_disabled", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok( + crate::api::receive::V2PayjoinProposal::is_output_substitution_disabled( + &api_that, + ), + ) + })()) + } + }, + ) +} +fn wire_V2PayjoinProposal_owned_vouts_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2PayjoinProposal_owned_vouts", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::receive::V2PayjoinProposal::owned_vouts( + &api_that, + )) + })()) + } + }, + ) +} +fn wire_V2PayjoinProposal_psbt_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2PayjoinProposal_psbt", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::receive::V2PayjoinProposal::psbt(&api_that)) + })()) + } + }, + ) +} +fn wire_V2PayjoinProposal_utxos_to_be_locked_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2PayjoinProposal_utxos_to_be_locked", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::receive::V2PayjoinProposal::utxos_to_be_locked( + &api_that, + )) + })()) + } + }, + ) +} +fn wire_V2ProvisionalProposal_contribute_non_witness_input_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + tx: impl CstDecode>, + outpoint: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2ProvisionalProposal_contribute_non_witness_input", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_tx = tx.cst_decode(); + let api_outpoint = outpoint.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2ProvisionalProposal::contribute_non_witness_input( + &api_that, + api_tx, + api_outpoint, + ) + })()) + } + }, + ) +} +fn wire_V2ProvisionalProposal_contribute_witness_input_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + txo: impl CstDecode, + outpoint: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2ProvisionalProposal_contribute_witness_input", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_txo = txo.cst_decode(); + let api_outpoint = outpoint.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2ProvisionalProposal::contribute_witness_input( + &api_that, + api_txo, + api_outpoint, + ) + })()) + } + }, + ) +} +fn wire_V2ProvisionalProposal_finalize_proposal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + process_psbt: impl CstDecode, + min_feerate_sat_per_vb: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2ProvisionalProposal_finalize_proposal", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_process_psbt = + decode_DartFn_Inputs_String_Output_String(process_psbt.cst_decode()); + let api_min_feerate_sat_per_vb = min_feerate_sat_per_vb.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2ProvisionalProposal::finalize_proposal( + &api_that, + api_process_psbt, + api_min_feerate_sat_per_vb, + ) + })()) + } + }, + ) +} +fn wire_V2ProvisionalProposal_substitute_output_address_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + address: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2ProvisionalProposal_substitute_output_address", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_address = address.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2ProvisionalProposal::substitute_output_address( + &api_that, + api_address, + ) + })()) + } + }, + ) +} +fn wire_V2ProvisionalProposal_try_preserving_privacy_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + candidate_inputs: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2ProvisionalProposal_try_preserving_privacy", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_candidate_inputs = candidate_inputs.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2ProvisionalProposal::try_preserving_privacy( + &api_that, + api_candidate_inputs, + ) + })()) + } + }, + ) +} +fn wire_V2UncheckedProposal_assume_interactive_receiver_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2UncheckedProposal_assume_interactive_receiver", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok( + crate::api::receive::V2UncheckedProposal::assume_interactive_receiver( + &api_that, + ), + ) + })()) + } + }, + ) +} +fn wire_V2UncheckedProposal_check_broadcast_suitability_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + min_fee_rate: impl CstDecode>, + can_broadcast: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2UncheckedProposal_check_broadcast_suitability", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_min_fee_rate = min_fee_rate.cst_decode(); + let api_can_broadcast = + decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(can_broadcast.cst_decode()); + move |context| { + transform_result_dco((move || { + crate::api::receive::V2UncheckedProposal::check_broadcast_suitability( + &api_that, + api_min_fee_rate, + api_can_broadcast, + ) + })()) + } + }, + ) +} +fn wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "V2UncheckedProposal_extract_tx_to_schedule_broadcast", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok( + crate::api::receive::V2UncheckedProposal::extract_tx_to_schedule_broadcast( + &api_that, + ), + ) + })()) + } + }, + ) +} +fn wire_ContextV1_process_response_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + response: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ContextV1_process_response", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_response = response.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::send::ContextV1::process_response(&api_that, api_response) + })()) + } + }, + ) +} +fn wire_ContextV2_process_response_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + response: impl CstDecode>, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ContextV2_process_response", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_response = response.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::send::ContextV2::process_response(&api_that, api_response) + })()) + } + }, + ) +} +fn wire_RequestBuilder_always_disable_output_substitution_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + disable: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "RequestBuilder_always_disable_output_substitution", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_disable = disable.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok( + crate::api::send::RequestBuilder::always_disable_output_substitution( + &api_that, + api_disable, + ), + ) + })()) + } + }, + ) +} +fn wire_RequestBuilder_build_non_incentivizing_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "RequestBuilder_build_non_incentivizing", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::send::RequestBuilder::build_non_incentivizing(&api_that) + })()) + } + }, + ) +} +fn wire_RequestBuilder_build_recommended_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + min_fee_rate: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "RequestBuilder_build_recommended", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_min_fee_rate = min_fee_rate.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::send::RequestBuilder::build_recommended(&api_that, api_min_fee_rate) + })()) + } + }, + ) +} +fn wire_RequestBuilder_build_with_additional_fee_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + max_fee_contribution: impl CstDecode, + change_index: impl CstDecode>, + min_fee_rate: impl CstDecode, + clamp_fee_contribution: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "RequestBuilder_build_with_additional_fee", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_max_fee_contribution = max_fee_contribution.cst_decode(); + let api_change_index = change_index.cst_decode(); + let api_min_fee_rate = min_fee_rate.cst_decode(); + let api_clamp_fee_contribution = clamp_fee_contribution.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::send::RequestBuilder::build_with_additional_fee( + &api_that, + api_max_fee_contribution, + api_change_index, + api_min_fee_rate, + api_clamp_fee_contribution, + ) + })()) + } + }, + ) +} +fn wire_RequestBuilder_from_psbt_and_uri_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + psbt_base64: impl CstDecode, + uri: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "RequestBuilder_from_psbt_and_uri", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_psbt_base64 = psbt_base64.cst_decode(); + let api_uri = uri.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::send::RequestBuilder::from_psbt_and_uri(api_psbt_base64, api_uri) + })()) + } + }, + ) +} +fn wire_RequestBuilder_new_impl(port_: flutter_rust_bridge::for_generated::MessagePort) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "RequestBuilder_new", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::send::RequestBuilder::new()) + })()) + } + }, + ) +} +fn wire_RequestContext_extract_v1_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "RequestContext_extract_v1", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::send::RequestContext::extract_v1(&api_that) + })()) + } + }, + ) +} +fn wire_RequestContext_extract_v2_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + ohttp_proxy_url: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "RequestContext_extract_v2", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + let api_ohttp_proxy_url = ohttp_proxy_url.cst_decode(); + move |context| { + transform_result_dco((move || { + crate::api::send::RequestContext::extract_v2(&api_that, api_ohttp_proxy_url) + })()) + } + }, + ) +} +fn wire_Uri_address_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Uri_address", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::uri::Uri::address(&api_that)) + })()) + } + }, + ) +} +fn wire_Uri_amount_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Uri_amount", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::uri::Uri::amount(&api_that)) + })()) + } + }, + ) +} +fn wire_Uri_from_str_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + uri: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Uri_from_str", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_uri = uri.cst_decode(); + move |context| transform_result_dco((move || crate::api::uri::Uri::from_str(api_uri))()) + }, + ) +} +fn wire_Url_new_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + input: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Url_new", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_input = input.cst_decode(); + move |context| transform_result_dco((move || crate::api::uri::Url::new(api_input))()) + }, + ) +} +fn wire_Url_query_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Url_query", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_that = that.cst_decode(); + move |context| { + transform_result_dco((move || { + Result::<_, ()>::Ok(crate::api::uri::Url::query(&api_that)) + })()) + } + }, + ) +} + +// Section: related_funcs + +fn decode_DartFn_Inputs_String_Output_String( + dart_opaque: flutter_rust_bridge::DartOpaque, +) -> impl Fn(String) -> flutter_rust_bridge::DartFnFuture { + use flutter_rust_bridge::IntoDart; + + async fn body(dart_opaque: flutter_rust_bridge::DartOpaque, arg0: String) -> String { + let args = vec![arg0.into_into_dart().into_dart()]; + let message = FLUTTER_RUST_BRIDGE_HANDLER + .dart_fn_invoke(dart_opaque, args) + .await; + ::sse_decode_single(message) + } + + move |arg0: String| { + flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body( + dart_opaque.clone(), + arg0, + )) + } +} +fn decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( + dart_opaque: flutter_rust_bridge::DartOpaque, +) -> impl Fn(Vec) -> flutter_rust_bridge::DartFnFuture { + use flutter_rust_bridge::IntoDart; + + async fn body(dart_opaque: flutter_rust_bridge::DartOpaque, arg0: Vec) -> bool { + let args = vec![arg0.into_into_dart().into_dart()]; + let message = FLUTTER_RUST_BRIDGE_HANDLER + .dart_fn_invoke(dart_opaque, args) + .await; + ::sse_decode_single(message) + } + + move |arg0: Vec| { + flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body( + dart_opaque.clone(), + arg0, + )) + } +} +fn decode_DartFn_Inputs_out_point_Output_bool( + dart_opaque: flutter_rust_bridge::DartOpaque, +) -> impl Fn(crate::api::receive::OutPoint) -> flutter_rust_bridge::DartFnFuture { + use flutter_rust_bridge::IntoDart; + + async fn body( + dart_opaque: flutter_rust_bridge::DartOpaque, + arg0: crate::api::receive::OutPoint, + ) -> bool { + let args = vec![arg0.into_into_dart().into_dart()]; + let message = FLUTTER_RUST_BRIDGE_HANDLER + .dart_fn_invoke(dart_opaque, args) + .await; + ::sse_decode_single(message) + } + + move |arg0: crate::api::receive::OutPoint| { + flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body( + dart_opaque.clone(), + arg0, + )) + } } // Section: dart2rust @@ -492,6 +1548,12 @@ impl CstDecode for bool { self } } +impl CstDecode for u32 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> u32 { + self + } +} impl CstDecode for u64 { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> u64 { @@ -510,6 +1572,26 @@ impl CstDecode for usize { self } } +impl SseDecode for Arc { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >>::sse_decode(deserializer); + return inner.rust_auto_opaque_decode_owned(); + } +} + +impl SseDecode for Arc { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >>::sse_decode(deserializer); + return inner.rust_auto_opaque_decode_owned(); + } +} + impl SseDecode for flutter_rust_bridge::DartOpaque { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -526,6 +1608,14 @@ impl SseDecode for std::collections::HashMap { } } +impl SseDecode for std::collections::HashMap { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >::sse_decode(deserializer); + return inner.into_iter().collect(); + } +} + impl SseDecode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -534,6 +1624,102 @@ impl SseDecode for RustOpaqueNom } } +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -582,6 +1768,38 @@ impl SseDecode for RustOpaqueNom> { } } +impl SseDecode for RustOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -590,6 +1808,22 @@ impl SseDecode for RustOpaqueNom { } } +impl SseDecode for RustOpaqueNom { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode for RustOpaqueNom { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for String { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -605,6 +1839,15 @@ impl SseDecode for bool { } } +impl SseDecode for crate::api::receive::ClientResponse { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>>::sse_decode(deserializer); + return crate::api::receive::ClientResponse(var_field0); + } +} + impl SseDecode for crate::api::send::ContextV1 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -623,11 +1866,53 @@ impl SseDecode for crate::api::send::ContextV2 { } } -impl SseDecode for crate::api::receive::Headers { +impl SseDecode for crate::api::receive::Enrolled { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode(deserializer); + return crate::api::receive::Enrolled(var_field0); + } +} + +impl SseDecode for crate::api::receive::Enroller { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >::sse_decode(deserializer); + return crate::api::receive::Enroller(var_field0); + } +} + +impl SseDecode for crate::api::receive::Headers { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = >::sse_decode(deserializer); + return crate::api::receive::Headers(var_field0); + } +} + +impl SseDecode for Vec { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut len_ = ::sse_decode(deserializer); + let mut ans_ = vec![]; + for idx_ in 0..len_ { + ans_.push(::sse_decode(deserializer)); + } + return ans_; + } +} + +impl SseDecode for Vec { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut var_field0 = >::sse_decode(deserializer); - return crate::api::receive::Headers(var_field0); + let mut len_ = ::sse_decode(deserializer); + let mut ans_ = vec![]; + for idx_ in 0..len_ { + ans_.push(::sse_decode(deserializer)); + } + return ans_; } } @@ -655,6 +1940,20 @@ impl SseDecode for Vec<(String, String)> { } } +impl SseDecode for Vec<(u64, crate::api::receive::OutPoint)> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut len_ = ::sse_decode(deserializer); + let mut ans_ = vec![]; + for idx_ in 0..len_ { + ans_.push(<(u64, crate::api::receive::OutPoint)>::sse_decode( + deserializer, + )); + } + return ans_; + } +} + impl SseDecode for crate::api::receive::MaybeInputsOwned { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -666,6 +1965,28 @@ impl SseDecode for crate::api::receive::MaybeInputsOwned { } } +impl SseDecode for crate::api::receive::MaybeInputsSeen { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::MaybeInputsSeen(var_field0); + } +} + +impl SseDecode for crate::api::receive::MaybeMixedInputScripts { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::MaybeMixedInputScripts(var_field0); + } +} + impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -699,6 +2020,42 @@ impl SseDecode for Option { } } +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode( + deserializer, + )); + } else { + return None; + } + } +} + +impl SseDecode for crate::api::receive::OutPoint { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_txid = ::sse_decode(deserializer); + let mut var_vout = ::sse_decode(deserializer); + return crate::api::receive::OutPoint { + txid: var_txid, + vout: var_vout, + }; + } +} + +impl SseDecode for crate::api::receive::OutputsUnknown { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::OutputsUnknown(var_field0); + } +} + impl SseDecode for crate::utils::error::PayjoinError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -813,6 +2170,28 @@ impl SseDecode for crate::utils::error::PayjoinError { } } +impl SseDecode for crate::api::receive::PayjoinProposal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::PayjoinProposal(var_field0); + } +} + +impl SseDecode for crate::api::receive::ProvisionalProposal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::ProvisionalProposal(var_field0); + } +} + impl SseDecode for (String, String) { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -822,6 +2201,15 @@ impl SseDecode for (String, String) { } } +impl SseDecode for (u64, crate::api::receive::OutPoint) { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = ::sse_decode(deserializer); + let mut var_field1 = ::sse_decode(deserializer); + return (var_field0, var_field1); + } +} + impl SseDecode for crate::api::send::Request { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -876,6 +2264,38 @@ impl SseDecode for crate::api::send::RequestContextV2 { } } +impl SseDecode for crate::api::receive::RequestResponse { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_request = ::sse_decode(deserializer); + let mut var_clientResponse = + ::sse_decode(deserializer); + return crate::api::receive::RequestResponse { + request: var_request, + client_response: var_clientResponse, + }; + } +} + +impl SseDecode for crate::api::receive::TxOut { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_value = ::sse_decode(deserializer); + let mut var_scriptPubkey = >::sse_decode(deserializer); + return crate::api::receive::TxOut { + value: var_value, + script_pubkey: var_scriptPubkey, + }; + } +} + +impl SseDecode for u32 { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + deserializer.cursor.read_u32::().unwrap() + } +} + impl SseDecode for u64 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -927,6 +2347,83 @@ impl SseDecode for usize { } } +impl SseDecode for crate::api::receive::V2MaybeInputsOwned { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::V2MaybeInputsOwned(var_field0); + } +} + +impl SseDecode for crate::api::receive::V2MaybeInputsSeen { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::V2MaybeInputsSeen(var_field0); + } +} + +impl SseDecode for crate::api::receive::V2MaybeMixedInputScripts { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::V2MaybeMixedInputScripts(var_field0); + } +} + +impl SseDecode for crate::api::receive::V2OutputsUnknown { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::V2OutputsUnknown(var_field0); + } +} + +impl SseDecode for crate::api::receive::V2PayjoinProposal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::V2PayjoinProposal(var_field0); + } +} + +impl SseDecode for crate::api::receive::V2ProvisionalProposal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >>::sse_decode( + deserializer, + ); + return crate::api::receive::V2ProvisionalProposal(var_field0); + } +} + +impl SseDecode for crate::api::receive::V2UncheckedProposal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_field0 = + >::sse_decode( + deserializer, + ); + return crate::api::receive::V2UncheckedProposal(var_field0); + } +} + impl SseDecode for i32 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -961,6 +2458,53 @@ fn pde_ffi_dispatcher_sync_impl( // Section: rust2dart +pub struct Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + Arc, +); +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self.0).into_dart() + } + } +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned {} +impl flutter_rust_bridge::IntoIntoDart for Arc < V2MaybeInputsOwned > { + fn into_into_dart(self) -> Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned { + Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned(self) + } + } +pub struct Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + Arc, +); +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self.0).into_dart() + } + } +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen {} +impl flutter_rust_bridge::IntoIntoDart for Arc < V2MaybeInputsSeen > { + fn into_into_dart(self) -> Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen { + Local_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen(self) + } + } +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::ClientResponse { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::ClientResponse +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::ClientResponse +{ + fn into_into_dart(self) -> crate::api::receive::ClientResponse { + self + } +} // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::send::ContextV1 { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -971,52 +2515,149 @@ impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api: impl flutter_rust_bridge::IntoIntoDart for crate::api::send::ContextV1 { - fn into_into_dart(self) -> crate::api::send::ContextV1 { + fn into_into_dart(self) -> crate::api::send::ContextV1 { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::send::ContextV2 { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::send::ContextV2 {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::send::ContextV2 +{ + fn into_into_dart(self) -> crate::api::send::ContextV2 { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::Enrolled { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::receive::Enrolled {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::Enrolled +{ + fn into_into_dart(self) -> crate::api::receive::Enrolled { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::Enroller { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::receive::Enroller {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::Enroller +{ + fn into_into_dart(self) -> crate::api::receive::Enroller { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::Headers { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::receive::Headers {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::Headers +{ + fn into_into_dart(self) -> crate::api::receive::Headers { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::MaybeInputsOwned { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::MaybeInputsOwned +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::MaybeInputsOwned +{ + fn into_into_dart(self) -> crate::api::receive::MaybeInputsOwned { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::MaybeInputsSeen { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::MaybeInputsSeen +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::MaybeInputsSeen +{ + fn into_into_dart(self) -> crate::api::receive::MaybeInputsSeen { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::send::ContextV2 { +impl flutter_rust_bridge::IntoDart for crate::api::receive::MaybeMixedInputScripts { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [self.0.into_into_dart().into_dart()].into_dart() } } -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::send::ContextV2 {} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::send::ContextV2 +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::MaybeMixedInputScripts { - fn into_into_dart(self) -> crate::api::send::ContextV2 { +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::MaybeMixedInputScripts +{ + fn into_into_dart(self) -> crate::api::receive::MaybeMixedInputScripts { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::Headers { +impl flutter_rust_bridge::IntoDart for crate::api::receive::OutPoint { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.0.into_into_dart().into_dart()].into_dart() + [ + self.txid.into_into_dart().into_dart(), + self.vout.into_into_dart().into_dart(), + ] + .into_dart() } } -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::receive::Headers {} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::Headers +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::receive::OutPoint {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::OutPoint { - fn into_into_dart(self) -> crate::api::receive::Headers { + fn into_into_dart(self) -> crate::api::receive::OutPoint { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::MaybeInputsOwned { +impl flutter_rust_bridge::IntoDart for crate::api::receive::OutputsUnknown { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [self.0.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::receive::MaybeInputsOwned + for crate::api::receive::OutputsUnknown { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::MaybeInputsOwned +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::OutputsUnknown { - fn into_into_dart(self) -> crate::api::receive::MaybeInputsOwned { + fn into_into_dart(self) -> crate::api::receive::OutputsUnknown { self } } @@ -1090,6 +2731,40 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::PayjoinProposal { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::PayjoinProposal +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::PayjoinProposal +{ + fn into_into_dart(self) -> crate::api::receive::PayjoinProposal { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::ProvisionalProposal { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::ProvisionalProposal +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::ProvisionalProposal +{ + fn into_into_dart(self) -> crate::api::receive::ProvisionalProposal { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::send::Request { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [ @@ -1182,6 +2857,43 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::RequestResponse { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [ + self.request.into_into_dart().into_dart(), + self.client_response.into_into_dart().into_dart(), + ] + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::RequestResponse +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::RequestResponse +{ + fn into_into_dart(self) -> crate::api::receive::RequestResponse { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::TxOut { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [ + self.value.into_into_dart().into_dart(), + self.script_pubkey.into_into_dart().into_dart(), + ] + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::receive::TxOut {} +impl flutter_rust_bridge::IntoIntoDart for crate::api::receive::TxOut { + fn into_into_dart(self) -> crate::api::receive::TxOut { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for crate::api::receive::UncheckedProposal { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [self.0.into_into_dart().into_dart()].into_dart() @@ -1198,46 +2910,307 @@ impl flutter_rust_bridge::IntoIntoDart self } } -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::uri::Uri { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.0.into_into_dart().into_dart()].into_dart() +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::uri::Uri { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::uri::Uri {} +impl flutter_rust_bridge::IntoIntoDart for crate::api::uri::Uri { + fn into_into_dart(self) -> crate::api::uri::Uri { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::uri::Url { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::uri::Url {} +impl flutter_rust_bridge::IntoIntoDart for crate::api::uri::Url { + fn into_into_dart(self) -> crate::api::uri::Url { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::V2MaybeInputsOwned { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::V2MaybeInputsOwned +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::V2MaybeInputsOwned +{ + fn into_into_dart(self) -> crate::api::receive::V2MaybeInputsOwned { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::V2MaybeInputsSeen { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::V2MaybeInputsSeen +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::V2MaybeInputsSeen +{ + fn into_into_dart(self) -> crate::api::receive::V2MaybeInputsSeen { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::V2MaybeMixedInputScripts { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::V2MaybeMixedInputScripts +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::V2MaybeMixedInputScripts +{ + fn into_into_dart(self) -> crate::api::receive::V2MaybeMixedInputScripts { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::V2OutputsUnknown { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::V2OutputsUnknown +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::V2OutputsUnknown +{ + fn into_into_dart(self) -> crate::api::receive::V2OutputsUnknown { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::V2PayjoinProposal { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::V2PayjoinProposal +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::V2PayjoinProposal +{ + fn into_into_dart(self) -> crate::api::receive::V2PayjoinProposal { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::V2ProvisionalProposal { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::V2ProvisionalProposal +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::V2ProvisionalProposal +{ + fn into_into_dart(self) -> crate::api::receive::V2ProvisionalProposal { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::receive::V2UncheckedProposal { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.0.into_into_dart().into_dart()].into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::V2UncheckedProposal +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::V2UncheckedProposal +{ + fn into_into_dart(self) -> crate::api::receive::V2UncheckedProposal { + self + } +} + +impl SseEncode for Arc { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), + serializer, + ); + } +} + +impl SseEncode for Arc { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), + serializer, + ); + } +} + +impl SseEncode for flutter_rust_bridge::DartOpaque { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.encode(), serializer); + } +} + +impl SseEncode for std::collections::HashMap { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >::sse_encode(self.into_iter().collect(), serializer); + } +} + +impl SseEncode for std::collections::HashMap { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >::sse_encode( + self.into_iter().collect(), + serializer, + ); + } +} + +impl SseEncode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); } } -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::uri::Uri {} -impl flutter_rust_bridge::IntoIntoDart for crate::api::uri::Uri { - fn into_into_dart(self) -> crate::api::uri::Uri { - self + +impl SseEncode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); } } -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::uri::Url { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.0.into_into_dart().into_dart()].into_dart() + +impl SseEncode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); } } -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::uri::Url {} -impl flutter_rust_bridge::IntoIntoDart for crate::api::uri::Url { - fn into_into_dart(self) -> crate::api::uri::Url { - self + +impl SseEncode for RustOpaqueNom> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); } } -impl SseEncode for flutter_rust_bridge::DartOpaque { +impl SseEncode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - ::sse_encode(self.encode(), serializer); + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); } } -impl SseEncode for std::collections::HashMap { +impl SseEncode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >::sse_encode(self.into_iter().collect(), serializer); + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -1300,6 +3273,41 @@ impl SseEncode for RustOpaqueNom> { } } +impl SseEncode for RustOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1309,6 +3317,24 @@ impl SseEncode for RustOpaqueNom { } } +impl SseEncode for RustOpaqueNom { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode for RustOpaqueNom { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for String { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1323,6 +3349,13 @@ impl SseEncode for bool { } } +impl SseEncode for crate::api::receive::ClientResponse { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>>::sse_encode(self.0, serializer); + } +} + impl SseEncode for crate::api::send::ContextV1 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1337,6 +3370,20 @@ impl SseEncode for crate::api::send::ContextV2 { } } +impl SseEncode for crate::api::receive::Enrolled { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode(self.0, serializer); + } +} + +impl SseEncode for crate::api::receive::Enroller { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >::sse_encode(self.0, serializer); + } +} + impl SseEncode for crate::api::receive::Headers { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1344,6 +3391,26 @@ impl SseEncode for crate::api::receive::Headers { } } +impl SseEncode for Vec { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.len() as _, serializer); + for item in self { + ::sse_encode(item, serializer); + } + } +} + +impl SseEncode for Vec { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.len() as _, serializer); + for item in self { + ::sse_encode(item, serializer); + } + } +} + impl SseEncode for Vec { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1364,6 +3431,16 @@ impl SseEncode for Vec<(String, String)> { } } +impl SseEncode for Vec<(u64, crate::api::receive::OutPoint)> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.len() as _, serializer); + for item in self { + <(u64, crate::api::receive::OutPoint)>::sse_encode(item, serializer); + } + } +} + impl SseEncode for crate::api::receive::MaybeInputsOwned { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1373,6 +3450,24 @@ impl SseEncode for crate::api::receive::MaybeInputsOwned { } } +impl SseEncode for crate::api::receive::MaybeInputsSeen { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + +impl SseEncode for crate::api::receive::MaybeMixedInputScripts { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1403,6 +3498,33 @@ impl SseEncode for Option { } } +impl SseEncode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.is_some(), serializer); + if let Some(value) = self { + ::sse_encode(value, serializer); + } + } +} + +impl SseEncode for crate::api::receive::OutPoint { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.txid, serializer); + ::sse_encode(self.vout, serializer); + } +} + +impl SseEncode for crate::api::receive::OutputsUnknown { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + impl SseEncode for crate::utils::error::PayjoinError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1479,6 +3601,24 @@ impl SseEncode for crate::utils::error::PayjoinError { } } +impl SseEncode for crate::api::receive::PayjoinProposal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + +impl SseEncode for crate::api::receive::ProvisionalProposal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + impl SseEncode for (String, String) { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1487,6 +3627,14 @@ impl SseEncode for (String, String) { } } +impl SseEncode for (u64, crate::api::receive::OutPoint) { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.0, serializer); + ::sse_encode(self.1, serializer); + } +} + impl SseEncode for crate::api::send::Request { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1525,6 +3673,29 @@ impl SseEncode for crate::api::send::RequestContextV2 { } } +impl SseEncode for crate::api::receive::RequestResponse { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.request, serializer); + ::sse_encode(self.client_response, serializer); + } +} + +impl SseEncode for crate::api::receive::TxOut { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.value, serializer); + >::sse_encode(self.script_pubkey, serializer); + } +} + +impl SseEncode for u32 { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + serializer.cursor.write_u32::(self).unwrap(); + } +} + impl SseEncode for u64 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1577,6 +3748,69 @@ impl SseEncode for usize { } } +impl SseEncode for crate::api::receive::V2MaybeInputsOwned { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + +impl SseEncode for crate::api::receive::V2MaybeInputsSeen { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + +impl SseEncode for crate::api::receive::V2MaybeMixedInputScripts { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + +impl SseEncode for crate::api::receive::V2OutputsUnknown { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + +impl SseEncode for crate::api::receive::V2PayjoinProposal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + +impl SseEncode for crate::api::receive::V2ProvisionalProposal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + self.0, serializer, + ); + } +} + +impl SseEncode for crate::api::receive::V2UncheckedProposal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >::sse_encode( + self.0, serializer, + ); + } +} + impl SseEncode for i32 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { diff --git a/rust/src/frb_generated.web.rs b/rust/src/frb_generated.web.rs index 96cd076..be96946 100644 --- a/rust/src/frb_generated.web.rs +++ b/rust/src/frb_generated.web.rs @@ -32,6 +32,23 @@ impl CstDecode for String { self } } +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::ClientResponse { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::ClientResponse(self_.get(0).cst_decode()) + } +} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -66,6 +83,40 @@ impl CstDecode crate::api::send::ContextV2(self_.get(0).cst_decode()) } } +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::Enrolled { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::Enrolled(self_.get(0).cst_decode()) + } +} +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::Enroller { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::Enroller(self_.get(0).cst_decode()) + } +} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -83,6 +134,24 @@ impl CstDecode crate::api::receive::Headers(self_.get(0).cst_decode()) } } +impl CstDecode> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + self.dyn_into::() + .unwrap() + .iter() + .map(CstDecode::cst_decode) + .collect() + } +} +impl CstDecode> for Box<[u64]> { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + self.into_vec() + } +} impl CstDecode> for Box<[u8]> { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Vec { @@ -101,6 +170,18 @@ impl CstDecode> .collect() } } +impl CstDecode> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec<(u64, crate::api::receive::OutPoint)> { + self.dyn_into::() + .unwrap() + .iter() + .map(CstDecode::cst_decode) + .collect() + } +} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -118,12 +199,83 @@ impl CstDecode crate::api::receive::MaybeInputsOwned(self_.get(0).cst_decode()) } } +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::MaybeInputsSeen { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::MaybeInputsSeen(self_.get(0).cst_decode()) + } +} +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::MaybeMixedInputScripts { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::MaybeMixedInputScripts(self_.get(0).cst_decode()) + } +} impl CstDecode> for Option { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> Option { self.map(CstDecode::cst_decode) } } +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::OutPoint { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 2, + "Expected 2 elements, got {}", + self_.length() + ); + crate::api::receive::OutPoint { + txid: self_.get(0).cst_decode(), + vout: self_.get(1).cst_decode(), + } + } +} +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::OutputsUnknown { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::OutputsUnknown(self_.get(0).cst_decode()) + } +} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -186,6 +338,40 @@ impl CstDecode } } } +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::PayjoinProposal { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::PayjoinProposal(self_.get(0).cst_decode()) + } +} +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::ProvisionalProposal { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::ProvisionalProposal(self_.get(0).cst_decode()) + } +} impl CstDecode<(String, String)> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> (String, String) { @@ -201,6 +387,23 @@ impl CstDecode<(String, String)> for flutter_rust_bridge::for_generated::wasm_bi (self_.get(0).cst_decode(), self_.get(1).cst_decode()) } } +impl CstDecode<(u64, crate::api::receive::OutPoint)> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> (u64, crate::api::receive::OutPoint) { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 2, + "Expected 2 elements, got {}", + self_.length() + ); + (self_.get(0).cst_decode(), self_.get(1).cst_decode()) + } +} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -295,6 +498,46 @@ impl CstDecode } } } +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::RequestResponse { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 2, + "Expected 2 elements, got {}", + self_.length() + ); + crate::api::receive::RequestResponse { + request: self_.get(0).cst_decode(), + client_response: self_.get(1).cst_decode(), + } + } +} +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::TxOut { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 2, + "Expected 2 elements, got {}", + self_.length() + ); + crate::api::receive::TxOut { + value: self_.get(0).cst_decode(), + script_pubkey: self_.get(1).cst_decode(), + } + } +} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -342,56 +585,174 @@ impl CstDecode for flutter_rust_bridge::for_generated::was crate::api::uri::Url(self_.get(0).cst_decode()) } } -impl CstDecode> - for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue -{ - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> std::collections::HashMap { - let vec: Vec<(String, String)> = self.cst_decode(); - vec.into_iter().collect() - } -} -impl CstDecode>> +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + fn cst_decode(self) -> crate::api::receive::V2MaybeInputsOwned { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::V2MaybeInputsOwned(self_.get(0).cst_decode()) } } -impl CstDecode>> +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + fn cst_decode(self) -> crate::api::receive::V2MaybeInputsSeen { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::V2MaybeInputsSeen(self_.get(0).cst_decode()) } } -impl CstDecode>> +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { - #[cfg(target_pointer_width = "64")] - { - compile_error!("64-bit pointers are not supported."); - } - unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + fn cst_decode(self) -> crate::api::receive::V2MaybeMixedInputScripts { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::V2MaybeMixedInputScripts(self_.get(0).cst_decode()) } } -impl CstDecode>> +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> crate::api::receive::V2OutputsUnknown { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::V2OutputsUnknown(self_.get(0).cst_decode()) + } +} +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2PayjoinProposal { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::V2PayjoinProposal(self_.get(0).cst_decode()) + } +} +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2ProvisionalProposal { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::V2ProvisionalProposal(self_.get(0).cst_decode()) + } +} +impl CstDecode + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::V2UncheckedProposal { + let self_ = self + .dyn_into::() + .unwrap(); + assert_eq!( + self_.length(), + 1, + "Expected 1 elements, got {}", + self_.length() + ); + crate::api::receive::V2UncheckedProposal(self_.get(0).cst_decode()) + } +} +impl CstDecode> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Arc { + CstDecode::< + RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + >, + >::cst_decode(self) + .rust_auto_opaque_decode_owned() + } +} +impl CstDecode> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Arc { + CstDecode::< + RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + >, + >::cst_decode(self) + .rust_auto_opaque_decode_owned() + } +} +impl CstDecode> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> std::collections::HashMap { + let vec: Vec<(String, String)> = self.cst_decode(); + vec.into_iter().collect() + } +} +impl CstDecode> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> std::collections::HashMap { + let vec: Vec<(u64, crate::api::receive::OutPoint)> = self.cst_decode(); + vec.into_iter().collect() + } +} +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { #[cfg(target_pointer_width = "64")] { compile_error!("64-bit pointers are not supported."); @@ -399,11 +760,11 @@ impl CstDecode>> unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } -impl CstDecode>> +impl CstDecode>> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom> { #[cfg(target_pointer_width = "64")] { compile_error!("64-bit pointers are not supported."); @@ -411,11 +772,11 @@ impl CstDecode>> unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } -impl CstDecode>> +impl CstDecode>> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom> { #[cfg(target_pointer_width = "64")] { compile_error!("64-bit pointers are not supported."); @@ -423,11 +784,11 @@ impl CstDecode>> unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } -impl CstDecode>> +impl CstDecode>> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom> { #[cfg(target_pointer_width = "64")] { compile_error!("64-bit pointers are not supported."); @@ -435,11 +796,11 @@ impl CstDecode>> unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } -impl CstDecode> +impl CstDecode>> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { + fn cst_decode(self) -> RustOpaqueNom> { #[cfg(target_pointer_width = "64")] { compile_error!("64-bit pointers are not supported."); @@ -447,88 +808,742 @@ impl CstDecode> unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> String { - self.as_string().expect("non-UTF-8 string, or not a string") + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> bool { - self.is_truthy() + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } -impl CstDecode> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> Vec { - self.unchecked_into::() - .to_vec() - .into() + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> u64 { - ::std::convert::TryInto::try_into( - self.dyn_into::() - .unwrap(), - ) - .unwrap() + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> u8 { - self.unchecked_into_f64() as _ + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } -impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> usize { - self.unchecked_into_f64() as _ + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } } } - -#[wasm_bindgen] -pub fn wire_Headers_from_vec( - port_: flutter_rust_bridge::for_generated::MessagePort, - body: Box<[u8]>, -) { - wire_Headers_from_vec_impl(port_, body) +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } } - -#[wasm_bindgen] -pub fn wire_UncheckedProposal_check_broadcast_suitability( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - min_fee_rate: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, - can_broadcast: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_UncheckedProposal_check_broadcast_suitability_impl( - port_, - that, - min_fee_rate, - can_broadcast, - ) +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } } - -#[wasm_bindgen] -pub fn wire_UncheckedProposal_extract_tx_to_schedule_broadcast( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, -) { - wire_UncheckedProposal_extract_tx_to_schedule_broadcast_impl(port_, that) +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } } - -#[wasm_bindgen] -pub fn wire_UncheckedProposal_from_request( - port_: flutter_rust_bridge::for_generated::MessagePort, - body: Box<[u8]>, - query: String, - headers: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl CstDecode>>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom>> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl + CstDecode< + RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + >, + > for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode( + self, + ) -> RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + > { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl + CstDecode< + RustOpaqueNom< + flutter_rust_bridge::for_generated::rust_async::RwLock>, + >, + > for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode( + self, + ) -> RustOpaqueNom>> + { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl CstDecode> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl CstDecode> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl CstDecode> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> RustOpaqueNom { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> String { + self.as_string().expect("non-UTF-8 string, or not a string") + } +} +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> bool { + self.is_truthy() + } +} +impl CstDecode> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + let buf = self + .dyn_into::() + .unwrap(); + let buf = flutter_rust_bridge::for_generated::js_sys::Uint8Array::new(&buf.buffer()); + flutter_rust_bridge::for_generated::slice_from_byte_buffer(buf.to_vec()).into() + } +} +impl CstDecode> for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> Vec { + self.unchecked_into::() + .to_vec() + .into() + } +} +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> u32 { + self.unchecked_into_f64() as _ + } +} +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> u64 { + ::std::convert::TryInto::try_into( + self.dyn_into::() + .unwrap(), + ) + .unwrap() + } +} +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> u8 { + self.unchecked_into_f64() as _ + } +} +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> usize { + self.unchecked_into_f64() as _ + } +} + +#[wasm_bindgen] +pub fn wire_Enrolled_extract_req( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_Enrolled_extract_req_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_Enrolled_fallback_target( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_Enrolled_fallback_target_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_Enrolled_process_res( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + body: Box<[u8]>, + ctx: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_Enrolled_process_res_impl(port_, that, body, ctx) +} + +#[wasm_bindgen] +pub fn wire_Enrolled_subdirectory( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_Enrolled_subdirectory_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_Enroller_extract_req( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_Enroller_extract_req_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_Enroller_from_relay_config( + port_: flutter_rust_bridge::for_generated::MessagePort, + relay_url: String, + ohttp_config_base64: String, + ohttp_proxy_url: String, +) { + wire_Enroller_from_relay_config_impl(port_, relay_url, ohttp_config_base64, ohttp_proxy_url) +} + +#[wasm_bindgen] +pub fn wire_Enroller_payjoin_subdir( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_Enroller_payjoin_subdir_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_Enroller_process_res( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + body: Box<[u8]>, + ctx: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_Enroller_process_res_impl(port_, that, body, ctx) +} + +#[wasm_bindgen] +pub fn wire_Enroller_subdirectory( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_Enroller_subdirectory_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_Headers_from_vec( + port_: flutter_rust_bridge::for_generated::MessagePort, + body: Box<[u8]>, +) { + wire_Headers_from_vec_impl(port_, body) +} + +#[wasm_bindgen] +pub fn wire_MaybeInputsOwned_check_inputs_not_owned( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + is_owned: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_MaybeInputsOwned_check_inputs_not_owned_impl(port_, that, is_owned) +} + +#[wasm_bindgen] +pub fn wire_MaybeInputsSeen_check_no_inputs_seen_before( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + is_known: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_MaybeInputsSeen_check_no_inputs_seen_before_impl(port_, that, is_known) +} + +#[wasm_bindgen] +pub fn wire_MaybeMixedInputScripts_check_no_mixed_input_scripts( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_MaybeMixedInputScripts_check_no_mixed_input_scripts_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_OutputsUnknown_identify_receiver_outputs( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + is_receiver_output: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_OutputsUnknown_identify_receiver_outputs_impl(port_, that, is_receiver_output) +} + +#[wasm_bindgen] +pub fn wire_PayjoinProposal_is_output_substitution_disabled( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_PayjoinProposal_is_output_substitution_disabled_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_PayjoinProposal_owned_vouts( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_PayjoinProposal_owned_vouts_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_PayjoinProposal_psbt( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_PayjoinProposal_psbt_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_PayjoinProposal_utxos_to_be_locked( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_PayjoinProposal_utxos_to_be_locked_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_ProvisionalProposal_contribute_non_witness_input( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + tx: Box<[u8]>, + outpoint: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_ProvisionalProposal_contribute_non_witness_input_impl(port_, that, tx, outpoint) +} + +#[wasm_bindgen] +pub fn wire_ProvisionalProposal_contribute_witness_input( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + txo: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + outpoint: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_ProvisionalProposal_contribute_witness_input_impl(port_, that, txo, outpoint) +} + +#[wasm_bindgen] +pub fn wire_ProvisionalProposal_finalize_proposal( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + process_psbt: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + min_feerate_sat_per_vb: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_ProvisionalProposal_finalize_proposal_impl( + port_, + that, + process_psbt, + min_feerate_sat_per_vb, + ) +} + +#[wasm_bindgen] +pub fn wire_ProvisionalProposal_substitute_output_address( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + address: String, +) { + wire_ProvisionalProposal_substitute_output_address_impl(port_, that, address) +} + +#[wasm_bindgen] +pub fn wire_ProvisionalProposal_try_preserving_privacy( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + candidate_inputs: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_ProvisionalProposal_try_preserving_privacy_impl(port_, that, candidate_inputs) +} + +#[wasm_bindgen] +pub fn wire_UncheckedProposal_assume_interactive_receiver( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_UncheckedProposal_assume_interactive_receiver_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_UncheckedProposal_check_broadcast_suitability( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + min_fee_rate: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + can_broadcast: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_UncheckedProposal_check_broadcast_suitability_impl( + port_, + that, + min_fee_rate, + can_broadcast, + ) +} + +#[wasm_bindgen] +pub fn wire_UncheckedProposal_extract_tx_to_schedule_broadcast( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_UncheckedProposal_extract_tx_to_schedule_broadcast_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_UncheckedProposal_from_request( + port_: flutter_rust_bridge::for_generated::MessagePort, + body: Box<[u8]>, + query: String, + headers: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_UncheckedProposal_from_request_impl(port_, body, query, headers) +} + +#[wasm_bindgen] +pub fn wire_V2MaybeInputsOwned_check_inputs_not_owned( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + is_owned: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2MaybeInputsOwned_check_inputs_not_owned_impl(port_, that, is_owned) +} + +#[wasm_bindgen] +pub fn wire_V2MaybeInputsSeen_check_no_inputs_seen_before( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + is_known: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2MaybeInputsSeen_check_no_inputs_seen_before_impl(port_, that, is_known) +} + +#[wasm_bindgen] +pub fn wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_V2OutputsUnknown_identify_receiver_outputs( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + is_receiver_output: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2OutputsUnknown_identify_receiver_outputs_impl(port_, that, is_receiver_output) +} + +#[wasm_bindgen] +pub fn wire_V2PayjoinProposal_deserialize_res( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + res: Box<[u8]>, + ohttp_context: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2PayjoinProposal_deserialize_res_impl(port_, that, res, ohttp_context) +} + +#[wasm_bindgen] +pub fn wire_V2PayjoinProposal_extract_v1_req( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2PayjoinProposal_extract_v1_req_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_V2PayjoinProposal_extract_v2_req( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2PayjoinProposal_extract_v2_req_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_V2PayjoinProposal_is_output_substitution_disabled( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2PayjoinProposal_is_output_substitution_disabled_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_V2PayjoinProposal_owned_vouts( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2PayjoinProposal_owned_vouts_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_V2PayjoinProposal_psbt( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2PayjoinProposal_psbt_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_V2PayjoinProposal_utxos_to_be_locked( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2PayjoinProposal_utxos_to_be_locked_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_V2ProvisionalProposal_contribute_non_witness_input( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + tx: Box<[u8]>, + outpoint: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2ProvisionalProposal_contribute_non_witness_input_impl(port_, that, tx, outpoint) +} + +#[wasm_bindgen] +pub fn wire_V2ProvisionalProposal_contribute_witness_input( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + txo: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + outpoint: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2ProvisionalProposal_contribute_witness_input_impl(port_, that, txo, outpoint) +} + +#[wasm_bindgen] +pub fn wire_V2ProvisionalProposal_finalize_proposal( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + process_psbt: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + min_feerate_sat_per_vb: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2ProvisionalProposal_finalize_proposal_impl( + port_, + that, + process_psbt, + min_feerate_sat_per_vb, + ) +} + +#[wasm_bindgen] +pub fn wire_V2ProvisionalProposal_substitute_output_address( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + address: String, +) { + wire_V2ProvisionalProposal_substitute_output_address_impl(port_, that, address) +} + +#[wasm_bindgen] +pub fn wire_V2ProvisionalProposal_try_preserving_privacy( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + candidate_inputs: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2ProvisionalProposal_try_preserving_privacy_impl(port_, that, candidate_inputs) +} + +#[wasm_bindgen] +pub fn wire_V2UncheckedProposal_assume_interactive_receiver( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2UncheckedProposal_assume_interactive_receiver_impl(port_, that) +} + +#[wasm_bindgen] +pub fn wire_V2UncheckedProposal_check_broadcast_suitability( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + min_fee_rate: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, + can_broadcast: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) { + wire_V2UncheckedProposal_check_broadcast_suitability_impl( + port_, + that, + min_fee_rate, + can_broadcast, + ) +} + +#[wasm_bindgen] +pub fn wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, ) { - wire_UncheckedProposal_from_request_impl(port_, body, query, headers) + wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast_impl(port_, that) } #[wasm_bindgen] @@ -677,6 +1692,250 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeIn } } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count( + ptr as _, + ); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count( + ptr as _, + ); + } +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( ptr: *const std::ffi::c_void, @@ -785,6 +2044,60 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( } } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>>::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>>::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>>::decrement_strong_count(ptr as _); + } +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ptr: *const std::ffi::c_void, @@ -802,3 +2115,39 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedP StdArc::::decrement_strong_count(ptr as _); } } + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::::decrement_strong_count(ptr as _); + } +} From af8667780485eeac9a2b16f01d2cfd91a9975fae Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sun, 25 Feb 2024 10:34:00 -0500 Subject: [PATCH 04/14] fix(uri): function renamed to from_str --- lib/src/generated/api/uri.dart | 4 ++-- rust/src/api/uri.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/generated/api/uri.dart b/lib/src/generated/api/uri.dart index b8c89a9..e60eb53 100644 --- a/lib/src/generated/api/uri.dart +++ b/lib/src/generated/api/uri.dart @@ -46,8 +46,8 @@ class Url { required this.field0, }); - static Future newUrl({required String input, dynamic hint}) => - PayjoinCore.instance.api.urlNew(input: input, hint: hint); + static Future fromStr({required String url, dynamic hint}) => + PayjoinCore.instance.api.urlFromStr(url: url, hint: hint); Future query({dynamic hint}) => PayjoinCore.instance.api.urlQuery( that: this, diff --git a/rust/src/api/uri.rs b/rust/src/api/uri.rs index c6577df..cc910b8 100644 --- a/rust/src/api/uri.rs +++ b/rust/src/api/uri.rs @@ -15,8 +15,8 @@ impl From> for Url { } } impl Url { - pub fn new(input: String) -> anyhow::Result { - match payjoin_ffi::uri::Url::new(input) { + pub fn from_str(url: String) -> anyhow::Result { + match payjoin_ffi::uri::Url::new(url) { Ok(e) => Ok(e.into()), Err(e) => Err(e.into()), } From c304f3962efb404263593d0bdf06b55df656a664 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Sun, 25 Feb 2024 22:07:00 -0500 Subject: [PATCH 05/14] PayjoinLibrary added --- example/lib/payjoin_library.dart | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 example/lib/payjoin_library.dart diff --git a/example/lib/payjoin_library.dart b/example/lib/payjoin_library.dart new file mode 100644 index 0000000..24ab96d --- /dev/null +++ b/example/lib/payjoin_library.dart @@ -0,0 +1,17 @@ +import 'package:flutter/cupertino.dart'; +import 'package:payjoin_flutter/payjoin.dart'; + +class PayjoinLibrary { + static const PJ_URL = "https://localhost:8088"; + static const OH_RELAY = "https://localhost:8088"; + static const LOCAL_CERT_FILE = "localhost.der"; + Future buildPjUri(double amount, String address, String pj) async { + try { + final pjUri = "bitcoin:$address?amount=${amount / 100000000.0}&pj=$pj"; + return await Uri.fromStr(uri: pjUri); + } catch (e) { + debugPrint(e.toString()); + rethrow; + } + } +} From eed47aa5469ee2993ba076ffcbcdb8ac5596dfe9 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Mon, 26 Feb 2024 00:10:00 -0500 Subject: [PATCH 06/14] bindings updated --- lib/src/generated/frb_generated.dart | 18 +++++++++--------- lib/src/generated/frb_generated.io.dart | 14 +++++++------- lib/src/generated/frb_generated.web.dart | 6 +++--- rust/src/frb_generated.io.rs | 6 +++--- rust/src/frb_generated.rs | 10 +++++----- rust/src/frb_generated.web.rs | 4 ++-- 6 files changed, 29 insertions(+), 29 deletions(-) diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index 57e1bc2..c0a89a8 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -301,7 +301,7 @@ abstract class PayjoinCoreApi extends BaseApi { Future uriFromStr({required String uri, dynamic hint}); - Future urlNew({required String input, dynamic hint}); + Future urlFromStr({required String url, dynamic hint}); Future urlQuery({required Url that, dynamic hint}); @@ -2150,26 +2150,26 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform ); @override - Future urlNew({required String input, dynamic hint}) { + Future urlFromStr({required String url, dynamic hint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_String(input); - return wire.wire_Url_new(port_, arg0); + var arg0 = cst_encode_String(url); + return wire.wire_Url_from_str(port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_url, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUrlNewConstMeta, - argValues: [input], + constMeta: kUrlFromStrConstMeta, + argValues: [url], apiImpl: this, hint: hint, )); } - TaskConstMeta get kUrlNewConstMeta => const TaskConstMeta( - debugName: "Url_new", - argNames: ["input"], + TaskConstMeta get kUrlFromStrConstMeta => const TaskConstMeta( + debugName: "Url_from_str", + argNames: ["url"], ); @override diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index 4b827f2..5187a6b 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -3677,22 +3677,22 @@ class PayjoinCoreWire implements BaseWire { late final _wire_Uri_from_str = _wire_Uri_from_strPtr.asFunction< void Function(int, ffi.Pointer)>(); - void wire_Url_new( + void wire_Url_from_str( int port_, - ffi.Pointer input, + ffi.Pointer url, ) { - return _wire_Url_new( + return _wire_Url_from_str( port_, - input, + url, ); } - late final _wire_Url_newPtr = _lookup< + late final _wire_Url_from_strPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_Url_new'); - late final _wire_Url_new = _wire_Url_newPtr.asFunction< + 'frbgen_payjoin_flutter_wire_Url_from_str'); + late final _wire_Url_from_str = _wire_Url_from_strPtr.asFunction< void Function(int, ffi.Pointer)>(); void wire_Url_query( diff --git a/lib/src/generated/frb_generated.web.dart b/lib/src/generated/frb_generated.web.dart index c072fae..5ef4611 100644 --- a/lib/src/generated/frb_generated.web.dart +++ b/lib/src/generated/frb_generated.web.dart @@ -2331,8 +2331,8 @@ class PayjoinCoreWire implements BaseWire { void wire_Uri_from_str(NativePortType port_, String uri) => wasmModule.wire_Uri_from_str(port_, uri); - void wire_Url_new(NativePortType port_, String input) => - wasmModule.wire_Url_new(port_, input); + void wire_Url_from_str(NativePortType port_, String url) => + wasmModule.wire_Url_from_str(port_, url); void wire_Url_query(NativePortType port_, List that) => wasmModule.wire_Url_query(port_, that); @@ -2851,7 +2851,7 @@ class PayjoinCoreWasmModule implements WasmModule { external void wire_Uri_from_str(NativePortType port_, String uri); - external void wire_Url_new(NativePortType port_, String input); + external void wire_Url_from_str(NativePortType port_, String url); external void wire_Url_query(NativePortType port_, List that); diff --git a/rust/src/frb_generated.io.rs b/rust/src/frb_generated.io.rs index a2d20b7..1c50657 100644 --- a/rust/src/frb_generated.io.rs +++ b/rust/src/frb_generated.io.rs @@ -1762,11 +1762,11 @@ pub extern "C" fn frbgen_payjoin_flutter_wire_Uri_from_str( } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_Url_new( +pub extern "C" fn frbgen_payjoin_flutter_wire_Url_from_str( port_: i64, - input: *mut wire_cst_list_prim_u_8_strict, + url: *mut wire_cst_list_prim_u_8_strict, ) { - wire_Url_new_impl(port_, input) + wire_Url_from_str_impl(port_, url) } #[no_mangle] diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index 149ada5..b1e991f 100644 --- a/rust/src/frb_generated.rs +++ b/rust/src/frb_generated.rs @@ -1437,19 +1437,19 @@ fn wire_Uri_from_str_impl( }, ) } -fn wire_Url_new_impl( +fn wire_Url_from_str_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - input: impl CstDecode, + url: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "Url_new", + debug_name: "Url_from_str", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_input = input.cst_decode(); - move |context| transform_result_dco((move || crate::api::uri::Url::new(api_input))()) + let api_url = url.cst_decode(); + move |context| transform_result_dco((move || crate::api::uri::Url::from_str(api_url))()) }, ) } diff --git a/rust/src/frb_generated.web.rs b/rust/src/frb_generated.web.rs index be96946..6061f6d 100644 --- a/rust/src/frb_generated.web.rs +++ b/rust/src/frb_generated.web.rs @@ -1662,8 +1662,8 @@ pub fn wire_Uri_from_str(port_: flutter_rust_bridge::for_generated::MessagePort, } #[wasm_bindgen] -pub fn wire_Url_new(port_: flutter_rust_bridge::for_generated::MessagePort, input: String) { - wire_Url_new_impl(port_, input) +pub fn wire_Url_from_str(port_: flutter_rust_bridge::for_generated::MessagePort, url: String) { + wire_Url_from_str_impl(port_, url) } #[wasm_bindgen] From 18b40d142d1839dff11584ba15be1a41a505a24b Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Mon, 26 Feb 2024 09:36:00 -0500 Subject: [PATCH 07/14] android-ndk-version downgraded to 24.0.8215888 --- .github/workflows/precompile_binaries.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/precompile_binaries.yml b/.github/workflows/precompile_binaries.yml index dcc1549..6a42a1d 100644 --- a/.github/workflows/precompile_binaries.yml +++ b/.github/workflows/precompile_binaries.yml @@ -38,7 +38,7 @@ jobs: PRIVATE_KEY: ${{ secrets.RELEASE_PRIVATE_KEY }} - name: Precompile (with Android) if: (matrix.os == 'ubuntu-20.04') - run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=LtbLightning/payjoin-flutter --android-sdk-location=/usr/local/lib/android/sdk --android-ndk-version=26.1.10909125 --android-min-sdk-version=23 + run: dart run build_tool precompile-binaries -v --manifest-dir=../../rust --repository=LtbLightning/payjoin-flutter --android-sdk-location=/usr/local/lib/android/sdk --android-ndk-version=24.0.8215888 --android-min-sdk-version=23 working-directory: cargokit/build_tool env: GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} From b68340819ff1ceac3d43de184bcdd695abce1e4c Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Mon, 26 Feb 2024 13:18:00 -0500 Subject: [PATCH 08/14] flutter rust bridge2.0.0-dev.25 --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- rust/Cargo.lock | 12 ++++++------ rust/Cargo.toml | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 16b6813..aa7b894 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -242,10 +242,10 @@ packages: dependency: "direct main" description: name: flutter_rust_bridge - sha256: "7bdcbe0dc20a85f743bfc1a8ee940656d57beeccb0da44b0e2c8271535b61ae5" + sha256: db2c6aa5c255ba5dcafefb3cc3db65733c5b6b5f68ba0816688748cf2132cfa3 url: "https://pub.dev" source: hosted - version: "2.0.0-dev.24" + version: "2.0.0-dev.25" flutter_test: dependency: "direct dev" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 75393a0..0d98fd6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: sdk: flutter collection: ^1.17.1 ffi: ^2.0.1 - flutter_rust_bridge: ">2.0.0-dev.23 <= 2.0.0-dev.24" + flutter_rust_bridge: ">2.0.0-dev.24 <= 2.0.0-dev.25" freezed_annotation: ^2.2.0 meta: ^1.10.0 uuid: ^4.2.1 diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 9bbc95d..c9811e9 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -1074,9 +1074,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge" -version = "2.0.0-dev.24" +version = "2.0.0-dev.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "610e046fae4b0b21210e67b212f3a97ccfd454976e8ef74634d641a2ce9a7075" +checksum = "d81515a58babb2e2e644c11330cd1c7118c83160700cbba7f157a1c6199c2295" dependencies = [ "allo-isolate", "android_logger", @@ -1101,9 +1101,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_codegen" -version = "2.0.0-dev.24" +version = "2.0.0-dev.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "415dd60d985e739fb384c85e3277328fedf36c1c7a0ae67c544490fe3a3d7d70" +checksum = "577a4b4b0da1022844c3730998ae699304cef9ad0edc7b06d2feb54f8f87de09" dependencies = [ "anyhow", "atty", @@ -1145,9 +1145,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_macros" -version = "2.0.0-dev.24" +version = "2.0.0-dev.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa90b2229a73f1aac282856e7870d11c8d1117285c8f6d7142de581497277825" +checksum = "7aa5e6f2b72d51b3edddef0d45734b734d4c65f4260ac4689b94061582cbbd8e" [[package]] name = "form_urlencoded" diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 197928e..8b5ac34 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -7,12 +7,12 @@ edition = "2021" crate-type = ["cdylib", "staticlib"] [build-dependencies] -flutter_rust_bridge_codegen = { version = "=2.0.0-dev.24" } +flutter_rust_bridge_codegen = { version = "=2.0.0-dev.25" } anyhow = "1.0.68" [dependencies] ohttp = { version = "0.5.1" } payjoin_ffi = {git = "https://github.com/LtbLightning/payjoin-ffi", branch = "v0.13"} -flutter_rust_bridge = { version = "=2.0.0-dev.24" } +flutter_rust_bridge = { version = "=2.0.0-dev.25" } serde = "1.0.89" serde_json = "1.0.96" anyhow = "1.0.68" From 7215364ed5ca1063b3cb8b2a2724d8e49e4b9ac5 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 27 Feb 2024 00:17:00 -0500 Subject: [PATCH 09/14] flutter rust bridge2.0.0-dev.25 --- example/pubspec.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index 566eb06..d313f1d 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -114,10 +114,10 @@ packages: dependency: transitive description: name: flutter_rust_bridge - sha256: "7bdcbe0dc20a85f743bfc1a8ee940656d57beeccb0da44b0e2c8271535b61ae5" + sha256: db2c6aa5c255ba5dcafefb3cc3db65733c5b6b5f68ba0816688748cf2132cfa3 url: "https://pub.dev" source: hosted - version: "2.0.0-dev.24" + version: "2.0.0-dev.25" flutter_test: dependency: "direct dev" description: flutter From dd27ce48362626286e4565b458548c3d136e43e1 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Tue, 27 Feb 2024 22:58:00 -0500 Subject: [PATCH 10/14] bindings updated --- lib/src/generated/api/receive.dart | 2 +- lib/src/generated/api/send.dart | 2 +- lib/src/generated/api/uri.dart | 2 +- lib/src/generated/frb_generated.dart | 4 ++-- lib/src/generated/frb_generated.io.dart | 21 ++++++++++++++++++++- lib/src/generated/frb_generated.web.dart | 2 +- lib/src/generated/utils/error.dart | 2 +- rust/src/frb_generated.io.rs | 2 +- rust/src/frb_generated.rs | 4 ++-- rust/src/frb_generated.web.rs | 2 +- 10 files changed, 31 insertions(+), 12 deletions(-) diff --git a/lib/src/generated/api/receive.dart b/lib/src/generated/api/receive.dart index 29cb7a6..b2271ed 100644 --- a/lib/src/generated/api/receive.dart +++ b/lib/src/generated/api/receive.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/api/send.dart b/lib/src/generated/api/send.dart index 675d2a1..a7d2bcc 100644 --- a/lib/src/generated/api/send.dart +++ b/lib/src/generated/api/send.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/api/uri.dart b/lib/src/generated/api/uri.dart index e60eb53..f03aad0 100644 --- a/lib/src/generated/api/uri.dart +++ b/lib/src/generated/api/uri.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index c0a89a8..e8d1b7c 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25. // 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 @@ -55,7 +55,7 @@ class PayjoinCore extends BaseEntrypoint '2.0.0-dev.24'; + String get codegenVersion => '2.0.0-dev.25'; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index 5187a6b..6563f75 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25. // 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 @@ -2367,6 +2367,20 @@ class PayjoinCoreWire implements BaseWire { lookup) : _lookup = lookup; + void store_dart_post_cobject( + DartPostCObjectFnType ptr, + ) { + return _store_dart_post_cobject( + ptr, + ); + } + + late final _store_dart_post_cobjectPtr = + _lookup>( + 'store_dart_post_cobject'); + late final _store_dart_post_cobject = _store_dart_post_cobjectPtr + .asFunction(); + void wire_Enrolled_extract_req( int port_, ffi.Pointer that, @@ -4942,6 +4956,11 @@ class PayjoinCoreWire implements BaseWire { _dummy_method_to_enforce_bundlingPtr.asFunction(); } +typedef DartPostCObjectFnType = ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(DartPort port_id, ffi.Pointer message)>>; +typedef DartPort = ffi.Int64; + final class wire_cst_enrolled extends ffi.Struct { @ffi.UintPtr() external int field0; diff --git a/lib/src/generated/frb_generated.web.dart b/lib/src/generated/frb_generated.web.dart index 5ef4611..6e947d7 100644 --- a/lib/src/generated/frb_generated.web.dart +++ b/lib/src/generated/frb_generated.web.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25. // 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 diff --git a/lib/src/generated/utils/error.dart b/lib/src/generated/utils/error.dart index 9b4a17f..0dcbe52 100644 --- a/lib/src/generated/utils/error.dart +++ b/lib/src/generated/utils/error.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import diff --git a/rust/src/frb_generated.io.rs b/rust/src/frb_generated.io.rs index 1c50657..ab0cca5 100644 --- a/rust/src/frb_generated.io.rs +++ b/rust/src/frb_generated.io.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25. // Section: imports diff --git a/rust/src/frb_generated.rs b/rust/src/frb_generated.rs index b1e991f..e83cd58 100644 --- a/rust/src/frb_generated.rs +++ b/rust/src/frb_generated.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25. #![allow( non_camel_case_types, @@ -32,7 +32,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_opaque = RustOpaqueNom, default_rust_auto_opaque = RustAutoOpaqueNom, ); -const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.24"; +const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.25"; // Section: executor diff --git a/rust/src/frb_generated.web.rs b/rust/src/frb_generated.web.rs index 6061f6d..186a9f0 100644 --- a/rust/src/frb_generated.web.rs +++ b/rust/src/frb_generated.web.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.24. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.25. // Section: imports From 7e608c364034b11d1223394ba86a29766fcae9be Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Wed, 28 Feb 2024 11:52:00 -0500 Subject: [PATCH 11/14] c_output generated --- flutter_rust_bridge.yaml | 3 +- ios/Classes/frb_generated.h | 817 ++++++++++++++++++++++++++++++++++++ 2 files changed, 819 insertions(+), 1 deletion(-) create mode 100644 ios/Classes/frb_generated.h diff --git a/flutter_rust_bridge.yaml b/flutter_rust_bridge.yaml index df51ec0..c200705 100644 --- a/flutter_rust_bridge.yaml +++ b/flutter_rust_bridge.yaml @@ -1,5 +1,6 @@ -# See `pure_dart` example for comments on the configs + rust_input: rust/src/api/*.rs dart_output: lib/src/generated/ full_dep: true +c_output: ios/Classes/frb_generated.h dart_entrypoint_class_name: PayjoinCore \ No newline at end of file diff --git a/ios/Classes/frb_generated.h b/ios/Classes/frb_generated.h new file mode 100644 index 0000000..fafe8b6 --- /dev/null +++ b/ios/Classes/frb_generated.h @@ -0,0 +1,817 @@ +#include +#include +#include +// EXTRA BEGIN +typedef struct DartCObject *WireSyncRust2DartDco; +typedef struct WireSyncRust2DartSse { + uint8_t *ptr; + int32_t len; +} WireSyncRust2DartSse; + +typedef int64_t DartPort; +typedef bool (*DartPostCObjectFnType)(DartPort port_id, void *message); +void store_dart_post_cobject(DartPostCObjectFnType ptr); +// EXTRA END +typedef struct _Dart_Handle* Dart_Handle; + +typedef struct wire_cst_enrolled { + uintptr_t field0; +} wire_cst_enrolled; + +typedef struct wire_cst_list_prim_u_8_loose { + uint8_t *ptr; + int32_t len; +} wire_cst_list_prim_u_8_loose; + +typedef struct wire_cst_client_response { + uintptr_t field0; +} wire_cst_client_response; + +typedef struct wire_cst_enroller { + uintptr_t field0; +} wire_cst_enroller; + +typedef struct wire_cst_list_prim_u_8_strict { + uint8_t *ptr; + int32_t len; +} wire_cst_list_prim_u_8_strict; + +typedef struct wire_cst_maybe_inputs_owned { + uintptr_t field0; +} wire_cst_maybe_inputs_owned; + +typedef struct wire_cst_maybe_inputs_seen { + uintptr_t field0; +} wire_cst_maybe_inputs_seen; + +typedef struct wire_cst_maybe_mixed_input_scripts { + uintptr_t field0; +} wire_cst_maybe_mixed_input_scripts; + +typedef struct wire_cst_outputs_unknown { + uintptr_t field0; +} wire_cst_outputs_unknown; + +typedef struct wire_cst_payjoin_proposal { + uintptr_t field0; +} wire_cst_payjoin_proposal; + +typedef struct wire_cst_provisional_proposal { + uintptr_t field0; +} wire_cst_provisional_proposal; + +typedef struct wire_cst_out_point { + struct wire_cst_list_prim_u_8_strict *txid; + uint32_t vout; +} wire_cst_out_point; + +typedef struct wire_cst_tx_out { + uint64_t value; + struct wire_cst_list_prim_u_8_strict *script_pubkey; +} wire_cst_tx_out; + +typedef struct wire_cst_record_u_64_out_point { + uint64_t field0; + struct wire_cst_out_point field1; +} wire_cst_record_u_64_out_point; + +typedef struct wire_cst_list_record_u_64_out_point { + struct wire_cst_record_u_64_out_point *ptr; + int32_t len; +} wire_cst_list_record_u_64_out_point; + +typedef struct wire_cst_unchecked_proposal { + uintptr_t field0; +} wire_cst_unchecked_proposal; + +typedef struct wire_cst_record_string_string { + struct wire_cst_list_prim_u_8_strict *field0; + struct wire_cst_list_prim_u_8_strict *field1; +} wire_cst_record_string_string; + +typedef struct wire_cst_list_record_string_string { + struct wire_cst_record_string_string *ptr; + int32_t len; +} wire_cst_list_record_string_string; + +typedef struct wire_cst_headers { + struct wire_cst_list_record_string_string *field0; +} wire_cst_headers; + +typedef struct wire_cst_v_2_maybe_inputs_owned { + uintptr_t field0; +} wire_cst_v_2_maybe_inputs_owned; + +typedef struct wire_cst_v_2_maybe_inputs_seen { + uintptr_t field0; +} wire_cst_v_2_maybe_inputs_seen; + +typedef struct wire_cst_v_2_maybe_mixed_input_scripts { + uintptr_t field0; +} wire_cst_v_2_maybe_mixed_input_scripts; + +typedef struct wire_cst_v_2_outputs_unknown { + uintptr_t field0; +} wire_cst_v_2_outputs_unknown; + +typedef struct wire_cst_v_2_payjoin_proposal { + uintptr_t field0; +} wire_cst_v_2_payjoin_proposal; + +typedef struct wire_cst_v_2_provisional_proposal { + uintptr_t field0; +} wire_cst_v_2_provisional_proposal; + +typedef struct wire_cst_v_2_unchecked_proposal { + uintptr_t field0; +} wire_cst_v_2_unchecked_proposal; + +typedef struct wire_cst_context_v_1 { + uintptr_t field0; +} wire_cst_context_v_1; + +typedef struct wire_cst_context_v_2 { + uintptr_t field0; +} wire_cst_context_v_2; + +typedef struct wire_cst_request_builder { + uintptr_t field0; +} wire_cst_request_builder; + +typedef struct wire_cst_uri { + uintptr_t field0; +} wire_cst_uri; + +typedef struct wire_cst_request_context { + uintptr_t field0; +} wire_cst_request_context; + +typedef struct wire_cst_url { + uintptr_t field0; +} wire_cst_url; + +typedef struct wire_cst_list_out_point { + struct wire_cst_out_point *ptr; + int32_t len; +} wire_cst_list_out_point; + +typedef struct wire_cst_list_prim_u_64_strict { + uint64_t *ptr; + int32_t len; +} wire_cst_list_prim_u_64_strict; + +typedef struct wire_cst_PayjoinError_InvalidAddress { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_InvalidAddress; + +typedef struct wire_cst_PayjoinError_InvalidScript { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_InvalidScript; + +typedef struct wire_cst_PayjoinError_NetworkValidation { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_NetworkValidation; + +typedef struct wire_cst_PayjoinError_PsbtParseError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_PsbtParseError; + +typedef struct wire_cst_PayjoinError_ResponseError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_ResponseError; + +typedef struct wire_cst_PayjoinError_RequestError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_RequestError; + +typedef struct wire_cst_PayjoinError_TransactionError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_TransactionError; + +typedef struct wire_cst_PayjoinError_ServerError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_ServerError; + +typedef struct wire_cst_PayjoinError_SelectionError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_SelectionError; + +typedef struct wire_cst_PayjoinError_CreateRequestError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_CreateRequestError; + +typedef struct wire_cst_PayjoinError_PjParseError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_PjParseError; + +typedef struct wire_cst_PayjoinError_PjNotSupported { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_PjNotSupported; + +typedef struct wire_cst_PayjoinError_ValidationError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_ValidationError; + +typedef struct wire_cst_PayjoinError_V2Error { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_V2Error; + +typedef struct wire_cst_PayjoinError_UnexpectedError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_UnexpectedError; + +typedef struct wire_cst_PayjoinError_OhttpError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_OhttpError; + +typedef struct wire_cst_PayjoinError_UrlError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_UrlError; + +typedef union PayjoinErrorKind { + struct wire_cst_PayjoinError_InvalidAddress InvalidAddress; + struct wire_cst_PayjoinError_InvalidScript InvalidScript; + struct wire_cst_PayjoinError_NetworkValidation NetworkValidation; + struct wire_cst_PayjoinError_PsbtParseError PsbtParseError; + struct wire_cst_PayjoinError_ResponseError ResponseError; + struct wire_cst_PayjoinError_RequestError RequestError; + struct wire_cst_PayjoinError_TransactionError TransactionError; + struct wire_cst_PayjoinError_ServerError ServerError; + struct wire_cst_PayjoinError_SelectionError SelectionError; + struct wire_cst_PayjoinError_CreateRequestError CreateRequestError; + struct wire_cst_PayjoinError_PjParseError PjParseError; + struct wire_cst_PayjoinError_PjNotSupported PjNotSupported; + struct wire_cst_PayjoinError_ValidationError ValidationError; + struct wire_cst_PayjoinError_V2Error V2Error; + struct wire_cst_PayjoinError_UnexpectedError UnexpectedError; + struct wire_cst_PayjoinError_OhttpError OhttpError; + struct wire_cst_PayjoinError_UrlError UrlError; +} PayjoinErrorKind; + +typedef struct wire_cst_payjoin_error { + int32_t tag; + union PayjoinErrorKind kind; +} wire_cst_payjoin_error; + +typedef struct wire_cst_request { + struct wire_cst_url url; + struct wire_cst_list_prim_u_8_strict *body; +} wire_cst_request; + +typedef struct wire_cst_request_context_v_1 { + struct wire_cst_request request; + struct wire_cst_context_v_1 context_v1; +} wire_cst_request_context_v_1; + +typedef struct wire_cst_request_context_v_2 { + struct wire_cst_request request; + struct wire_cst_context_v_2 context_v2; +} wire_cst_request_context_v_2; + +typedef struct wire_cst_request_response { + struct wire_cst_request request; + struct wire_cst_client_response client_response; +} wire_cst_request_response; + +void frbgen_payjoin_flutter_wire_Enrolled_extract_req(int64_t port_, + struct wire_cst_enrolled *that); + +void frbgen_payjoin_flutter_wire_Enrolled_fallback_target(int64_t port_, + struct wire_cst_enrolled *that); + +void frbgen_payjoin_flutter_wire_Enrolled_process_res(int64_t port_, + struct wire_cst_enrolled *that, + struct wire_cst_list_prim_u_8_loose *body, + struct wire_cst_client_response *ctx); + +void frbgen_payjoin_flutter_wire_Enrolled_subdirectory(int64_t port_, + struct wire_cst_enrolled *that); + +void frbgen_payjoin_flutter_wire_Enroller_extract_req(int64_t port_, + struct wire_cst_enroller *that); + +void frbgen_payjoin_flutter_wire_Enroller_from_relay_config(int64_t port_, + struct wire_cst_list_prim_u_8_strict *relay_url, + struct wire_cst_list_prim_u_8_strict *ohttp_config_base64, + struct wire_cst_list_prim_u_8_strict *ohttp_proxy_url); + +void frbgen_payjoin_flutter_wire_Enroller_payjoin_subdir(int64_t port_, + struct wire_cst_enroller *that); + +void frbgen_payjoin_flutter_wire_Enroller_process_res(int64_t port_, + struct wire_cst_enroller *that, + struct wire_cst_list_prim_u_8_loose *body, + struct wire_cst_client_response *ctx); + +void frbgen_payjoin_flutter_wire_Enroller_subdirectory(int64_t port_, + struct wire_cst_enroller *that); + +void frbgen_payjoin_flutter_wire_Headers_from_vec(int64_t port_, + struct wire_cst_list_prim_u_8_loose *body); + +void frbgen_payjoin_flutter_wire_MaybeInputsOwned_check_inputs_not_owned(int64_t port_, + struct wire_cst_maybe_inputs_owned *that, + const void *is_owned); + +void frbgen_payjoin_flutter_wire_MaybeInputsSeen_check_no_inputs_seen_before(int64_t port_, + struct wire_cst_maybe_inputs_seen *that, + const void *is_known); + +void frbgen_payjoin_flutter_wire_MaybeMixedInputScripts_check_no_mixed_input_scripts(int64_t port_, + struct wire_cst_maybe_mixed_input_scripts *that); + +void frbgen_payjoin_flutter_wire_OutputsUnknown_identify_receiver_outputs(int64_t port_, + struct wire_cst_outputs_unknown *that, + const void *is_receiver_output); + +void frbgen_payjoin_flutter_wire_PayjoinProposal_is_output_substitution_disabled(int64_t port_, + struct wire_cst_payjoin_proposal *that); + +void frbgen_payjoin_flutter_wire_PayjoinProposal_owned_vouts(int64_t port_, + struct wire_cst_payjoin_proposal *that); + +void frbgen_payjoin_flutter_wire_PayjoinProposal_psbt(int64_t port_, + struct wire_cst_payjoin_proposal *that); + +void frbgen_payjoin_flutter_wire_PayjoinProposal_utxos_to_be_locked(int64_t port_, + struct wire_cst_payjoin_proposal *that); + +void frbgen_payjoin_flutter_wire_ProvisionalProposal_contribute_non_witness_input(int64_t port_, + struct wire_cst_provisional_proposal *that, + struct wire_cst_list_prim_u_8_loose *tx, + struct wire_cst_out_point *outpoint); + +void frbgen_payjoin_flutter_wire_ProvisionalProposal_contribute_witness_input(int64_t port_, + struct wire_cst_provisional_proposal *that, + struct wire_cst_tx_out *txo, + struct wire_cst_out_point *outpoint); + +void frbgen_payjoin_flutter_wire_ProvisionalProposal_finalize_proposal(int64_t port_, + struct wire_cst_provisional_proposal *that, + const void *process_psbt, + uint64_t *min_feerate_sat_per_vb); + +void frbgen_payjoin_flutter_wire_ProvisionalProposal_substitute_output_address(int64_t port_, + struct wire_cst_provisional_proposal *that, + struct wire_cst_list_prim_u_8_strict *address); + +void frbgen_payjoin_flutter_wire_ProvisionalProposal_try_preserving_privacy(int64_t port_, + struct wire_cst_provisional_proposal *that, + struct wire_cst_list_record_u_64_out_point *candidate_inputs); + +void frbgen_payjoin_flutter_wire_UncheckedProposal_assume_interactive_receiver(int64_t port_, + struct wire_cst_unchecked_proposal *that); + +void frbgen_payjoin_flutter_wire_UncheckedProposal_check_broadcast_suitability(int64_t port_, + struct wire_cst_unchecked_proposal *that, + uint64_t *min_fee_rate, + const void *can_broadcast); + +void frbgen_payjoin_flutter_wire_UncheckedProposal_extract_tx_to_schedule_broadcast(int64_t port_, + struct wire_cst_unchecked_proposal *that); + +void frbgen_payjoin_flutter_wire_UncheckedProposal_from_request(int64_t port_, + struct wire_cst_list_prim_u_8_loose *body, + struct wire_cst_list_prim_u_8_strict *query, + struct wire_cst_headers *headers); + +void frbgen_payjoin_flutter_wire_V2MaybeInputsOwned_check_inputs_not_owned(int64_t port_, + struct wire_cst_v_2_maybe_inputs_owned *that, + const void *is_owned); + +void frbgen_payjoin_flutter_wire_V2MaybeInputsSeen_check_no_inputs_seen_before(int64_t port_, + struct wire_cst_v_2_maybe_inputs_seen *that, + const void *is_known); + +void frbgen_payjoin_flutter_wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts(int64_t port_, + struct wire_cst_v_2_maybe_mixed_input_scripts *that); + +void frbgen_payjoin_flutter_wire_V2OutputsUnknown_identify_receiver_outputs(int64_t port_, + struct wire_cst_v_2_outputs_unknown *that, + const void *is_receiver_output); + +void frbgen_payjoin_flutter_wire_V2PayjoinProposal_deserialize_res(int64_t port_, + struct wire_cst_v_2_payjoin_proposal *that, + struct wire_cst_list_prim_u_8_loose *res, + struct wire_cst_client_response *ohttp_context); + +void frbgen_payjoin_flutter_wire_V2PayjoinProposal_extract_v1_req(int64_t port_, + struct wire_cst_v_2_payjoin_proposal *that); + +void frbgen_payjoin_flutter_wire_V2PayjoinProposal_extract_v2_req(int64_t port_, + struct wire_cst_v_2_payjoin_proposal *that); + +void frbgen_payjoin_flutter_wire_V2PayjoinProposal_is_output_substitution_disabled(int64_t port_, + struct wire_cst_v_2_payjoin_proposal *that); + +void frbgen_payjoin_flutter_wire_V2PayjoinProposal_owned_vouts(int64_t port_, + struct wire_cst_v_2_payjoin_proposal *that); + +void frbgen_payjoin_flutter_wire_V2PayjoinProposal_psbt(int64_t port_, + struct wire_cst_v_2_payjoin_proposal *that); + +void frbgen_payjoin_flutter_wire_V2PayjoinProposal_utxos_to_be_locked(int64_t port_, + struct wire_cst_v_2_payjoin_proposal *that); + +void frbgen_payjoin_flutter_wire_V2ProvisionalProposal_contribute_non_witness_input(int64_t port_, + struct wire_cst_v_2_provisional_proposal *that, + struct wire_cst_list_prim_u_8_loose *tx, + struct wire_cst_out_point *outpoint); + +void frbgen_payjoin_flutter_wire_V2ProvisionalProposal_contribute_witness_input(int64_t port_, + struct wire_cst_v_2_provisional_proposal *that, + struct wire_cst_tx_out *txo, + struct wire_cst_out_point *outpoint); + +void frbgen_payjoin_flutter_wire_V2ProvisionalProposal_finalize_proposal(int64_t port_, + struct wire_cst_v_2_provisional_proposal *that, + const void *process_psbt, + uint64_t *min_feerate_sat_per_vb); + +void frbgen_payjoin_flutter_wire_V2ProvisionalProposal_substitute_output_address(int64_t port_, + struct wire_cst_v_2_provisional_proposal *that, + struct wire_cst_list_prim_u_8_strict *address); + +void frbgen_payjoin_flutter_wire_V2ProvisionalProposal_try_preserving_privacy(int64_t port_, + struct wire_cst_v_2_provisional_proposal *that, + struct wire_cst_list_record_u_64_out_point *candidate_inputs); + +void frbgen_payjoin_flutter_wire_V2UncheckedProposal_assume_interactive_receiver(int64_t port_, + struct wire_cst_v_2_unchecked_proposal *that); + +void frbgen_payjoin_flutter_wire_V2UncheckedProposal_check_broadcast_suitability(int64_t port_, + struct wire_cst_v_2_unchecked_proposal *that, + uint64_t *min_fee_rate, + const void *can_broadcast); + +void frbgen_payjoin_flutter_wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast(int64_t port_, + struct wire_cst_v_2_unchecked_proposal *that); + +void frbgen_payjoin_flutter_wire_ContextV1_process_response(int64_t port_, + struct wire_cst_context_v_1 *that, + struct wire_cst_list_prim_u_8_loose *response); + +void frbgen_payjoin_flutter_wire_ContextV2_process_response(int64_t port_, + struct wire_cst_context_v_2 *that, + struct wire_cst_list_prim_u_8_loose *response); + +void frbgen_payjoin_flutter_wire_RequestBuilder_always_disable_output_substitution(int64_t port_, + struct wire_cst_request_builder *that, + bool disable); + +void frbgen_payjoin_flutter_wire_RequestBuilder_build_non_incentivizing(int64_t port_, + struct wire_cst_request_builder *that); + +void frbgen_payjoin_flutter_wire_RequestBuilder_build_recommended(int64_t port_, + struct wire_cst_request_builder *that, + uint64_t min_fee_rate); + +void frbgen_payjoin_flutter_wire_RequestBuilder_build_with_additional_fee(int64_t port_, + struct wire_cst_request_builder *that, + uint64_t max_fee_contribution, + uint8_t *change_index, + uint64_t min_fee_rate, + bool clamp_fee_contribution); + +void frbgen_payjoin_flutter_wire_RequestBuilder_from_psbt_and_uri(int64_t port_, + struct wire_cst_list_prim_u_8_strict *psbt_base64, + struct wire_cst_uri *uri); + +void frbgen_payjoin_flutter_wire_RequestBuilder_new(int64_t port_); + +void frbgen_payjoin_flutter_wire_RequestContext_extract_v1(int64_t port_, + struct wire_cst_request_context *that); + +void frbgen_payjoin_flutter_wire_RequestContext_extract_v2(int64_t port_, + struct wire_cst_request_context *that, + struct wire_cst_list_prim_u_8_strict *ohttp_proxy_url); + +void frbgen_payjoin_flutter_wire_Uri_address(int64_t port_, struct wire_cst_uri *that); + +void frbgen_payjoin_flutter_wire_Uri_amount(int64_t port_, struct wire_cst_uri *that); + +void frbgen_payjoin_flutter_wire_Uri_from_str(int64_t port_, + struct wire_cst_list_prim_u_8_strict *uri); + +void frbgen_payjoin_flutter_wire_Url_from_str(int64_t port_, + struct wire_cst_list_prim_u_8_strict *url); + +void frbgen_payjoin_flutter_wire_Url_query(int64_t port_, struct wire_cst_url *that); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal(const void *ptr); + +struct wire_cst_client_response *frbgen_payjoin_flutter_cst_new_box_autoadd_client_response(void); + +struct wire_cst_context_v_1 *frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_1(void); + +struct wire_cst_context_v_2 *frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_2(void); + +struct wire_cst_enrolled *frbgen_payjoin_flutter_cst_new_box_autoadd_enrolled(void); + +struct wire_cst_enroller *frbgen_payjoin_flutter_cst_new_box_autoadd_enroller(void); + +struct wire_cst_headers *frbgen_payjoin_flutter_cst_new_box_autoadd_headers(void); + +struct wire_cst_maybe_inputs_owned *frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_inputs_owned(void); + +struct wire_cst_maybe_inputs_seen *frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_inputs_seen(void); + +struct wire_cst_maybe_mixed_input_scripts *frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_mixed_input_scripts(void); + +struct wire_cst_out_point *frbgen_payjoin_flutter_cst_new_box_autoadd_out_point(void); + +struct wire_cst_outputs_unknown *frbgen_payjoin_flutter_cst_new_box_autoadd_outputs_unknown(void); + +struct wire_cst_payjoin_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_payjoin_proposal(void); + +struct wire_cst_provisional_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_provisional_proposal(void); + +struct wire_cst_request_builder *frbgen_payjoin_flutter_cst_new_box_autoadd_request_builder(void); + +struct wire_cst_request_context *frbgen_payjoin_flutter_cst_new_box_autoadd_request_context(void); + +struct wire_cst_tx_out *frbgen_payjoin_flutter_cst_new_box_autoadd_tx_out(void); + +uint64_t *frbgen_payjoin_flutter_cst_new_box_autoadd_u_64(uint64_t value); + +uint8_t *frbgen_payjoin_flutter_cst_new_box_autoadd_u_8(uint8_t value); + +struct wire_cst_unchecked_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_unchecked_proposal(void); + +struct wire_cst_uri *frbgen_payjoin_flutter_cst_new_box_autoadd_uri(void); + +struct wire_cst_url *frbgen_payjoin_flutter_cst_new_box_autoadd_url(void); + +struct wire_cst_v_2_maybe_inputs_owned *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_inputs_owned(void); + +struct wire_cst_v_2_maybe_inputs_seen *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_inputs_seen(void); + +struct wire_cst_v_2_maybe_mixed_input_scripts *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_mixed_input_scripts(void); + +struct wire_cst_v_2_outputs_unknown *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_outputs_unknown(void); + +struct wire_cst_v_2_payjoin_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_payjoin_proposal(void); + +struct wire_cst_v_2_provisional_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_provisional_proposal(void); + +struct wire_cst_v_2_unchecked_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_unchecked_proposal(void); + +struct wire_cst_list_out_point *frbgen_payjoin_flutter_cst_new_list_out_point(int32_t len); + +struct wire_cst_list_prim_u_64_strict *frbgen_payjoin_flutter_cst_new_list_prim_u_64_strict(int32_t len); + +struct wire_cst_list_prim_u_8_loose *frbgen_payjoin_flutter_cst_new_list_prim_u_8_loose(int32_t len); + +struct wire_cst_list_prim_u_8_strict *frbgen_payjoin_flutter_cst_new_list_prim_u_8_strict(int32_t len); + +struct wire_cst_list_record_string_string *frbgen_payjoin_flutter_cst_new_list_record_string_string(int32_t len); + +struct wire_cst_list_record_u_64_out_point *frbgen_payjoin_flutter_cst_new_list_record_u_64_out_point(int32_t len); +static int64_t dummy_method_to_enforce_bundling(void) { + int64_t dummy_var = 0; + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_client_response); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_1); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_2); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_enrolled); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_enroller); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_headers); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_inputs_owned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_inputs_seen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_mixed_input_scripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_out_point); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_outputs_unknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_payjoin_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_provisional_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_request_builder); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_request_context); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_tx_out); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_u_64); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_u_8); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_unchecked_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_uri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_url); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_inputs_owned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_inputs_seen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_maybe_mixed_input_scripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_outputs_unknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_payjoin_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_provisional_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_unchecked_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_list_out_point); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_list_prim_u_64_strict); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_list_prim_u_8_loose); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_list_prim_u_8_strict); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_list_record_string_string); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_list_record_u_64_out_point); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsOwned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedrust_asyncRwLockArcV2MaybeInputsSeen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_ContextV1_process_response); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_ContextV2_process_response); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Enrolled_extract_req); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Enrolled_fallback_target); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Enrolled_process_res); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Enrolled_subdirectory); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Enroller_extract_req); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Enroller_from_relay_config); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Enroller_payjoin_subdir); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Enroller_process_res); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Enroller_subdirectory); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Headers_from_vec); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_MaybeInputsOwned_check_inputs_not_owned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_MaybeInputsSeen_check_no_inputs_seen_before); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_MaybeMixedInputScripts_check_no_mixed_input_scripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_OutputsUnknown_identify_receiver_outputs); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_PayjoinProposal_is_output_substitution_disabled); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_PayjoinProposal_owned_vouts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_PayjoinProposal_psbt); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_PayjoinProposal_utxos_to_be_locked); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_ProvisionalProposal_contribute_non_witness_input); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_ProvisionalProposal_contribute_witness_input); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_ProvisionalProposal_finalize_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_ProvisionalProposal_substitute_output_address); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_ProvisionalProposal_try_preserving_privacy); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_RequestBuilder_always_disable_output_substitution); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_RequestBuilder_build_non_incentivizing); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_RequestBuilder_build_recommended); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_RequestBuilder_build_with_additional_fee); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_RequestBuilder_from_psbt_and_uri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_RequestBuilder_new); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_RequestContext_extract_v1); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_RequestContext_extract_v2); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_UncheckedProposal_assume_interactive_receiver); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_UncheckedProposal_check_broadcast_suitability); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_UncheckedProposal_extract_tx_to_schedule_broadcast); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_UncheckedProposal_from_request); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Uri_address); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Uri_amount); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Uri_from_str); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Url_from_str); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_Url_query); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2MaybeInputsOwned_check_inputs_not_owned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2MaybeInputsSeen_check_no_inputs_seen_before); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2MaybeMixedInputScripts_check_no_mixed_input_scripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2OutputsUnknown_identify_receiver_outputs); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2PayjoinProposal_deserialize_res); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2PayjoinProposal_extract_v1_req); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2PayjoinProposal_extract_v2_req); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2PayjoinProposal_is_output_substitution_disabled); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2PayjoinProposal_owned_vouts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2PayjoinProposal_psbt); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2PayjoinProposal_utxos_to_be_locked); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2ProvisionalProposal_contribute_non_witness_input); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2ProvisionalProposal_contribute_witness_input); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2ProvisionalProposal_finalize_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2ProvisionalProposal_substitute_output_address); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2ProvisionalProposal_try_preserving_privacy); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2UncheckedProposal_assume_interactive_receiver); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2UncheckedProposal_check_broadcast_suitability); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_V2UncheckedProposal_extract_tx_to_schedule_broadcast); + dummy_var ^= ((int64_t) (void*) store_dart_post_cobject); + return dummy_var; +} From b85b0404902ba3cf2fa7cf751a0cc06efc1885e1 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Thu, 29 Feb 2024 18:40:00 -0500 Subject: [PATCH 12/14] dummy method created to enforce bundling --- ios/Classes/EnforceBundling.swift | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ios/Classes/EnforceBundling.swift diff --git a/ios/Classes/EnforceBundling.swift b/ios/Classes/EnforceBundling.swift new file mode 100644 index 0000000..67e89f5 --- /dev/null +++ b/ios/Classes/EnforceBundling.swift @@ -0,0 +1,4 @@ +public func dummyMethodToEnforceBundling() -> Int64 { + return dummy_method_to_enforce_bundling() +} +let dummyVar = dummyMethodToEnforceBundling(); \ No newline at end of file From 88003b9b181f9ede0255316b27566186d1ec8efa Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Thu, 29 Feb 2024 20:09:00 -0500 Subject: [PATCH 13/14] fix(initialize()): avoid re-initializing payjoin --- lib/src/root.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/src/root.dart b/lib/src/root.dart index a49fd5a..97f218a 100644 --- a/lib/src/root.dart +++ b/lib/src/root.dart @@ -1,11 +1,18 @@ import 'package:flutter/cupertino.dart'; +import 'package:payjoin_flutter/payjoin.dart'; import 'generated/frb_generated.dart'; +class UriW extends Uri { + UriW({required super.field0}); +} + class Payjoin { static Future initialize() async { try { - await PayjoinCore.init(); + if (!PayjoinCore.instance.initialized) { + await PayjoinCore.init(); + } } catch (e) { debugPrint(e.toString()); throw Exception( From 1a726830a589ae41c747f2df7568dbca7d667e73 Mon Sep 17 00:00:00 2001 From: BitcoinZavior Date: Thu, 29 Feb 2024 21:05:00 -0500 Subject: [PATCH 14/14] removed un-used dependencies --- rust/Cargo.lock | 3 --- rust/Cargo.toml | 3 --- 2 files changed, 6 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index c9811e9..25db699 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -1962,11 +1962,8 @@ dependencies = [ "anyhow", "flutter_rust_bridge", "flutter_rust_bridge_codegen", - "lazy_static", "ohttp", "payjoin_ffi", - "serde", - "serde_json", "tokio", ] diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 8b5ac34..08c4600 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -13,10 +13,7 @@ anyhow = "1.0.68" ohttp = { version = "0.5.1" } payjoin_ffi = {git = "https://github.com/LtbLightning/payjoin-ffi", branch = "v0.13"} flutter_rust_bridge = { version = "=2.0.0-dev.25" } -serde = "1.0.89" -serde_json = "1.0.96" anyhow = "1.0.68" -lazy_static = "1.4.0" tokio = "1.36.0" [profile.release]