diff --git a/.github/workflows/precompile_binaries.yml b/.github/workflows/precompile_binaries.yml index c6a032c..c38a2df 100644 --- a/.github/workflows/precompile_binaries.yml +++ b/.github/workflows/precompile_binaries.yml @@ -1,6 +1,6 @@ on: push: - branches: [v0.13, main] + branches: [upgrade-v0.18, main] name: Precompile Binaries diff --git a/CHANGELOG.md b/CHANGELOG.md index 92b0e3e..1e95ce3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,47 +1,49 @@ -## [0.13.0-dev.2] - -### Fixed - -- Fix `assumeInteractiveReceiver` return type - -### Refactor - -- Separate receiver and sender logic in example app. - -## [0.13.0-dev.1] - +## [0.18.0] +Updated `flutter_rust_bridge` to `2.0.0`. +#### APIs added +- Exposed `PjUriBuilder` and `PjUri`. +- Exposed `pjUrlBuilder()` in `ActiveSession`. +- Exposed `checkPjSupported()` in `PjUri`. +- Exposed `fetchOhttpKeys()` to fetch the `ohttp` keys from the specified `payjoin` directory. +#### APIs changed +- Upgrade `receive/v2` type state machine to resume multiple `payjoins` simultaneously ([#283](https://github.com/payjoin/rust-payjoin/pull/283)) +- Refactor output substitution with new fallable `try_substitute_outputs` ([#277](https://github.com/payjoin/rust-payjoin/pull/277)) +- `Enroller` became `SessionInitializer`. +- `Enrolled` became `ActiveSession`. +- `fallbackTarget()` became `pjUrl()`. + +#### Fixed +- Handle OHTTP encapsulated response status ([#284](https://github.com/payjoin/rust-payjoin/pull/284)) + +## [0.13.0] ### Features & Modules - #### Send module - -- ##### V1 - - `RequestBuilder` exposes `fromPsbtAndUri`, `buildWithAdditionalFee`, `buildRecommended`, `buildNonIncentivizing`, `alwaysDisableOutputSubstitution`. - - `RequestContext` exposes `extractContextV1` & `extractContextV2`. - - `ContextV1` exposes `processResponse`. -- ##### V2 - - `ContextV2` exposes `processResponse`. - +- ##### V1 + - `RequestBuilder` exposes `fromPsbtAndUri`, `buildWithAdditionalFee`, `buildRecommended`, `buildNonIncentivizing`, `alwaysDisableOutputSubstitution`. + - `RequestContext` exposes `extractContextV1` & `extractContextV2`. + - `ContextV1` exposes `processResponse`. +- ##### V2 + - `ContextV2` exposes `processResponse`. #### Receive module - -- ##### V1 - - `UncheckedProposal` exposes `fromRequest`, `extractTxToScheduleBroadcast`, `checkBroadcastSuitability`, `buildNonIncentivizing`, - `assumeInteractiveReceiver` &`alwaysDisableOutputSubstitution`. - - `MaybeInputsOwned` exposes `checkInputsNotOwned`. - - `MaybeMixedInputScripts` exposes `checkNoMixedInputScripts`. - - `MaybeInputsSeen` exposes `checkNoInputsSeenBefore`. - - `OutputsUnknown` exposes `identifyReceiverOutputs`. - - `ProvisionalProposal` exposes `substituteOutputAddress`, `contributeNonWitnessInput`, `contributeWitnessInput`, `tryPreservingPrivacy` & - `finalizeProposal`. - - `PayjoinProposal` exposes `isOutputSubstitutionDisabled`, `ownedVouts`, `psbt` & `utxosToBeLocked`. -- ##### V2 - - `Enroller` exposes `fromDirectoryConfig`, `processResponse` & `extractRequest`. - - `Enrolled` exposes `extractRequest`, `processResponse` & `fallbackTarget`. - - `UncheckedProposal` exposes `extractTxToScheduleBroadcast`, `checkBroadcastSuitability` & `assumeInteractiveReceiver`. - - `MaybeInputsOwned` exposes `checkInputsNotOwned`. - - `MaybeMixedInputScripts` exposes `checkNoMixedInputScripts`. - - `MaybeInputsSeen` exposes `checkNoInputsSeenBefore`. - - `OutputsUnknown` exposes `identifyReceiverOutputs`. - - `ProvisionalProposal` exposes `substituteOutputAddress`, `contributeNonWitnessInput`, `contributeWitnessInput`, `tryPreservingPrivacy` & - `finalizeProposal`. - - `PayjoinProposal` exposes `deserializeRes`, `extractV1Req`, `extractV2Request`, `isOutputSubstitutionDisabled`, `ownedVouts`, `psbt` & - `utxosToBeLocked`. +- ##### V1 + - `UncheckedProposal` exposes `fromRequest`, `extractTxToScheduleBroadcast`, `checkBroadcastSuitability`, `buildNonIncentivizing`, + `assumeInteractiveReceiver` &`alwaysDisableOutputSubstitution`. + - `MaybeInputsOwned` exposes `checkInputsNotOwned`. + - `MaybeMixedInputScripts` exposes `checkNoMixedInputScripts`. + - `MaybeInputsSeen` exposes `checkNoInputsSeenBefore`. + - `OutputsUnknown` exposes `identifyReceiverOutputs`. + - `ProvisionalProposal` exposes `substituteOutputAddress`, `contributeNonWitnessInput`, `contributeWitnessInput`, `tryPreservingPrivacy` & + `finalizeProposal`. + - `PayjoinProposal` exposes `isOutputSubstitutionDisabled`, `ownedVouts`, `psbt` & `utxosToBeLocked`. +- ##### V2 + - `Enroller` exposes `fromDirectoryConfig`, `processResponse` & `extractRequest`. + - `Enrolled` exposes `extractRequest`, `processResponse` & `fallbackTarget`. + - `UncheckedProposal` exposes `extractTxToScheduleBroadcast`, `checkBroadcastSuitability` & `assumeInteractiveReceiver`. + - `MaybeInputsOwned` exposes `checkInputsNotOwned`. + - `MaybeMixedInputScripts` exposes `checkNoMixedInputScripts`. + - `MaybeInputsSeen` exposes `checkNoInputsSeenBefore`. + - `OutputsUnknown` exposes `identifyReceiverOutputs`. + - `ProvisionalProposal` exposes `substituteOutputAddress`, `contributeNonWitnessInput`, `contributeWitnessInput`, `tryPreservingPrivacy` & + `finalizeProposal`. + - `PayjoinProposal` exposes `deserializeRes`, `extractV1Req`, `extractV2Request`, `isOutputSubstitutionDisabled`, `ownedVouts`, `psbt` & + `utxosToBeLocked`. \ No newline at end of file diff --git a/LICENSE b/LICENSE index e662c78..ba75c69 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1 @@ -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +TODO: Add your license here. diff --git a/README.md b/README.md index fe10857..7389bd4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ To use the `payjoin_flutter` package in your project, add it as a dependency in ```dart dependencies: -payjoin_flutter: 0.13.0 +payjoin_flutter: 0.18.0 ``` ### Requirements diff --git a/example/integration_test/bdk_full_cycle_test.dart b/example/integration_test/bdk_full_cycle_test.dart index 6baf746..42c4f30 100644 --- a/example/integration_test/bdk_full_cycle_test.dart +++ b/example/integration_test/bdk_full_cycle_test.dart @@ -20,38 +20,40 @@ void main() { final btcClient = BtcClient("sender"); await btcClient.loadWallet(); final sender = BdkClient( - "wpkh(tprv8ZgxMBicQKsPfNH1PykMg16TAvrZgoxDnxr3eorcbhvZxyZzStwFkvqCJegr8Gbwj3GQum8QpXQPh7DGkoobpTB7YbcnUeUSKRDyX2cNN9h/84'/1'/0'/0/*)#ey7hlgpn"); + "wpkh(tprv8ZgxMBicQKsPfNH1PykMg16TAvrZgoxDnxr3eorcbhvZxyZzStwFkvqCJegr8Gbwj3GQum8QpXQPh7DGkoobpTB7YbcnUeUSKRDyX2cNN9h/84'/1'/0'/0/*)#ey7hlgpn", + Network.regtest); final receiver = BdkClient( - "wpkh(tprv8ZgxMBicQKsPczV7D2zfMr7oUzHDhNPEuBUgrwRoWM3ijLRvhG87xYiqh9JFLPqojuhmqwMdo1oJzbe5GUpxCbDHnqyGhQa5Jg1Wt6rc9di/84'/1'/0'/0/*)#kdnuw5lq"); + "wpkh(tprv8ZgxMBicQKsPczV7D2zfMr7oUzHDhNPEuBUgrwRoWM3ijLRvhG87xYiqh9JFLPqojuhmqwMdo1oJzbe5GUpxCbDHnqyGhQa5Jg1Wt6rc9di/84'/1'/0'/0/*)#kdnuw5lq", + Network.regtest); await sender.restoreWallet(); await receiver.restoreWallet(); // Receiver creates the payjoin URI - final pjReceiverAddress = (await receiver.getNewAddress()).address; - final pjSenderAddress = (await sender.getNewAddress()).address; - await btcClient.sendToAddress(await pjSenderAddress.asString(), 1); - await btcClient.sendToAddress(await pjReceiverAddress.asString(), 1); - await btcClient.generate(11, await pjSenderAddress.asString()); + final pjReceiverAddress = receiver.getNewAddress().address; + final pjSenderAddress = sender.getNewAddress().address; + await btcClient.sendToAddress(pjSenderAddress.toString(), 1); + await btcClient.sendToAddress(pjReceiverAddress.toString(), 1); + await btcClient.generate(11, pjSenderAddress.toString()); await receiver.syncWallet(); await sender.syncWallet(); // Sender create a funded PSBT (not broadcast) to address with amount given in the pjUri - debugPrint("Sender Balance: ${(await sender.getBalance()).toString()}"); + debugPrint("Sender Balance: ${sender.getBalance().toString()}"); final uri = await pay_join_uri.Uri.fromString( - "${await pjReceiverAddress.toQrUri()}?amount=${0.0083285}&pj=https://example.com"); - final address = await uri.address(); - int amount = (((await uri.amount()) ?? 0) * 100000000).toInt(); + "${pjReceiverAddress.toQrUri()}?amount=${0.0083285}&pj=https://example.com"); + final address = uri.address(); + int amount = (((uri.amount()) ?? 0) * 100000000).toInt(); final senderPsbt = (await sender.createPsbt(address, amount, 2000)); - final senderPsbtBase64 = await senderPsbt.serialize(); + final senderPsbtBase64 = senderPsbt.toString(); debugPrint( "\nOriginal sender psbt: $senderPsbtBase64", ); // Receiver part final (req, ctx) = await (await (await send.RequestBuilder.fromPsbtAndUri( - psbtBase64: senderPsbtBase64, uri: uri)) + psbtBase64: senderPsbtBase64, pjUri: uri.checkPjSupported())) .buildWithAdditionalFee( - maxFeeContribution: 10000, - minFeeRate: 0, + maxFeeContribution: BigInt.from(10000), + minFeeRate: BigInt.zero, clampFeeContribution: false)) .extractContextV1(); final headers = common.Headers(map: { @@ -59,9 +61,7 @@ void main() { 'content-length': req.body.length.toString(), }); final uncheckedProposal = await v1.UncheckedProposal.fromRequest( - body: req.body.toList(), - query: (await req.url.query())!, - headers: headers); + body: req.body.toList(), query: (req.url.query())!, headers: headers); // in a payment processor where the sender could go offline, this is where you schedule to broadcast the original_tx var _ = await uncheckedProposal.extractTxToScheduleBroadcast(); final inputsOwned = await uncheckedProposal.checkBroadcastSuitability( @@ -71,7 +71,7 @@ void main() { // Receive Check 2: receiver can't sign for proposal inputs final mixedInputScripts = await inputsOwned.checkInputsNotOwned(isOwned: (e) async { - return await receiver.getAddressInfo(ScriptBuf(bytes: e)); + return receiver.getAddressInfo(ScriptBuf(bytes: e)); }); // Receive Check 3: receiver can't sign for proposal inputs @@ -82,11 +82,11 @@ void main() { return false; })) .identifyReceiverOutputs(isReceiverOutput: (e) async { - return await receiver.getAddressInfo(ScriptBuf(bytes: e)); + return receiver.getAddressInfo(ScriptBuf(bytes: e)); }); - final unspent = await receiver.listUnspent(); + final unspent = receiver.listUnspent(); // Select receiver payjoin inputs. - Map candidateInputs = { + Map candidateInputs = { for (var input in unspent) input.txout.value: common.OutPoint( txid: input.outpoint.txid.toString(), vout: input.outpoint.vout) @@ -109,15 +109,13 @@ void main() { ); await provisionalProposal.contributeWitnessInput( txo: txoToContribute, outpoint: outpointToContribute); - final receiverAddress = (await receiver.getNewAddress()).address; - await provisionalProposal.substituteOutputAddress( - address: await receiverAddress.asString()); + final payJoinProposal = await provisionalProposal.finalizeProposal(processPsbt: (e) async { debugPrint("\n Original receiver unsigned psbt: $e"); - return await (await receiver + return (await receiver .signPsbt(await PartiallySignedTransaction.fromString(e))) - .serialize(); + .toString(); }); final receiverPsbt = await payJoinProposal.psbt(); debugPrint("\n Original receiver psbt: $receiverPsbt"); diff --git a/example/integration_test/bitcoin_core_full_cycle_test.dart b/example/integration_test/bitcoin_core_full_cycle_test.dart index 55a1954..536aa44 100644 --- a/example/integration_test/bitcoin_core_full_cycle_test.dart +++ b/example/integration_test/bitcoin_core_full_cycle_test.dart @@ -5,7 +5,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; import 'package:payjoin_flutter/common.dart' as common; -import 'package:payjoin_flutter/send.dart'; import 'package:payjoin_flutter/uri.dart' as pay_join_uri; import 'package:payjoin_flutter_example/btc_client.dart'; import 'package:payjoin_flutter_example/payjoin_library.dart'; @@ -36,15 +35,11 @@ void main() { final amount = await uri.amount(); final senderPsbt = (await sender.walletCreateFundedPsbt(amount, address, 2000))["psbt"]; - final requestContext = await (await RequestBuilder.fromPsbtAndUri( - psbtBase64: senderPsbt, uri: uri)) - .buildRecommended(minFeeRate: 0); - final (_, ctx) = await requestContext.extractContextV1(); debugPrint( "\nOriginal sender psbt: $senderPsbt", ); - final provisionalProposal = - await payJoinLib.handlePjRequest(senderPsbt, (e) async { + final (provisionalProposal, ctx) = + await payJoinLib.handlePjRequest(senderPsbt, pjUri, (e) async { final script = ScriptBuf(bytes: e); final address = await (await Address.fromScript( script: script, network: Network.regtest)) @@ -53,9 +48,9 @@ void main() { }); final availableInputs = await receiver.listUnspent([]); // Select receiver payjoin inputs. - Map candidateInputs = {}; + Map candidateInputs = {}; for (var e in availableInputs) { - int amount = (e["amount"] * 100000000).toInt(); + var amount = BigInt.from(e["amount"] * 100000000); candidateInputs[amount] = common.OutPoint(txid: e["txid"], vout: e["vout"]); } @@ -67,7 +62,8 @@ void main() { (e["vout"] == selectedOutpoint.vout)); final selectedUtxoScriptPubKey = await ScriptBuf.fromHex(selectedUtxo["scriptPubKey"]); - int selectedUtxoAmount = (selectedUtxo["amount"] * 100000000).toInt(); + final selectedUtxoAmount = + BigInt.from(selectedUtxo["amount"] * 100000000); final txoutToContribute = common.TxOut( scriptPubkey: selectedUtxoScriptPubKey.bytes, value: selectedUtxoAmount, @@ -76,9 +72,6 @@ void main() { txid: selectedUtxo["txid"], vout: selectedUtxo["vout"]); await provisionalProposal.contributeWitnessInput( txo: txoutToContribute, outpoint: outputToContribute); - final newReceiverAddress = await receiver.getNewAddress(); - await provisionalProposal.substituteOutputAddress( - address: newReceiverAddress); final payJoinProposal = await provisionalProposal.finalizeProposal(processPsbt: (e) async { return (await receiver.walletProcessPsbt(e))["psbt"]; diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index f4facd9..5bbd96f 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - bdk_flutter (0.31.2-dev.1): + - bdk_flutter (0.31.2): - Flutter - Flutter (1.0.0) - integration_test (0.0.1): @@ -7,7 +7,7 @@ PODS: - path_provider_foundation (0.0.1): - Flutter - FlutterMacOS - - payjoin_flutter (0.0.1) + - payjoin_flutter (0.18.0) DEPENDENCIES: - bdk_flutter (from `.symlinks/plugins/bdk_flutter/ios`) @@ -29,11 +29,11 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/payjoin_flutter/ios" SPEC CHECKSUMS: - bdk_flutter: 1d889a00393def5bcd2be9cad91fa0c2a34fff7f + bdk_flutter: fb57a7400a7f3f181c5977bcdc2a5ef347ae4e7f Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 integration_test: ce0a3ffa1de96d1a89ca0ac26fca7ea18a749ef4 path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 - payjoin_flutter: 9011d8ef87f28bd66bcf80a21fdef14951b8a2aa + payjoin_flutter: 845f79d3e51d45e67842ee5df33ab492a1fd03cb PODFILE CHECKSUM: a57f30d18f102dd3ce366b1d62a55ecbef2158e5 diff --git a/example/lib/bdk_client.dart b/example/lib/bdk_client.dart index 87c014c..e840164 100644 --- a/example/lib/bdk_client.dart +++ b/example/lib/bdk_client.dart @@ -8,18 +8,19 @@ class BdkClient { late Wallet wallet; late Blockchain blockchain; final String descriptor; + final Network network; - BdkClient(this.descriptor); + BdkClient(this.descriptor, this.network); Future restoreWallet() async { try { await initBlockchain(); wallet = await Wallet.create( - descriptor: await Descriptor.create( - descriptor: descriptor, network: Network.signet), - network: Network.signet, + descriptor: + await Descriptor.create(descriptor: descriptor, network: network), + network: network, databaseConfig: const DatabaseConfig.memory()); - debugPrint(await (await getNewAddress()).address.asString()); + debugPrint(getNewAddress().address.toString()); } on Exception { rethrow; } @@ -30,22 +31,22 @@ class BdkClient { // Platform.isAndroid ? 'http://10.0.2.2:30000' : localEsploraUrl; try { blockchain = await Blockchain.create( - config: const BlockchainConfig.esplora( + config: BlockchainConfig.esplora( config: EsploraConfig( - baseUrl: "https://mutinynet.com/api", stopGap: 10))); + baseUrl: "https://mutinynet.com/api", + stopGap: BigInt.from(144)))); } on Exception { rethrow; } } - Future getNewAddress() async { - final res = - await wallet.getAddress(addressIndex: const AddressIndex.increase()); + AddressInfo getNewAddress() { + final res = wallet.getAddress(addressIndex: const AddressIndex.increase()); return res; } - Future> listTransactions() async { - final res = await wallet.listTransactions(includeRaw: true); + List listTransactions() { + final res = wallet.listTransactions(includeRaw: true); return res; } @@ -67,12 +68,11 @@ class BdkClient { String addressStr, int amount, int fee) async { try { final txBuilder = TxBuilder(); - final address = - await Address.fromString(s: addressStr, network: Network.signet); - final script = await address.scriptPubkey(); + final address = await Address.fromString(s: addressStr, network: network); + final script = address.scriptPubkey(); final (psbt, _) = await txBuilder - .addRecipient(script, amount) - .feeAbsolute(fee) + .addRecipient(script, BigInt.from(amount)) + .feeAbsolute(BigInt.from(fee)) .finish(wallet); return signPsbt(psbt); } on Exception { @@ -80,14 +80,16 @@ class BdkClient { } } - Future getBalance() async { - final balance = await wallet.getBalance(); - return balance.total; + int getBalance() { + final balance = wallet.getBalance(); + final res = "Total Balance: ${balance.total.toString()}"; + debugPrint(res); + return balance.total.toInt(); } Future broadcastPsbt(PartiallySignedTransaction psbt) async { try { - final tx = await psbt.extractTx(); + final tx = psbt.extractTx(); final txid = await blockchain.broadcast(transaction: tx); return txid; } on Exception { @@ -95,8 +97,8 @@ class BdkClient { } } - Future getAddressInfo(ScriptBuf script) async { - final res = await wallet.isMine(script: script); + bool getAddressInfo(ScriptBuf script) { + final res = wallet.isMine(script: script); return res; } @@ -104,7 +106,7 @@ class BdkClient { wallet.sync(blockchain: blockchain); } - Future> listUnspent() async { - return await wallet.listUnspent(); + List listUnspent() { + return wallet.listUnspent(); } } diff --git a/example/lib/main.dart b/example/lib/main.dart index 87f8c6a..41db74b 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -4,7 +4,6 @@ import 'package:bdk_flutter/bdk_flutter.dart'; import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:payjoin_flutter/common.dart' as common; -import 'package:payjoin_flutter/send.dart'; import 'package:payjoin_flutter/uri.dart' as pay_join_uri; import 'package:payjoin_flutter_example/bdk_client.dart'; import 'package:payjoin_flutter_example/payjoin_library.dart'; @@ -44,16 +43,16 @@ class _PayJoinState extends State { static const primaryColor = 0xffC71585; PayJoinLibrary payJoinLibrary = PayJoinLibrary(); final sender = BdkClient( - "wpkh(tprv8ZgxMBicQKsPdgsqhkRVYkBBULxG3HvyXtwhWKEgfH4bsU8bmaqhdbZvxq4Z7BLFtUrT58ynRDrBcfG3vNpNHsKTV5xCEgRoKaNNzcVW3HW/84'/1'/0'/0/*)#ln3hfgcf"); + "wpkh(tprv8ZgxMBicQKsPdgsqhkRVYkBBULxG3HvyXtwhWKEgfH4bsU8bmaqhdbZvxq4Z7BLFtUrT58ynRDrBcfG3vNpNHsKTV5xCEgRoKaNNzcVW3HW/84'/1'/0'/0/*)#ln3hfgcf", + Network.signet); final receiver = BdkClient( - "wpkh(tprv8ZgxMBicQKsPfKJjrApLfm2BhWhV1JpL3StS8UPagm91Y215JGZktQKTtvErD92RKxEDYD9Sfc9eGZVkuH94NgEHPhz7rpgzhiNm2UPs1G1/84'/1'/0'/0/*)#h8uywf09"); + "wpkh(tprv8ZgxMBicQKsPfKJjrApLfm2BhWhV1JpL3StS8UPagm91Y215JGZktQKTtvErD92RKxEDYD9Sfc9eGZVkuH94NgEHPhz7rpgzhiNm2UPs1G1/84'/1'/0'/0/*)#h8uywf09", + Network.signet); String displayText = ""; String pjUri = ""; late PartiallySignedTransaction senderPsbt; - late String receiverPsbtBase64; - late ContextV1 contextV1; - + late PartiallySignedTransaction processedAndFinalizedPsbt; @override void initState() { sender.restoreWallet(); @@ -115,8 +114,6 @@ class _PayJoinState extends State { setState(() { displayText = "sync complete"; }); - debugPrint( - "receiver balance: ${(await receiver.getBalance()).toString()}"); debugPrint( "sender balance: ${(await sender.getBalance()).toString()}"); }, @@ -145,53 +142,39 @@ class _PayJoinState extends State { fontWeight: FontWeight.w800), )), TextButton( - onPressed: () async { - final balance = await sender.getBalance(); - debugPrint("Sender Balance: ${balance.toString()}"); - final uri = await pay_join_uri.Uri.fromString(pjUri); - final address = await uri.address(); - int amount = (((await uri.amount()) ?? 0) * 100000000).toInt(); - final psbt = (await sender.createPsbt(address, amount, 2000)); - debugPrint( - "\nOriginal sender psbt: ${await psbt.serialize()}", - ); - - final requestContext = - (await (await RequestBuilder.fromPsbtAndUri( - psbtBase64: await psbt.serialize(), uri: uri)) - .buildRecommended(minFeeRate: 0)); - // In a real scenario, the sender would send the request to - // the payjoin endpoint of the receiver, here we just keep - // the context for the last step. - final (_, ctx) = await requestContext.extractContextV1(); - - setState(() { - senderPsbt = psbt; - contextV1 = ctx; - }); - }, - child: Text( - "Create Sender request psbt using receiver pjUri", - style: GoogleFonts.manrope( - color: Colors.black, - fontSize: 14, - fontWeight: FontWeight.w800), - ), - ), + onPressed: () async { + final balance = await sender.getBalance(); + debugPrint("Sender Balance: ${balance.toString()}"); + final uri = await pay_join_uri.Uri.fromString(pjUri); + final address = await uri.address(); + int amount = + (((await uri.amount()) ?? 0) * 100000000).toInt(); + final psbt = (await sender.createPsbt(address, amount, 2000)); + debugPrint( + "\nOriginal sender psbt: ${psbt.toString()}", + ); + setState(() { + senderPsbt = psbt; + }); + }, + child: Text( + "Create Sender psbt using receiver pjUri", + style: GoogleFonts.manrope( + color: Colors.black, + fontSize: 14, + fontWeight: FontWeight.w800), + )), TextButton( onPressed: () async { - final provisionalProposal = - await payJoinLibrary.handlePjRequest( - await senderPsbt.serialize(), - (e) async { - final script = ScriptBuf(bytes: e); + final (provisionalProposal, contextV1) = await payJoinLibrary + .handlePjRequest(senderPsbt.toString(), pjUri, (e) async { + final script = ScriptBuf(bytes: e); - return (await receiver.getAddressInfo(script)); - }, - ); + return (await receiver.getAddressInfo(script)); + }); final unspent = await receiver.listUnspent(); // Select receiver payjoin inputs. - Map candidateInputs = { + Map candidateInputs = { for (var input in unspent) input.txout.value: common.OutPoint( txid: input.outpoint.txid.toString(), @@ -201,7 +184,7 @@ class _PayJoinState extends State { .tryPreservingPrivacy(candidateInputs: candidateInputs); var selectedUtxo = unspent.firstWhere( (i) => - i.outpoint.txid == selectedOutpoint.txid && + i.outpoint.txid.toString() == selectedOutpoint.txid && i.outpoint.vout == selectedOutpoint.vout, orElse: () => throw Exception('UTXO not found')); var txoToContribute = common.TxOut( @@ -216,24 +199,26 @@ class _PayJoinState extends State { await provisionalProposal.contributeWitnessInput( txo: txoToContribute, outpoint: outpointToContribute); - final newReceiverAddress = await receiver.getNewAddress(); - await provisionalProposal.substituteOutputAddress( - address: await newReceiverAddress.address.asString()); final payJoinProposal = await provisionalProposal .finalizeProposal(processPsbt: (e) async { - debugPrint("\n Receiver response unsigned psbt: $e"); - return await (await receiver.signPsbt( + debugPrint("\n Original receiver unsigned psbt: $e"); + return (await receiver.signPsbt( await PartiallySignedTransaction.fromString(e))) - .serialize(); + .toString(); }); final receiverPsbt = await payJoinProposal.psbt(); - debugPrint("\n Receiver response psbt: $receiverPsbt"); + debugPrint("\n Original receiver psbt: $receiverPsbt"); + final receiverProcessedPsbt = await contextV1.processResponse( + response: utf8.encode(receiverPsbt)); + final senderProcessedPsbt = (await sender.signPsbt( + await PartiallySignedTransaction.fromString( + receiverProcessedPsbt))); setState(() { - receiverPsbtBase64 = receiverPsbt; + processedAndFinalizedPsbt = senderProcessedPsbt; }); }, child: Text( - "Create Receiver response psbt", + "Process and finalize receiver Pj request", style: GoogleFonts.manrope( color: Colors.black, fontSize: 14, @@ -241,19 +226,12 @@ class _PayJoinState extends State { )), TextButton( onPressed: () async { - final processedReceiverResponsePsbt = - await contextV1.processResponse( - response: utf8.encode(receiverPsbtBase64)); - final finalizedPsbt = (await sender.signPsbt( - await PartiallySignedTransaction.fromString( - processedReceiverResponsePsbt))); - debugPrint( - 'Processed and finalized sender psbt: ${await finalizedPsbt.serialize()}'); - final res = await sender.broadcastPsbt(finalizedPsbt); + final res = + await sender.broadcastPsbt(processedAndFinalizedPsbt); debugPrint("Broadcast success: $res"); }, child: Text( - "Process response and broadcast final Sender psbt", + "Broadcast processed psbt", style: GoogleFonts.manrope( color: Colors.black, fontSize: 14, diff --git a/example/lib/payjoin_library.dart b/example/lib/payjoin_library.dart index 8b37344..2a6d6f4 100644 --- a/example/lib/payjoin_library.dart +++ b/example/lib/payjoin_library.dart @@ -1,11 +1,9 @@ import 'dart:async'; -import 'dart:convert'; import 'dart:typed_data'; import 'package:flutter/cupertino.dart'; import 'package:payjoin_flutter/common.dart' as common; import 'package:payjoin_flutter/receive/v1.dart' as v1; -import 'package:payjoin_flutter/receive/v2.dart'; import 'package:payjoin_flutter/send.dart' as send; import 'package:payjoin_flutter/uri.dart' as pj_uri; @@ -24,52 +22,36 @@ class PayJoinLibrary { } } - Future handlePjRequest( - String psbtBase64, Future Function(Uint8List) isOwned) async { - final body = utf8.encode(psbtBase64); - + Future<(v1.ProvisionalProposal, send.ContextV1)> handlePjRequest( + String psbtBase64, + String uriStr, + Future Function(Uint8List) isOwned) async { + final uri = await pj_uri.Uri.fromString(uriStr); + final (req, cxt) = await (await (await send.RequestBuilder.fromPsbtAndUri( + psbtBase64: psbtBase64, pjUri: uri.checkPjSupported())) + .buildWithAdditionalFee( + maxFeeContribution: BigInt.from(10000), + minFeeRate: BigInt.zero, + clampFeeContribution: false)) + .extractContextV1(); final headers = common.Headers(map: { 'content-type': 'text/plain', - 'content-length': body.length.toString(), + 'content-length': req.body.length.toString(), }); final unchecked = await v1.UncheckedProposal.fromRequest( - body: body.toList(), query: '', headers: headers); - final provisionalProposal = - await handleUncheckedProposal(unchecked, isOwned); - return provisionalProposal; + body: req.body.toList(), + query: (await req.url.query())!, + headers: headers); + final provisionalProposal = await handleUnckedProposal(unchecked, isOwned); + return (provisionalProposal, cxt); } - Future handleUncheckedProposal( + Future handleUnckedProposal( v1.UncheckedProposal uncheckedProposal, Future Function(Uint8List) isOwned) async { - // A consumer wallet has some manual interaction to initiate a payjoin, it - // is not a server that can receive a lot of requests without the user - // being aware of it. Therefore we say a consumer wallet app is an - // interactive receiver and an automatic payment processor is - // non-interactive. - // - // The way to check a proposal for these cases are different: - // - For an interactive receiver, you can just call - // `assumeInteractiveReceiver` as used here in the example code. - // - For a non-interactive receiver, you would extract the original tx - // with `extractTxToScheduleBroadcast` and check if it can be - // broadcasted in `checkBroadcastSuitability`. This way, if the sender - // doesn't complete the payjoin, you can still broadcast the original - // tx and get your funds. This protects against sender maliciousness of - // probing your utxo set amongst other things. - + // in a payment processor where the sender could go offline, this is where you schedule to broadcast the original_tx + var _ = await uncheckedProposal.extractTxToScheduleBroadcast(); final inputsOwned = await uncheckedProposal.assumeInteractiveReceiver(); - /* - // Non-interactive receiver example code: - final originalTx = await uncheckedProposal.extractTxToScheduleBroadcast(); - final inputsOwned = await uncheckedProposal.checkBroadcastSuitability( - canBroadcast: (e) async { - // Here you would check if the original tx is a valid tx that pays you - // and that can be broadcasted. - return true; - }); - */ - // Receive Check 2: receiver can't sign for proposal inputs final mixedInputScripts = await inputsOwned.checkInputsNotOwned(isOwned: isOwned); diff --git a/example/pubspec.lock b/example/pubspec.lock index eda56e4..003426b 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -37,11 +37,11 @@ packages: dependency: "direct main" description: path: "." - ref: main - resolved-ref: "821fe90d20c955e3cdfbfecea3b91fe24885552a" + ref: "0.31.2" + resolved-ref: "1944db1e3cf8c8e909fb8d22079a1caaec512ab2" url: "https://github.com/LtbLightning/bdk-flutter" source: git - version: "0.31.2-dev.2" + version: "0.31.2" boolean_selector: dependency: transitive description: @@ -208,10 +208,10 @@ packages: dependency: transitive description: name: flutter_rust_bridge - sha256: e9a8716b1ad2fc81c434f3e4bf84b86c578578678c57e568b44aea7acf210102 + sha256: f703c4b50e253e53efc604d50281bbaefe82d615856f8ae1e7625518ae252e98 url: "https://pub.dev" source: hosted - version: "2.0.0-dev.31" + version: "2.0.0" flutter_test: dependency: "direct dev" description: flutter @@ -267,14 +267,6 @@ packages: description: flutter source: sdk version: "0.0.0" - js: - dependency: transitive - description: - name: js - sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf - url: "https://pub.dev" - source: hosted - version: "0.7.1" json_annotation: dependency: transitive description: @@ -425,7 +417,7 @@ packages: path: ".." relative: true source: path - version: "0.13.0" + version: "0.18.0" platform: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 77cf38a..d76f5b0 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -2,7 +2,7 @@ name: payjoin_flutter_example description: "Demonstrates how to use the payjoin plugin." # The following line prevents the package from being accidentally published to # pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: "none" # Remove this line if you wish to publish to pub.dev +publish_to: 'none' # Remove this line if you wish to publish to pub.dev # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43 @@ -19,7 +19,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=3.2.3 <4.0.0" + sdk: '>=3.2.3 <4.0.0' # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions @@ -45,7 +45,8 @@ dependencies: bdk_flutter: git: url: https://github.com/LtbLightning/bdk-flutter - ref: main + ref: 0.31.2 + google_fonts: ^6.2.1 @@ -59,4 +60,4 @@ dev_dependencies: flutter_lints: ^2.0.0 flutter: - uses-material-design: true + uses-material-design: true \ No newline at end of file diff --git a/flutter_rust_bridge.yaml b/flutter_rust_bridge.yaml index c200705..67bc297 100644 --- a/flutter_rust_bridge.yaml +++ b/flutter_rust_bridge.yaml @@ -1,6 +1,10 @@ - -rust_input: rust/src/api/*.rs +rust_input: crate::api +rust_root: rust/ dart_output: lib/src/generated/ +add_mod_to_lib: false +web: false +dart3: true full_dep: true +enable_lifetime: true c_output: ios/Classes/frb_generated.h -dart_entrypoint_class_name: PayjoinCore \ No newline at end of file +dart_entrypoint_class_name: core \ No newline at end of file diff --git a/ios/Classes/frb_generated.h b/ios/Classes/frb_generated.h index 2029de9..ffd8533 100644 --- a/ios/Classes/frb_generated.h +++ b/ios/Classes/frb_generated.h @@ -14,54 +14,46 @@ void store_dart_post_cobject(DartPostCObjectFnType ptr); // EXTRA END typedef struct _Dart_Handle* Dart_Handle; -typedef struct wire_cst_enrolled { +typedef struct wire_cst_ffi_url { uintptr_t field0; -} wire_cst_enrolled; +} wire_cst_ffi_url; 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 { +typedef struct wire_cst_ffi_active_session { uintptr_t field0; -} wire_cst_client_response; +} wire_cst_ffi_active_session; -typedef struct wire_cst_enroller { +typedef struct wire_cst_ffi_client_response { uintptr_t field0; -} wire_cst_enroller; +} wire_cst_ffi_client_response; -typedef struct wire_cst_url { +typedef struct wire_cst_ffi_maybe_inputs_owned { uintptr_t field0; -} wire_cst_url; +} wire_cst_ffi_maybe_inputs_owned; -typedef struct wire_cst_ohttp_keys { +typedef struct wire_cst_ffi_maybe_inputs_seen { uintptr_t field0; -} wire_cst_ohttp_keys; +} wire_cst_ffi_maybe_inputs_seen; -typedef struct wire_cst_maybe_inputs_owned { +typedef struct wire_cst_ffi_maybe_mixed_input_scripts { uintptr_t field0; -} wire_cst_maybe_inputs_owned; +} wire_cst_ffi_maybe_mixed_input_scripts; -typedef struct wire_cst_maybe_inputs_seen { +typedef struct wire_cst_ffi_outputs_unknown { uintptr_t field0; -} wire_cst_maybe_inputs_seen; +} wire_cst_ffi_outputs_unknown; -typedef struct wire_cst_maybe_mixed_input_scripts { +typedef struct wire_cst_ffi_payjoin_proposal { uintptr_t field0; -} wire_cst_maybe_mixed_input_scripts; +} wire_cst_ffi_payjoin_proposal; -typedef struct wire_cst_outputs_unknown { +typedef struct wire_cst_ffi_provisional_proposal { 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; +} wire_cst_ffi_provisional_proposal; typedef struct wire_cst_list_prim_u_8_strict { uint8_t *ptr; @@ -88,9 +80,17 @@ typedef struct wire_cst_list_record_u_64_out_point { int32_t len; } wire_cst_list_record_u_64_out_point; -typedef struct wire_cst_unchecked_proposal { +typedef struct wire_cst_ffi_session_initializer { + uintptr_t field0; +} wire_cst_ffi_session_initializer; + +typedef struct wire_cst_ffi_ohttp_keys { + uintptr_t field0; +} wire_cst_ffi_ohttp_keys; + +typedef struct wire_cst_ffi_unchecked_proposal { uintptr_t field0; -} wire_cst_unchecked_proposal; +} wire_cst_ffi_unchecked_proposal; typedef struct wire_cst_record_string_string { struct wire_cst_list_prim_u_8_strict *field0; @@ -106,53 +106,61 @@ typedef struct wire_cst_headers { struct wire_cst_list_record_string_string *map; } wire_cst_headers; -typedef struct wire_cst_v_2_maybe_inputs_owned { +typedef struct wire_cst_ffi_v_2_maybe_inputs_owned { + uintptr_t field0; +} wire_cst_ffi_v_2_maybe_inputs_owned; + +typedef struct wire_cst_ffi_v_2_maybe_inputs_seen { uintptr_t field0; -} wire_cst_v_2_maybe_inputs_owned; +} wire_cst_ffi_v_2_maybe_inputs_seen; -typedef struct wire_cst_v_2_maybe_inputs_seen { +typedef struct wire_cst_ffi_v_2_maybe_mixed_input_scripts { uintptr_t field0; -} wire_cst_v_2_maybe_inputs_seen; +} wire_cst_ffi_v_2_maybe_mixed_input_scripts; -typedef struct wire_cst_v_2_maybe_mixed_input_scripts { +typedef struct wire_cst_ffi_v_2_outputs_unknown { uintptr_t field0; -} wire_cst_v_2_maybe_mixed_input_scripts; +} wire_cst_ffi_v_2_outputs_unknown; -typedef struct wire_cst_v_2_outputs_unknown { +typedef struct wire_cst_ffi_v_2_payjoin_proposal { uintptr_t field0; -} wire_cst_v_2_outputs_unknown; +} wire_cst_ffi_v_2_payjoin_proposal; -typedef struct wire_cst_v_2_payjoin_proposal { +typedef struct wire_cst_ffi_v_2_provisional_proposal { uintptr_t field0; -} wire_cst_v_2_payjoin_proposal; +} wire_cst_ffi_v_2_provisional_proposal; -typedef struct wire_cst_v_2_provisional_proposal { +typedef struct wire_cst_ffi_v_2_unchecked_proposal { uintptr_t field0; -} wire_cst_v_2_provisional_proposal; +} wire_cst_ffi_v_2_unchecked_proposal; -typedef struct wire_cst_v_2_unchecked_proposal { +typedef struct wire_cst_ffi_context_v_1 { uintptr_t field0; -} wire_cst_v_2_unchecked_proposal; +} wire_cst_ffi_context_v_1; -typedef struct wire_cst_context_v_1 { +typedef struct wire_cst_ffi_context_v_2 { uintptr_t field0; -} wire_cst_context_v_1; +} wire_cst_ffi_context_v_2; -typedef struct wire_cst_context_v_2 { +typedef struct wire_cst_ffi_request_builder { uintptr_t field0; -} wire_cst_context_v_2; +} wire_cst_ffi_request_builder; -typedef struct wire_cst_request_builder { +typedef struct wire_cst_ffi_pj_uri { uintptr_t field0; -} wire_cst_request_builder; +} wire_cst_ffi_pj_uri; -typedef struct wire_cst_uri { +typedef struct wire_cst_ffi_request_context { uintptr_t field0; -} wire_cst_uri; +} wire_cst_ffi_request_context; + +typedef struct wire_cst_ffi_pj_uri_builder { + uintptr_t internal; +} wire_cst_ffi_pj_uri_builder; -typedef struct wire_cst_request_context { +typedef struct wire_cst_ffi_uri { uintptr_t field0; -} wire_cst_request_context; +} wire_cst_ffi_uri; typedef struct wire_cst_list_out_point { struct wire_cst_out_point *ptr; @@ -232,6 +240,10 @@ typedef struct wire_cst_PayjoinError_UrlError { struct wire_cst_list_prim_u_8_strict *message; } wire_cst_PayjoinError_UrlError; +typedef struct wire_cst_PayjoinError_IoError { + struct wire_cst_list_prim_u_8_strict *message; +} wire_cst_PayjoinError_IoError; + typedef union PayjoinErrorKind { struct wire_cst_PayjoinError_InvalidAddress InvalidAddress; struct wire_cst_PayjoinError_InvalidScript InvalidScript; @@ -250,6 +262,7 @@ typedef union PayjoinErrorKind { struct wire_cst_PayjoinError_UnexpectedError UnexpectedError; struct wire_cst_PayjoinError_OhttpError OhttpError; struct wire_cst_PayjoinError_UrlError UrlError; + struct wire_cst_PayjoinError_IoError IoError; } PayjoinErrorKind; typedef struct wire_cst_payjoin_error { @@ -257,395 +270,454 @@ typedef struct wire_cst_payjoin_error { union PayjoinErrorKind kind; } wire_cst_payjoin_error; -typedef struct wire_cst_record_url_list_prim_u_8_strict { - struct wire_cst_url field0; +typedef struct wire_cst_record_ffi_url_list_prim_u_8_strict { + struct wire_cst_ffi_url field0; struct wire_cst_list_prim_u_8_strict *field1; -} wire_cst_record_url_list_prim_u_8_strict; +} wire_cst_record_ffi_url_list_prim_u_8_strict; -typedef struct wire_cst_record_record_url_list_prim_u_8_strict_client_response { - struct wire_cst_record_url_list_prim_u_8_strict field0; - struct wire_cst_client_response field1; -} wire_cst_record_record_url_list_prim_u_8_strict_client_response; +typedef struct wire_cst_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response { + struct wire_cst_record_ffi_url_list_prim_u_8_strict field0; + struct wire_cst_ffi_client_response field1; +} wire_cst_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response; typedef struct wire_cst_request_context_v_1 { - struct wire_cst_record_url_list_prim_u_8_strict request; - struct wire_cst_context_v_1 context_v1; + struct wire_cst_record_ffi_url_list_prim_u_8_strict request; + struct wire_cst_ffi_context_v_1 context_v1; } wire_cst_request_context_v_1; typedef struct wire_cst_request_context_v_2 { - struct wire_cst_record_url_list_prim_u_8_strict request; - struct wire_cst_context_v_2 context_v2; + struct wire_cst_record_ffi_url_list_prim_u_8_strict request; + struct wire_cst_ffi_context_v_2 context_v2; } wire_cst_request_context_v_2; -void frbgen_payjoin_flutter_wire_enrolled_extract_req(int64_t port_, struct wire_cst_enrolled *ptr); +void frbgen_payjoin_flutter_wire__crate__api__io__fetch_ohttp_keys(int64_t port_, + struct wire_cst_ffi_url *ohttp_relay, + struct wire_cst_ffi_url *payjoin_directory, + struct wire_cst_list_prim_u_8_loose *cert_der); + +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_extract_req(int64_t port_, + struct wire_cst_ffi_active_session *ptr); -void frbgen_payjoin_flutter_wire_enrolled_fallback_target(int64_t port_, - struct wire_cst_enrolled *that); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_pj_uri_builder(struct wire_cst_ffi_active_session *ptr); -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); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_pj_url(struct wire_cst_ffi_active_session *ptr); -void frbgen_payjoin_flutter_wire_enroller_extract_req(int64_t port_, struct wire_cst_enroller *ptr); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_process_res(int64_t port_, + struct wire_cst_ffi_active_session *that, + struct wire_cst_list_prim_u_8_loose *body, + struct wire_cst_ffi_client_response *ctx); -void frbgen_payjoin_flutter_wire_enroller_from_directory_config(int64_t port_, - struct wire_cst_url *directory, - struct wire_cst_ohttp_keys *ohttp_keys, - struct wire_cst_url *ohttp_relay); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_public_key(struct wire_cst_ffi_active_session *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__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_owned(int64_t port_, + struct wire_cst_ffi_maybe_inputs_owned *ptr, + const void *is_owned); -void frbgen_payjoin_flutter_wire_maybe_inputs_owned_check_inputs_not_owned(int64_t port_, - struct wire_cst_maybe_inputs_owned *ptr, - const void *is_owned); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_before(int64_t port_, + struct wire_cst_ffi_maybe_inputs_seen *ptr, + const void *is_known); -void frbgen_payjoin_flutter_wire_maybe_inputs_seen_check_no_inputs_seen_before(int64_t port_, - struct wire_cst_maybe_inputs_seen *ptr, - const void *is_known); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts(int64_t port_, + struct wire_cst_ffi_maybe_mixed_input_scripts *ptr); -void frbgen_payjoin_flutter_wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts(int64_t port_, - struct wire_cst_maybe_mixed_input_scripts *ptr); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputs(int64_t port_, + struct wire_cst_ffi_outputs_unknown *ptr, + const void *is_receiver_output); -void frbgen_payjoin_flutter_wire_outputs_unknown_identify_receiver_outputs(int64_t port_, - struct wire_cst_outputs_unknown *ptr, - const void *is_receiver_output); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabled(int64_t port_, + struct wire_cst_ffi_payjoin_proposal *that); -void frbgen_payjoin_flutter_wire_payjoin_proposal_is_output_substitution_disabled(int64_t port_, - struct wire_cst_payjoin_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_owned_vouts(int64_t port_, + struct wire_cst_ffi_payjoin_proposal *that); -void frbgen_payjoin_flutter_wire_payjoin_proposal_owned_vouts(int64_t port_, - struct wire_cst_payjoin_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_psbt(int64_t port_, + struct wire_cst_ffi_payjoin_proposal *that); -void frbgen_payjoin_flutter_wire_payjoin_proposal_psbt(int64_t port_, - struct wire_cst_payjoin_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_locked(int64_t port_, + struct wire_cst_ffi_payjoin_proposal *that); -void frbgen_payjoin_flutter_wire_payjoin_proposal_utxos_to_be_locked(int64_t port_, - struct wire_cst_payjoin_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_input(int64_t port_, + struct wire_cst_ffi_provisional_proposal *that, + struct wire_cst_list_prim_u_8_loose *tx, + struct wire_cst_out_point *outpoint); -void frbgen_payjoin_flutter_wire_provisional_proposal_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__crate__api__receive__ffi_provisional_proposal_contribute_witness_input(int64_t port_, + struct wire_cst_ffi_provisional_proposal *that, + struct wire_cst_tx_out *txo, + struct wire_cst_out_point *outpoint); -void frbgen_payjoin_flutter_wire_provisional_proposal_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__crate__api__receive__ffi_provisional_proposal_finalize_proposal(int64_t port_, + struct wire_cst_ffi_provisional_proposal *ptr, + const void *process_psbt, + uint64_t *min_feerate_sat_per_vb); -void frbgen_payjoin_flutter_wire_provisional_proposal_finalize_proposal(int64_t port_, - struct wire_cst_provisional_proposal *ptr, - const void *process_psbt, - uint64_t *min_feerate_sat_per_vb); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacy(int64_t port_, + struct wire_cst_ffi_provisional_proposal *that, + struct wire_cst_list_record_u_64_out_point *candidate_inputs); -void frbgen_payjoin_flutter_wire_provisional_proposal_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__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_output(int64_t port_, + struct wire_cst_ffi_provisional_proposal *that, + const void *generate_script); -void frbgen_payjoin_flutter_wire_provisional_proposal_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__crate__api__receive__ffi_session_initializer_extract_req(int64_t port_, + struct wire_cst_ffi_session_initializer *ptr); -void frbgen_payjoin_flutter_wire_unchecked_proposal_assume_interactive_receiver(int64_t port_, - struct wire_cst_unchecked_proposal *ptr); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_new(int64_t port_, + struct wire_cst_list_prim_u_8_strict *address, + uint64_t *expire_after, + int32_t network, + struct wire_cst_ffi_url *directory, + struct wire_cst_ffi_ohttp_keys *ohttp_keys, + struct wire_cst_ffi_url *ohttp_relay); -void frbgen_payjoin_flutter_wire_unchecked_proposal_check_broadcast_suitability(int64_t port_, - struct wire_cst_unchecked_proposal *ptr, - uint64_t *min_fee_rate, - const void *can_broadcast); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_process_res(int64_t port_, + struct wire_cst_ffi_session_initializer *that, + struct wire_cst_list_prim_u_8_loose *body, + struct wire_cst_ffi_client_response *ctx); -void frbgen_payjoin_flutter_wire_unchecked_proposal_extract_tx_to_schedule_broadcast(int64_t port_, - struct wire_cst_unchecked_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiver(int64_t port_, + struct wire_cst_ffi_unchecked_proposal *ptr); -void frbgen_payjoin_flutter_wire_unchecked_proposal_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__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitability(int64_t port_, + struct wire_cst_ffi_unchecked_proposal *ptr, + uint64_t *min_fee_rate, + const void *can_broadcast); -void frbgen_payjoin_flutter_wire_v_2_maybe_inputs_owned_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__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcast(int64_t port_, + struct wire_cst_ffi_unchecked_proposal *that); -void frbgen_payjoin_flutter_wire_v_2_maybe_inputs_seen_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__crate__api__receive__ffi_unchecked_proposal_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_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts(int64_t port_, - struct wire_cst_v_2_maybe_mixed_input_scripts *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_owned(int64_t port_, + struct wire_cst_ffi_v_2_maybe_inputs_owned *that, + const void *is_owned); -void frbgen_payjoin_flutter_wire_v_2_outputs_unknown_identify_receiver_outputs(int64_t port_, - struct wire_cst_v_2_outputs_unknown *that, - const void *is_receiver_output); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_before(int64_t port_, + struct wire_cst_ffi_v_2_maybe_inputs_seen *that, + const void *is_known); -void frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_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__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts(int64_t port_, + struct wire_cst_ffi_v_2_maybe_mixed_input_scripts *that); -void frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_extract_v1_req(int64_t port_, - struct wire_cst_v_2_payjoin_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputs(int64_t port_, + struct wire_cst_ffi_v_2_outputs_unknown *that, + const void *is_receiver_output); -void frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_extract_v2_req(int64_t port_, - struct wire_cst_v_2_payjoin_proposal *ptr); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_req(int64_t port_, + struct wire_cst_ffi_v_2_payjoin_proposal *that); -void frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_is_output_substitution_disabled(int64_t port_, - struct wire_cst_v_2_payjoin_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_req(int64_t port_, + struct wire_cst_ffi_v_2_payjoin_proposal *ptr); -void frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_owned_vouts(int64_t port_, - struct wire_cst_v_2_payjoin_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabled(int64_t port_, + struct wire_cst_ffi_v_2_payjoin_proposal *that); -void frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_psbt(int64_t port_, - struct wire_cst_v_2_payjoin_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_vouts(int64_t port_, + struct wire_cst_ffi_v_2_payjoin_proposal *that); -void frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_utxos_to_be_locked(int64_t port_, - struct wire_cst_v_2_payjoin_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_res(int64_t port_, + struct wire_cst_ffi_v_2_payjoin_proposal *that, + struct wire_cst_list_prim_u_8_loose *res, + struct wire_cst_ffi_client_response *ohttp_context); -void frbgen_payjoin_flutter_wire_v_2_provisional_proposal_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__crate__api__receive__ffi_v_2_payjoin_proposal_psbt(int64_t port_, + struct wire_cst_ffi_v_2_payjoin_proposal *that); -void frbgen_payjoin_flutter_wire_v_2_provisional_proposal_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__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_locked(int64_t port_, + struct wire_cst_ffi_v_2_payjoin_proposal *that); -void frbgen_payjoin_flutter_wire_v_2_provisional_proposal_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__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_input(int64_t port_, + struct wire_cst_ffi_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_v_2_provisional_proposal_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__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_input(int64_t port_, + struct wire_cst_ffi_v_2_provisional_proposal *that, + struct wire_cst_tx_out *txo, + struct wire_cst_out_point *outpoint); -void frbgen_payjoin_flutter_wire_v_2_provisional_proposal_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__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposal(int64_t port_, + struct wire_cst_ffi_v_2_provisional_proposal *that, + const void *process_psbt, + uint64_t *min_feerate_sat_per_vb); -void frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_assume_interactive_receiver(int64_t port_, - struct wire_cst_v_2_unchecked_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabled(int64_t port_, + struct wire_cst_ffi_v_2_provisional_proposal *that); -void frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_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__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacy(int64_t port_, + struct wire_cst_ffi_v_2_provisional_proposal *that, + struct wire_cst_list_record_u_64_out_point *candidate_inputs); -void frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast(int64_t port_, - struct wire_cst_v_2_unchecked_proposal *that); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_output(int64_t port_, + struct wire_cst_ffi_v_2_provisional_proposal *that, + const void *generate_script); -void frbgen_payjoin_flutter_wire_context_v_1_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__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiver(int64_t port_, + struct wire_cst_ffi_v_2_unchecked_proposal *that); -void frbgen_payjoin_flutter_wire_context_v_2_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__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitability(int64_t port_, + struct wire_cst_ffi_v_2_unchecked_proposal *that, + uint64_t *min_fee_rate, + const void *can_broadcast); -void frbgen_payjoin_flutter_wire_request_builder_always_disable_output_substitution(int64_t port_, - struct wire_cst_request_builder *that, - bool disable); +void frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast(int64_t port_, + struct wire_cst_ffi_v_2_unchecked_proposal *that); -void frbgen_payjoin_flutter_wire_request_builder_build_non_incentivizing(int64_t port_, - struct wire_cst_request_builder *that); +void frbgen_payjoin_flutter_wire__crate__api__send__ffi_context_v_1_process_response(int64_t port_, + struct wire_cst_ffi_context_v_1 *that, + struct wire_cst_list_prim_u_8_loose *response); -void frbgen_payjoin_flutter_wire_request_builder_build_recommended(int64_t port_, - struct wire_cst_request_builder *that, - uint64_t min_fee_rate); +void frbgen_payjoin_flutter_wire__crate__api__send__ffi_context_v_2_process_response(int64_t port_, + struct wire_cst_ffi_context_v_2 *that, + struct wire_cst_list_prim_u_8_loose *response); -void frbgen_payjoin_flutter_wire_request_builder_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__crate__api__send__ffi_request_builder_always_disable_output_substitution(int64_t port_, + struct wire_cst_ffi_request_builder *that, + bool disable); -void frbgen_payjoin_flutter_wire_request_builder_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__crate__api__send__ffi_request_builder_build_non_incentivizing(int64_t port_, + struct wire_cst_ffi_request_builder *that, + uint64_t min_fee_rate); -void frbgen_payjoin_flutter_wire_request_context_extract_v1(int64_t port_, - struct wire_cst_request_context *ptr); +void frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_build_recommended(int64_t port_, + struct wire_cst_ffi_request_builder *that, + uint64_t min_fee_rate); -void frbgen_payjoin_flutter_wire_request_context_extract_v2(int64_t port_, - struct wire_cst_request_context *ptr, - struct wire_cst_url *ohttp_proxy_url); +void frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_build_with_additional_fee(int64_t port_, + struct wire_cst_ffi_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_ohttp_keys_decode(int64_t port_, - struct wire_cst_list_prim_u_8_loose *bytes); +void frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_from_psbt_and_uri(int64_t port_, + struct wire_cst_list_prim_u_8_strict *psbt_base64, + struct wire_cst_ffi_pj_uri *pj_uri); -void frbgen_payjoin_flutter_wire_uri_address(int64_t port_, struct wire_cst_uri *that); +void frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_context_extract_v1(int64_t port_, + struct wire_cst_ffi_request_context *ptr); -void frbgen_payjoin_flutter_wire_uri_amount(int64_t port_, struct wire_cst_uri *that); +void frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_context_extract_v2(int64_t port_, + struct wire_cst_ffi_request_context *ptr, + struct wire_cst_ffi_url *ohttp_proxy_url); -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__crate__api__uri__ffi_ohttp_keys_decode(int64_t port_, + struct wire_cst_list_prim_u_8_loose *bytes); -void frbgen_payjoin_flutter_wire_url_as_string(int64_t port_, struct wire_cst_url *that); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_address(struct wire_cst_ffi_pj_uri *that); -void frbgen_payjoin_flutter_wire_url_from_str(int64_t port_, - struct wire_cst_list_prim_u_8_strict *url); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_amount(struct wire_cst_ffi_pj_uri *that); -void frbgen_payjoin_flutter_wire_url_query(int64_t port_, struct wire_cst_url *that); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_as_string(struct wire_cst_ffi_pj_uri *that); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_amount(struct wire_cst_ffi_pj_uri_builder *that, + uint64_t amount); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_build(struct wire_cst_ffi_pj_uri_builder *that); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen(const void *ptr); +void frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_create(int64_t port_, + struct wire_cst_list_prim_u_8_strict *address, + struct wire_cst_ffi_url *pj, + struct wire_cst_ffi_ohttp_keys *ohttp_keys, + uint64_t *expiry); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_label(struct wire_cst_ffi_pj_uri_builder *that, + struct wire_cst_list_prim_u_8_strict *label); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_message(struct wire_cst_ffi_pj_uri_builder *that, + struct wire_cst_list_prim_u_8_strict *message); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_pjos(struct wire_cst_ffi_pj_uri_builder *that, + bool pjos); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_address(struct wire_cst_ffi_uri *that); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_amount(struct wire_cst_ffi_uri *that); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_as_string(struct wire_cst_ffi_uri *that); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_check_pj_supported(struct wire_cst_ffi_uri *that); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal(const void *ptr); +void frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_from_str(int64_t port_, + struct wire_cst_list_prim_u_8_strict *uri); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_as_string(struct wire_cst_ffi_url *that); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(const void *ptr); +void frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_from_str(int64_t port_, + struct wire_cst_list_prim_u_8_strict *url); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(const void *ptr); +WireSyncRust2DartDco frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_query(struct wire_cst_ffi_url *that); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned(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_ffireceivev2V2MaybeInputsOwned(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_ffireceivev2V2MaybeInputsSeen(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_ffireceivev2V2MaybeInputsSeen(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_ffireceivev2V2MaybeMixedInputScripts(const void *ptr); +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned(const void *ptr); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts(const void *ptr); +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned(const void *ptr); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown(const void *ptr); +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen(const void *ptr); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown(const void *ptr); +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen(const void *ptr); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal(const void *ptr); +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts(const void *ptr); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal(const void *ptr); +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown(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_payjoin_ffireceivev1OutputsUnknown(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_payjoin_ffireceivev1PayjoinProposal(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_payjoin_ffireceivev1PayjoinProposal(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_payjoin_ffireceivev1ProvisionalProposal(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_payjoin_ffireceivev1ProvisionalProposal(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_payjoin_ffireceivev1UncheckedProposal(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_payjoin_ffireceivev1UncheckedProposal(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_payjoin_ffireceivev2ActiveSession(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_payjoin_ffireceivev2ActiveSession(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_payjoin_ffireceivev2SessionInitializer(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_payjoin_ffireceivev2SessionInitializer(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_payjoin_ffireceivev2V2MaybeInputsOwned(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_payjoin_ffireceivev2V2MaybeInputsOwned(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_payjoin_ffireceivev2V2MaybeInputsSeen(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_payjoin_ffireceivev2V2MaybeInputsSeen(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_payjoin_ffireceivev2V2MaybeMixedInputScripts(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_ffireceivev2V2MaybeMixedInputScripts(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_ffireceivev2V2OutputsUnknown(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown(const void *ptr); -void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller(const void *ptr); +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal(const void *ptr); -void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller(const void *ptr); +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal(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); +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1ContextV1(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1ContextV1(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestContext(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestContext(const void *ptr); + void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys(const void *ptr); void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys(const void *ptr); -struct wire_cst_client_response *frbgen_payjoin_flutter_cst_new_box_autoadd_client_response(void); +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUri(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUri(const void *ptr); -struct wire_cst_context_v_1 *frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_1(void); +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder(const void *ptr); -struct wire_cst_context_v_2 *frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_2(void); +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder(const void *ptr); -struct wire_cst_enrolled *frbgen_payjoin_flutter_cst_new_box_autoadd_enrolled(void); +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUri(const void *ptr); -struct wire_cst_enroller *frbgen_payjoin_flutter_cst_new_box_autoadd_enroller(void); +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUri(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUrl(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUrl(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse(const void *ptr); + +void frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse(const void *ptr); double *frbgen_payjoin_flutter_cst_new_box_autoadd_f_64(double value); -struct wire_cst_headers *frbgen_payjoin_flutter_cst_new_box_autoadd_headers(void); +struct wire_cst_ffi_active_session *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_active_session(void); -struct wire_cst_maybe_inputs_owned *frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_inputs_owned(void); +struct wire_cst_ffi_client_response *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_client_response(void); -struct wire_cst_maybe_inputs_seen *frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_inputs_seen(void); +struct wire_cst_ffi_context_v_1 *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_context_v_1(void); -struct wire_cst_maybe_mixed_input_scripts *frbgen_payjoin_flutter_cst_new_box_autoadd_maybe_mixed_input_scripts(void); +struct wire_cst_ffi_context_v_2 *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_context_v_2(void); -struct wire_cst_ohttp_keys *frbgen_payjoin_flutter_cst_new_box_autoadd_ohttp_keys(void); +struct wire_cst_ffi_maybe_inputs_owned *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_inputs_owned(void); -struct wire_cst_out_point *frbgen_payjoin_flutter_cst_new_box_autoadd_out_point(void); +struct wire_cst_ffi_maybe_inputs_seen *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_inputs_seen(void); -struct wire_cst_outputs_unknown *frbgen_payjoin_flutter_cst_new_box_autoadd_outputs_unknown(void); +struct wire_cst_ffi_maybe_mixed_input_scripts *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_mixed_input_scripts(void); -struct wire_cst_payjoin_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_payjoin_proposal(void); +struct wire_cst_ffi_ohttp_keys *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_ohttp_keys(void); -struct wire_cst_provisional_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_provisional_proposal(void); +struct wire_cst_ffi_outputs_unknown *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_outputs_unknown(void); -struct wire_cst_request_builder *frbgen_payjoin_flutter_cst_new_box_autoadd_request_builder(void); +struct wire_cst_ffi_payjoin_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_payjoin_proposal(void); -struct wire_cst_request_context *frbgen_payjoin_flutter_cst_new_box_autoadd_request_context(void); +struct wire_cst_ffi_pj_uri *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_pj_uri(void); -struct wire_cst_tx_out *frbgen_payjoin_flutter_cst_new_box_autoadd_tx_out(void); +struct wire_cst_ffi_pj_uri_builder *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_pj_uri_builder(void); -uint64_t *frbgen_payjoin_flutter_cst_new_box_autoadd_u_64(uint64_t value); +struct wire_cst_ffi_provisional_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_provisional_proposal(void); -uint8_t *frbgen_payjoin_flutter_cst_new_box_autoadd_u_8(uint8_t value); +struct wire_cst_ffi_request_builder *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_request_builder(void); + +struct wire_cst_ffi_request_context *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_request_context(void); + +struct wire_cst_ffi_session_initializer *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_session_initializer(void); + +struct wire_cst_ffi_unchecked_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_unchecked_proposal(void); + +struct wire_cst_ffi_uri *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_uri(void); + +struct wire_cst_ffi_url *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_url(void); -struct wire_cst_unchecked_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_unchecked_proposal(void); +struct wire_cst_ffi_v_2_maybe_inputs_owned *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_inputs_owned(void); -struct wire_cst_uri *frbgen_payjoin_flutter_cst_new_box_autoadd_uri(void); +struct wire_cst_ffi_v_2_maybe_inputs_seen *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_inputs_seen(void); -struct wire_cst_url *frbgen_payjoin_flutter_cst_new_box_autoadd_url(void); +struct wire_cst_ffi_v_2_maybe_mixed_input_scripts *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_mixed_input_scripts(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_ffi_v_2_outputs_unknown *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_outputs_unknown(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_ffi_v_2_payjoin_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_payjoin_proposal(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_ffi_v_2_provisional_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_provisional_proposal(void); -struct wire_cst_v_2_outputs_unknown *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_outputs_unknown(void); +struct wire_cst_ffi_v_2_unchecked_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_unchecked_proposal(void); -struct wire_cst_v_2_payjoin_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_payjoin_proposal(void); +struct wire_cst_headers *frbgen_payjoin_flutter_cst_new_box_autoadd_headers(void); + +struct wire_cst_out_point *frbgen_payjoin_flutter_cst_new_box_autoadd_out_point(void); -struct wire_cst_v_2_provisional_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_provisional_proposal(void); +struct wire_cst_tx_out *frbgen_payjoin_flutter_cst_new_box_autoadd_tx_out(void); -struct wire_cst_v_2_unchecked_proposal *frbgen_payjoin_flutter_cst_new_box_autoadd_v_2_unchecked_proposal(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_list_out_point *frbgen_payjoin_flutter_cst_new_list_out_point(int32_t len); @@ -660,148 +732,169 @@ struct wire_cst_list_record_string_string *frbgen_payjoin_flutter_cst_new_list_r 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_f_64); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_active_session); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_client_response); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_context_v_1); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_context_v_2); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_inputs_owned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_inputs_seen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_mixed_input_scripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_ohttp_keys); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_outputs_unknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_payjoin_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_pj_uri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_pj_uri_builder); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_provisional_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_request_builder); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_request_context); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_session_initializer); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_unchecked_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_uri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_url); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_inputs_owned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_inputs_seen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_mixed_input_scripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_outputs_unknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_payjoin_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_provisional_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_unchecked_proposal); 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_ohttp_keys); 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_payjoin_ffireceivev1MaybeInputsOwned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal); 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_ffireceivev2ActiveSession); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal); 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_decrement_strong_count_RustOpaque_payjoin_ffisendv1ContextV1); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestContext); dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys); - 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_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUrl); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse); 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_payjoin_ffireceivev1MaybeInputsOwned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal); 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_ffireceivev2ActiveSession); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal); dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1ContextV1); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestContext); dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_context_v_1_process_response); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_context_v_2_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_enroller_extract_req); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_enroller_from_directory_config); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_enroller_process_res); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_maybe_inputs_owned_check_inputs_not_owned); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_maybe_inputs_seen_check_no_inputs_seen_before); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_ohttp_keys_decode); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_outputs_unknown_identify_receiver_outputs); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_payjoin_proposal_is_output_substitution_disabled); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_payjoin_proposal_owned_vouts); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_payjoin_proposal_psbt); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_payjoin_proposal_utxos_to_be_locked); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_provisional_proposal_contribute_non_witness_input); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_provisional_proposal_contribute_witness_input); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_provisional_proposal_finalize_proposal); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_provisional_proposal_substitute_output_address); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_provisional_proposal_try_preserving_privacy); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_request_builder_always_disable_output_substitution); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_request_builder_build_non_incentivizing); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_request_builder_build_recommended); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_request_builder_build_with_additional_fee); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_request_builder_from_psbt_and_uri); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_request_context_extract_v1); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_request_context_extract_v2); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_unchecked_proposal_assume_interactive_receiver); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_unchecked_proposal_check_broadcast_suitability); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_unchecked_proposal_extract_tx_to_schedule_broadcast); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_unchecked_proposal_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_as_string); - 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_v_2_maybe_inputs_owned_check_inputs_not_owned); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_outputs_unknown_identify_receiver_outputs); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_deserialize_res); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_extract_v1_req); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_extract_v2_req); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_is_output_substitution_disabled); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_owned_vouts); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_psbt); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_utxos_to_be_locked); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_provisional_proposal_contribute_non_witness_input); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_provisional_proposal_contribute_witness_input); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_provisional_proposal_finalize_proposal); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_provisional_proposal_substitute_output_address); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_provisional_proposal_try_preserving_privacy); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_assume_interactive_receiver); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_check_broadcast_suitability); - dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUrl); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__io__fetch_ohttp_keys); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_extract_req); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_pj_uri_builder); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_pj_url); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_process_res); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_public_key); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_owned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_before); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputs); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabled); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_owned_vouts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_psbt); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_locked); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_input); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_contribute_witness_input); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_finalize_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacy); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_output); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_extract_req); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_new); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_process_res); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiver); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitability); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcast); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_from_request); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_owned); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_before); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputs); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_req); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_req); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabled); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_vouts); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_res); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_psbt); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_locked); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_input); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_input); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposal); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabled); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacy); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_output); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiver); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitability); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__send__ffi_context_v_1_process_response); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__send__ffi_context_v_2_process_response); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_always_disable_output_substitution); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_build_non_incentivizing); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_build_recommended); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_build_with_additional_fee); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_from_psbt_and_uri); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_context_extract_v1); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_context_extract_v2); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_ohttp_keys_decode); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_address); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_amount); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_amount); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_build); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_create); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_label); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_message); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_pjos); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_address); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_amount); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_check_pj_supported); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_from_str); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_as_string); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_from_str); + dummy_var ^= ((int64_t) (void*) frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_query); dummy_var ^= ((int64_t) (void*) store_dart_post_cobject); return dummy_var; } diff --git a/ios/payjoin_flutter.podspec b/ios/payjoin_flutter.podspec index 7ef5471..6b35fe7 100644 --- a/ios/payjoin_flutter.podspec +++ b/ios/payjoin_flutter.podspec @@ -1,13 +1,13 @@ Pod::Spec.new do |s| s.name = 'payjoin_flutter' - s.version = '0.13.0-dev.2' - s.summary = 'A Flutter library for the Payjoin Dev Kit' + s.version = '0.18.0' + s.summary = 'A new Flutter FFI plugin project.' s.description = <<-DESC A new Flutter FFI plugin project. DESC - s.homepage = 'http://wwww.ltbl.io' + s.homepage = 'http://example.com' s.license = { :file => '../LICENSE' } - s.author = { 'Let there be Lightning, Inc' => 'Hello@LtbL.io' } + s.author = { 'Your Company' => 'email@example.com' } s.source = { :path => '.' } s.source_files = 'Classes/**/*' diff --git a/lib/receive/v1.dart b/lib/receive/v1.dart index 5eb910e..758fe1c 100644 --- a/lib/receive/v1.dart +++ b/lib/receive/v1.dart @@ -6,10 +6,10 @@ import '../common.dart' as common; import '../common.dart'; import '../src/config.dart'; import '../src/exceptions.dart'; -import '../src/generated/api/receive.dart' as receive; +import '../src/generated/api/receive.dart'; import '../src/generated/utils/error.dart' as error; -class UncheckedProposal extends receive.UncheckedProposal { +class UncheckedProposal extends FfiUncheckedProposal { UncheckedProposal._({required super.field0}); static Future fromRequest({ required List body, @@ -18,7 +18,7 @@ class UncheckedProposal extends receive.UncheckedProposal { }) async { try { await PConfig.initializeApp(); - final res = await receive.UncheckedProposal.fromRequest( + final res = await FfiUncheckedProposal.fromRequest( body: body, query: query, headers: headers); return UncheckedProposal._(field0: res.field0); } on error.PayjoinError catch (e) { @@ -41,11 +41,11 @@ class UncheckedProposal extends receive.UncheckedProposal { /// 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, + {BigInt? minFeeRate, required FutureOr Function(Uint8List) canBroadcast, hint}) async { try { - final res = await receive.UncheckedProposal.checkBroadcastSuitability( + final res = await FfiUncheckedProposal.checkBroadcastSuitability( minFeeRate: minFeeRate, canBroadcast: canBroadcast, ptr: this); return MaybeInputsOwned._(field0: res.field0); } on error.PayjoinError catch (e) { @@ -53,13 +53,13 @@ class UncheckedProposal extends receive.UncheckedProposal { } } - ///Call this method if the only way to initiate a Payjoin with this receiver requires manual intervention, as in most consumer wallets. + ///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 gettransactiontocheckbroadcast() and attesttestedandscheduledbroadcast() after making those checks downstream + /// that allow arbitrary requests are otherwise vulnerable to probing attacks. Future assumeInteractiveReceiver() async { try { final res = - await receive.UncheckedProposal.assumeInteractiveReceiver(ptr: this); + await FfiUncheckedProposal.assumeInteractiveReceiver(ptr: this); return MaybeInputsOwned._(field0: res.field0); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -67,12 +67,12 @@ class UncheckedProposal extends receive.UncheckedProposal { } } -class MaybeInputsOwned extends receive.MaybeInputsOwned { +class MaybeInputsOwned extends FfiMaybeInputsOwned { MaybeInputsOwned._({required super.field0}); Future checkInputsNotOwned( {required FutureOr Function(Uint8List) isOwned}) async { try { - final res = await receive.MaybeInputsOwned.checkInputsNotOwned( + final res = await FfiMaybeInputsOwned.checkInputsNotOwned( ptr: this, isOwned: isOwned); return MaybeMixedInputScripts._(field0: res.field0); } on error.PayjoinError catch (e) { @@ -81,7 +81,7 @@ class MaybeInputsOwned extends receive.MaybeInputsOwned { } } -class MaybeMixedInputScripts extends receive.MaybeMixedInputScripts { +class MaybeMixedInputScripts extends FfiMaybeMixedInputScripts { MaybeMixedInputScripts._({required super.field0}); /// Verify the original transaction did not have mixed input types Call this after checking downstream. @@ -89,8 +89,8 @@ class MaybeMixedInputScripts extends receive.MaybeMixedInputScripts { /// Note: mixed spends do not necessarily indicate distinct wallet fingerprints. This check is intended to prevent some types of wallet fingerprinting. Future checkNoMixedInputScripts() async { try { - final res = await receive.MaybeMixedInputScripts.checkNoMixedInputScripts( - ptr: this); + final res = + await FfiMaybeMixedInputScripts.checkNoMixedInputScripts(ptr: this); return MaybeInputsSeen._(field0: res.field0); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -98,12 +98,12 @@ class MaybeMixedInputScripts extends receive.MaybeMixedInputScripts { } } -class MaybeInputsSeen extends receive.MaybeInputsSeen { +class MaybeInputsSeen extends FfiMaybeInputsSeen { MaybeInputsSeen._({required super.field0}); Future checkNoInputsSeenBefore( {required FutureOr Function(OutPoint) isKnown}) async { try { - final res = await receive.MaybeInputsSeen.checkNoInputsSeenBefore( + final res = await FfiMaybeInputsSeen.checkNoInputsSeenBefore( ptr: this, isKnown: isKnown); return OutputsUnknown._(field0: res.field0); } on error.PayjoinError catch (e) { @@ -112,12 +112,12 @@ class MaybeInputsSeen extends receive.MaybeInputsSeen { } } -class OutputsUnknown extends receive.OutputsUnknown { +class OutputsUnknown extends FfiOutputsUnknown { OutputsUnknown._({required super.field0}); Future identifyReceiverOutputs( {required Future Function(Uint8List) isReceiverOutput}) async { try { - final res = await receive.OutputsUnknown.identifyReceiverOutputs( + final res = await FfiOutputsUnknown.identifyReceiverOutputs( ptr: this, isReceiverOutput: isReceiverOutput); return ProvisionalProposal._(field0: res.field0); } on error.PayjoinError catch (e) { @@ -126,12 +126,14 @@ class OutputsUnknown extends receive.OutputsUnknown { } } -class ProvisionalProposal extends receive.ProvisionalProposal { +class ProvisionalProposal extends FfiProvisionalProposal { ProvisionalProposal._({required super.field0}); + @override - Future substituteOutputAddress({required String address, hint}) { + Future trySubstituteReceiverOutput( + {required FutureOr Function() generateScript}) { try { - return super.substituteOutputAddress(address: address); + return super.trySubstituteReceiverOutput(generateScript: generateScript); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); } @@ -164,21 +166,19 @@ class ProvisionalProposal extends receive.ProvisionalProposal { /// 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: @override Future tryPreservingPrivacy( - {required Map candidateInputs, hint}) { + {required Map candidateInputs, hint}) { try { return super.tryPreservingPrivacy(candidateInputs: candidateInputs); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); - } catch (e) { - throw e; } } Future finalizeProposal( {required FutureOr Function(String) processPsbt, - int? minFeeRateSatPerVb}) async { + BigInt? minFeeRateSatPerVb}) async { try { - final res = await receive.ProvisionalProposal.finalizeProposal( + final res = await FfiProvisionalProposal.finalizeProposal( processPsbt: processPsbt, minFeerateSatPerVb: minFeeRateSatPerVb, ptr: this); @@ -189,7 +189,7 @@ class ProvisionalProposal extends receive.ProvisionalProposal { } } -class PayjoinProposal extends receive.PayjoinProposal { +class PayjoinProposal extends FfiPayjoinProposal { PayjoinProposal._({required super.field0}); @override diff --git a/lib/receive/v2.dart b/lib/receive/v2.dart index 66b31c2..f7f7472 100644 --- a/lib/receive/v2.dart +++ b/lib/receive/v2.dart @@ -2,45 +2,51 @@ import 'dart:async'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; -import '../common.dart' as common; import '../common.dart'; import '../src/exceptions.dart'; -import '../src/generated/api/receive.dart' as receive; +import '../src/generated/api/receive.dart'; import '../src/generated/utils/error.dart' as error; -import '../uri.dart' as uri; import '../uri.dart'; -class Enroller extends receive.Enroller { - Enroller._({required super.field0}); +class SessionInitializer extends FfiSessionInitializer { + SessionInitializer._({required super.field0}); - Future fromDirectoryConfig( + Future create( {required Url directory, required OhttpKeys ohttpKeys, + required String address, + required BigInt expireAfter, + required Network network, required Url ohttpRelay}) async { try { - final res = await receive.Enroller.fromDirectoryConfig( - directory: directory, ohttpKeys: ohttpKeys, ohttpRelay: ohttpRelay); - return Enroller._(field0: res.field0); + final res = await FfiSessionInitializer.newInstance( + directory: directory, + ohttpKeys: ohttpKeys, + ohttpRelay: ohttpRelay, + address: address, + expireAfter: expireAfter, + network: network); + return SessionInitializer._(field0: res.field0); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); } } - Future processResponse( + Future processResponse( {required List body, required ClientResponse clientResponse}) async { try { final res = await super.processRes(body: body, ctx: clientResponse); - return Enrolled._(field0: res.field0); + return ActiveSession._(field0: res.field0); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); } } - Future<(common.Request, ClientResponse)> extractRequest({hint}) async { + Future<(Request, ClientResponse)> extractRequest({hint}) async { try { - final res = await receive.Enroller.extractReq(ptr: this); - final request = Request( - await uri.Url.fromString((await res.$1.$1.query())!), res.$1.$2); + final res = await FfiSessionInitializer.extractReq(ptr: this); + final request = + Request(await Url.fromString(res.$1.$1.query()!), res.$1.$2); return (request, ClientResponse._(field0: res.$2.field0)); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -48,13 +54,13 @@ class Enroller extends receive.Enroller { } } -class Enrolled extends receive.Enrolled { - Enrolled._({required super.field0}); - Future<(common.Request, ClientResponse)> extractRequest({hint}) async { +class ActiveSession extends FfiActiveSession { + ActiveSession._({required super.field0}); + Future<(Request, ClientResponse)> extractRequest({hint}) async { try { - final res = await receive.Enrolled.extractReq(ptr: this); - final request = Request( - await uri.Url.fromString((await res.$1.$1.query())!), res.$1.$2); + final res = await FfiActiveSession.extractReq(ptr: this); + final request = + Request(await Url.fromString(res.$1.$1.query()!), res.$1.$2); return (request, ClientResponse._(field0: res.$2.field0)); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -75,17 +81,20 @@ class Enrolled extends receive.Enrolled { } } - @override - Future fallbackTarget({dynamic hint}) { - try { - return super.fallbackTarget(); - } on error.PayjoinError catch (e) { - throw mapPayjoinError(e); - } + /// The contents of the `&pj=` query parameter including the base64url-encoded public key receiver subdirectory. + /// This identifies a session at the payjoin directory server. + Future pjUrl() { + final res = FfiActiveSession.pjUrl(ptr: super); + return Url.fromString(res.asString()); + } + + PjUriBuilder pjUriBuilder() { + final res = FfiActiveSession.pjUriBuilder(ptr: super); + return PjUriBuilder(internal: res.internal); } } -class UncheckedProposal extends receive.V2UncheckedProposal { +class UncheckedProposal extends FfiV2UncheckedProposal { UncheckedProposal._({required super.field0}); ///The Sender’s Original PSBT @@ -104,7 +113,7 @@ class UncheckedProposal extends receive.V2UncheckedProposal { /// Call this after checking downstream. @override Future checkBroadcastSuitability( - {int? minFeeRate, + {BigInt? minFeeRate, required FutureOr Function(Uint8List p1) canBroadcast, hint}) async { try { @@ -130,7 +139,7 @@ class UncheckedProposal extends receive.V2UncheckedProposal { } } -class MaybeInputsOwned extends receive.V2MaybeInputsOwned { +class MaybeInputsOwned extends FfiV2MaybeInputsOwned { MaybeInputsOwned._({required super.field0}); ///Check that the Original PSBT has no receiver-owned inputs. Return original-psbt-rejected error or otherwise refuse to sign undesirable inputs. @@ -147,7 +156,7 @@ class MaybeInputsOwned extends receive.V2MaybeInputsOwned { } } -class MaybeMixedInputScripts extends receive.V2MaybeMixedInputScripts { +class MaybeMixedInputScripts extends FfiV2MaybeMixedInputScripts { MaybeMixedInputScripts._({required super.field0}); /// Make sure that the original transaction inputs have never been seen before. @@ -164,7 +173,7 @@ class MaybeMixedInputScripts extends receive.V2MaybeMixedInputScripts { } } -class MaybeInputsSeen extends receive.V2MaybeInputsSeen { +class MaybeInputsSeen extends FfiV2MaybeInputsSeen { MaybeInputsSeen._({required super.field0}); /// Make sure that the original transaction inputs have never been seen before. @@ -182,12 +191,12 @@ class MaybeInputsSeen extends receive.V2MaybeInputsSeen { } } -class OutputsUnknown extends receive.V2OutputsUnknown { +class OutputsUnknown extends FfiV2OutputsUnknown { OutputsUnknown._({required super.field0}); /// Find which outputs belong to the receiver @override - Future identifyReceiverOutputs( + Future identifyReceiverOutputs( {required FutureOr Function(Uint8List p1) isReceiverOutput, hint}) async { try { @@ -200,13 +209,14 @@ class OutputsUnknown extends receive.V2OutputsUnknown { } } -class ProvisionalProposal extends receive.V2ProvisionalProposal { +class ProvisionalProposal extends FfiV2ProvisionalProposal { ProvisionalProposal._({required super.field0}); @override - Future substituteOutputAddress({required String address, hint}) { + Future trySubstituteReceiverOutput( + {required FutureOr Function() generateScript}) { try { - return super.substituteOutputAddress(address: address); + return super.trySubstituteReceiverOutput(generateScript: generateScript); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); } @@ -239,7 +249,7 @@ class ProvisionalProposal extends receive.V2ProvisionalProposal { /// 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: @override Future tryPreservingPrivacy( - {required Map candidateInputs, hint}) { + {required Map candidateInputs, hint}) { try { return super.tryPreservingPrivacy(candidateInputs: candidateInputs); } on error.PayjoinError catch (e) { @@ -248,9 +258,9 @@ class ProvisionalProposal extends receive.V2ProvisionalProposal { } @override - Future finalizeProposal( + Future finalizeProposal( {required FutureOr Function(String p1) processPsbt, - int? minFeerateSatPerVb, + BigInt? minFeerateSatPerVb, hint}) async { try { final res = await super.finalizeProposal( @@ -262,15 +272,13 @@ class ProvisionalProposal extends receive.V2ProvisionalProposal { } } -class PayjoinProposal extends receive.V2PayjoinProposal { +class PayjoinProposal extends FfiV2PayjoinProposal { PayjoinProposal._({required super.field0}); - @override - Future deserializeRes( - {required List res, - required receive.ClientResponse ohttpContext, - hint}) async { + + Future processResponse( + {required List res, required ClientResponse ohttpContext}) { try { - return super.deserializeRes(ohttpContext: ohttpContext, res: res); + return super.processRes(ohttpContext: ohttpContext, res: res); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); } @@ -287,9 +295,9 @@ class PayjoinProposal extends receive.V2PayjoinProposal { Future<(Request, ClientResponse)> extractV2Request({hint}) async { try { - final res = await receive.V2PayjoinProposal.extractV2Req(ptr: this); - final request = Request( - await uri.Url.fromString((await res.$1.$1.query())!), res.$1.$2); + final res = await FfiV2PayjoinProposal.extractV2Req(ptr: this); + final request = + Request(await Url.fromString(res.$1.$1.toString()), res.$1.$2); return (request, ClientResponse._(field0: res.$2.field0)); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -333,6 +341,6 @@ class PayjoinProposal extends receive.V2PayjoinProposal { } } -class ClientResponse extends receive.ClientResponse { +class ClientResponse extends FfiClientResponse { ClientResponse._({required super.field0}); } diff --git a/lib/send.dart b/lib/send.dart index f5f58ac..1e2ca4b 100644 --- a/lib/send.dart +++ b/lib/send.dart @@ -3,18 +3,17 @@ import 'package:payjoin_flutter/src/exceptions.dart'; import 'package:payjoin_flutter/uri.dart'; import 'common.dart' as common; -import 'src/generated/api/send.dart' as send; -import 'src/generated/api/uri.dart' as uri; +import 'src/generated/api/send.dart'; import 'src/generated/utils/error.dart' as error; -class RequestBuilder extends send.RequestBuilder { +class RequestBuilder extends FfiRequestBuilder { RequestBuilder._({required super.field0}); static Future fromPsbtAndUri( - {required String psbtBase64, required uri.Uri uri}) async { + {required String psbtBase64, required PjUri pjUri}) async { try { await PConfig.initializeApp(); - final res = await send.RequestBuilder.fromPsbtAndUri( - psbtBase64: psbtBase64, uri: uri); + final res = await FfiRequestBuilder.fromPsbtAndUri( + psbtBase64: psbtBase64, pjUri: pjUri); return RequestBuilder._(field0: res.field0); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -23,11 +22,10 @@ class RequestBuilder extends send.RequestBuilder { @override Future buildWithAdditionalFee( - {required int maxFeeContribution, + {required BigInt maxFeeContribution, int? changeIndex, - required int minFeeRate, - required bool clampFeeContribution, - hint}) async { + required BigInt minFeeRate, + required bool clampFeeContribution}) async { try { final res = await super.buildWithAdditionalFee( maxFeeContribution: maxFeeContribution, @@ -42,7 +40,7 @@ class RequestBuilder extends send.RequestBuilder { @override Future buildRecommended( - {required int minFeeRate, hint}) async { + {required BigInt minFeeRate, hBigInt}) async { try { final res = await super.buildRecommended(minFeeRate: minFeeRate); return RequestContext._(field0: res.field0); @@ -52,9 +50,10 @@ class RequestBuilder extends send.RequestBuilder { } @override - Future buildNonIncentivizing({hint}) async { + Future buildNonIncentivizing( + {required BigInt minFeeRate}) async { try { - final res = await super.buildNonIncentivizing(); + final res = await super.buildNonIncentivizing(minFeeRate: minFeeRate); return RequestContext._(field0: res.field0); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -62,8 +61,8 @@ class RequestBuilder extends send.RequestBuilder { } @override - Future alwaysDisableOutputSubstitution( - {required bool disable, hint}) async { + Future alwaysDisableOutputSubstitution( + {required bool disable, hBigInt}) async { try { return await super.alwaysDisableOutputSubstitution(disable: disable); } on error.PayjoinError catch (e) { @@ -72,15 +71,14 @@ class RequestBuilder extends send.RequestBuilder { } } -class RequestContext extends send.RequestContext { +class RequestContext extends FfiRequestContext { RequestContext._({required super.field0}); Future<(common.Request, ContextV1)> extractContextV1() async { try { - final res = await send.RequestContext.extractV1(ptr: this); + final res = await FfiRequestContext.extractV1(ptr: this); final request = common.Request( - await Url.fromString((await res.request.$1.asString())), - res.request.$2); + await Url.fromString((res.request.$1.asString())), res.request.$2); return (request, ContextV1._(field0: res.contextV1.field0)); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -90,11 +88,10 @@ class RequestContext extends send.RequestContext { Future<(common.Request, ContextV2)> extractContextV2( Url ohttpProxyUrl) async { try { - final res = await send.RequestContext.extractV2( + final res = await FfiRequestContext.extractV2( ohttpProxyUrl: ohttpProxyUrl, ptr: this); final request = common.Request( - await Url.fromString((await res.request.$1.asString())), - res.request.$2); + await Url.fromString((res.request.$1.asString())), res.request.$2); return (request, ContextV2._(field0: res.contextV2.field0)); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -102,10 +99,10 @@ class RequestContext extends send.RequestContext { } } -class ContextV1 extends send.ContextV1 { +class ContextV1 extends FfiContextV1 { ContextV1._({required super.field0}); @override - Future processResponse({required List response, hint}) { + Future processResponse({required List response}) { try { return super.processResponse(response: response); } on error.PayjoinError catch (e) { @@ -114,10 +111,10 @@ class ContextV1 extends send.ContextV1 { } } -class ContextV2 extends send.ContextV2 { +class ContextV2 extends FfiContextV2 { ContextV2._({required super.field0}); @override - Future processResponse({required List response, hint}) { + Future processResponse({required List response}) { try { return super.processResponse(response: response); } on error.PayjoinError catch (e) { diff --git a/lib/src/config.dart b/lib/src/config.dart index 43d6f09..e489345 100644 --- a/lib/src/config.dart +++ b/lib/src/config.dart @@ -4,8 +4,8 @@ import 'generated/frb_generated.dart'; class PConfig { static Future initializeApp() async { try { - if (!PayjoinCore.instance.initialized) { - await PayjoinCore.init(); + if (!core.instance.initialized) { + await core.init(); } } catch (e) { throw PayjoinException(message: "failed to initialize payjoin"); diff --git a/lib/src/exceptions.dart b/lib/src/exceptions.dart index cfa62bc..8f92e8a 100644 --- a/lib/src/exceptions.dart +++ b/lib/src/exceptions.dart @@ -45,5 +45,6 @@ PayjoinException mapPayjoinError(error.PayjoinError e) { unexpectedError: (e) => PayjoinException(message: e.message), ohttpError: (e) => PayjoinException(message: e.message), urlError: (e) => PayjoinException(message: e.message), + ioError: (e) => PayjoinException(message: e.message), ); } diff --git a/lib/src/generated/api/io.dart b/lib/src/generated/api/io.dart new file mode 100644 index 0000000..d9a6de8 --- /dev/null +++ b/lib/src/generated/api/io.dart @@ -0,0 +1,30 @@ +// This file is automatically generated, so please do not edit it. +// Generated by `flutter_rust_bridge`@ 2.0.0. + +// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import + +import '../frb_generated.dart'; +import '../lib.dart'; +import '../utils/error.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; +import 'uri.dart'; + +/// Fetch the ohttp keys from the specified payjoin directory via proxy. +/// +/// * `ohttp_relay`: The http CONNNECT method proxy to request the ohttp keys from a payjoin +/// directory. Proxying requests for ohttp keys ensures a client IP address is never revealed to +/// the payjoin directory. +/// +/// * `payjoin_directory`: The payjoin directory from which to fetch the ohttp keys. This +/// directory stores and forwards payjoin client payloads. +/// +/// * `cert_der` (optional): The DER-encoded certificate to use for local HTTPS connections. This +/// parameter is only available when the "danger-local-https" feature is enabled. +Future fetchOhttpKeys( + {required FfiUrl ohttpRelay, + required FfiUrl payjoinDirectory, + required List certDer}) => + core.instance.api.crateApiIoFetchOhttpKeys( + ohttpRelay: ohttpRelay, + payjoinDirectory: payjoinDirectory, + certDer: certDer); diff --git a/lib/src/generated/api/receive.dart b/lib/src/generated/api/receive.dart index adfc3e3..90cc2f3 100644 --- a/lib/src/generated/api/receive.dart +++ b/lib/src/generated/api/receive.dart @@ -1,395 +1,45 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. +// Generated by `flutter_rust_bridge`@ 2.0.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import import '../frb_generated.dart'; +import '../lib.dart'; import '../utils/error.dart'; import '../utils/types.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'uri.dart'; -// Rust type: RustOpaqueNom> -@sealed -class ArcPayjoinFfiReceiveV1MaybeInputsOwned extends RustOpaque { - ArcPayjoinFfiReceiveV1MaybeInputsOwned.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ArcPayjoinFfiReceiveV1MaybeInputsOwned.sseDecode( - int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: PayjoinCore.instance.api - .rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwned, - rustArcDecrementStrongCount: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwned, - rustArcDecrementStrongCountPtr: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwnedPtr, - ); -} - -// 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, - ); -} +// These functions are ignored because they are not marked as `pub`: `_finalize_proposal` +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `clone`, `clone`, `clone`, `clone`, `fmt`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from` -// 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, - ); -} +class FfiActiveSession { + final ActiveSession field0; -// 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, - ); -} + const FfiActiveSession({ + required this.field0, + }); -// Rust type: RustOpaqueNom -@sealed -class PayjoinFfiReceiveV1UncheckedProposal extends RustOpaque { - PayjoinFfiReceiveV1UncheckedProposal.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - PayjoinFfiReceiveV1UncheckedProposal.sseDecode( - 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 Future<((FfiUrl, Uint8List), FfiClientResponse)> extractReq( + {required FfiActiveSession ptr}) => + core.instance.api.crateApiReceiveFfiActiveSessionExtractReq(ptr: ptr); -// 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, - ); -} + static FfiPjUriBuilder pjUriBuilder({required FfiActiveSession ptr}) => + core.instance.api.crateApiReceiveFfiActiveSessionPjUriBuilder(ptr: ptr); -// 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, - ); -} + static FfiUrl pjUrl({required FfiActiveSession ptr}) => + core.instance.api.crateApiReceiveFfiActiveSessionPjUrl(ptr: ptr); -// Rust type: RustOpaqueNom -@sealed -class PayjoinFfiTypesOhttpKeys extends RustOpaque { - PayjoinFfiTypesOhttpKeys.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - PayjoinFfiTypesOhttpKeys.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: PayjoinCore - .instance.api.rust_arc_increment_strong_count_PayjoinFfiTypesOhttpKeys, - rustArcDecrementStrongCount: PayjoinCore - .instance.api.rust_arc_decrement_strong_count_PayjoinFfiTypesOhttpKeys, - rustArcDecrementStrongCountPtr: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_PayjoinFfiTypesOhttpKeysPtr, - ); -} + Future processRes( + {required List body, required FfiClientResponse ctx}) => + core.instance.api.crateApiReceiveFfiActiveSessionProcessRes( + that: this, body: body, ctx: ctx); -class ClientResponse { - final MutexOptionOhttpClientResponse field0; - - const ClientResponse({ - required this.field0, - }); + ///The per-session public key to use as an identifier + String publicKey() => + core.instance.api.crateApiReceiveFfiActiveSessionPublicKey( + that: this, + ); @override int get hashCode => field0.hashCode; @@ -397,71 +47,41 @@ class ClientResponse { @override bool operator ==(Object other) => identical(this, other) || - other is ClientResponse && + other is FfiActiveSession && runtimeType == other.runtimeType && field0 == other.field0; } -class Enrolled { - final ArcPayjoinFfiReceiveV2Enrolled field0; +class FfiClientResponse { + final MutexOptionClientResponse field0; - const Enrolled({ + const FfiClientResponse({ required this.field0, }); - static Future<((Url, Uint8List), ClientResponse)> extractReq( - {required Enrolled ptr, dynamic hint}) => - PayjoinCore.instance.api.enrolledExtractReq(ptr: ptr, hint: hint); - - Future fallbackTarget({dynamic hint}) => - PayjoinCore.instance.api.enrolledFallbackTarget(that: this, hint: hint); - - Future processRes( - {required List body, - required ClientResponse ctx, - dynamic hint}) => - PayjoinCore.instance.api - .enrolledProcessRes(that: this, body: body, ctx: ctx, hint: hint); - @override int get hashCode => field0.hashCode; @override bool operator ==(Object other) => identical(this, other) || - other is Enrolled && + other is FfiClientResponse && runtimeType == other.runtimeType && field0 == other.field0; } -class Enroller { - final PayjoinFfiReceiveV2Enroller field0; +class FfiMaybeInputsOwned { + final MaybeInputsOwned field0; - const Enroller({ + const FfiMaybeInputsOwned({ required this.field0, }); - static Future<((Url, Uint8List), ClientResponse)> extractReq( - {required Enroller ptr, dynamic hint}) => - PayjoinCore.instance.api.enrollerExtractReq(ptr: ptr, hint: hint); - - static Future fromDirectoryConfig( - {required Url directory, - required OhttpKeys ohttpKeys, - required Url ohttpRelay, - dynamic hint}) => - PayjoinCore.instance.api.enrollerFromDirectoryConfig( - directory: directory, - ohttpKeys: ohttpKeys, - ohttpRelay: ohttpRelay, - hint: hint); - - Future processRes( - {required List body, - required ClientResponse ctx, - dynamic hint}) => - PayjoinCore.instance.api - .enrollerProcessRes(that: this, body: body, ctx: ctx, hint: hint); + static Future checkInputsNotOwned( + {required FfiMaybeInputsOwned ptr, + required FutureOr Function(Uint8List) isOwned}) => + core.instance.api.crateApiReceiveFfiMaybeInputsOwnedCheckInputsNotOwned( + ptr: ptr, isOwned: isOwned); @override int get hashCode => field0.hashCode; @@ -469,24 +89,24 @@ class Enroller { @override bool operator ==(Object other) => identical(this, other) || - other is Enroller && + other is FfiMaybeInputsOwned && runtimeType == other.runtimeType && field0 == other.field0; } -class MaybeInputsOwned { - final ArcPayjoinFfiReceiveV1MaybeInputsOwned field0; +class FfiMaybeInputsSeen { + final MaybeInputsSeen field0; - const MaybeInputsOwned({ + const FfiMaybeInputsSeen({ required this.field0, }); - static Future checkInputsNotOwned( - {required MaybeInputsOwned ptr, - required FutureOr Function(Uint8List) isOwned, - dynamic hint}) => - PayjoinCore.instance.api.maybeInputsOwnedCheckInputsNotOwned( - ptr: ptr, isOwned: isOwned, hint: hint); + static Future checkNoInputsSeenBefore( + {required FfiMaybeInputsSeen ptr, + required FutureOr Function(OutPoint) isKnown}) => + core.instance.api + .crateApiReceiveFfiMaybeInputsSeenCheckNoInputsSeenBefore( + ptr: ptr, isKnown: isKnown); @override int get hashCode => field0.hashCode; @@ -494,24 +114,23 @@ class MaybeInputsOwned { @override bool operator ==(Object other) => identical(this, other) || - other is MaybeInputsOwned && + other is FfiMaybeInputsSeen && runtimeType == other.runtimeType && field0 == other.field0; } -class MaybeInputsSeen { - final ArcPayjoinFfiReceiveV1MaybeInputsSeen field0; +class FfiMaybeMixedInputScripts { + final MaybeMixedInputScripts field0; - const MaybeInputsSeen({ + const FfiMaybeMixedInputScripts({ required this.field0, }); - static Future checkNoInputsSeenBefore( - {required MaybeInputsSeen ptr, - required FutureOr Function(OutPoint) isKnown, - dynamic hint}) => - PayjoinCore.instance.api.maybeInputsSeenCheckNoInputsSeenBefore( - ptr: ptr, isKnown: isKnown, hint: hint); + static Future checkNoMixedInputScripts( + {required FfiMaybeMixedInputScripts ptr}) => + core.instance.api + .crateApiReceiveFfiMaybeMixedInputScriptsCheckNoMixedInputScripts( + ptr: ptr); @override int get hashCode => field0.hashCode; @@ -519,22 +138,23 @@ class MaybeInputsSeen { @override bool operator ==(Object other) => identical(this, other) || - other is MaybeInputsSeen && + other is FfiMaybeMixedInputScripts && runtimeType == other.runtimeType && field0 == other.field0; } -class MaybeMixedInputScripts { - final ArcPayjoinFfiReceiveV1MaybeMixedInputScripts field0; +class FfiOutputsUnknown { + final OutputsUnknown field0; - const MaybeMixedInputScripts({ + const FfiOutputsUnknown({ required this.field0, }); - static Future checkNoMixedInputScripts( - {required MaybeMixedInputScripts ptr, dynamic hint}) => - PayjoinCore.instance.api - .maybeMixedInputScriptsCheckNoMixedInputScripts(ptr: ptr, hint: hint); + static Future identifyReceiverOutputs( + {required FfiOutputsUnknown ptr, + required FutureOr Function(Uint8List) isReceiverOutput}) => + core.instance.api.crateApiReceiveFfiOutputsUnknownIdentifyReceiverOutputs( + ptr: ptr, isReceiverOutput: isReceiverOutput); @override int get hashCode => field0.hashCode; @@ -542,24 +162,37 @@ class MaybeMixedInputScripts { @override bool operator ==(Object other) => identical(this, other) || - other is MaybeMixedInputScripts && + other is FfiOutputsUnknown && runtimeType == other.runtimeType && field0 == other.field0; } -class OutputsUnknown { - final ArcPayjoinFfiReceiveV1OutputsUnknown field0; +class FfiPayjoinProposal { + final PayjoinProposal field0; - const OutputsUnknown({ + const FfiPayjoinProposal({ required this.field0, }); - static Future identifyReceiverOutputs( - {required OutputsUnknown ptr, - required FutureOr Function(Uint8List) isReceiverOutput, - dynamic hint}) => - PayjoinCore.instance.api.outputsUnknownIdentifyReceiverOutputs( - ptr: ptr, isReceiverOutput: isReceiverOutput, hint: hint); + Future isOutputSubstitutionDisabled() => core.instance.api + .crateApiReceiveFfiPayjoinProposalIsOutputSubstitutionDisabled( + that: this, + ); + + Future ownedVouts() => + core.instance.api.crateApiReceiveFfiPayjoinProposalOwnedVouts( + that: this, + ); + + Future psbt() => + core.instance.api.crateApiReceiveFfiPayjoinProposalPsbt( + that: this, + ); + + Future> utxosToBeLocked() => + core.instance.api.crateApiReceiveFfiPayjoinProposalUtxosToBeLocked( + that: this, + ); @override int get hashCode => field0.hashCode; @@ -567,31 +200,50 @@ class OutputsUnknown { @override bool operator ==(Object other) => identical(this, other) || - other is OutputsUnknown && + other is FfiPayjoinProposal && runtimeType == other.runtimeType && field0 == other.field0; } -class PayjoinProposal { - final ArcPayjoinFfiReceiveV1PayjoinProposal field0; +class FfiProvisionalProposal { + final ProvisionalProposal field0; - const PayjoinProposal({ + const FfiProvisionalProposal({ required this.field0, }); - Future isOutputSubstitutionDisabled({dynamic hint}) => - PayjoinCore.instance.api - .payjoinProposalIsOutputSubstitutionDisabled(that: this, hint: hint); + Future contributeNonWitnessInput( + {required List tx, required OutPoint outpoint}) => + core.instance.api + .crateApiReceiveFfiProvisionalProposalContributeNonWitnessInput( + that: this, tx: tx, outpoint: outpoint); + + Future contributeWitnessInput( + {required TxOut txo, required OutPoint outpoint}) => + core.instance.api + .crateApiReceiveFfiProvisionalProposalContributeWitnessInput( + that: this, txo: txo, outpoint: outpoint); - Future ownedVouts({dynamic hint}) => PayjoinCore.instance.api - .payjoinProposalOwnedVouts(that: this, hint: hint); + static Future finalizeProposal( + {required FfiProvisionalProposal ptr, + required FutureOr Function(String) processPsbt, + BigInt? minFeerateSatPerVb}) => + core.instance.api.crateApiReceiveFfiProvisionalProposalFinalizeProposal( + ptr: ptr, + processPsbt: processPsbt, + minFeerateSatPerVb: minFeerateSatPerVb); - Future psbt({dynamic hint}) => - PayjoinCore.instance.api.payjoinProposalPsbt(that: this, hint: hint); + Future tryPreservingPrivacy( + {required Map candidateInputs}) => + core.instance.api + .crateApiReceiveFfiProvisionalProposalTryPreservingPrivacy( + that: this, candidateInputs: candidateInputs); - Future> utxosToBeLocked({dynamic hint}) => - PayjoinCore.instance.api - .payjoinProposalUtxosToBeLocked(that: this, hint: hint); + Future trySubstituteReceiverOutput( + {required FutureOr Function() generateScript}) => + core.instance.api + .crateApiReceiveFfiProvisionalProposalTrySubstituteReceiverOutput( + that: this, generateScript: generateScript); @override int get hashCode => field0.hashCode; @@ -599,48 +251,43 @@ class PayjoinProposal { @override bool operator ==(Object other) => identical(this, other) || - other is PayjoinProposal && + other is FfiProvisionalProposal && runtimeType == other.runtimeType && field0 == other.field0; } -class ProvisionalProposal { - final ArcPayjoinFfiReceiveV1ProvisionalProposal field0; +class FfiSessionInitializer { + final SessionInitializer field0; - const ProvisionalProposal({ + const FfiSessionInitializer({ required this.field0, }); - Future contributeNonWitnessInput( - {required List tx, required OutPoint outpoint, dynamic hint}) => - PayjoinCore.instance.api.provisionalProposalContributeNonWitnessInput( - that: this, tx: tx, outpoint: outpoint, hint: hint); - - Future contributeWitnessInput( - {required TxOut txo, required OutPoint outpoint, dynamic hint}) => - PayjoinCore.instance.api.provisionalProposalContributeWitnessInput( - that: this, txo: txo, outpoint: outpoint, hint: hint); - - static Future finalizeProposal( - {required ProvisionalProposal ptr, - required FutureOr Function(String) processPsbt, - int? minFeerateSatPerVb, - dynamic hint}) => - PayjoinCore.instance.api.provisionalProposalFinalizeProposal( - ptr: ptr, - processPsbt: processPsbt, - minFeerateSatPerVb: minFeerateSatPerVb, - hint: hint); - - Future substituteOutputAddress( - {required String address, dynamic hint}) => - PayjoinCore.instance.api.provisionalProposalSubstituteOutputAddress( - that: this, address: address, hint: hint); + static Future<((FfiUrl, Uint8List), FfiClientResponse)> extractReq( + {required FfiSessionInitializer ptr}) => + core.instance.api + .crateApiReceiveFfiSessionInitializerExtractReq(ptr: ptr); + + // HINT: Make it `#[frb(sync)]` to let it become the default constructor of Dart class. + static Future newInstance( + {required String address, + BigInt? expireAfter, + required Network network, + required FfiUrl directory, + required FfiOhttpKeys ohttpKeys, + required FfiUrl ohttpRelay}) => + core.instance.api.crateApiReceiveFfiSessionInitializerNew( + address: address, + expireAfter: expireAfter, + network: network, + directory: directory, + ohttpKeys: ohttpKeys, + ohttpRelay: ohttpRelay); - Future tryPreservingPrivacy( - {required Map candidateInputs, dynamic hint}) => - PayjoinCore.instance.api.provisionalProposalTryPreservingPrivacy( - that: this, candidateInputs: candidateInputs, hint: hint); + Future processRes( + {required List body, required FfiClientResponse ctx}) => + core.instance.api.crateApiReceiveFfiSessionInitializerProcessRes( + that: this, body: body, ctx: ctx); @override int get hashCode => field0.hashCode; @@ -648,25 +295,26 @@ class ProvisionalProposal { @override bool operator ==(Object other) => identical(this, other) || - other is ProvisionalProposal && + other is FfiSessionInitializer && runtimeType == other.runtimeType && field0 == other.field0; } -class UncheckedProposal { - final PayjoinFfiReceiveV1UncheckedProposal field0; +class FfiUncheckedProposal { + final UncheckedProposal field0; - const UncheckedProposal({ + const FfiUncheckedProposal({ 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. - static Future assumeInteractiveReceiver( - {required UncheckedProposal ptr, dynamic hint}) => - PayjoinCore.instance.api - .uncheckedProposalAssumeInteractiveReceiver(ptr: ptr, hint: hint); + static Future assumeInteractiveReceiver( + {required FfiUncheckedProposal ptr}) => + core.instance.api + .crateApiReceiveFfiUncheckedProposalAssumeInteractiveReceiver( + ptr: ptr); /// Call after checking that the Original PSBT can be broadcast. /// @@ -675,29 +323,26 @@ class UncheckedProposal { /// 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. - static Future checkBroadcastSuitability( - {required UncheckedProposal ptr, - int? minFeeRate, - required FutureOr Function(Uint8List) canBroadcast, - dynamic hint}) => - PayjoinCore.instance.api.uncheckedProposalCheckBroadcastSuitability( - ptr: ptr, - minFeeRate: minFeeRate, - canBroadcast: canBroadcast, - hint: hint); + static Future checkBroadcastSuitability( + {required FfiUncheckedProposal ptr, + BigInt? minFeeRate, + required FutureOr Function(Uint8List) canBroadcast}) => + core.instance.api + .crateApiReceiveFfiUncheckedProposalCheckBroadcastSuitability( + ptr: ptr, minFeeRate: minFeeRate, canBroadcast: canBroadcast); /// The Sender’s Original PSBT - Future extractTxToScheduleBroadcast({dynamic hint}) => PayjoinCore - .instance.api - .uncheckedProposalExtractTxToScheduleBroadcast(that: this, hint: hint); + Future extractTxToScheduleBroadcast() => core.instance.api + .crateApiReceiveFfiUncheckedProposalExtractTxToScheduleBroadcast( + that: this, + ); - static Future fromRequest( + static Future fromRequest( {required List body, required String query, - required Headers headers, - dynamic hint}) => - PayjoinCore.instance.api.uncheckedProposalFromRequest( - body: body, query: query, headers: headers, hint: hint); + required Headers headers}) => + core.instance.api.crateApiReceiveFfiUncheckedProposalFromRequest( + body: body, query: query, headers: headers); @override int get hashCode => field0.hashCode; @@ -705,25 +350,24 @@ class UncheckedProposal { @override bool operator ==(Object other) => identical(this, other) || - other is UncheckedProposal && + other is FfiUncheckedProposal && runtimeType == other.runtimeType && field0 == other.field0; } -class V2MaybeInputsOwned { - final ArcPayjoinFfiReceiveV2V2MaybeInputsOwned field0; +class FfiV2MaybeInputsOwned { + final V2MaybeInputsOwned field0; - const V2MaybeInputsOwned({ + const FfiV2MaybeInputsOwned({ 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, hint: hint); + Future checkInputsNotOwned( + {required FutureOr Function(Uint8List) isOwned}) => + core.instance.api.crateApiReceiveFfiV2MaybeInputsOwnedCheckInputsNotOwned( + that: this, isOwned: isOwned); @override int get hashCode => field0.hashCode; @@ -731,25 +375,26 @@ class V2MaybeInputsOwned { @override bool operator ==(Object other) => identical(this, other) || - other is V2MaybeInputsOwned && + other is FfiV2MaybeInputsOwned && runtimeType == other.runtimeType && field0 == other.field0; } -class V2MaybeInputsSeen { - final ArcPayjoinFfiReceiveV2V2MaybeInputsSeen field0; +class FfiV2MaybeInputsSeen { + final V2MaybeInputsSeen field0; - const V2MaybeInputsSeen({ + const FfiV2MaybeInputsSeen({ 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, hint: hint); + Future checkNoInputsSeenBefore( + {required FutureOr Function(OutPoint) isKnown}) => + core.instance.api + .crateApiReceiveFfiV2MaybeInputsSeenCheckNoInputsSeenBefore( + that: this, isKnown: isKnown); @override int get hashCode => field0.hashCode; @@ -757,15 +402,15 @@ class V2MaybeInputsSeen { @override bool operator ==(Object other) => identical(this, other) || - other is V2MaybeInputsSeen && + other is FfiV2MaybeInputsSeen && runtimeType == other.runtimeType && field0 == other.field0; } -class V2MaybeMixedInputScripts { - final ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts field0; +class FfiV2MaybeMixedInputScripts { + final V2MaybeMixedInputScripts field0; - const V2MaybeMixedInputScripts({ + const FfiV2MaybeMixedInputScripts({ required this.field0, }); @@ -774,9 +419,10 @@ class V2MaybeMixedInputScripts { /// /// 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, hint: hint); + Future checkNoMixedInputScripts() => core.instance.api + .crateApiReceiveFfiV2MaybeMixedInputScriptsCheckNoMixedInputScripts( + that: this, + ); @override int get hashCode => field0.hashCode; @@ -784,24 +430,24 @@ class V2MaybeMixedInputScripts { @override bool operator ==(Object other) => identical(this, other) || - other is V2MaybeMixedInputScripts && + other is FfiV2MaybeMixedInputScripts && runtimeType == other.runtimeType && field0 == other.field0; } -class V2OutputsUnknown { - final ArcPayjoinFfiReceiveV2V2OutputsUnknown field0; +class FfiV2OutputsUnknown { + final V2OutputsUnknown field0; - const V2OutputsUnknown({ + const FfiV2OutputsUnknown({ 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, hint: hint); + Future identifyReceiverOutputs( + {required FutureOr Function(Uint8List) isReceiverOutput}) => + core.instance.api + .crateApiReceiveFfiV2OutputsUnknownIdentifyReceiverOutputs( + that: this, isReceiverOutput: isReceiverOutput); @override int get hashCode => field0.hashCode; @@ -809,46 +455,52 @@ class V2OutputsUnknown { @override bool operator ==(Object other) => identical(this, other) || - other is V2OutputsUnknown && + other is FfiV2OutputsUnknown && runtimeType == other.runtimeType && field0 == other.field0; } -class V2PayjoinProposal { - final ArcPayjoinFfiReceiveV2V2PayjoinProposal field0; +class FfiV2PayjoinProposal { + final ArcV2PayjoinProposal field0; - const V2PayjoinProposal({ + const FfiV2PayjoinProposal({ required this.field0, }); - Future deserializeRes( - {required List res, - required ClientResponse ohttpContext, - dynamic hint}) => - PayjoinCore.instance.api.v2PayjoinProposalDeserializeRes( - that: this, res: res, ohttpContext: ohttpContext, hint: hint); + Future extractV1Req() => + core.instance.api.crateApiReceiveFfiV2PayjoinProposalExtractV1Req( + that: this, + ); - Future extractV1Req({dynamic hint}) => PayjoinCore.instance.api - .v2PayjoinProposalExtractV1Req(that: this, hint: hint); + static Future<((FfiUrl, Uint8List), FfiClientResponse)> extractV2Req( + {required FfiV2PayjoinProposal ptr}) => + core.instance.api + .crateApiReceiveFfiV2PayjoinProposalExtractV2Req(ptr: ptr); - static Future<((Url, Uint8List), ClientResponse)> extractV2Req( - {required V2PayjoinProposal ptr, dynamic hint}) => - PayjoinCore.instance.api - .v2PayjoinProposalExtractV2Req(ptr: ptr, hint: hint); + Future isOutputSubstitutionDisabled() => core.instance.api + .crateApiReceiveFfiV2PayjoinProposalIsOutputSubstitutionDisabled( + that: this, + ); - Future isOutputSubstitutionDisabled({dynamic hint}) => PayjoinCore - .instance.api - .v2PayjoinProposalIsOutputSubstitutionDisabled(that: this, hint: hint); + Future ownedVouts() => + core.instance.api.crateApiReceiveFfiV2PayjoinProposalOwnedVouts( + that: this, + ); - Future ownedVouts({dynamic hint}) => PayjoinCore.instance.api - .v2PayjoinProposalOwnedVouts(that: this, hint: hint); + Future processRes( + {required List res, required FfiClientResponse ohttpContext}) => + core.instance.api.crateApiReceiveFfiV2PayjoinProposalProcessRes( + that: this, res: res, ohttpContext: ohttpContext); - Future psbt({dynamic hint}) => - PayjoinCore.instance.api.v2PayjoinProposalPsbt(that: this, hint: hint); + Future psbt() => + core.instance.api.crateApiReceiveFfiV2PayjoinProposalPsbt( + that: this, + ); - Future> utxosToBeLocked({dynamic hint}) => - PayjoinCore.instance.api - .v2PayjoinProposalUtxosToBeLocked(that: this, hint: hint); + Future> utxosToBeLocked() => + core.instance.api.crateApiReceiveFfiV2PayjoinProposalUtxosToBeLocked( + that: this, + ); @override int get hashCode => field0.hashCode; @@ -856,42 +508,42 @@ class V2PayjoinProposal { @override bool operator ==(Object other) => identical(this, other) || - other is V2PayjoinProposal && + other is FfiV2PayjoinProposal && runtimeType == other.runtimeType && field0 == other.field0; } -class V2ProvisionalProposal { - final ArcPayjoinFfiReceiveV2V2ProvisionalProposal field0; +class FfiV2ProvisionalProposal { + final V2ProvisionalProposal field0; - const V2ProvisionalProposal({ + const FfiV2ProvisionalProposal({ required this.field0, }); Future contributeNonWitnessInput( - {required List tx, required OutPoint outpoint, dynamic hint}) => - PayjoinCore.instance.api.v2ProvisionalProposalContributeNonWitnessInput( - that: this, tx: tx, outpoint: outpoint, hint: hint); + {required List tx, required OutPoint outpoint}) => + core.instance.api + .crateApiReceiveFfiV2ProvisionalProposalContributeNonWitnessInput( + 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, hint: hint); + {required TxOut txo, required OutPoint outpoint}) => + core.instance.api + .crateApiReceiveFfiV2ProvisionalProposalContributeWitnessInput( + that: this, txo: txo, outpoint: outpoint); - Future finalizeProposal( + Future finalizeProposal( {required FutureOr Function(String) processPsbt, - int? minFeerateSatPerVb, - dynamic hint}) => - PayjoinCore.instance.api.v2ProvisionalProposalFinalizeProposal( + BigInt? minFeerateSatPerVb}) => + core.instance.api.crateApiReceiveFfiV2ProvisionalProposalFinalizeProposal( that: this, processPsbt: processPsbt, - minFeerateSatPerVb: minFeerateSatPerVb, - hint: hint); + minFeerateSatPerVb: minFeerateSatPerVb); - Future substituteOutputAddress( - {required String address, dynamic hint}) => - PayjoinCore.instance.api.v2ProvisionalProposalSubstituteOutputAddress( - that: this, address: address, hint: hint); + Future isOutputSubstitutionDisabled() => core.instance.api + .crateApiReceiveFfiV2ProvisionalProposalIsOutputSubstitutionDisabled( + that: this, + ); /// Select receiver input such that the common.dart avoids surveillance. Return the input chosen that has been applied to the Proposal. /// @@ -899,9 +551,16 @@ class V2ProvisionalProposal { /// /// 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, hint: hint); + {required Map candidateInputs}) => + core.instance.api + .crateApiReceiveFfiV2ProvisionalProposalTryPreservingPrivacy( + that: this, candidateInputs: candidateInputs); + + Future trySubstituteReceiverOutput( + {required FutureOr Function() generateScript}) => + core.instance.api + .crateApiReceiveFfiV2ProvisionalProposalTrySubstituteReceiverOutput( + that: this, generateScript: generateScript); @override int get hashCode => field0.hashCode; @@ -909,15 +568,15 @@ class V2ProvisionalProposal { @override bool operator ==(Object other) => identical(this, other) || - other is V2ProvisionalProposal && + other is FfiV2ProvisionalProposal && runtimeType == other.runtimeType && field0 == other.field0; } -class V2UncheckedProposal { - final PayjoinFfiReceiveV2V2UncheckedProposal field0; +class FfiV2UncheckedProposal { + final V2UncheckedProposal field0; - const V2UncheckedProposal({ + const FfiV2UncheckedProposal({ required this.field0, }); @@ -926,9 +585,10 @@ class V2UncheckedProposal { /// /// 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, hint: hint); + Future assumeInteractiveReceiver() => core.instance.api + .crateApiReceiveFfiV2UncheckedProposalAssumeInteractiveReceiver( + that: this, + ); /// Call after checking that the Original PSBT can be broadcast. /// @@ -937,20 +597,18 @@ class V2UncheckedProposal { /// 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, - hint: hint); + Future checkBroadcastSuitability( + {BigInt? minFeeRate, + required FutureOr Function(Uint8List) canBroadcast}) => + core.instance.api + .crateApiReceiveFfiV2UncheckedProposalCheckBroadcastSuitability( + that: this, minFeeRate: minFeeRate, canBroadcast: canBroadcast); ///The Sender’s Original PSBT - Future extractTxToScheduleBroadcast({dynamic hint}) => PayjoinCore - .instance.api - .v2UncheckedProposalExtractTxToScheduleBroadcast(that: this, hint: hint); + Future extractTxToScheduleBroadcast() => core.instance.api + .crateApiReceiveFfiV2UncheckedProposalExtractTxToScheduleBroadcast( + that: this, + ); @override int get hashCode => field0.hashCode; @@ -958,7 +616,7 @@ class V2UncheckedProposal { @override bool operator ==(Object other) => identical(this, other) || - other is V2UncheckedProposal && + other is FfiV2UncheckedProposal && runtimeType == other.runtimeType && field0 == other.field0; } diff --git a/lib/src/generated/api/send.dart b/lib/src/generated/api/send.dart index 9aca5bd..5fcde13 100644 --- a/lib/src/generated/api/send.dart +++ b/lib/src/generated/api/send.dart @@ -1,119 +1,26 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. +// Generated by `flutter_rust_bridge`@ 2.0.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import import '../frb_generated.dart'; +import '../lib.dart'; import '../utils/error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; -import 'receive.dart'; import 'uri.dart'; -// Rust type: RustOpaqueNom> -@sealed -class ArcPayjoinFfiSendV1ContextV1 extends RustOpaque { - ArcPayjoinFfiSendV1ContextV1.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ArcPayjoinFfiSendV1ContextV1.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: PayjoinCore.instance.api - .rust_arc_increment_strong_count_ArcPayjoinFfiSendV1ContextV1, - rustArcDecrementStrongCount: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1ContextV1, - rustArcDecrementStrongCountPtr: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1ContextV1Ptr, - ); -} - -// Rust type: RustOpaqueNom> -@sealed -class ArcPayjoinFfiSendV1RequestBuilder extends RustOpaque { - ArcPayjoinFfiSendV1RequestBuilder.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ArcPayjoinFfiSendV1RequestBuilder.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: PayjoinCore.instance.api - .rust_arc_increment_strong_count_ArcPayjoinFfiSendV1RequestBuilder, - rustArcDecrementStrongCount: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestBuilder, - rustArcDecrementStrongCountPtr: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestBuilderPtr, - ); -} - -// Rust type: RustOpaqueNom> -@sealed -class ArcPayjoinFfiSendV1RequestContext extends RustOpaque { - ArcPayjoinFfiSendV1RequestContext.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ArcPayjoinFfiSendV1RequestContext.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: PayjoinCore.instance.api - .rust_arc_increment_strong_count_ArcPayjoinFfiSendV1RequestContext, - rustArcDecrementStrongCount: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestContext, - rustArcDecrementStrongCountPtr: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestContextPtr, - ); -} - -// Rust type: RustOpaqueNom> -@sealed -class ArcPayjoinFfiSendV2ContextV2 extends RustOpaque { - ArcPayjoinFfiSendV2ContextV2.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ArcPayjoinFfiSendV2ContextV2.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: PayjoinCore.instance.api - .rust_arc_increment_strong_count_ArcPayjoinFfiSendV2ContextV2, - rustArcDecrementStrongCount: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_ArcPayjoinFfiSendV2ContextV2, - rustArcDecrementStrongCountPtr: PayjoinCore.instance.api - .rust_arc_decrement_strong_count_ArcPayjoinFfiSendV2ContextV2Ptr, - ); -} - -// Rust type: RustOpaqueNom> -@sealed -class ArcPayjoinFfiUriUri extends RustOpaque { - ArcPayjoinFfiUriUri.dcoDecode(List wire) - : super.dcoDecode(wire, _kStaticData); - - ArcPayjoinFfiUriUri.sseDecode(int ptr, int externalSizeOnNative) - : super.sseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: PayjoinCore - .instance.api.rust_arc_increment_strong_count_ArcPayjoinFfiUriUri, - rustArcDecrementStrongCount: PayjoinCore - .instance.api.rust_arc_decrement_strong_count_ArcPayjoinFfiUriUri, - rustArcDecrementStrongCountPtr: PayjoinCore - .instance.api.rust_arc_decrement_strong_count_ArcPayjoinFfiUriUriPtr, - ); -} +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `clone`, `clone`, `from`, `from`, `from`, `from`, `from`, `from`, `from`, `from` -class ContextV1 { - final ArcPayjoinFfiSendV1ContextV1 field0; +class FfiContextV1 { + final ContextV1 field0; - const ContextV1({ + const FfiContextV1({ required this.field0, }); - Future processResponse({required List response, dynamic hint}) => - PayjoinCore.instance.api - .contextV1ProcessResponse(that: this, response: response, hint: hint); + Future processResponse({required List response}) => core + .instance.api + .crateApiSendFfiContextV1ProcessResponse(that: this, response: response); @override int get hashCode => field0.hashCode; @@ -121,22 +28,21 @@ class ContextV1 { @override bool operator ==(Object other) => identical(this, other) || - other is ContextV1 && + other is FfiContextV1 && runtimeType == other.runtimeType && field0 == other.field0; } -class ContextV2 { - final ArcPayjoinFfiSendV2ContextV2 field0; +class FfiContextV2 { + final ArcContextV2 field0; - const ContextV2({ + const FfiContextV2({ required this.field0, }); - Future processResponse( - {required List response, dynamic hint}) => - PayjoinCore.instance.api - .contextV2ProcessResponse(that: this, response: response, hint: hint); + Future processResponse({required List response}) => core + .instance.api + .crateApiSendFfiContextV2ProcessResponse(that: this, response: response); @override int get hashCode => field0.hashCode; @@ -144,50 +50,49 @@ class ContextV2 { @override bool operator ==(Object other) => identical(this, other) || - other is ContextV2 && + other is FfiContextV2 && runtimeType == other.runtimeType && field0 == other.field0; } -class RequestBuilder { - final ArcPayjoinFfiSendV1RequestBuilder field0; +class FfiRequestBuilder { + final RequestBuilder field0; - const RequestBuilder({ + const FfiRequestBuilder({ required this.field0, }); - Future alwaysDisableOutputSubstitution( - {required bool disable, dynamic hint}) => - PayjoinCore.instance.api.requestBuilderAlwaysDisableOutputSubstitution( - that: this, disable: disable, hint: hint); + Future alwaysDisableOutputSubstitution( + {required bool disable}) => + core.instance.api + .crateApiSendFfiRequestBuilderAlwaysDisableOutputSubstitution( + that: this, disable: disable); - Future buildNonIncentivizing({dynamic hint}) => - PayjoinCore.instance.api - .requestBuilderBuildNonIncentivizing(that: this, hint: hint); + Future buildNonIncentivizing( + {required BigInt minFeeRate}) => + core.instance.api.crateApiSendFfiRequestBuilderBuildNonIncentivizing( + that: this, minFeeRate: minFeeRate); - Future buildRecommended( - {required int minFeeRate, dynamic hint}) => - PayjoinCore.instance.api.requestBuilderBuildRecommended( - that: this, minFeeRate: minFeeRate, hint: hint); + Future buildRecommended({required BigInt minFeeRate}) => + core.instance.api.crateApiSendFfiRequestBuilderBuildRecommended( + that: this, minFeeRate: minFeeRate); - Future buildWithAdditionalFee( - {required int maxFeeContribution, + Future buildWithAdditionalFee( + {required BigInt maxFeeContribution, int? changeIndex, - required int minFeeRate, - required bool clampFeeContribution, - dynamic hint}) => - PayjoinCore.instance.api.requestBuilderBuildWithAdditionalFee( + required BigInt minFeeRate, + required bool clampFeeContribution}) => + core.instance.api.crateApiSendFfiRequestBuilderBuildWithAdditionalFee( that: this, maxFeeContribution: maxFeeContribution, changeIndex: changeIndex, minFeeRate: minFeeRate, - clampFeeContribution: clampFeeContribution, - hint: hint); + clampFeeContribution: clampFeeContribution); - static Future fromPsbtAndUri( - {required String psbtBase64, required Uri uri, dynamic hint}) => - PayjoinCore.instance.api.requestBuilderFromPsbtAndUri( - psbtBase64: psbtBase64, uri: uri, hint: hint); + static Future fromPsbtAndUri( + {required String psbtBase64, required FfiPjUri pjUri}) => + core.instance.api.crateApiSendFfiRequestBuilderFromPsbtAndUri( + psbtBase64: psbtBase64, pjUri: pjUri); @override int get hashCode => field0.hashCode; @@ -195,28 +100,25 @@ class RequestBuilder { @override bool operator ==(Object other) => identical(this, other) || - other is RequestBuilder && + other is FfiRequestBuilder && runtimeType == other.runtimeType && field0 == other.field0; } -class RequestContext { - final ArcPayjoinFfiSendV1RequestContext field0; +class FfiRequestContext { + final RequestContext field0; - const RequestContext({ + const FfiRequestContext({ required this.field0, }); - static Future extractV1( - {required RequestContext ptr, dynamic hint}) => - PayjoinCore.instance.api.requestContextExtractV1(ptr: ptr, hint: hint); + static Future extractV1({required FfiRequestContext ptr}) => + core.instance.api.crateApiSendFfiRequestContextExtractV1(ptr: ptr); static Future extractV2( - {required RequestContext ptr, - required Url ohttpProxyUrl, - dynamic hint}) => - PayjoinCore.instance.api.requestContextExtractV2( - ptr: ptr, ohttpProxyUrl: ohttpProxyUrl, hint: hint); + {required FfiRequestContext ptr, required FfiUrl ohttpProxyUrl}) => + core.instance.api.crateApiSendFfiRequestContextExtractV2( + ptr: ptr, ohttpProxyUrl: ohttpProxyUrl); @override int get hashCode => field0.hashCode; @@ -224,14 +126,14 @@ class RequestContext { @override bool operator ==(Object other) => identical(this, other) || - other is RequestContext && + other is FfiRequestContext && runtimeType == other.runtimeType && field0 == other.field0; } class RequestContextV1 { - final (Url, Uint8List) request; - final ContextV1 contextV1; + final (FfiUrl, Uint8List) request; + final FfiContextV1 contextV1; const RequestContextV1({ required this.request, @@ -251,8 +153,8 @@ class RequestContextV1 { } class RequestContextV2 { - final (Url, Uint8List) request; - final ContextV2 contextV2; + final (FfiUrl, Uint8List) request; + final FfiContextV2 contextV2; const RequestContextV2({ required this.request, diff --git a/lib/src/generated/api/uri.dart b/lib/src/generated/api/uri.dart index 81d9d93..9d8f767 100644 --- a/lib/src/generated/api/uri.dart +++ b/lib/src/generated/api/uri.dart @@ -1,23 +1,24 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. +// Generated by `flutter_rust_bridge`@ 2.0.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import import '../frb_generated.dart'; +import '../lib.dart'; import '../utils/error.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; -import 'receive.dart'; -import 'send.dart'; -class OhttpKeys { - final PayjoinFfiTypesOhttpKeys field0; +// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `clone`, `clone`, `clone`, `clone`, `fmt`, `from`, `from`, `from`, `from`, `from`, `from` - const OhttpKeys({ +class FfiOhttpKeys { + final OhttpKeys field0; + + const FfiOhttpKeys({ required this.field0, }); - static Future decode({required List bytes, dynamic hint}) => - PayjoinCore.instance.api.ohttpKeysDecode(bytes: bytes, hint: hint); + static Future decode({required List bytes}) => + core.instance.api.crateApiUriFfiOhttpKeysDecode(bytes: bytes); @override int get hashCode => field0.hashCode; @@ -25,27 +26,116 @@ class OhttpKeys { @override bool operator ==(Object other) => identical(this, other) || - other is OhttpKeys && + other is FfiOhttpKeys && runtimeType == other.runtimeType && field0 == other.field0; } -class Uri { - final ArcPayjoinFfiUriUri field0; +class FfiPjUri { + final PjUri field0; - const Uri({ + const FfiPjUri({ required this.field0, }); - Future address({dynamic hint}) => - PayjoinCore.instance.api.uriAddress(that: this, hint: hint); + String address() => core.instance.api.crateApiUriFfiPjUriAddress( + that: this, + ); + + /// Number of btc requested as payment + double? amount() => core.instance.api.crateApiUriFfiPjUriAmount( + that: this, + ); + + String asString() => core.instance.api.crateApiUriFfiPjUriAsString( + that: this, + ); + + @override + int get hashCode => field0.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is FfiPjUri && + runtimeType == other.runtimeType && + field0 == other.field0; +} + +class FfiPjUriBuilder { + final PjUriBuilder internal; + + const FfiPjUriBuilder({ + required this.internal, + }); + + ///Accepts the amount you want to receive in sats and sets it in btc. + FfiPjUriBuilder amount({required BigInt amount}) => core.instance.api + .crateApiUriFfiPjUriBuilderAmount(that: this, amount: amount); + + ///Constructs a Uri with PayjoinParams from the parameters set in the builder. + FfiPjUri build() => core.instance.api.crateApiUriFfiPjUriBuilderBuild( + that: this, + ); + + static Future create( + {required String address, + required FfiUrl pj, + FfiOhttpKeys? ohttpKeys, + BigInt? expiry}) => + core.instance.api.crateApiUriFfiPjUriBuilderCreate( + address: address, pj: pj, ohttpKeys: ohttpKeys, expiry: expiry); + + ///Set the label. + FfiPjUriBuilder label({required String label}) => core.instance.api + .crateApiUriFfiPjUriBuilderLabel(that: this, label: label); + + /// Set the message. + FfiPjUriBuilder message({required String message}) => core.instance.api + .crateApiUriFfiPjUriBuilderMessage(that: this, message: message); + + ///Set whether payjoin output substitution is allowed. + FfiPjUriBuilder pjos({required bool pjos}) => + core.instance.api.crateApiUriFfiPjUriBuilderPjos(that: this, pjos: pjos); + + @override + int get hashCode => internal.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is FfiPjUriBuilder && + runtimeType == other.runtimeType && + internal == other.internal; +} + +class FfiUri { + final Uri field0; + + const FfiUri({ + required this.field0, + }); + + String address() => core.instance.api.crateApiUriFfiUriAddress( + that: this, + ); ///Gets the amount in btc. - Future amount({dynamic hint}) => - PayjoinCore.instance.api.uriAmount(that: this, hint: hint); + double? amount() => core.instance.api.crateApiUriFfiUriAmount( + that: this, + ); + + String asString() => core.instance.api.crateApiUriFfiUriAsString( + that: this, + ); + + FfiPjUri checkPjSupported() => + core.instance.api.crateApiUriFfiUriCheckPjSupported( + that: this, + ); - static Future fromStr({required String uri, dynamic hint}) => - PayjoinCore.instance.api.uriFromStr(uri: uri, hint: hint); + static Future fromStr({required String uri}) => + core.instance.api.crateApiUriFfiUriFromStr(uri: uri); @override int get hashCode => field0.hashCode; @@ -53,26 +143,28 @@ class Uri { @override bool operator ==(Object other) => identical(this, other) || - other is Uri && + other is FfiUri && runtimeType == other.runtimeType && field0 == other.field0; } -class Url { - final ArcPayjoinFfiUriUrl field0; +class FfiUrl { + final Url field0; - const Url({ + const FfiUrl({ required this.field0, }); - Future asString({dynamic hint}) => - PayjoinCore.instance.api.urlAsString(that: this, hint: hint); + String asString() => core.instance.api.crateApiUriFfiUrlAsString( + that: this, + ); - static Future fromStr({required String url, dynamic hint}) => - PayjoinCore.instance.api.urlFromStr(url: url, hint: hint); + static Future fromStr({required String url}) => + core.instance.api.crateApiUriFfiUrlFromStr(url: url); - Future query({dynamic hint}) => - PayjoinCore.instance.api.urlQuery(that: this, hint: hint); + String? query() => core.instance.api.crateApiUriFfiUrlQuery( + that: this, + ); @override int get hashCode => field0.hashCode; @@ -80,7 +172,7 @@ class Url { @override bool operator ==(Object other) => identical(this, other) || - other is Url && + other is FfiUrl && runtimeType == other.runtimeType && field0 == other.field0; } diff --git a/lib/src/generated/frb_generated.dart b/lib/src/generated/frb_generated.dart index b20a161..0ce72f7 100644 --- a/lib/src/generated/frb_generated.dart +++ b/lib/src/generated/frb_generated.dart @@ -1,29 +1,32 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. +// Generated by `flutter_rust_bridge`@ 2.0.0. // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field +import 'api/io.dart'; import 'api/receive.dart'; import 'api/send.dart'; import 'api/uri.dart'; import 'dart:async'; import 'dart:convert'; -import 'frb_generated.io.dart' if (dart.library.html) 'frb_generated.web.dart'; +import 'frb_generated.dart'; +import 'frb_generated.io.dart' + if (dart.library.js_interop) 'frb_generated.web.dart'; +import 'lib.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'utils/error.dart'; import 'utils/types.dart'; /// Main entrypoint of the Rust API -class PayjoinCore extends BaseEntrypoint { +class core extends BaseEntrypoint { @internal - static final instance = PayjoinCore._(); + static final instance = core._(); - PayjoinCore._(); + core._(); /// Initialize flutter_rust_bridge static Future init({ - PayjoinCoreApi? api, + coreApi? api, BaseHandler? handler, ExternalLibrary? externalLibrary, }) async { @@ -41,12 +44,11 @@ class PayjoinCore extends BaseEntrypoint instance.disposeImpl(); @override - ApiImplConstructor - get apiImplConstructor => PayjoinCoreApiImpl.new; + ApiImplConstructor get apiImplConstructor => + coreApiImpl.new; @override - WireConstructor get wireConstructor => - PayjoinCoreWire.fromExternalLibrary; + WireConstructor get wireConstructor => coreWire.fromExternalLibrary; @override Future executeRustInitializers() async {} @@ -56,7 +58,10 @@ class PayjoinCore extends BaseEntrypoint '2.0.0-dev.31'; + String get codegenVersion => '2.0.0'; + + @override + int get rustContentHash => -1575278373; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -66,457 +71,507 @@ class PayjoinCore extends BaseEntrypoint enrolledExtractReq( - {required Enrolled ptr, dynamic hint}); +abstract class coreApi extends BaseApi { + Future crateApiIoFetchOhttpKeys( + {required FfiUrl ohttpRelay, + required FfiUrl payjoinDirectory, + required List certDer}); - Future enrolledFallbackTarget({required Enrolled that, dynamic hint}); - - Future enrolledProcessRes( - {required Enrolled that, - required List body, - required ClientResponse ctx, - dynamic hint}); + Future<((FfiUrl, Uint8List), FfiClientResponse)> + crateApiReceiveFfiActiveSessionExtractReq( + {required FfiActiveSession ptr}); - Future<((Url, Uint8List), ClientResponse)> enrollerExtractReq( - {required Enroller ptr, dynamic hint}); + FfiPjUriBuilder crateApiReceiveFfiActiveSessionPjUriBuilder( + {required FfiActiveSession ptr}); - Future enrollerFromDirectoryConfig( - {required Url directory, - required OhttpKeys ohttpKeys, - required Url ohttpRelay, - dynamic hint}); + FfiUrl crateApiReceiveFfiActiveSessionPjUrl({required FfiActiveSession ptr}); - Future enrollerProcessRes( - {required Enroller that, + Future crateApiReceiveFfiActiveSessionProcessRes( + {required FfiActiveSession that, required List body, - required ClientResponse ctx, - dynamic hint}); + required FfiClientResponse ctx}); - Future maybeInputsOwnedCheckInputsNotOwned( - {required MaybeInputsOwned ptr, - required FutureOr Function(Uint8List) isOwned, - dynamic hint}); + String crateApiReceiveFfiActiveSessionPublicKey( + {required FfiActiveSession that}); - Future maybeInputsSeenCheckNoInputsSeenBefore( - {required MaybeInputsSeen ptr, - required FutureOr Function(OutPoint) isKnown, - dynamic hint}); + Future + crateApiReceiveFfiMaybeInputsOwnedCheckInputsNotOwned( + {required FfiMaybeInputsOwned ptr, + required FutureOr Function(Uint8List) isOwned}); - Future maybeMixedInputScriptsCheckNoMixedInputScripts( - {required MaybeMixedInputScripts ptr, dynamic hint}); + Future + crateApiReceiveFfiMaybeInputsSeenCheckNoInputsSeenBefore( + {required FfiMaybeInputsSeen ptr, + required FutureOr Function(OutPoint) isKnown}); - Future outputsUnknownIdentifyReceiverOutputs( - {required OutputsUnknown ptr, - required FutureOr Function(Uint8List) isReceiverOutput, - dynamic hint}); + Future + crateApiReceiveFfiMaybeMixedInputScriptsCheckNoMixedInputScripts( + {required FfiMaybeMixedInputScripts ptr}); - Future payjoinProposalIsOutputSubstitutionDisabled( - {required PayjoinProposal that, dynamic hint}); + Future + crateApiReceiveFfiOutputsUnknownIdentifyReceiverOutputs( + {required FfiOutputsUnknown ptr, + required FutureOr Function(Uint8List) isReceiverOutput}); - Future payjoinProposalOwnedVouts( - {required PayjoinProposal that, dynamic hint}); + Future crateApiReceiveFfiPayjoinProposalIsOutputSubstitutionDisabled( + {required FfiPayjoinProposal that}); - Future payjoinProposalPsbt( - {required PayjoinProposal that, dynamic hint}); + Future crateApiReceiveFfiPayjoinProposalOwnedVouts( + {required FfiPayjoinProposal that}); - Future> payjoinProposalUtxosToBeLocked( - {required PayjoinProposal that, dynamic hint}); + Future crateApiReceiveFfiPayjoinProposalPsbt( + {required FfiPayjoinProposal that}); - Future provisionalProposalContributeNonWitnessInput( - {required ProvisionalProposal that, + Future> crateApiReceiveFfiPayjoinProposalUtxosToBeLocked( + {required FfiPayjoinProposal that}); + + Future crateApiReceiveFfiProvisionalProposalContributeNonWitnessInput( + {required FfiProvisionalProposal that, required List tx, - required OutPoint outpoint, - dynamic hint}); + required OutPoint outpoint}); - Future provisionalProposalContributeWitnessInput( - {required ProvisionalProposal that, + Future crateApiReceiveFfiProvisionalProposalContributeWitnessInput( + {required FfiProvisionalProposal that, required TxOut txo, - required OutPoint outpoint, - dynamic hint}); - - Future provisionalProposalFinalizeProposal( - {required ProvisionalProposal ptr, - 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 ptr, dynamic hint}); - - Future uncheckedProposalCheckBroadcastSuitability( - {required UncheckedProposal ptr, - int? minFeeRate, - required FutureOr Function(Uint8List) canBroadcast, - dynamic hint}); - - Future uncheckedProposalExtractTxToScheduleBroadcast( - {required UncheckedProposal that, dynamic hint}); - - Future uncheckedProposalFromRequest( + required OutPoint outpoint}); + + Future + crateApiReceiveFfiProvisionalProposalFinalizeProposal( + {required FfiProvisionalProposal ptr, + required FutureOr Function(String) processPsbt, + BigInt? minFeerateSatPerVb}); + + Future crateApiReceiveFfiProvisionalProposalTryPreservingPrivacy( + {required FfiProvisionalProposal that, + required Map candidateInputs}); + + Future crateApiReceiveFfiProvisionalProposalTrySubstituteReceiverOutput( + {required FfiProvisionalProposal that, + required FutureOr Function() generateScript}); + + Future<((FfiUrl, Uint8List), FfiClientResponse)> + crateApiReceiveFfiSessionInitializerExtractReq( + {required FfiSessionInitializer ptr}); + + Future crateApiReceiveFfiSessionInitializerNew( + {required String address, + BigInt? expireAfter, + required Network network, + required FfiUrl directory, + required FfiOhttpKeys ohttpKeys, + required FfiUrl ohttpRelay}); + + Future crateApiReceiveFfiSessionInitializerProcessRes( + {required FfiSessionInitializer that, + required List body, + required FfiClientResponse ctx}); + + Future + crateApiReceiveFfiUncheckedProposalAssumeInteractiveReceiver( + {required FfiUncheckedProposal ptr}); + + Future + crateApiReceiveFfiUncheckedProposalCheckBroadcastSuitability( + {required FfiUncheckedProposal ptr, + BigInt? minFeeRate, + required FutureOr Function(Uint8List) canBroadcast}); + + Future + crateApiReceiveFfiUncheckedProposalExtractTxToScheduleBroadcast( + {required FfiUncheckedProposal that}); + + Future crateApiReceiveFfiUncheckedProposalFromRequest( {required List body, required String query, - required Headers headers, - dynamic hint}); + required Headers headers}); - Future v2MaybeInputsOwnedCheckInputsNotOwned( - {required V2MaybeInputsOwned that, - required FutureOr Function(Uint8List) isOwned, - dynamic hint}); + Future + crateApiReceiveFfiV2MaybeInputsOwnedCheckInputsNotOwned( + {required FfiV2MaybeInputsOwned that, + required FutureOr Function(Uint8List) isOwned}); - Future v2MaybeInputsSeenCheckNoInputsSeenBefore( - {required V2MaybeInputsSeen that, - required FutureOr Function(OutPoint) isKnown, - dynamic hint}); + Future + crateApiReceiveFfiV2MaybeInputsSeenCheckNoInputsSeenBefore( + {required FfiV2MaybeInputsSeen that, + required FutureOr Function(OutPoint) isKnown}); - Future v2MaybeMixedInputScriptsCheckNoMixedInputScripts( - {required V2MaybeMixedInputScripts that, dynamic hint}); + Future + crateApiReceiveFfiV2MaybeMixedInputScriptsCheckNoMixedInputScripts( + {required FfiV2MaybeMixedInputScripts that}); - Future v2OutputsUnknownIdentifyReceiverOutputs( - {required V2OutputsUnknown that, - required FutureOr Function(Uint8List) isReceiverOutput, - dynamic hint}); + Future + crateApiReceiveFfiV2OutputsUnknownIdentifyReceiverOutputs( + {required FfiV2OutputsUnknown that, + required FutureOr Function(Uint8List) isReceiverOutput}); - Future v2PayjoinProposalDeserializeRes( - {required V2PayjoinProposal that, - required List res, - required ClientResponse ohttpContext, - dynamic hint}); + Future crateApiReceiveFfiV2PayjoinProposalExtractV1Req( + {required FfiV2PayjoinProposal that}); - Future v2PayjoinProposalExtractV1Req( - {required V2PayjoinProposal that, dynamic hint}); + Future<((FfiUrl, Uint8List), FfiClientResponse)> + crateApiReceiveFfiV2PayjoinProposalExtractV2Req( + {required FfiV2PayjoinProposal ptr}); - Future<((Url, Uint8List), ClientResponse)> v2PayjoinProposalExtractV2Req( - {required V2PayjoinProposal ptr, dynamic hint}); + Future crateApiReceiveFfiV2PayjoinProposalIsOutputSubstitutionDisabled( + {required FfiV2PayjoinProposal that}); - Future v2PayjoinProposalIsOutputSubstitutionDisabled( - {required V2PayjoinProposal that, dynamic hint}); + Future crateApiReceiveFfiV2PayjoinProposalOwnedVouts( + {required FfiV2PayjoinProposal that}); - Future v2PayjoinProposalOwnedVouts( - {required V2PayjoinProposal that, dynamic hint}); + Future crateApiReceiveFfiV2PayjoinProposalProcessRes( + {required FfiV2PayjoinProposal that, + required List res, + required FfiClientResponse ohttpContext}); - Future v2PayjoinProposalPsbt( - {required V2PayjoinProposal that, dynamic hint}); + Future crateApiReceiveFfiV2PayjoinProposalPsbt( + {required FfiV2PayjoinProposal that}); - Future> v2PayjoinProposalUtxosToBeLocked( - {required V2PayjoinProposal that, dynamic hint}); + Future> crateApiReceiveFfiV2PayjoinProposalUtxosToBeLocked( + {required FfiV2PayjoinProposal that}); - Future v2ProvisionalProposalContributeNonWitnessInput( - {required V2ProvisionalProposal that, + Future crateApiReceiveFfiV2ProvisionalProposalContributeNonWitnessInput( + {required FfiV2ProvisionalProposal that, required List tx, - required OutPoint outpoint, - dynamic hint}); + required OutPoint outpoint}); - Future v2ProvisionalProposalContributeWitnessInput( - {required V2ProvisionalProposal that, + Future crateApiReceiveFfiV2ProvisionalProposalContributeWitnessInput( + {required FfiV2ProvisionalProposal that, required TxOut txo, - required OutPoint outpoint, - dynamic hint}); + required OutPoint outpoint}); - Future v2ProvisionalProposalFinalizeProposal( - {required V2ProvisionalProposal that, - required FutureOr Function(String) processPsbt, - int? minFeerateSatPerVb, - dynamic hint}); + Future + crateApiReceiveFfiV2ProvisionalProposalFinalizeProposal( + {required FfiV2ProvisionalProposal that, + required FutureOr Function(String) processPsbt, + BigInt? minFeerateSatPerVb}); - Future v2ProvisionalProposalSubstituteOutputAddress( - {required V2ProvisionalProposal that, - required String address, - dynamic hint}); + Future + crateApiReceiveFfiV2ProvisionalProposalIsOutputSubstitutionDisabled( + {required FfiV2ProvisionalProposal that}); - Future v2ProvisionalProposalTryPreservingPrivacy( - {required V2ProvisionalProposal that, - required Map candidateInputs, - dynamic hint}); + Future crateApiReceiveFfiV2ProvisionalProposalTryPreservingPrivacy( + {required FfiV2ProvisionalProposal that, + required Map candidateInputs}); - Future v2UncheckedProposalAssumeInteractiveReceiver( - {required V2UncheckedProposal that, dynamic hint}); + Future + crateApiReceiveFfiV2ProvisionalProposalTrySubstituteReceiverOutput( + {required FfiV2ProvisionalProposal that, + required FutureOr Function() generateScript}); - Future v2UncheckedProposalCheckBroadcastSuitability( - {required V2UncheckedProposal that, - int? minFeeRate, - required FutureOr Function(Uint8List) canBroadcast, - dynamic hint}); + Future + crateApiReceiveFfiV2UncheckedProposalAssumeInteractiveReceiver( + {required FfiV2UncheckedProposal that}); - Future v2UncheckedProposalExtractTxToScheduleBroadcast( - {required V2UncheckedProposal that, dynamic hint}); + Future + crateApiReceiveFfiV2UncheckedProposalCheckBroadcastSuitability( + {required FfiV2UncheckedProposal that, + BigInt? minFeeRate, + required FutureOr Function(Uint8List) canBroadcast}); - Future contextV1ProcessResponse( - {required ContextV1 that, required List response, dynamic hint}); + Future + crateApiReceiveFfiV2UncheckedProposalExtractTxToScheduleBroadcast( + {required FfiV2UncheckedProposal that}); - Future contextV2ProcessResponse( - {required ContextV2 that, required List response, dynamic hint}); + Future crateApiSendFfiContextV1ProcessResponse( + {required FfiContextV1 that, required List response}); - Future requestBuilderAlwaysDisableOutputSubstitution( - {required RequestBuilder that, required bool disable, dynamic hint}); + Future crateApiSendFfiContextV2ProcessResponse( + {required FfiContextV2 that, required List response}); - Future requestBuilderBuildNonIncentivizing( - {required RequestBuilder that, dynamic hint}); + Future + crateApiSendFfiRequestBuilderAlwaysDisableOutputSubstitution( + {required FfiRequestBuilder that, required bool disable}); - Future requestBuilderBuildRecommended( - {required RequestBuilder that, required int minFeeRate, dynamic hint}); + Future crateApiSendFfiRequestBuilderBuildNonIncentivizing( + {required FfiRequestBuilder that, required BigInt minFeeRate}); - Future requestBuilderBuildWithAdditionalFee( - {required RequestBuilder that, - required int maxFeeContribution, + Future crateApiSendFfiRequestBuilderBuildRecommended( + {required FfiRequestBuilder that, required BigInt minFeeRate}); + + Future crateApiSendFfiRequestBuilderBuildWithAdditionalFee( + {required FfiRequestBuilder that, + required BigInt maxFeeContribution, int? changeIndex, - required int minFeeRate, - required bool clampFeeContribution, - dynamic hint}); + required BigInt minFeeRate, + required bool clampFeeContribution}); - Future requestBuilderFromPsbtAndUri( - {required String psbtBase64, required Uri uri, dynamic hint}); + Future crateApiSendFfiRequestBuilderFromPsbtAndUri( + {required String psbtBase64, required FfiPjUri pjUri}); - Future requestContextExtractV1( - {required RequestContext ptr, dynamic hint}); + Future crateApiSendFfiRequestContextExtractV1( + {required FfiRequestContext ptr}); - Future requestContextExtractV2( - {required RequestContext ptr, required Url ohttpProxyUrl, dynamic hint}); + Future crateApiSendFfiRequestContextExtractV2( + {required FfiRequestContext ptr, required FfiUrl ohttpProxyUrl}); - Future ohttpKeysDecode({required List bytes, dynamic hint}); + Future crateApiUriFfiOhttpKeysDecode( + {required List bytes}); - Future uriAddress({required Uri that, dynamic hint}); + String crateApiUriFfiPjUriAddress({required FfiPjUri that}); - Future uriAmount({required Uri that, dynamic hint}); + double? crateApiUriFfiPjUriAmount({required FfiPjUri that}); - Future uriFromStr({required String uri, dynamic hint}); + String crateApiUriFfiPjUriAsString({required FfiPjUri that}); - Future urlAsString({required Url that, dynamic hint}); + FfiPjUriBuilder crateApiUriFfiPjUriBuilderAmount( + {required FfiPjUriBuilder that, required BigInt amount}); - Future urlFromStr({required String url, dynamic hint}); + FfiPjUri crateApiUriFfiPjUriBuilderBuild({required FfiPjUriBuilder that}); - Future urlQuery({required Url that, dynamic hint}); + Future crateApiUriFfiPjUriBuilderCreate( + {required String address, + required FfiUrl pj, + FfiOhttpKeys? ohttpKeys, + BigInt? expiry}); - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwned; + FfiPjUriBuilder crateApiUriFfiPjUriBuilderLabel( + {required FfiPjUriBuilder that, required String label}); - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwned; + FfiPjUriBuilder crateApiUriFfiPjUriBuilderMessage( + {required FfiPjUriBuilder that, required String message}); - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwnedPtr; + FfiPjUriBuilder crateApiUriFfiPjUriBuilderPjos( + {required FfiPjUriBuilder that, required bool pjos}); + + String crateApiUriFfiUriAddress({required FfiUri that}); + + double? crateApiUriFfiUriAmount({required FfiUri that}); + + String crateApiUriFfiUriAsString({required FfiUri that}); + + FfiPjUri crateApiUriFfiUriCheckPjSupported({required FfiUri that}); + + Future crateApiUriFfiUriFromStr({required String uri}); + + String crateApiUriFfiUrlAsString({required FfiUrl that}); + + Future crateApiUriFfiUrlFromStr({required String url}); + + String? crateApiUriFfiUrlQuery({required FfiUrl that}); RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeen; + get rust_arc_increment_strong_count_ArcV2PayjoinProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeen; + get rust_arc_decrement_strong_count_ArcV2PayjoinProposal; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeenPtr; + get rust_arc_decrement_strong_count_ArcV2PayjoinProposalPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScripts; + get rust_arc_increment_strong_count_ArcContextV2; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScripts; + get rust_arc_decrement_strong_count_ArcContextV2; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScriptsPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ArcContextV2Ptr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknown; + get rust_arc_increment_strong_count_MaybeInputsOwned; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknown; + get rust_arc_decrement_strong_count_MaybeInputsOwned; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknownPtr; + get rust_arc_decrement_strong_count_MaybeInputsOwnedPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposal; + get rust_arc_increment_strong_count_MaybeInputsSeen; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposal; + get rust_arc_decrement_strong_count_MaybeInputsSeen; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposalPtr; + get rust_arc_decrement_strong_count_MaybeInputsSeenPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposal; + get rust_arc_increment_strong_count_MaybeMixedInputScripts; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposal; + get rust_arc_decrement_strong_count_MaybeMixedInputScripts; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposalPtr; + get rust_arc_decrement_strong_count_MaybeMixedInputScriptsPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2Enrolled; + get rust_arc_increment_strong_count_OutputsUnknown; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2Enrolled; + get rust_arc_decrement_strong_count_OutputsUnknown; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2EnrolledPtr; + get rust_arc_decrement_strong_count_OutputsUnknownPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwned; + get rust_arc_increment_strong_count_PayjoinProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwned; + get rust_arc_decrement_strong_count_PayjoinProposal; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwnedPtr; + get rust_arc_decrement_strong_count_PayjoinProposalPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeen; + get rust_arc_increment_strong_count_ProvisionalProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeen; + get rust_arc_decrement_strong_count_ProvisionalProposal; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeenPtr; + get rust_arc_decrement_strong_count_ProvisionalProposalPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts; + get rust_arc_increment_strong_count_UncheckedProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts; + get rust_arc_decrement_strong_count_UncheckedProposal; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScriptsPtr; + get rust_arc_decrement_strong_count_UncheckedProposalPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknown; + get rust_arc_increment_strong_count_ActiveSession; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknown; + get rust_arc_decrement_strong_count_ActiveSession; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknownPtr; + get rust_arc_decrement_strong_count_ActiveSessionPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposal; + get rust_arc_increment_strong_count_SessionInitializer; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposal; + get rust_arc_decrement_strong_count_SessionInitializer; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposalPtr; + get rust_arc_decrement_strong_count_SessionInitializerPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposal; + get rust_arc_increment_strong_count_V2MaybeInputsOwned; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposal; + get rust_arc_decrement_strong_count_V2MaybeInputsOwned; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposalPtr; + get rust_arc_decrement_strong_count_V2MaybeInputsOwnedPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1ContextV1; + get rust_arc_increment_strong_count_V2MaybeInputsSeen; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1ContextV1; + get rust_arc_decrement_strong_count_V2MaybeInputsSeen; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1ContextV1Ptr; + get rust_arc_decrement_strong_count_V2MaybeInputsSeenPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1RequestBuilder; + get rust_arc_increment_strong_count_V2MaybeMixedInputScripts; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestBuilder; + get rust_arc_decrement_strong_count_V2MaybeMixedInputScripts; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestBuilderPtr; + get rust_arc_decrement_strong_count_V2MaybeMixedInputScriptsPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1RequestContext; + get rust_arc_increment_strong_count_V2OutputsUnknown; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestContext; + get rust_arc_decrement_strong_count_V2OutputsUnknown; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestContextPtr; + get rust_arc_decrement_strong_count_V2OutputsUnknownPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV2ContextV2; + get rust_arc_increment_strong_count_V2ProvisionalProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV2ContextV2; + get rust_arc_decrement_strong_count_V2ProvisionalProposal; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV2ContextV2Ptr; + get rust_arc_decrement_strong_count_V2ProvisionalProposalPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiUriUri; + get rust_arc_increment_strong_count_V2UncheckedProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUri; + get rust_arc_decrement_strong_count_V2UncheckedProposal; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUriPtr; + get rust_arc_decrement_strong_count_V2UncheckedProposalPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiUriUrl; + get rust_arc_increment_strong_count_ContextV1; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrl; + get rust_arc_decrement_strong_count_ContextV1; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrlPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ContextV1Ptr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_MutexOptionOhttpClientResponse; + get rust_arc_increment_strong_count_RequestBuilder; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_MutexOptionOhttpClientResponse; + get rust_arc_decrement_strong_count_RequestBuilder; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexOptionOhttpClientResponsePtr; + get rust_arc_decrement_strong_count_RequestBuilderPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_PayjoinFfiReceiveV1UncheckedProposal; + get rust_arc_increment_strong_count_RequestContext; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposal; + get rust_arc_decrement_strong_count_RequestContext; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposalPtr; + get rust_arc_decrement_strong_count_RequestContextPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_PayjoinFfiReceiveV2Enroller; + get rust_arc_increment_strong_count_OhttpKeys; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2Enroller; + get rust_arc_decrement_strong_count_OhttpKeys; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2EnrollerPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_OhttpKeysPtr; + + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_PjUri; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_PjUri; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_PjUriPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_PayjoinFfiReceiveV2V2UncheckedProposal; + get rust_arc_increment_strong_count_PjUriBuilder; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposal; + get rust_arc_decrement_strong_count_PjUriBuilder; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposalPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_PjUriBuilderPtr; + + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Uri; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Uri; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_UriPtr; + + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Url; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Url; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_UrlPtr; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_PayjoinFfiTypesOhttpKeys; + get rust_arc_increment_strong_count_MutexOptionClientResponse; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_PayjoinFfiTypesOhttpKeys; + get rust_arc_decrement_strong_count_MutexOptionClientResponse; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_PayjoinFfiTypesOhttpKeysPtr; + get rust_arc_decrement_strong_count_MutexOptionClientResponsePtr; } -class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform - implements PayjoinCoreApi { - PayjoinCoreApiImpl({ +class coreApiImpl extends coreApiImplPlatform implements coreApi { + coreApiImpl({ required super.handler, required super.wire, required super.generalizedFrbRustBinding, @@ -524,1335 +579,1559 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform }); @override - Future<((Url, Uint8List), ClientResponse)> enrolledExtractReq( - {required Enrolled ptr, dynamic hint}) { + Future crateApiIoFetchOhttpKeys( + {required FfiUrl ohttpRelay, + required FfiUrl payjoinDirectory, + required List certDer}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_enrolled(ptr); - return wire.wire_enrolled_extract_req(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_url(ohttpRelay); + var arg1 = cst_encode_box_autoadd_ffi_url(payjoinDirectory); + var arg2 = cst_encode_list_prim_u_8_loose(certDer); + return wire.wire__crate__api__io__fetch_ohttp_keys( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: - dco_decode_record_record_url_list_prim_u_8_strict_client_response, + decodeSuccessData: dco_decode_ffi_ohttp_keys, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kEnrolledExtractReqConstMeta, - argValues: [ptr], + constMeta: kCrateApiIoFetchOhttpKeysConstMeta, + argValues: [ohttpRelay, payjoinDirectory, certDer], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kEnrolledExtractReqConstMeta => const TaskConstMeta( - debugName: "enrolled_extract_req", - argNames: ["ptr"], + TaskConstMeta get kCrateApiIoFetchOhttpKeysConstMeta => const TaskConstMeta( + debugName: "fetch_ohttp_keys", + argNames: ["ohttpRelay", "payjoinDirectory", "certDer"], ); @override - Future enrolledFallbackTarget( - {required Enrolled that, dynamic hint}) { + Future<((FfiUrl, Uint8List), FfiClientResponse)> + crateApiReceiveFfiActiveSessionExtractReq( + {required FfiActiveSession ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_enrolled(that); - return wire.wire_enrolled_fallback_target(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_active_session(ptr); + return wire.wire__crate__api__receive__ffi_active_session_extract_req( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_String, - decodeErrorData: null, + decodeSuccessData: + dco_decode_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response, + decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kEnrolledFallbackTargetConstMeta, - argValues: [that], + constMeta: kCrateApiReceiveFfiActiveSessionExtractReqConstMeta, + argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kEnrolledFallbackTargetConstMeta => const TaskConstMeta( - debugName: "enrolled_fallback_target", - argNames: ["that"], + TaskConstMeta get kCrateApiReceiveFfiActiveSessionExtractReqConstMeta => + const TaskConstMeta( + debugName: "ffi_active_session_extract_req", + argNames: ["ptr"], ); @override - 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_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); + FfiPjUriBuilder crateApiReceiveFfiActiveSessionPjUriBuilder( + {required FfiActiveSession ptr}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_active_session(ptr); + return wire + .wire__crate__api__receive__ffi_active_session_pj_uri_builder(arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_opt_box_autoadd_v_2_unchecked_proposal, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_ffi_pj_uri_builder, + decodeErrorData: null, ), - constMeta: kEnrolledProcessResConstMeta, - argValues: [that, body, ctx], + constMeta: kCrateApiReceiveFfiActiveSessionPjUriBuilderConstMeta, + argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kEnrolledProcessResConstMeta => const TaskConstMeta( - debugName: "enrolled_process_res", - argNames: ["that", "body", "ctx"], + TaskConstMeta get kCrateApiReceiveFfiActiveSessionPjUriBuilderConstMeta => + const TaskConstMeta( + debugName: "ffi_active_session_pj_uri_builder", + argNames: ["ptr"], ); @override - Future<((Url, Uint8List), ClientResponse)> enrollerExtractReq( - {required Enroller ptr, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_enroller(ptr); - return wire.wire_enroller_extract_req(port_, arg0); + FfiUrl crateApiReceiveFfiActiveSessionPjUrl({required FfiActiveSession ptr}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_active_session(ptr); + return wire.wire__crate__api__receive__ffi_active_session_pj_url(arg0); }, codec: DcoCodec( - decodeSuccessData: - dco_decode_record_record_url_list_prim_u_8_strict_client_response, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_ffi_url, + decodeErrorData: null, ), - constMeta: kEnrollerExtractReqConstMeta, + constMeta: kCrateApiReceiveFfiActiveSessionPjUrlConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kEnrollerExtractReqConstMeta => const TaskConstMeta( - debugName: "enroller_extract_req", + TaskConstMeta get kCrateApiReceiveFfiActiveSessionPjUrlConstMeta => + const TaskConstMeta( + debugName: "ffi_active_session_pj_url", argNames: ["ptr"], ); @override - Future enrollerFromDirectoryConfig( - {required Url directory, - required OhttpKeys ohttpKeys, - required Url ohttpRelay, - dynamic hint}) { + Future crateApiReceiveFfiActiveSessionProcessRes( + {required FfiActiveSession that, + required List body, + required FfiClientResponse ctx}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_url(directory); - var arg1 = cst_encode_box_autoadd_ohttp_keys(ohttpKeys); - var arg2 = cst_encode_box_autoadd_url(ohttpRelay); - return wire.wire_enroller_from_directory_config( + var arg0 = cst_encode_box_autoadd_ffi_active_session(that); + var arg1 = cst_encode_list_prim_u_8_loose(body); + var arg2 = cst_encode_box_autoadd_ffi_client_response(ctx); + return wire.wire__crate__api__receive__ffi_active_session_process_res( port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_enroller, - decodeErrorData: null, + decodeSuccessData: + dco_decode_opt_box_autoadd_ffi_v_2_unchecked_proposal, + decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kEnrollerFromDirectoryConfigConstMeta, - argValues: [directory, ohttpKeys, ohttpRelay], + constMeta: kCrateApiReceiveFfiActiveSessionProcessResConstMeta, + argValues: [that, body, ctx], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kEnrollerFromDirectoryConfigConstMeta => + TaskConstMeta get kCrateApiReceiveFfiActiveSessionProcessResConstMeta => const TaskConstMeta( - debugName: "enroller_from_directory_config", - argNames: ["directory", "ohttpKeys", "ohttpRelay"], + debugName: "ffi_active_session_process_res", + argNames: ["that", "body", "ctx"], ); @override - 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_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); + String crateApiReceiveFfiActiveSessionPublicKey( + {required FfiActiveSession that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_active_session(that); + return wire + .wire__crate__api__receive__ffi_active_session_public_key(arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_enrolled, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_String, + decodeErrorData: null, ), - constMeta: kEnrollerProcessResConstMeta, - argValues: [that, body, ctx], + constMeta: kCrateApiReceiveFfiActiveSessionPublicKeyConstMeta, + argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kEnrollerProcessResConstMeta => const TaskConstMeta( - debugName: "enroller_process_res", - argNames: ["that", "body", "ctx"], + TaskConstMeta get kCrateApiReceiveFfiActiveSessionPublicKeyConstMeta => + const TaskConstMeta( + debugName: "ffi_active_session_public_key", + argNames: ["that"], ); @override - Future maybeInputsOwnedCheckInputsNotOwned( - {required MaybeInputsOwned ptr, - required FutureOr Function(Uint8List) isOwned, - dynamic hint}) { + Future + crateApiReceiveFfiMaybeInputsOwnedCheckInputsNotOwned( + {required FfiMaybeInputsOwned ptr, + required FutureOr Function(Uint8List) isOwned}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_maybe_inputs_owned(ptr); + var arg0 = cst_encode_box_autoadd_ffi_maybe_inputs_owned(ptr); var arg1 = - cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(isOwned); - return wire.wire_maybe_inputs_owned_check_inputs_not_owned( - port_, arg0, arg1); + cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + isOwned); + return wire + .wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_owned( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_maybe_mixed_input_scripts, + decodeSuccessData: dco_decode_ffi_maybe_mixed_input_scripts, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kMaybeInputsOwnedCheckInputsNotOwnedConstMeta, + constMeta: + kCrateApiReceiveFfiMaybeInputsOwnedCheckInputsNotOwnedConstMeta, argValues: [ptr, isOwned], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kMaybeInputsOwnedCheckInputsNotOwnedConstMeta => - const TaskConstMeta( - debugName: "maybe_inputs_owned_check_inputs_not_owned", - argNames: ["ptr", "isOwned"], - ); + TaskConstMeta + get kCrateApiReceiveFfiMaybeInputsOwnedCheckInputsNotOwnedConstMeta => + const TaskConstMeta( + debugName: "ffi_maybe_inputs_owned_check_inputs_not_owned", + argNames: ["ptr", "isOwned"], + ); @override - Future maybeInputsSeenCheckNoInputsSeenBefore( - {required MaybeInputsSeen ptr, - required FutureOr Function(OutPoint) isKnown, - dynamic hint}) { + Future + crateApiReceiveFfiMaybeInputsSeenCheckNoInputsSeenBefore( + {required FfiMaybeInputsSeen ptr, + required FutureOr Function(OutPoint) isKnown}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_maybe_inputs_seen(ptr); - var arg1 = cst_encode_DartFn_Inputs_out_point_Output_bool(isKnown); - return wire.wire_maybe_inputs_seen_check_no_inputs_seen_before( - port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_ffi_maybe_inputs_seen(ptr); + var arg1 = + cst_encode_DartFn_Inputs_out_point_Output_bool_AnyhowException( + isKnown); + return wire + .wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_before( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_outputs_unknown, + decodeSuccessData: dco_decode_ffi_outputs_unknown, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kMaybeInputsSeenCheckNoInputsSeenBeforeConstMeta, + constMeta: + kCrateApiReceiveFfiMaybeInputsSeenCheckNoInputsSeenBeforeConstMeta, argValues: [ptr, isKnown], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kMaybeInputsSeenCheckNoInputsSeenBeforeConstMeta => - const TaskConstMeta( - debugName: "maybe_inputs_seen_check_no_inputs_seen_before", - argNames: ["ptr", "isKnown"], - ); + TaskConstMeta + get kCrateApiReceiveFfiMaybeInputsSeenCheckNoInputsSeenBeforeConstMeta => + const TaskConstMeta( + debugName: "ffi_maybe_inputs_seen_check_no_inputs_seen_before", + argNames: ["ptr", "isKnown"], + ); @override - Future maybeMixedInputScriptsCheckNoMixedInputScripts( - {required MaybeMixedInputScripts ptr, dynamic hint}) { + Future + crateApiReceiveFfiMaybeMixedInputScriptsCheckNoMixedInputScripts( + {required FfiMaybeMixedInputScripts ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_maybe_mixed_input_scripts(ptr); - return wire.wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts( - port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_maybe_mixed_input_scripts(ptr); + return wire + .wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_maybe_inputs_seen, + decodeSuccessData: dco_decode_ffi_maybe_inputs_seen, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kMaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta, + constMeta: + kCrateApiReceiveFfiMaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kMaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta => - const TaskConstMeta( - debugName: "maybe_mixed_input_scripts_check_no_mixed_input_scripts", - argNames: ["ptr"], - ); + TaskConstMeta + get kCrateApiReceiveFfiMaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta => + const TaskConstMeta( + debugName: + "ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts", + argNames: ["ptr"], + ); @override - Future outputsUnknownIdentifyReceiverOutputs( - {required OutputsUnknown ptr, - required FutureOr Function(Uint8List) isReceiverOutput, - dynamic hint}) { + Future + crateApiReceiveFfiOutputsUnknownIdentifyReceiverOutputs( + {required FfiOutputsUnknown ptr, + required FutureOr Function(Uint8List) isReceiverOutput}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_outputs_unknown(ptr); - var arg1 = cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( - isReceiverOutput); - return wire.wire_outputs_unknown_identify_receiver_outputs( - port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_ffi_outputs_unknown(ptr); + var arg1 = + cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + isReceiverOutput); + return wire + .wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputs( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_provisional_proposal, + decodeSuccessData: dco_decode_ffi_provisional_proposal, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kOutputsUnknownIdentifyReceiverOutputsConstMeta, + constMeta: + kCrateApiReceiveFfiOutputsUnknownIdentifyReceiverOutputsConstMeta, argValues: [ptr, isReceiverOutput], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kOutputsUnknownIdentifyReceiverOutputsConstMeta => - const TaskConstMeta( - debugName: "outputs_unknown_identify_receiver_outputs", - argNames: ["ptr", "isReceiverOutput"], - ); + TaskConstMeta + get kCrateApiReceiveFfiOutputsUnknownIdentifyReceiverOutputsConstMeta => + const TaskConstMeta( + debugName: "ffi_outputs_unknown_identify_receiver_outputs", + argNames: ["ptr", "isReceiverOutput"], + ); @override - Future payjoinProposalIsOutputSubstitutionDisabled( - {required PayjoinProposal that, dynamic hint}) { + Future crateApiReceiveFfiPayjoinProposalIsOutputSubstitutionDisabled( + {required FfiPayjoinProposal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_payjoin_proposal(that); - return wire.wire_payjoin_proposal_is_output_substitution_disabled( - port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_payjoin_proposal(that); + return wire + .wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabled( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: null, ), - constMeta: kPayjoinProposalIsOutputSubstitutionDisabledConstMeta, + constMeta: + kCrateApiReceiveFfiPayjoinProposalIsOutputSubstitutionDisabledConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kPayjoinProposalIsOutputSubstitutionDisabledConstMeta => - const TaskConstMeta( - debugName: "payjoin_proposal_is_output_substitution_disabled", - argNames: ["that"], - ); + TaskConstMeta + get kCrateApiReceiveFfiPayjoinProposalIsOutputSubstitutionDisabledConstMeta => + const TaskConstMeta( + debugName: "ffi_payjoin_proposal_is_output_substitution_disabled", + argNames: ["that"], + ); @override - Future payjoinProposalOwnedVouts( - {required PayjoinProposal that, dynamic hint}) { + Future crateApiReceiveFfiPayjoinProposalOwnedVouts( + {required FfiPayjoinProposal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_payjoin_proposal(that); - return wire.wire_payjoin_proposal_owned_vouts(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_payjoin_proposal(that); + return wire.wire__crate__api__receive__ffi_payjoin_proposal_owned_vouts( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_64_strict, decodeErrorData: null, ), - constMeta: kPayjoinProposalOwnedVoutsConstMeta, + constMeta: kCrateApiReceiveFfiPayjoinProposalOwnedVoutsConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kPayjoinProposalOwnedVoutsConstMeta => const TaskConstMeta( - debugName: "payjoin_proposal_owned_vouts", + TaskConstMeta get kCrateApiReceiveFfiPayjoinProposalOwnedVoutsConstMeta => + const TaskConstMeta( + debugName: "ffi_payjoin_proposal_owned_vouts", argNames: ["that"], ); @override - Future payjoinProposalPsbt( - {required PayjoinProposal that, dynamic hint}) { + Future crateApiReceiveFfiPayjoinProposalPsbt( + {required FfiPayjoinProposal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_payjoin_proposal(that); - return wire.wire_payjoin_proposal_psbt(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_payjoin_proposal(that); + return wire.wire__crate__api__receive__ffi_payjoin_proposal_psbt( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kPayjoinProposalPsbtConstMeta, + constMeta: kCrateApiReceiveFfiPayjoinProposalPsbtConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kPayjoinProposalPsbtConstMeta => const TaskConstMeta( - debugName: "payjoin_proposal_psbt", + TaskConstMeta get kCrateApiReceiveFfiPayjoinProposalPsbtConstMeta => + const TaskConstMeta( + debugName: "ffi_payjoin_proposal_psbt", argNames: ["that"], ); @override - Future> payjoinProposalUtxosToBeLocked( - {required PayjoinProposal that, dynamic hint}) { + Future> crateApiReceiveFfiPayjoinProposalUtxosToBeLocked( + {required FfiPayjoinProposal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_payjoin_proposal(that); - return wire.wire_payjoin_proposal_utxos_to_be_locked(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_payjoin_proposal(that); + return wire + .wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_locked( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_out_point, decodeErrorData: null, ), - constMeta: kPayjoinProposalUtxosToBeLockedConstMeta, + constMeta: kCrateApiReceiveFfiPayjoinProposalUtxosToBeLockedConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kPayjoinProposalUtxosToBeLockedConstMeta => - const TaskConstMeta( - debugName: "payjoin_proposal_utxos_to_be_locked", - argNames: ["that"], - ); + TaskConstMeta + get kCrateApiReceiveFfiPayjoinProposalUtxosToBeLockedConstMeta => + const TaskConstMeta( + debugName: "ffi_payjoin_proposal_utxos_to_be_locked", + argNames: ["that"], + ); @override - Future provisionalProposalContributeNonWitnessInput( - {required ProvisionalProposal that, + Future crateApiReceiveFfiProvisionalProposalContributeNonWitnessInput( + {required FfiProvisionalProposal that, required List tx, - required OutPoint outpoint, - dynamic hint}) { + required OutPoint outpoint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_provisional_proposal(that); + var arg0 = cst_encode_box_autoadd_ffi_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_provisional_proposal_contribute_non_witness_input( - port_, arg0, arg1, arg2); + return wire + .wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_input( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kProvisionalProposalContributeNonWitnessInputConstMeta, + constMeta: + kCrateApiReceiveFfiProvisionalProposalContributeNonWitnessInputConstMeta, argValues: [that, tx, outpoint], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kProvisionalProposalContributeNonWitnessInputConstMeta => - const TaskConstMeta( - debugName: "provisional_proposal_contribute_non_witness_input", - argNames: ["that", "tx", "outpoint"], - ); + TaskConstMeta + get kCrateApiReceiveFfiProvisionalProposalContributeNonWitnessInputConstMeta => + const TaskConstMeta( + debugName: "ffi_provisional_proposal_contribute_non_witness_input", + argNames: ["that", "tx", "outpoint"], + ); @override - Future provisionalProposalContributeWitnessInput( - {required ProvisionalProposal that, + Future crateApiReceiveFfiProvisionalProposalContributeWitnessInput( + {required FfiProvisionalProposal that, required TxOut txo, - required OutPoint outpoint, - dynamic hint}) { + required OutPoint outpoint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_provisional_proposal(that); + var arg0 = cst_encode_box_autoadd_ffi_provisional_proposal(that); var arg1 = cst_encode_box_autoadd_tx_out(txo); var arg2 = cst_encode_box_autoadd_out_point(outpoint); - return wire.wire_provisional_proposal_contribute_witness_input( - port_, arg0, arg1, arg2); + return wire + .wire__crate__api__receive__ffi_provisional_proposal_contribute_witness_input( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kProvisionalProposalContributeWitnessInputConstMeta, + constMeta: + kCrateApiReceiveFfiProvisionalProposalContributeWitnessInputConstMeta, argValues: [that, txo, outpoint], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kProvisionalProposalContributeWitnessInputConstMeta => - const TaskConstMeta( - debugName: "provisional_proposal_contribute_witness_input", - argNames: ["that", "txo", "outpoint"], - ); + TaskConstMeta + get kCrateApiReceiveFfiProvisionalProposalContributeWitnessInputConstMeta => + const TaskConstMeta( + debugName: "ffi_provisional_proposal_contribute_witness_input", + argNames: ["that", "txo", "outpoint"], + ); @override - Future provisionalProposalFinalizeProposal( - {required ProvisionalProposal ptr, - required FutureOr Function(String) processPsbt, - int? minFeerateSatPerVb, - dynamic hint}) { + Future + crateApiReceiveFfiProvisionalProposalFinalizeProposal( + {required FfiProvisionalProposal ptr, + required FutureOr Function(String) processPsbt, + BigInt? minFeerateSatPerVb}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_provisional_proposal(ptr); - var arg1 = cst_encode_DartFn_Inputs_String_Output_String(processPsbt); + var arg0 = cst_encode_box_autoadd_ffi_provisional_proposal(ptr); + var arg1 = + cst_encode_DartFn_Inputs_String_Output_String_AnyhowException( + processPsbt); var arg2 = cst_encode_opt_box_autoadd_u_64(minFeerateSatPerVb); - return wire.wire_provisional_proposal_finalize_proposal( - port_, arg0, arg1, arg2); + return wire + .wire__crate__api__receive__ffi_provisional_proposal_finalize_proposal( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_payjoin_proposal, + decodeSuccessData: dco_decode_ffi_payjoin_proposal, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kProvisionalProposalFinalizeProposalConstMeta, + constMeta: + kCrateApiReceiveFfiProvisionalProposalFinalizeProposalConstMeta, argValues: [ptr, processPsbt, minFeerateSatPerVb], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kProvisionalProposalFinalizeProposalConstMeta => - const TaskConstMeta( - debugName: "provisional_proposal_finalize_proposal", - argNames: ["ptr", "processPsbt", "minFeerateSatPerVb"], - ); + TaskConstMeta + get kCrateApiReceiveFfiProvisionalProposalFinalizeProposalConstMeta => + const TaskConstMeta( + debugName: "ffi_provisional_proposal_finalize_proposal", + argNames: ["ptr", "processPsbt", "minFeerateSatPerVb"], + ); @override - Future provisionalProposalSubstituteOutputAddress( - {required ProvisionalProposal that, - required String address, - dynamic hint}) { + Future crateApiReceiveFfiProvisionalProposalTryPreservingPrivacy( + {required FfiProvisionalProposal that, + required Map candidateInputs}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_provisional_proposal(that); - var arg1 = cst_encode_String(address); - return wire.wire_provisional_proposal_substitute_output_address( - port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_ffi_provisional_proposal(that); + var arg1 = cst_encode_Map_u_64_out_point(candidateInputs); + return wire + .wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacy( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_unit, + decodeSuccessData: dco_decode_out_point, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kProvisionalProposalSubstituteOutputAddressConstMeta, - argValues: [that, address], + constMeta: + kCrateApiReceiveFfiProvisionalProposalTryPreservingPrivacyConstMeta, + argValues: [that, candidateInputs], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kProvisionalProposalSubstituteOutputAddressConstMeta => - const TaskConstMeta( - debugName: "provisional_proposal_substitute_output_address", - argNames: ["that", "address"], - ); + TaskConstMeta + get kCrateApiReceiveFfiProvisionalProposalTryPreservingPrivacyConstMeta => + const TaskConstMeta( + debugName: "ffi_provisional_proposal_try_preserving_privacy", + argNames: ["that", "candidateInputs"], + ); @override - Future provisionalProposalTryPreservingPrivacy( - {required ProvisionalProposal that, - required Map candidateInputs, - dynamic hint}) { + Future crateApiReceiveFfiProvisionalProposalTrySubstituteReceiverOutput( + {required FfiProvisionalProposal that, + required FutureOr Function() generateScript}) { 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_provisional_proposal_try_preserving_privacy( - port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_ffi_provisional_proposal(that); + var arg1 = + cst_encode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException( + generateScript); + return wire + .wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_output( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_out_point, + decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kProvisionalProposalTryPreservingPrivacyConstMeta, - argValues: [that, candidateInputs], + constMeta: + kCrateApiReceiveFfiProvisionalProposalTrySubstituteReceiverOutputConstMeta, + argValues: [that, generateScript], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kProvisionalProposalTryPreservingPrivacyConstMeta => - const TaskConstMeta( - debugName: "provisional_proposal_try_preserving_privacy", - argNames: ["that", "candidateInputs"], - ); + TaskConstMeta + get kCrateApiReceiveFfiProvisionalProposalTrySubstituteReceiverOutputConstMeta => + const TaskConstMeta( + debugName: + "ffi_provisional_proposal_try_substitute_receiver_output", + argNames: ["that", "generateScript"], + ); @override - Future uncheckedProposalAssumeInteractiveReceiver( - {required UncheckedProposal ptr, dynamic hint}) { + Future<((FfiUrl, Uint8List), FfiClientResponse)> + crateApiReceiveFfiSessionInitializerExtractReq( + {required FfiSessionInitializer ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_unchecked_proposal(ptr); - return wire.wire_unchecked_proposal_assume_interactive_receiver( - port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_session_initializer(ptr); + return wire + .wire__crate__api__receive__ffi_session_initializer_extract_req( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_maybe_inputs_owned, - decodeErrorData: null, + decodeSuccessData: + dco_decode_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response, + decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUncheckedProposalAssumeInteractiveReceiverConstMeta, + constMeta: kCrateApiReceiveFfiSessionInitializerExtractReqConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUncheckedProposalAssumeInteractiveReceiverConstMeta => + TaskConstMeta get kCrateApiReceiveFfiSessionInitializerExtractReqConstMeta => const TaskConstMeta( - debugName: "unchecked_proposal_assume_interactive_receiver", + debugName: "ffi_session_initializer_extract_req", argNames: ["ptr"], ); @override - Future uncheckedProposalCheckBroadcastSuitability( - {required UncheckedProposal ptr, - int? minFeeRate, - required FutureOr Function(Uint8List) canBroadcast, - dynamic hint}) { + Future crateApiReceiveFfiSessionInitializerNew( + {required String address, + BigInt? expireAfter, + required Network network, + required FfiUrl directory, + required FfiOhttpKeys ohttpKeys, + required FfiUrl ohttpRelay}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_unchecked_proposal(ptr); - 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_unchecked_proposal_check_broadcast_suitability( - port_, arg0, arg1, arg2); + var arg0 = cst_encode_String(address); + var arg1 = cst_encode_opt_box_autoadd_u_64(expireAfter); + var arg2 = cst_encode_network(network); + var arg3 = cst_encode_box_autoadd_ffi_url(directory); + var arg4 = cst_encode_box_autoadd_ffi_ohttp_keys(ohttpKeys); + var arg5 = cst_encode_box_autoadd_ffi_url(ohttpRelay); + return wire.wire__crate__api__receive__ffi_session_initializer_new( + port_, arg0, arg1, arg2, arg3, arg4, arg5); }, codec: DcoCodec( - decodeSuccessData: dco_decode_maybe_inputs_owned, + decodeSuccessData: dco_decode_ffi_session_initializer, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUncheckedProposalCheckBroadcastSuitabilityConstMeta, - argValues: [ptr, minFeeRate, canBroadcast], + constMeta: kCrateApiReceiveFfiSessionInitializerNewConstMeta, + argValues: [ + address, + expireAfter, + network, + directory, + ohttpKeys, + ohttpRelay + ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUncheckedProposalCheckBroadcastSuitabilityConstMeta => + TaskConstMeta get kCrateApiReceiveFfiSessionInitializerNewConstMeta => const TaskConstMeta( - debugName: "unchecked_proposal_check_broadcast_suitability", - argNames: ["ptr", "minFeeRate", "canBroadcast"], + debugName: "ffi_session_initializer_new", + argNames: [ + "address", + "expireAfter", + "network", + "directory", + "ohttpKeys", + "ohttpRelay" + ], ); @override - Future uncheckedProposalExtractTxToScheduleBroadcast( - {required UncheckedProposal that, dynamic hint}) { + Future crateApiReceiveFfiSessionInitializerProcessRes( + {required FfiSessionInitializer that, + required List body, + required FfiClientResponse ctx}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_unchecked_proposal(that); - return wire.wire_unchecked_proposal_extract_tx_to_schedule_broadcast( - port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_session_initializer(that); + var arg1 = cst_encode_list_prim_u_8_loose(body); + var arg2 = cst_encode_box_autoadd_ffi_client_response(ctx); + return wire + .wire__crate__api__receive__ffi_session_initializer_process_res( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_list_prim_u_8_strict, - decodeErrorData: null, + decodeSuccessData: dco_decode_ffi_active_session, + decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUncheckedProposalExtractTxToScheduleBroadcastConstMeta, - argValues: [that], + constMeta: kCrateApiReceiveFfiSessionInitializerProcessResConstMeta, + argValues: [that, body, ctx], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUncheckedProposalExtractTxToScheduleBroadcastConstMeta => + TaskConstMeta get kCrateApiReceiveFfiSessionInitializerProcessResConstMeta => const TaskConstMeta( - debugName: "unchecked_proposal_extract_tx_to_schedule_broadcast", - argNames: ["that"], + debugName: "ffi_session_initializer_process_res", + argNames: ["that", "body", "ctx"], ); @override - Future uncheckedProposalFromRequest( - {required List body, - required String query, - required Headers headers, - dynamic hint}) { + Future + crateApiReceiveFfiUncheckedProposalAssumeInteractiveReceiver( + {required FfiUncheckedProposal ptr}) { 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_unchecked_proposal_from_request( - port_, arg0, arg1, arg2); + var arg0 = cst_encode_box_autoadd_ffi_unchecked_proposal(ptr); + return wire + .wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiver( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_unchecked_proposal, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_ffi_maybe_inputs_owned, + decodeErrorData: null, ), - constMeta: kUncheckedProposalFromRequestConstMeta, - argValues: [body, query, headers], + constMeta: + kCrateApiReceiveFfiUncheckedProposalAssumeInteractiveReceiverConstMeta, + argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUncheckedProposalFromRequestConstMeta => - const TaskConstMeta( - debugName: "unchecked_proposal_from_request", - argNames: ["body", "query", "headers"], - ); + TaskConstMeta + get kCrateApiReceiveFfiUncheckedProposalAssumeInteractiveReceiverConstMeta => + const TaskConstMeta( + debugName: "ffi_unchecked_proposal_assume_interactive_receiver", + argNames: ["ptr"], + ); @override - Future v2MaybeInputsOwnedCheckInputsNotOwned( - {required V2MaybeInputsOwned that, - required FutureOr Function(Uint8List) isOwned, - dynamic hint}) { + Future + crateApiReceiveFfiUncheckedProposalCheckBroadcastSuitability( + {required FfiUncheckedProposal ptr, + BigInt? minFeeRate, + required FutureOr Function(Uint8List) canBroadcast}) { 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_v_2_maybe_inputs_owned_check_inputs_not_owned( - port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_ffi_unchecked_proposal(ptr); + var arg1 = cst_encode_opt_box_autoadd_u_64(minFeeRate); + var arg2 = + cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + canBroadcast); + return wire + .wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitability( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_v_2_maybe_mixed_input_scripts, + decodeSuccessData: dco_decode_ffi_maybe_inputs_owned, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kV2MaybeInputsOwnedCheckInputsNotOwnedConstMeta, - argValues: [that, isOwned], + constMeta: + kCrateApiReceiveFfiUncheckedProposalCheckBroadcastSuitabilityConstMeta, + argValues: [ptr, minFeeRate, canBroadcast], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2MaybeInputsOwnedCheckInputsNotOwnedConstMeta => - const TaskConstMeta( - debugName: "v_2_maybe_inputs_owned_check_inputs_not_owned", - argNames: ["that", "isOwned"], - ); + TaskConstMeta + get kCrateApiReceiveFfiUncheckedProposalCheckBroadcastSuitabilityConstMeta => + const TaskConstMeta( + debugName: "ffi_unchecked_proposal_check_broadcast_suitability", + argNames: ["ptr", "minFeeRate", "canBroadcast"], + ); @override - Future v2MaybeInputsSeenCheckNoInputsSeenBefore( - {required V2MaybeInputsSeen that, - required FutureOr Function(OutPoint) isKnown, - dynamic hint}) { + Future + crateApiReceiveFfiUncheckedProposalExtractTxToScheduleBroadcast( + {required FfiUncheckedProposal that}) { 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_v_2_maybe_inputs_seen_check_no_inputs_seen_before( - port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_ffi_unchecked_proposal(that); + return wire + .wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcast( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_v_2_outputs_unknown, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_list_prim_u_8_strict, + decodeErrorData: null, ), - constMeta: kV2MaybeInputsSeenCheckNoInputsSeenBeforeConstMeta, - argValues: [that, isKnown], + constMeta: + kCrateApiReceiveFfiUncheckedProposalExtractTxToScheduleBroadcastConstMeta, + argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2MaybeInputsSeenCheckNoInputsSeenBeforeConstMeta => - const TaskConstMeta( - debugName: "v_2_maybe_inputs_seen_check_no_inputs_seen_before", - argNames: ["that", "isKnown"], - ); - - @override - Future v2MaybeMixedInputScriptsCheckNoMixedInputScripts( - {required V2MaybeMixedInputScripts that, dynamic hint}) { + TaskConstMeta + get kCrateApiReceiveFfiUncheckedProposalExtractTxToScheduleBroadcastConstMeta => + const TaskConstMeta( + debugName: + "ffi_unchecked_proposal_extract_tx_to_schedule_broadcast", + argNames: ["that"], + ); + + @override + Future crateApiReceiveFfiUncheckedProposalFromRequest( + {required List body, + required String query, + required Headers headers}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_maybe_mixed_input_scripts(that); + 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_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( - port_, arg0); + .wire__crate__api__receive__ffi_unchecked_proposal_from_request( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_v_2_maybe_inputs_seen, + decodeSuccessData: dco_decode_ffi_unchecked_proposal, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kV2MaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta, - argValues: [that], + constMeta: kCrateApiReceiveFfiUncheckedProposalFromRequestConstMeta, + argValues: [body, query, headers], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiReceiveFfiUncheckedProposalFromRequestConstMeta => + const TaskConstMeta( + debugName: "ffi_unchecked_proposal_from_request", + argNames: ["body", "query", "headers"], + ); + + @override + Future + crateApiReceiveFfiV2MaybeInputsOwnedCheckInputsNotOwned( + {required FfiV2MaybeInputsOwned that, + required FutureOr Function(Uint8List) isOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_ffi_v_2_maybe_inputs_owned(that); + var arg1 = + cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + isOwned); + return wire + .wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_owned( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_v_2_maybe_mixed_input_scripts, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: + kCrateApiReceiveFfiV2MaybeInputsOwnedCheckInputsNotOwnedConstMeta, + argValues: [that, isOwned], apiImpl: this, - hint: hint, )); } TaskConstMeta - get kV2MaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta => + get kCrateApiReceiveFfiV2MaybeInputsOwnedCheckInputsNotOwnedConstMeta => const TaskConstMeta( - debugName: - "v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts", - argNames: ["that"], + debugName: "ffi_v_2_maybe_inputs_owned_check_inputs_not_owned", + argNames: ["that", "isOwned"], ); @override - Future v2OutputsUnknownIdentifyReceiverOutputs( - {required V2OutputsUnknown that, - required FutureOr Function(Uint8List) isReceiverOutput, - dynamic hint}) { + Future + crateApiReceiveFfiV2MaybeInputsSeenCheckNoInputsSeenBefore( + {required FfiV2MaybeInputsSeen that, + required FutureOr Function(OutPoint) isKnown}) { 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_v_2_outputs_unknown_identify_receiver_outputs( - port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_ffi_v_2_maybe_inputs_seen(that); + var arg1 = + cst_encode_DartFn_Inputs_out_point_Output_bool_AnyhowException( + isKnown); + return wire + .wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_before( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_v_2_provisional_proposal, + decodeSuccessData: dco_decode_ffi_v_2_outputs_unknown, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kV2OutputsUnknownIdentifyReceiverOutputsConstMeta, - argValues: [that, isReceiverOutput], + constMeta: + kCrateApiReceiveFfiV2MaybeInputsSeenCheckNoInputsSeenBeforeConstMeta, + argValues: [that, isKnown], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2OutputsUnknownIdentifyReceiverOutputsConstMeta => - const TaskConstMeta( - debugName: "v_2_outputs_unknown_identify_receiver_outputs", - argNames: ["that", "isReceiverOutput"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2MaybeInputsSeenCheckNoInputsSeenBeforeConstMeta => + const TaskConstMeta( + debugName: "ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_before", + argNames: ["that", "isKnown"], + ); @override - Future v2PayjoinProposalDeserializeRes( - {required V2PayjoinProposal that, - required List res, - required ClientResponse ohttpContext, - dynamic hint}) { + Future + crateApiReceiveFfiV2MaybeMixedInputScriptsCheckNoMixedInputScripts( + {required FfiV2MaybeMixedInputScripts that}) { 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_v_2_payjoin_proposal_deserialize_res( - port_, arg0, arg1, arg2); + var arg0 = + cst_encode_box_autoadd_ffi_v_2_maybe_mixed_input_scripts(that); + return wire + .wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_list_prim_u_8_strict, + decodeSuccessData: dco_decode_ffi_v_2_maybe_inputs_seen, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kV2PayjoinProposalDeserializeResConstMeta, - argValues: [that, res, ohttpContext], + constMeta: + kCrateApiReceiveFfiV2MaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta, + argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2PayjoinProposalDeserializeResConstMeta => - const TaskConstMeta( - debugName: "v_2_payjoin_proposal_deserialize_res", - argNames: ["that", "res", "ohttpContext"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2MaybeMixedInputScriptsCheckNoMixedInputScriptsConstMeta => + const TaskConstMeta( + debugName: + "ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts", + argNames: ["that"], + ); + + @override + Future + crateApiReceiveFfiV2OutputsUnknownIdentifyReceiverOutputs( + {required FfiV2OutputsUnknown that, + required FutureOr Function(Uint8List) isReceiverOutput}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_ffi_v_2_outputs_unknown(that); + var arg1 = + cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + isReceiverOutput); + return wire + .wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputs( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_v_2_provisional_proposal, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: + kCrateApiReceiveFfiV2OutputsUnknownIdentifyReceiverOutputsConstMeta, + argValues: [that, isReceiverOutput], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiReceiveFfiV2OutputsUnknownIdentifyReceiverOutputsConstMeta => + const TaskConstMeta( + debugName: "ffi_v_2_outputs_unknown_identify_receiver_outputs", + argNames: ["that", "isReceiverOutput"], + ); @override - Future v2PayjoinProposalExtractV1Req( - {required V2PayjoinProposal that, dynamic hint}) { + Future crateApiReceiveFfiV2PayjoinProposalExtractV1Req( + {required FfiV2PayjoinProposal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); - return wire.wire_v_2_payjoin_proposal_extract_v1_req(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_v_2_payjoin_proposal(that); + return wire + .wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_req( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kV2PayjoinProposalExtractV1ReqConstMeta, + constMeta: kCrateApiReceiveFfiV2PayjoinProposalExtractV1ReqConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2PayjoinProposalExtractV1ReqConstMeta => + TaskConstMeta get kCrateApiReceiveFfiV2PayjoinProposalExtractV1ReqConstMeta => const TaskConstMeta( - debugName: "v_2_payjoin_proposal_extract_v1_req", + debugName: "ffi_v_2_payjoin_proposal_extract_v1_req", argNames: ["that"], ); @override - Future<((Url, Uint8List), ClientResponse)> v2PayjoinProposalExtractV2Req( - {required V2PayjoinProposal ptr, dynamic hint}) { + Future<((FfiUrl, Uint8List), FfiClientResponse)> + crateApiReceiveFfiV2PayjoinProposalExtractV2Req( + {required FfiV2PayjoinProposal ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(ptr); - return wire.wire_v_2_payjoin_proposal_extract_v2_req(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_v_2_payjoin_proposal(ptr); + return wire + .wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_req( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: - dco_decode_record_record_url_list_prim_u_8_strict_client_response, + dco_decode_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kV2PayjoinProposalExtractV2ReqConstMeta, + constMeta: kCrateApiReceiveFfiV2PayjoinProposalExtractV2ReqConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2PayjoinProposalExtractV2ReqConstMeta => + TaskConstMeta get kCrateApiReceiveFfiV2PayjoinProposalExtractV2ReqConstMeta => const TaskConstMeta( - debugName: "v_2_payjoin_proposal_extract_v2_req", + debugName: "ffi_v_2_payjoin_proposal_extract_v2_req", argNames: ["ptr"], ); @override - Future v2PayjoinProposalIsOutputSubstitutionDisabled( - {required V2PayjoinProposal that, dynamic hint}) { + Future crateApiReceiveFfiV2PayjoinProposalIsOutputSubstitutionDisabled( + {required FfiV2PayjoinProposal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); - return wire.wire_v_2_payjoin_proposal_is_output_substitution_disabled( - port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_v_2_payjoin_proposal(that); + return wire + .wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabled( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_bool, decodeErrorData: null, ), - constMeta: kV2PayjoinProposalIsOutputSubstitutionDisabledConstMeta, + constMeta: + kCrateApiReceiveFfiV2PayjoinProposalIsOutputSubstitutionDisabledConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2PayjoinProposalIsOutputSubstitutionDisabledConstMeta => - const TaskConstMeta( - debugName: "v_2_payjoin_proposal_is_output_substitution_disabled", - argNames: ["that"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2PayjoinProposalIsOutputSubstitutionDisabledConstMeta => + const TaskConstMeta( + debugName: + "ffi_v_2_payjoin_proposal_is_output_substitution_disabled", + argNames: ["that"], + ); @override - Future v2PayjoinProposalOwnedVouts( - {required V2PayjoinProposal that, dynamic hint}) { + Future crateApiReceiveFfiV2PayjoinProposalOwnedVouts( + {required FfiV2PayjoinProposal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); - return wire.wire_v_2_payjoin_proposal_owned_vouts(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_v_2_payjoin_proposal(that); + return wire + .wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_vouts( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_64_strict, decodeErrorData: null, ), - constMeta: kV2PayjoinProposalOwnedVoutsConstMeta, + constMeta: kCrateApiReceiveFfiV2PayjoinProposalOwnedVoutsConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2PayjoinProposalOwnedVoutsConstMeta => + TaskConstMeta get kCrateApiReceiveFfiV2PayjoinProposalOwnedVoutsConstMeta => const TaskConstMeta( - debugName: "v_2_payjoin_proposal_owned_vouts", + debugName: "ffi_v_2_payjoin_proposal_owned_vouts", argNames: ["that"], ); @override - Future v2PayjoinProposalPsbt( - {required V2PayjoinProposal that, dynamic hint}) { + Future crateApiReceiveFfiV2PayjoinProposalProcessRes( + {required FfiV2PayjoinProposal that, + required List res, + required FfiClientResponse ohttpContext}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_ffi_v_2_payjoin_proposal(that); + var arg1 = cst_encode_list_prim_u_8_loose(res); + var arg2 = cst_encode_box_autoadd_ffi_client_response(ohttpContext); + return wire + .wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_res( + port_, arg0, arg1, arg2); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unit, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kCrateApiReceiveFfiV2PayjoinProposalProcessResConstMeta, + argValues: [that, res, ohttpContext], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiReceiveFfiV2PayjoinProposalProcessResConstMeta => + const TaskConstMeta( + debugName: "ffi_v_2_payjoin_proposal_process_res", + argNames: ["that", "res", "ohttpContext"], + ); + + @override + Future crateApiReceiveFfiV2PayjoinProposalPsbt( + {required FfiV2PayjoinProposal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); - return wire.wire_v_2_payjoin_proposal_psbt(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_v_2_payjoin_proposal(that); + return wire.wire__crate__api__receive__ffi_v_2_payjoin_proposal_psbt( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kV2PayjoinProposalPsbtConstMeta, + constMeta: kCrateApiReceiveFfiV2PayjoinProposalPsbtConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2PayjoinProposalPsbtConstMeta => const TaskConstMeta( - debugName: "v_2_payjoin_proposal_psbt", + TaskConstMeta get kCrateApiReceiveFfiV2PayjoinProposalPsbtConstMeta => + const TaskConstMeta( + debugName: "ffi_v_2_payjoin_proposal_psbt", argNames: ["that"], ); @override - Future> v2PayjoinProposalUtxosToBeLocked( - {required V2PayjoinProposal that, dynamic hint}) { + Future> crateApiReceiveFfiV2PayjoinProposalUtxosToBeLocked( + {required FfiV2PayjoinProposal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_payjoin_proposal(that); - return wire.wire_v_2_payjoin_proposal_utxos_to_be_locked(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_v_2_payjoin_proposal(that); + return wire + .wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_locked( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_out_point, decodeErrorData: null, ), - constMeta: kV2PayjoinProposalUtxosToBeLockedConstMeta, + constMeta: kCrateApiReceiveFfiV2PayjoinProposalUtxosToBeLockedConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2PayjoinProposalUtxosToBeLockedConstMeta => - const TaskConstMeta( - debugName: "v_2_payjoin_proposal_utxos_to_be_locked", - argNames: ["that"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2PayjoinProposalUtxosToBeLockedConstMeta => + const TaskConstMeta( + debugName: "ffi_v_2_payjoin_proposal_utxos_to_be_locked", + argNames: ["that"], + ); @override - Future v2ProvisionalProposalContributeNonWitnessInput( - {required V2ProvisionalProposal that, + Future crateApiReceiveFfiV2ProvisionalProposalContributeNonWitnessInput( + {required FfiV2ProvisionalProposal that, required List tx, - required OutPoint outpoint, - dynamic hint}) { + required OutPoint outpoint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_provisional_proposal(that); + var arg0 = cst_encode_box_autoadd_ffi_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_v_2_provisional_proposal_contribute_non_witness_input( - port_, arg0, arg1, arg2); + return wire + .wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_input( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kV2ProvisionalProposalContributeNonWitnessInputConstMeta, + constMeta: + kCrateApiReceiveFfiV2ProvisionalProposalContributeNonWitnessInputConstMeta, argValues: [that, tx, outpoint], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2ProvisionalProposalContributeNonWitnessInputConstMeta => - const TaskConstMeta( - debugName: "v_2_provisional_proposal_contribute_non_witness_input", - argNames: ["that", "tx", "outpoint"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2ProvisionalProposalContributeNonWitnessInputConstMeta => + const TaskConstMeta( + debugName: + "ffi_v_2_provisional_proposal_contribute_non_witness_input", + argNames: ["that", "tx", "outpoint"], + ); @override - Future v2ProvisionalProposalContributeWitnessInput( - {required V2ProvisionalProposal that, + Future crateApiReceiveFfiV2ProvisionalProposalContributeWitnessInput( + {required FfiV2ProvisionalProposal that, required TxOut txo, - required OutPoint outpoint, - dynamic hint}) { + required OutPoint outpoint}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_provisional_proposal(that); + var arg0 = cst_encode_box_autoadd_ffi_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_v_2_provisional_proposal_contribute_witness_input( - port_, arg0, arg1, arg2); + return wire + .wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_input( + port_, arg0, arg1, arg2); }, codec: DcoCodec( decodeSuccessData: dco_decode_unit, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kV2ProvisionalProposalContributeWitnessInputConstMeta, + constMeta: + kCrateApiReceiveFfiV2ProvisionalProposalContributeWitnessInputConstMeta, argValues: [that, txo, outpoint], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2ProvisionalProposalContributeWitnessInputConstMeta => - const TaskConstMeta( - debugName: "v_2_provisional_proposal_contribute_witness_input", - argNames: ["that", "txo", "outpoint"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2ProvisionalProposalContributeWitnessInputConstMeta => + const TaskConstMeta( + debugName: "ffi_v_2_provisional_proposal_contribute_witness_input", + argNames: ["that", "txo", "outpoint"], + ); @override - Future v2ProvisionalProposalFinalizeProposal( - {required V2ProvisionalProposal that, - required FutureOr Function(String) processPsbt, - int? minFeerateSatPerVb, - dynamic hint}) { + Future + crateApiReceiveFfiV2ProvisionalProposalFinalizeProposal( + {required FfiV2ProvisionalProposal that, + required FutureOr Function(String) processPsbt, + BigInt? minFeerateSatPerVb}) { 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 arg0 = cst_encode_box_autoadd_ffi_v_2_provisional_proposal(that); + var arg1 = + cst_encode_DartFn_Inputs_String_Output_String_AnyhowException( + processPsbt); var arg2 = cst_encode_opt_box_autoadd_u_64(minFeerateSatPerVb); - return wire.wire_v_2_provisional_proposal_finalize_proposal( - port_, arg0, arg1, arg2); + return wire + .wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposal( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_v_2_payjoin_proposal, + decodeSuccessData: dco_decode_ffi_v_2_payjoin_proposal, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kV2ProvisionalProposalFinalizeProposalConstMeta, + constMeta: + kCrateApiReceiveFfiV2ProvisionalProposalFinalizeProposalConstMeta, argValues: [that, processPsbt, minFeerateSatPerVb], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2ProvisionalProposalFinalizeProposalConstMeta => - const TaskConstMeta( - debugName: "v_2_provisional_proposal_finalize_proposal", - argNames: ["that", "processPsbt", "minFeerateSatPerVb"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2ProvisionalProposalFinalizeProposalConstMeta => + const TaskConstMeta( + debugName: "ffi_v_2_provisional_proposal_finalize_proposal", + argNames: ["that", "processPsbt", "minFeerateSatPerVb"], + ); @override - Future v2ProvisionalProposalSubstituteOutputAddress( - {required V2ProvisionalProposal that, - required String address, - dynamic hint}) { + Future + crateApiReceiveFfiV2ProvisionalProposalIsOutputSubstitutionDisabled( + {required FfiV2ProvisionalProposal that}) { 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_v_2_provisional_proposal_substitute_output_address( - port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_ffi_v_2_provisional_proposal(that); + return wire + .wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabled( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_unit, - decodeErrorData: dco_decode_payjoin_error, + decodeSuccessData: dco_decode_bool, + decodeErrorData: null, ), - constMeta: kV2ProvisionalProposalSubstituteOutputAddressConstMeta, - argValues: [that, address], + constMeta: + kCrateApiReceiveFfiV2ProvisionalProposalIsOutputSubstitutionDisabledConstMeta, + argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2ProvisionalProposalSubstituteOutputAddressConstMeta => - const TaskConstMeta( - debugName: "v_2_provisional_proposal_substitute_output_address", - argNames: ["that", "address"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2ProvisionalProposalIsOutputSubstitutionDisabledConstMeta => + const TaskConstMeta( + debugName: + "ffi_v_2_provisional_proposal_is_output_substitution_disabled", + argNames: ["that"], + ); @override - Future v2ProvisionalProposalTryPreservingPrivacy( - {required V2ProvisionalProposal that, - required Map candidateInputs, - dynamic hint}) { + Future crateApiReceiveFfiV2ProvisionalProposalTryPreservingPrivacy( + {required FfiV2ProvisionalProposal that, + required Map candidateInputs}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_provisional_proposal(that); + var arg0 = cst_encode_box_autoadd_ffi_v_2_provisional_proposal(that); var arg1 = cst_encode_Map_u_64_out_point(candidateInputs); - return wire.wire_v_2_provisional_proposal_try_preserving_privacy( - port_, arg0, arg1); + return wire + .wire__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacy( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_out_point, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kV2ProvisionalProposalTryPreservingPrivacyConstMeta, + constMeta: + kCrateApiReceiveFfiV2ProvisionalProposalTryPreservingPrivacyConstMeta, argValues: [that, candidateInputs], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2ProvisionalProposalTryPreservingPrivacyConstMeta => - const TaskConstMeta( - debugName: "v_2_provisional_proposal_try_preserving_privacy", - argNames: ["that", "candidateInputs"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2ProvisionalProposalTryPreservingPrivacyConstMeta => + const TaskConstMeta( + debugName: "ffi_v_2_provisional_proposal_try_preserving_privacy", + argNames: ["that", "candidateInputs"], + ); @override - Future v2UncheckedProposalAssumeInteractiveReceiver( - {required V2UncheckedProposal that, dynamic hint}) { + Future + crateApiReceiveFfiV2ProvisionalProposalTrySubstituteReceiverOutput( + {required FfiV2ProvisionalProposal that, + required FutureOr Function() generateScript}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_unchecked_proposal(that); - return wire.wire_v_2_unchecked_proposal_assume_interactive_receiver( - port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_v_2_provisional_proposal(that); + var arg1 = + cst_encode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException( + generateScript); + return wire + .wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_output( + port_, arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_unit, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: + kCrateApiReceiveFfiV2ProvisionalProposalTrySubstituteReceiverOutputConstMeta, + argValues: [that, generateScript], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiReceiveFfiV2ProvisionalProposalTrySubstituteReceiverOutputConstMeta => + const TaskConstMeta( + debugName: + "ffi_v_2_provisional_proposal_try_substitute_receiver_output", + argNames: ["that", "generateScript"], + ); + + @override + Future + crateApiReceiveFfiV2UncheckedProposalAssumeInteractiveReceiver( + {required FfiV2UncheckedProposal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_box_autoadd_ffi_v_2_unchecked_proposal(that); + return wire + .wire__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiver( + port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_v_2_maybe_inputs_owned, + decodeSuccessData: dco_decode_ffi_v_2_maybe_inputs_owned, decodeErrorData: null, ), - constMeta: kV2UncheckedProposalAssumeInteractiveReceiverConstMeta, + constMeta: + kCrateApiReceiveFfiV2UncheckedProposalAssumeInteractiveReceiverConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2UncheckedProposalAssumeInteractiveReceiverConstMeta => - const TaskConstMeta( - debugName: "v_2_unchecked_proposal_assume_interactive_receiver", - argNames: ["that"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2UncheckedProposalAssumeInteractiveReceiverConstMeta => + const TaskConstMeta( + debugName: "ffi_v_2_unchecked_proposal_assume_interactive_receiver", + argNames: ["that"], + ); @override - Future v2UncheckedProposalCheckBroadcastSuitability( - {required V2UncheckedProposal that, - int? minFeeRate, - required FutureOr Function(Uint8List) canBroadcast, - dynamic hint}) { + Future + crateApiReceiveFfiV2UncheckedProposalCheckBroadcastSuitability( + {required FfiV2UncheckedProposal that, + BigInt? minFeeRate, + required FutureOr Function(Uint8List) canBroadcast}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_unchecked_proposal(that); + var arg0 = cst_encode_box_autoadd_ffi_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_v_2_unchecked_proposal_check_broadcast_suitability( - port_, arg0, arg1, arg2); + var arg2 = + cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + canBroadcast); + return wire + .wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitability( + port_, arg0, arg1, arg2); }, codec: DcoCodec( - decodeSuccessData: dco_decode_v_2_maybe_inputs_owned, + decodeSuccessData: dco_decode_ffi_v_2_maybe_inputs_owned, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kV2UncheckedProposalCheckBroadcastSuitabilityConstMeta, + constMeta: + kCrateApiReceiveFfiV2UncheckedProposalCheckBroadcastSuitabilityConstMeta, argValues: [that, minFeeRate, canBroadcast], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2UncheckedProposalCheckBroadcastSuitabilityConstMeta => - const TaskConstMeta( - debugName: "v_2_unchecked_proposal_check_broadcast_suitability", - argNames: ["that", "minFeeRate", "canBroadcast"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2UncheckedProposalCheckBroadcastSuitabilityConstMeta => + const TaskConstMeta( + debugName: "ffi_v_2_unchecked_proposal_check_broadcast_suitability", + argNames: ["that", "minFeeRate", "canBroadcast"], + ); @override - Future v2UncheckedProposalExtractTxToScheduleBroadcast( - {required V2UncheckedProposal that, dynamic hint}) { + Future + crateApiReceiveFfiV2UncheckedProposalExtractTxToScheduleBroadcast( + {required FfiV2UncheckedProposal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_v_2_unchecked_proposal(that); + var arg0 = cst_encode_box_autoadd_ffi_v_2_unchecked_proposal(that); return wire - .wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( + .wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_list_prim_u_8_strict, decodeErrorData: null, ), - constMeta: kV2UncheckedProposalExtractTxToScheduleBroadcastConstMeta, + constMeta: + kCrateApiReceiveFfiV2UncheckedProposalExtractTxToScheduleBroadcastConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kV2UncheckedProposalExtractTxToScheduleBroadcastConstMeta => - const TaskConstMeta( - debugName: "v_2_unchecked_proposal_extract_tx_to_schedule_broadcast", - argNames: ["that"], - ); + TaskConstMeta + get kCrateApiReceiveFfiV2UncheckedProposalExtractTxToScheduleBroadcastConstMeta => + const TaskConstMeta( + debugName: + "ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast", + argNames: ["that"], + ); @override - Future contextV1ProcessResponse( - {required ContextV1 that, required List response, dynamic hint}) { + Future crateApiSendFfiContextV1ProcessResponse( + {required FfiContextV1 that, required List response}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_context_v_1(that); + var arg0 = cst_encode_box_autoadd_ffi_context_v_1(that); var arg1 = cst_encode_list_prim_u_8_loose(response); - return wire.wire_context_v_1_process_response(port_, arg0, arg1); + return wire.wire__crate__api__send__ffi_context_v_1_process_response( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kContextV1ProcessResponseConstMeta, + constMeta: kCrateApiSendFfiContextV1ProcessResponseConstMeta, argValues: [that, response], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kContextV1ProcessResponseConstMeta => const TaskConstMeta( - debugName: "context_v_1_process_response", + TaskConstMeta get kCrateApiSendFfiContextV1ProcessResponseConstMeta => + const TaskConstMeta( + debugName: "ffi_context_v_1_process_response", argNames: ["that", "response"], ); @override - Future contextV2ProcessResponse( - {required ContextV2 that, required List response, dynamic hint}) { + Future crateApiSendFfiContextV2ProcessResponse( + {required FfiContextV2 that, required List response}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_context_v_2(that); + var arg0 = cst_encode_box_autoadd_ffi_context_v_2(that); var arg1 = cst_encode_list_prim_u_8_loose(response); - return wire.wire_context_v_2_process_response(port_, arg0, arg1); + return wire.wire__crate__api__send__ffi_context_v_2_process_response( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_String, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kContextV2ProcessResponseConstMeta, + constMeta: kCrateApiSendFfiContextV2ProcessResponseConstMeta, argValues: [that, response], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kContextV2ProcessResponseConstMeta => const TaskConstMeta( - debugName: "context_v_2_process_response", + TaskConstMeta get kCrateApiSendFfiContextV2ProcessResponseConstMeta => + const TaskConstMeta( + debugName: "ffi_context_v_2_process_response", argNames: ["that", "response"], ); @override - Future requestBuilderAlwaysDisableOutputSubstitution( - {required RequestBuilder that, required bool disable, dynamic hint}) { + Future + crateApiSendFfiRequestBuilderAlwaysDisableOutputSubstitution( + {required FfiRequestBuilder that, required bool disable}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_builder(that); + var arg0 = cst_encode_box_autoadd_ffi_request_builder(that); var arg1 = cst_encode_bool(disable); - return wire.wire_request_builder_always_disable_output_substitution( - port_, arg0, arg1); + return wire + .wire__crate__api__send__ffi_request_builder_always_disable_output_substitution( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_builder, + decodeSuccessData: dco_decode_ffi_request_builder, decodeErrorData: null, ), - constMeta: kRequestBuilderAlwaysDisableOutputSubstitutionConstMeta, + constMeta: + kCrateApiSendFfiRequestBuilderAlwaysDisableOutputSubstitutionConstMeta, argValues: [that, disable], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kRequestBuilderAlwaysDisableOutputSubstitutionConstMeta => - const TaskConstMeta( - debugName: "request_builder_always_disable_output_substitution", - argNames: ["that", "disable"], - ); + TaskConstMeta + get kCrateApiSendFfiRequestBuilderAlwaysDisableOutputSubstitutionConstMeta => + const TaskConstMeta( + debugName: "ffi_request_builder_always_disable_output_substitution", + argNames: ["that", "disable"], + ); @override - Future requestBuilderBuildNonIncentivizing( - {required RequestBuilder that, dynamic hint}) { + Future crateApiSendFfiRequestBuilderBuildNonIncentivizing( + {required FfiRequestBuilder that, required BigInt minFeeRate}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_builder(that); - return wire.wire_request_builder_build_non_incentivizing(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_request_builder(that); + var arg1 = cst_encode_u_64(minFeeRate); + return wire + .wire__crate__api__send__ffi_request_builder_build_non_incentivizing( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_context, + decodeSuccessData: dco_decode_ffi_request_context, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestBuilderBuildNonIncentivizingConstMeta, - argValues: [that], + constMeta: kCrateApiSendFfiRequestBuilderBuildNonIncentivizingConstMeta, + argValues: [that, minFeeRate], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kRequestBuilderBuildNonIncentivizingConstMeta => - const TaskConstMeta( - debugName: "request_builder_build_non_incentivizing", - argNames: ["that"], - ); + TaskConstMeta + get kCrateApiSendFfiRequestBuilderBuildNonIncentivizingConstMeta => + const TaskConstMeta( + debugName: "ffi_request_builder_build_non_incentivizing", + argNames: ["that", "minFeeRate"], + ); @override - Future requestBuilderBuildRecommended( - {required RequestBuilder that, required int minFeeRate, dynamic hint}) { + Future crateApiSendFfiRequestBuilderBuildRecommended( + {required FfiRequestBuilder that, required BigInt minFeeRate}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_builder(that); + var arg0 = cst_encode_box_autoadd_ffi_request_builder(that); var arg1 = cst_encode_u_64(minFeeRate); - return wire.wire_request_builder_build_recommended(port_, arg0, arg1); + return wire + .wire__crate__api__send__ffi_request_builder_build_recommended( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_context, + decodeSuccessData: dco_decode_ffi_request_context, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestBuilderBuildRecommendedConstMeta, + constMeta: kCrateApiSendFfiRequestBuilderBuildRecommendedConstMeta, argValues: [that, minFeeRate], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kRequestBuilderBuildRecommendedConstMeta => + TaskConstMeta get kCrateApiSendFfiRequestBuilderBuildRecommendedConstMeta => const TaskConstMeta( - debugName: "request_builder_build_recommended", + debugName: "ffi_request_builder_build_recommended", argNames: ["that", "minFeeRate"], ); @override - Future requestBuilderBuildWithAdditionalFee( - {required RequestBuilder that, - required int maxFeeContribution, + Future crateApiSendFfiRequestBuilderBuildWithAdditionalFee( + {required FfiRequestBuilder that, + required BigInt maxFeeContribution, int? changeIndex, - required int minFeeRate, - required bool clampFeeContribution, - dynamic hint}) { + required BigInt minFeeRate, + required bool clampFeeContribution}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_builder(that); + var arg0 = cst_encode_box_autoadd_ffi_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_request_builder_build_with_additional_fee( - port_, arg0, arg1, arg2, arg3, arg4); + return wire + .wire__crate__api__send__ffi_request_builder_build_with_additional_fee( + port_, arg0, arg1, arg2, arg3, arg4); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_context, + decodeSuccessData: dco_decode_ffi_request_context, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestBuilderBuildWithAdditionalFeeConstMeta, + constMeta: kCrateApiSendFfiRequestBuilderBuildWithAdditionalFeeConstMeta, argValues: [ that, maxFeeContribution, @@ -1861,267 +2140,581 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform clampFeeContribution ], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kRequestBuilderBuildWithAdditionalFeeConstMeta => - const TaskConstMeta( - debugName: "request_builder_build_with_additional_fee", - argNames: [ - "that", - "maxFeeContribution", - "changeIndex", - "minFeeRate", - "clampFeeContribution" - ], - ); + TaskConstMeta + get kCrateApiSendFfiRequestBuilderBuildWithAdditionalFeeConstMeta => + const TaskConstMeta( + debugName: "ffi_request_builder_build_with_additional_fee", + argNames: [ + "that", + "maxFeeContribution", + "changeIndex", + "minFeeRate", + "clampFeeContribution" + ], + ); @override - Future requestBuilderFromPsbtAndUri( - {required String psbtBase64, required Uri uri, dynamic hint}) { + Future crateApiSendFfiRequestBuilderFromPsbtAndUri( + {required String psbtBase64, required FfiPjUri pjUri}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(psbtBase64); - var arg1 = cst_encode_box_autoadd_uri(uri); - return wire.wire_request_builder_from_psbt_and_uri(port_, arg0, arg1); + var arg1 = cst_encode_box_autoadd_ffi_pj_uri(pjUri); + return wire + .wire__crate__api__send__ffi_request_builder_from_psbt_and_uri( + port_, arg0, arg1); }, codec: DcoCodec( - decodeSuccessData: dco_decode_request_builder, + decodeSuccessData: dco_decode_ffi_request_builder, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestBuilderFromPsbtAndUriConstMeta, - argValues: [psbtBase64, uri], + constMeta: kCrateApiSendFfiRequestBuilderFromPsbtAndUriConstMeta, + argValues: [psbtBase64, pjUri], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kRequestBuilderFromPsbtAndUriConstMeta => + TaskConstMeta get kCrateApiSendFfiRequestBuilderFromPsbtAndUriConstMeta => const TaskConstMeta( - debugName: "request_builder_from_psbt_and_uri", - argNames: ["psbtBase64", "uri"], + debugName: "ffi_request_builder_from_psbt_and_uri", + argNames: ["psbtBase64", "pjUri"], ); @override - Future requestContextExtractV1( - {required RequestContext ptr, dynamic hint}) { + Future crateApiSendFfiRequestContextExtractV1( + {required FfiRequestContext ptr}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_context(ptr); - return wire.wire_request_context_extract_v1(port_, arg0); + var arg0 = cst_encode_box_autoadd_ffi_request_context(ptr); + return wire.wire__crate__api__send__ffi_request_context_extract_v1( + port_, arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_request_context_v_1, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestContextExtractV1ConstMeta, + constMeta: kCrateApiSendFfiRequestContextExtractV1ConstMeta, argValues: [ptr], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kRequestContextExtractV1ConstMeta => const TaskConstMeta( - debugName: "request_context_extract_v1", + TaskConstMeta get kCrateApiSendFfiRequestContextExtractV1ConstMeta => + const TaskConstMeta( + debugName: "ffi_request_context_extract_v1", argNames: ["ptr"], ); @override - Future requestContextExtractV2( - {required RequestContext ptr, required Url ohttpProxyUrl, dynamic hint}) { + Future crateApiSendFfiRequestContextExtractV2( + {required FfiRequestContext ptr, required FfiUrl ohttpProxyUrl}) { return handler.executeNormal(NormalTask( callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_request_context(ptr); - var arg1 = cst_encode_box_autoadd_url(ohttpProxyUrl); - return wire.wire_request_context_extract_v2(port_, arg0, arg1); + var arg0 = cst_encode_box_autoadd_ffi_request_context(ptr); + var arg1 = cst_encode_box_autoadd_ffi_url(ohttpProxyUrl); + return wire.wire__crate__api__send__ffi_request_context_extract_v2( + port_, arg0, arg1); }, codec: DcoCodec( decodeSuccessData: dco_decode_request_context_v_2, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kRequestContextExtractV2ConstMeta, + constMeta: kCrateApiSendFfiRequestContextExtractV2ConstMeta, argValues: [ptr, ohttpProxyUrl], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kRequestContextExtractV2ConstMeta => const TaskConstMeta( - debugName: "request_context_extract_v2", + TaskConstMeta get kCrateApiSendFfiRequestContextExtractV2ConstMeta => + const TaskConstMeta( + debugName: "ffi_request_context_extract_v2", argNames: ["ptr", "ohttpProxyUrl"], ); @override - Future ohttpKeysDecode({required List bytes, dynamic hint}) { + Future crateApiUriFfiOhttpKeysDecode( + {required List bytes}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_list_prim_u_8_loose(bytes); - return wire.wire_ohttp_keys_decode(port_, arg0); + return wire.wire__crate__api__uri__ffi_ohttp_keys_decode(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_ohttp_keys, + decodeSuccessData: dco_decode_ffi_ohttp_keys, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kOhttpKeysDecodeConstMeta, + constMeta: kCrateApiUriFfiOhttpKeysDecodeConstMeta, argValues: [bytes], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kOhttpKeysDecodeConstMeta => const TaskConstMeta( - debugName: "ohttp_keys_decode", + TaskConstMeta get kCrateApiUriFfiOhttpKeysDecodeConstMeta => + const TaskConstMeta( + debugName: "ffi_ohttp_keys_decode", argNames: ["bytes"], ); @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); + String crateApiUriFfiPjUriAddress({required FfiPjUri that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_pj_uri(that); + return wire.wire__crate__api__uri__ffi_pj_uri_address(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kUriAddressConstMeta, + constMeta: kCrateApiUriFfiPjUriAddressConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUriAddressConstMeta => const TaskConstMeta( - debugName: "uri_address", + TaskConstMeta get kCrateApiUriFfiPjUriAddressConstMeta => const TaskConstMeta( + debugName: "ffi_pj_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); + double? crateApiUriFfiPjUriAmount({required FfiPjUri that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_pj_uri(that); + return wire.wire__crate__api__uri__ffi_pj_uri_amount(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_box_autoadd_f_64, decodeErrorData: null, ), - constMeta: kUriAmountConstMeta, + constMeta: kCrateApiUriFfiPjUriAmountConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUriAmountConstMeta => const TaskConstMeta( - debugName: "uri_amount", + TaskConstMeta get kCrateApiUriFfiPjUriAmountConstMeta => const TaskConstMeta( + debugName: "ffi_pj_uri_amount", argNames: ["that"], ); @override - Future uriFromStr({required String uri, dynamic hint}) { + String crateApiUriFfiPjUriAsString({required FfiPjUri that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_pj_uri(that); + return wire.wire__crate__api__uri__ffi_pj_uri_as_string(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiUriFfiPjUriAsStringConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiPjUriAsStringConstMeta => + const TaskConstMeta( + debugName: "ffi_pj_uri_as_string", + argNames: ["that"], + ); + + @override + FfiPjUriBuilder crateApiUriFfiPjUriBuilderAmount( + {required FfiPjUriBuilder that, required BigInt amount}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_pj_uri_builder(that); + var arg1 = cst_encode_u_64(amount); + return wire.wire__crate__api__uri__ffi_pj_uri_builder_amount( + arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_pj_uri_builder, + decodeErrorData: null, + ), + constMeta: kCrateApiUriFfiPjUriBuilderAmountConstMeta, + argValues: [that, amount], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiPjUriBuilderAmountConstMeta => + const TaskConstMeta( + debugName: "ffi_pj_uri_builder_amount", + argNames: ["that", "amount"], + ); + + @override + FfiPjUri crateApiUriFfiPjUriBuilderBuild({required FfiPjUriBuilder that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_pj_uri_builder(that); + return wire.wire__crate__api__uri__ffi_pj_uri_builder_build(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_pj_uri, + decodeErrorData: null, + ), + constMeta: kCrateApiUriFfiPjUriBuilderBuildConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiPjUriBuilderBuildConstMeta => + const TaskConstMeta( + debugName: "ffi_pj_uri_builder_build", + argNames: ["that"], + ); + + @override + Future crateApiUriFfiPjUriBuilderCreate( + {required String address, + required FfiUrl pj, + FfiOhttpKeys? ohttpKeys, + BigInt? expiry}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + var arg0 = cst_encode_String(address); + var arg1 = cst_encode_box_autoadd_ffi_url(pj); + var arg2 = cst_encode_opt_box_autoadd_ffi_ohttp_keys(ohttpKeys); + var arg3 = cst_encode_opt_box_autoadd_u_64(expiry); + return wire.wire__crate__api__uri__ffi_pj_uri_builder_create( + port_, arg0, arg1, arg2, arg3); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_pj_uri_builder, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kCrateApiUriFfiPjUriBuilderCreateConstMeta, + argValues: [address, pj, ohttpKeys, expiry], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiPjUriBuilderCreateConstMeta => + const TaskConstMeta( + debugName: "ffi_pj_uri_builder_create", + argNames: ["address", "pj", "ohttpKeys", "expiry"], + ); + + @override + FfiPjUriBuilder crateApiUriFfiPjUriBuilderLabel( + {required FfiPjUriBuilder that, required String label}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_pj_uri_builder(that); + var arg1 = cst_encode_String(label); + return wire.wire__crate__api__uri__ffi_pj_uri_builder_label(arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_pj_uri_builder, + decodeErrorData: null, + ), + constMeta: kCrateApiUriFfiPjUriBuilderLabelConstMeta, + argValues: [that, label], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiPjUriBuilderLabelConstMeta => + const TaskConstMeta( + debugName: "ffi_pj_uri_builder_label", + argNames: ["that", "label"], + ); + + @override + FfiPjUriBuilder crateApiUriFfiPjUriBuilderMessage( + {required FfiPjUriBuilder that, required String message}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_pj_uri_builder(that); + var arg1 = cst_encode_String(message); + return wire.wire__crate__api__uri__ffi_pj_uri_builder_message( + arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_pj_uri_builder, + decodeErrorData: null, + ), + constMeta: kCrateApiUriFfiPjUriBuilderMessageConstMeta, + argValues: [that, message], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiPjUriBuilderMessageConstMeta => + const TaskConstMeta( + debugName: "ffi_pj_uri_builder_message", + argNames: ["that", "message"], + ); + + @override + FfiPjUriBuilder crateApiUriFfiPjUriBuilderPjos( + {required FfiPjUriBuilder that, required bool pjos}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_pj_uri_builder(that); + var arg1 = cst_encode_bool(pjos); + return wire.wire__crate__api__uri__ffi_pj_uri_builder_pjos(arg0, arg1); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_pj_uri_builder, + decodeErrorData: null, + ), + constMeta: kCrateApiUriFfiPjUriBuilderPjosConstMeta, + argValues: [that, pjos], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiPjUriBuilderPjosConstMeta => + const TaskConstMeta( + debugName: "ffi_pj_uri_builder_pjos", + argNames: ["that", "pjos"], + ); + + @override + String crateApiUriFfiUriAddress({required FfiUri that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_uri(that); + return wire.wire__crate__api__uri__ffi_uri_address(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiUriFfiUriAddressConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiUriAddressConstMeta => const TaskConstMeta( + debugName: "ffi_uri_address", + argNames: ["that"], + ); + + @override + double? crateApiUriFfiUriAmount({required FfiUri that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_uri(that); + return wire.wire__crate__api__uri__ffi_uri_amount(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_opt_box_autoadd_f_64, + decodeErrorData: null, + ), + constMeta: kCrateApiUriFfiUriAmountConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiUriAmountConstMeta => const TaskConstMeta( + debugName: "ffi_uri_amount", + argNames: ["that"], + ); + + @override + String crateApiUriFfiUriAsString({required FfiUri that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_uri(that); + return wire.wire__crate__api__uri__ffi_uri_as_string(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_String, + decodeErrorData: null, + ), + constMeta: kCrateApiUriFfiUriAsStringConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiUriAsStringConstMeta => const TaskConstMeta( + debugName: "ffi_uri_as_string", + argNames: ["that"], + ); + + @override + FfiPjUri crateApiUriFfiUriCheckPjSupported({required FfiUri that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_uri(that); + return wire.wire__crate__api__uri__ffi_uri_check_pj_supported(arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_ffi_pj_uri, + decodeErrorData: dco_decode_payjoin_error, + ), + constMeta: kCrateApiUriFfiUriCheckPjSupportedConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiUriFfiUriCheckPjSupportedConstMeta => + const TaskConstMeta( + debugName: "ffi_uri_check_pj_supported", + argNames: ["that"], + ); + + @override + Future crateApiUriFfiUriFromStr({required String uri}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(uri); - return wire.wire_uri_from_str(port_, arg0); + return wire.wire__crate__api__uri__ffi_uri_from_str(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_uri, + decodeSuccessData: dco_decode_ffi_uri, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUriFromStrConstMeta, + constMeta: kCrateApiUriFfiUriFromStrConstMeta, argValues: [uri], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUriFromStrConstMeta => const TaskConstMeta( - debugName: "uri_from_str", + TaskConstMeta get kCrateApiUriFfiUriFromStrConstMeta => const TaskConstMeta( + debugName: "ffi_uri_from_str", argNames: ["uri"], ); @override - Future urlAsString({required Url that, dynamic hint}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - var arg0 = cst_encode_box_autoadd_url(that); - return wire.wire_url_as_string(port_, arg0); + String crateApiUriFfiUrlAsString({required FfiUrl that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_url(that); + return wire.wire__crate__api__uri__ffi_url_as_string(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_String, decodeErrorData: null, ), - constMeta: kUrlAsStringConstMeta, + constMeta: kCrateApiUriFfiUrlAsStringConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUrlAsStringConstMeta => const TaskConstMeta( - debugName: "url_as_string", + TaskConstMeta get kCrateApiUriFfiUrlAsStringConstMeta => const TaskConstMeta( + debugName: "ffi_url_as_string", argNames: ["that"], ); @override - Future urlFromStr({required String url, dynamic hint}) { + Future crateApiUriFfiUrlFromStr({required String url}) { return handler.executeNormal(NormalTask( callFfi: (port_) { var arg0 = cst_encode_String(url); - return wire.wire_url_from_str(port_, arg0); + return wire.wire__crate__api__uri__ffi_url_from_str(port_, arg0); }, codec: DcoCodec( - decodeSuccessData: dco_decode_url, + decodeSuccessData: dco_decode_ffi_url, decodeErrorData: dco_decode_payjoin_error, ), - constMeta: kUrlFromStrConstMeta, + constMeta: kCrateApiUriFfiUrlFromStrConstMeta, argValues: [url], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUrlFromStrConstMeta => const TaskConstMeta( - debugName: "url_from_str", + TaskConstMeta get kCrateApiUriFfiUrlFromStrConstMeta => const TaskConstMeta( + debugName: "ffi_url_from_str", argNames: ["url"], ); @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); + String? crateApiUriFfiUrlQuery({required FfiUrl that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = cst_encode_box_autoadd_ffi_url(that); + return wire.wire__crate__api__uri__ffi_url_query(arg0); }, codec: DcoCodec( decodeSuccessData: dco_decode_opt_String, decodeErrorData: null, ), - constMeta: kUrlQueryConstMeta, + constMeta: kCrateApiUriFfiUrlQueryConstMeta, argValues: [that], apiImpl: this, - hint: hint, )); } - TaskConstMeta get kUrlQueryConstMeta => const TaskConstMeta( - debugName: "url_query", + TaskConstMeta get kCrateApiUriFfiUrlQueryConstMeta => const TaskConstMeta( + debugName: "ffi_url_query", argNames: ["that"], ); - Future Function(int, dynamic) encode_DartFn_Inputs_String_Output_String( - FutureOr Function(String) raw) { + Future Function(int, dynamic) + encode_DartFn_Inputs_String_Output_String_AnyhowException( + FutureOr Function(String) raw) { return (callId, rawArg0) async { final arg0 = dco_decode_String(rawArg0); - final rawOutput = await raw(arg0); + Box? rawOutput; + Box? rawError; + try { + rawOutput = Box(await raw(arg0)); + } catch (e, s) { + rawError = Box(AnyhowException("$e\n\n$s")); + } + + final serializer = SseSerializer(generalizedFrbRustBinding); + assert((rawOutput != null) ^ (rawError != null)); + if (rawOutput != null) { + serializer.buffer.putUint8(0); + sse_encode_String(rawOutput.value, serializer); + } else { + serializer.buffer.putUint8(1); + sse_encode_AnyhowException(rawError!.value, serializer); + } + final output = serializer.intoRaw(); + + generalizedFrbRustBinding.dartFnDeliverOutput( + callId: callId, + ptr: output.ptr, + rustVecLen: output.rustVecLen, + dataLen: output.dataLen); + }; + } + + Future Function( + int, + ) encode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException( + FutureOr Function() raw) { + return ( + callId, + ) async { + Box? rawOutput; + Box? rawError; + try { + rawOutput = Box(await raw()); + } catch (e, s) { + rawError = Box(AnyhowException("$e\n\n$s")); + } final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_String(rawOutput, serializer); + assert((rawOutput != null) ^ (rawError != null)); + if (rawOutput != null) { + serializer.buffer.putUint8(0); + sse_encode_list_prim_u_8_strict(rawOutput.value, serializer); + } else { + serializer.buffer.putUint8(1); + sse_encode_AnyhowException(rawError!.value, serializer); + } final output = serializer.intoRaw(); generalizedFrbRustBinding.dartFnDeliverOutput( @@ -2133,15 +2726,28 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } Future Function(int, dynamic) - encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( + encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( FutureOr Function(Uint8List) raw) { return (callId, rawArg0) async { final arg0 = dco_decode_list_prim_u_8_strict(rawArg0); - final rawOutput = await raw(arg0); + Box? rawOutput; + Box? rawError; + try { + rawOutput = Box(await raw(arg0)); + } catch (e, s) { + rawError = Box(AnyhowException("$e\n\n$s")); + } final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_bool(rawOutput, serializer); + assert((rawOutput != null) ^ (rawError != null)); + if (rawOutput != null) { + serializer.buffer.putUint8(0); + sse_encode_bool(rawOutput.value, serializer); + } else { + serializer.buffer.putUint8(1); + sse_encode_AnyhowException(rawError!.value, serializer); + } final output = serializer.intoRaw(); generalizedFrbRustBinding.dartFnDeliverOutput( @@ -2153,15 +2759,28 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } Future Function(int, dynamic) - encode_DartFn_Inputs_out_point_Output_bool( + encode_DartFn_Inputs_out_point_Output_bool_AnyhowException( FutureOr Function(OutPoint) raw) { return (callId, rawArg0) async { final arg0 = dco_decode_out_point(rawArg0); - final rawOutput = await raw(arg0); + Box? rawOutput; + Box? rawError; + try { + rawOutput = Box(await raw(arg0)); + } catch (e, s) { + rawError = Box(AnyhowException("$e\n\n$s")); + } final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_bool(rawOutput, serializer); + assert((rawOutput != null) ^ (rawError != null)); + if (rawOutput != null) { + serializer.buffer.putUint8(0); + sse_encode_bool(rawOutput.value, serializer); + } else { + serializer.buffer.putUint8(1); + sse_encode_AnyhowException(rawError!.value, serializer); + } final output = serializer.intoRaw(); generalizedFrbRustBinding.dartFnDeliverOutput( @@ -2173,214 +2792,241 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwned => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned; + get rust_arc_increment_strong_count_ArcV2PayjoinProposal => wire + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwned => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned; + get rust_arc_decrement_strong_count_ArcV2PayjoinProposal => wire + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeen => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen; + get rust_arc_increment_strong_count_ArcContextV2 => wire + .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeen => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen; + get rust_arc_decrement_strong_count_ArcContextV2 => wire + .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScripts => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts; + get rust_arc_increment_strong_count_MaybeInputsOwned => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScripts => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts; + get rust_arc_decrement_strong_count_MaybeInputsOwned => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknown => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown; + get rust_arc_increment_strong_count_MaybeInputsSeen => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknown => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown; + get rust_arc_decrement_strong_count_MaybeInputsSeen => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposal => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal; + get rust_arc_increment_strong_count_MaybeMixedInputScripts => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposal => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal; + get rust_arc_decrement_strong_count_MaybeMixedInputScripts => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposal => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal; + get rust_arc_increment_strong_count_OutputsUnknown => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposal => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal; + get rust_arc_decrement_strong_count_OutputsUnknown => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2Enrolled => wire - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled; + get rust_arc_increment_strong_count_PayjoinProposal => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2Enrolled => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled; + get rust_arc_decrement_strong_count_PayjoinProposal => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwned => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned; + get rust_arc_increment_strong_count_ProvisionalProposal => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwned => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned; + get rust_arc_decrement_strong_count_ProvisionalProposal => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeen => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen; + get rust_arc_increment_strong_count_UncheckedProposal => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeen => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen; + get rust_arc_decrement_strong_count_UncheckedProposal => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts; + get rust_arc_increment_strong_count_ActiveSession => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts; + get rust_arc_decrement_strong_count_ActiveSession => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknown => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown; + get rust_arc_increment_strong_count_SessionInitializer => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknown => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown; + get rust_arc_decrement_strong_count_SessionInitializer => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposal => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal; + get rust_arc_increment_strong_count_V2MaybeInputsOwned => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposal => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal; + get rust_arc_decrement_strong_count_V2MaybeInputsOwned => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposal => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal; + get rust_arc_increment_strong_count_V2MaybeInputsSeen => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposal => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal; + get rust_arc_decrement_strong_count_V2MaybeInputsSeen => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1ContextV1 => wire - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1; + get rust_arc_increment_strong_count_V2MaybeMixedInputScripts => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1ContextV1 => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1; + get rust_arc_decrement_strong_count_V2MaybeMixedInputScripts => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1RequestBuilder => wire - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder; + get rust_arc_increment_strong_count_V2OutputsUnknown => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestBuilder => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder; + get rust_arc_decrement_strong_count_V2OutputsUnknown => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV1RequestContext => wire - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext; + get rust_arc_increment_strong_count_V2ProvisionalProposal => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestContext => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext; + get rust_arc_decrement_strong_count_V2ProvisionalProposal => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiSendV2ContextV2 => wire - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2; + get rust_arc_increment_strong_count_V2UncheckedProposal => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV2ContextV2 => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2; + get rust_arc_decrement_strong_count_V2UncheckedProposal => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiUriUri => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri; + get rust_arc_increment_strong_count_ContextV1 => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1ContextV1; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUri => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri; + get rust_arc_decrement_strong_count_ContextV1 => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1ContextV1; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_ArcPayjoinFfiUriUrl => - wire.rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl; + get rust_arc_increment_strong_count_RequestBuilder => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrl => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl; + get rust_arc_decrement_strong_count_RequestBuilder => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_MutexOptionOhttpClientResponse => wire - .rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse; + get rust_arc_increment_strong_count_RequestContext => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestContext; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_MutexOptionOhttpClientResponse => wire - .rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse; + get rust_arc_decrement_strong_count_RequestContext => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestContext; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_PayjoinFfiReceiveV1UncheckedProposal => - wire.rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal; + get rust_arc_increment_strong_count_OhttpKeys => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposal => - wire.rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal; + get rust_arc_decrement_strong_count_OhttpKeys => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys; - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_PayjoinFfiReceiveV2Enroller => wire - .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_PjUri => + wire.rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUri; - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2Enroller => wire - .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller; + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_PjUri => + wire.rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUri; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_PayjoinFfiReceiveV2V2UncheckedProposal => - wire.rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal; + get rust_arc_increment_strong_count_PjUriBuilder => wire + .rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposal => - wire.rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal; + get rust_arc_decrement_strong_count_PjUriBuilder => wire + .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder; + + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Uri => + wire.rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUri; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Uri => + wire.rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUri; + + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Url => + wire.rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUrl; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Url => + wire.rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUrl; RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_PayjoinFfiTypesOhttpKeys => wire - .rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys; + get rust_arc_increment_strong_count_MutexOptionClientResponse => wire + .rust_arc_increment_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse; RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_PayjoinFfiTypesOhttpKeys => wire - .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys; + get rust_arc_decrement_strong_count_MutexOptionClientResponse => wire + .rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse; + + @protected + AnyhowException dco_decode_AnyhowException(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return AnyhowException(raw as String); + } @protected FutureOr Function(String) - dco_decode_DartFn_Inputs_String_Output_String(dynamic raw) { + dco_decode_DartFn_Inputs_String_Output_String_AnyhowException( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError(''); + } + + @protected + FutureOr Function() + dco_decode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException( + 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) { + dco_decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + 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) { + dco_decode_DartFn_Inputs_out_point_Output_bool_AnyhowException( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs throw UnimplementedError(''); } @@ -2399,200 +3045,198 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - Map dco_decode_Map_u_64_out_point(dynamic raw) { + 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( + ArcV2PayjoinProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1MaybeInputsOwned.dcoDecode( - raw as List); + return ArcV2PayjoinProposalImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV1MaybeInputsSeen - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( - dynamic raw) { + ArcContextV2 dco_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1MaybeInputsSeen.dcoDecode( - raw as List); + return ArcContextV2Impl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV1MaybeMixedInputScripts - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( - dynamic raw) { + MaybeInputsOwned dco_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1MaybeMixedInputScripts.dcoDecode( - raw as List); + return MaybeInputsOwnedImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV1OutputsUnknown - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(dynamic raw) { + MaybeInputsSeen dco_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1OutputsUnknown.dcoDecode(raw as List); + return MaybeInputsSeenImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV1PayjoinProposal - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + MaybeMixedInputScripts + dco_decode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1PayjoinProposal.dcoDecode( + return MaybeMixedInputScriptsImpl.frbInternalDcoDecode( raw as List); } @protected - ArcPayjoinFfiReceiveV1ProvisionalProposal - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( - dynamic raw) { + OutputsUnknown dco_decode_RustOpaque_payjoin_ffireceivev1OutputsUnknown( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1ProvisionalProposal.dcoDecode( - raw as List); + return OutputsUnknownImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV2Enrolled - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(dynamic raw) { + PayjoinProposal dco_decode_RustOpaque_payjoin_ffireceivev1PayjoinProposal( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2Enrolled.dcoDecode(raw as List); + return PayjoinProposalImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV2V2MaybeInputsOwned - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + ProvisionalProposal + dco_decode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2MaybeInputsOwned.dcoDecode( - raw as List); + return ProvisionalProposalImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV2V2MaybeInputsSeen - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( - dynamic raw) { + UncheckedProposal dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2MaybeInputsSeen.dcoDecode( - raw as List); + return UncheckedProposalImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( - dynamic raw) { + ActiveSession dco_decode_RustOpaque_payjoin_ffireceivev2ActiveSession( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts.dcoDecode( - raw as List); + return ActiveSessionImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV2V2OutputsUnknown - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + SessionInitializer + dco_decode_RustOpaque_payjoin_ffireceivev2SessionInitializer( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2OutputsUnknown.dcoDecode( - raw as List); + return SessionInitializerImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV2V2PayjoinProposal - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + V2MaybeInputsOwned + dco_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2PayjoinProposal.dcoDecode( - raw as List); + return V2MaybeInputsOwnedImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiReceiveV2V2ProvisionalProposal - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + V2MaybeInputsSeen dco_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return V2MaybeInputsSeenImpl.frbInternalDcoDecode(raw as List); + } + + @protected + V2MaybeMixedInputScripts + dco_decode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2ProvisionalProposal.dcoDecode( + return V2MaybeMixedInputScriptsImpl.frbInternalDcoDecode( raw as List); } @protected - ArcPayjoinFfiSendV1ContextV1 - dco_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(dynamic raw) { + V2OutputsUnknown dco_decode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return V2OutputsUnknownImpl.frbInternalDcoDecode(raw as List); + } + + @protected + V2ProvisionalProposal + dco_decode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiSendV1ContextV1.dcoDecode(raw as List); + return V2ProvisionalProposalImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiSendV1RequestBuilder - dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(dynamic raw) { + V2UncheckedProposal + dco_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiSendV1RequestBuilder.dcoDecode(raw as List); + return V2UncheckedProposalImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiSendV1RequestContext - dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext(dynamic raw) { + ContextV1 dco_decode_RustOpaque_payjoin_ffisendv1ContextV1(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiSendV1RequestContext.dcoDecode(raw as List); + return ContextV1Impl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiSendV2ContextV2 - dco_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(dynamic raw) { + RequestBuilder dco_decode_RustOpaque_payjoin_ffisendv1RequestBuilder( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiSendV2ContextV2.dcoDecode(raw as List); + return RequestBuilderImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiUriUri dco_decode_RustOpaque_Arcpayjoin_ffiuriUri(dynamic raw) { + RequestContext dco_decode_RustOpaque_payjoin_ffisendv1RequestContext( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiUriUri.dcoDecode(raw as List); + return RequestContextImpl.frbInternalDcoDecode(raw as List); } @protected - ArcPayjoinFfiUriUrl dco_decode_RustOpaque_Arcpayjoin_ffiuriUrl(dynamic raw) { + OhttpKeys dco_decode_RustOpaque_payjoin_ffitypesOhttpKeys(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return ArcPayjoinFfiUriUrl.dcoDecode(raw as List); + return OhttpKeysImpl.frbInternalDcoDecode(raw as List); } @protected - MutexOptionOhttpClientResponse - dco_decode_RustOpaque_MutexOptionohttpClientResponse(dynamic raw) { + PjUri dco_decode_RustOpaque_payjoin_ffiuriPjUri(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return MutexOptionOhttpClientResponse.dcoDecode(raw as List); + return PjUriImpl.frbInternalDcoDecode(raw as List); } @protected - PayjoinFfiReceiveV1UncheckedProposal - dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(dynamic raw) { + PjUriBuilder dco_decode_RustOpaque_payjoin_ffiuriPjUriBuilder(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return PayjoinFfiReceiveV1UncheckedProposal.dcoDecode(raw as List); + return PjUriBuilderImpl.frbInternalDcoDecode(raw as List); } @protected - PayjoinFfiReceiveV2Enroller - dco_decode_RustOpaque_payjoin_ffireceivev2Enroller(dynamic raw) { + Uri dco_decode_RustOpaque_payjoin_ffiuriUri(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return PayjoinFfiReceiveV2Enroller.dcoDecode(raw as List); + return UriImpl.frbInternalDcoDecode(raw as List); } @protected - PayjoinFfiReceiveV2V2UncheckedProposal - dco_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( - dynamic raw) { + Url dco_decode_RustOpaque_payjoin_ffiuriUrl(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return PayjoinFfiReceiveV2V2UncheckedProposal.dcoDecode( - raw as List); + return UrlImpl.frbInternalDcoDecode(raw as List); } @protected - PayjoinFfiTypesOhttpKeys dco_decode_RustOpaque_payjoin_ffitypesOhttpKeys( - dynamic raw) { + MutexOptionClientResponse + dco_decode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return PayjoinFfiTypesOhttpKeys.dcoDecode(raw as List); + return MutexOptionClientResponseImpl.frbInternalDcoDecode( + raw as List); } @protected @@ -2608,348 +3252,580 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - ClientResponse dco_decode_box_autoadd_client_response(dynamic raw) { + double dco_decode_box_autoadd_f_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_client_response(raw); + return raw as double; } @protected - ContextV1 dco_decode_box_autoadd_context_v_1(dynamic raw) { + FfiActiveSession dco_decode_box_autoadd_ffi_active_session(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_context_v_1(raw); + return dco_decode_ffi_active_session(raw); } @protected - ContextV2 dco_decode_box_autoadd_context_v_2(dynamic raw) { + FfiClientResponse dco_decode_box_autoadd_ffi_client_response(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_context_v_2(raw); + return dco_decode_ffi_client_response(raw); } @protected - Enrolled dco_decode_box_autoadd_enrolled(dynamic raw) { + FfiContextV1 dco_decode_box_autoadd_ffi_context_v_1(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_enrolled(raw); + return dco_decode_ffi_context_v_1(raw); } @protected - Enroller dco_decode_box_autoadd_enroller(dynamic raw) { + FfiContextV2 dco_decode_box_autoadd_ffi_context_v_2(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_enroller(raw); + return dco_decode_ffi_context_v_2(raw); } @protected - double dco_decode_box_autoadd_f_64(dynamic raw) { + FfiMaybeInputsOwned dco_decode_box_autoadd_ffi_maybe_inputs_owned( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as double; + return dco_decode_ffi_maybe_inputs_owned(raw); } @protected - Headers dco_decode_box_autoadd_headers(dynamic raw) { + FfiMaybeInputsSeen dco_decode_box_autoadd_ffi_maybe_inputs_seen(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_headers(raw); + return dco_decode_ffi_maybe_inputs_seen(raw); } @protected - MaybeInputsOwned dco_decode_box_autoadd_maybe_inputs_owned(dynamic raw) { + FfiMaybeMixedInputScripts + dco_decode_box_autoadd_ffi_maybe_mixed_input_scripts(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_maybe_inputs_owned(raw); + return dco_decode_ffi_maybe_mixed_input_scripts(raw); } @protected - MaybeInputsSeen dco_decode_box_autoadd_maybe_inputs_seen(dynamic raw) { + FfiOhttpKeys dco_decode_box_autoadd_ffi_ohttp_keys(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_maybe_inputs_seen(raw); + return dco_decode_ffi_ohttp_keys(raw); } @protected - MaybeMixedInputScripts dco_decode_box_autoadd_maybe_mixed_input_scripts( - dynamic raw) { + FfiOutputsUnknown dco_decode_box_autoadd_ffi_outputs_unknown(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_maybe_mixed_input_scripts(raw); + return dco_decode_ffi_outputs_unknown(raw); } @protected - OhttpKeys dco_decode_box_autoadd_ohttp_keys(dynamic raw) { + FfiPayjoinProposal dco_decode_box_autoadd_ffi_payjoin_proposal(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_ohttp_keys(raw); + return dco_decode_ffi_payjoin_proposal(raw); } @protected - OutPoint dco_decode_box_autoadd_out_point(dynamic raw) { + FfiPjUri dco_decode_box_autoadd_ffi_pj_uri(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_out_point(raw); + return dco_decode_ffi_pj_uri(raw); } @protected - OutputsUnknown dco_decode_box_autoadd_outputs_unknown(dynamic raw) { + FfiPjUriBuilder dco_decode_box_autoadd_ffi_pj_uri_builder(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_outputs_unknown(raw); + return dco_decode_ffi_pj_uri_builder(raw); } @protected - PayjoinProposal dco_decode_box_autoadd_payjoin_proposal(dynamic raw) { + FfiProvisionalProposal dco_decode_box_autoadd_ffi_provisional_proposal( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_payjoin_proposal(raw); + return dco_decode_ffi_provisional_proposal(raw); } @protected - ProvisionalProposal dco_decode_box_autoadd_provisional_proposal(dynamic raw) { + FfiRequestBuilder dco_decode_box_autoadd_ffi_request_builder(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_provisional_proposal(raw); + return dco_decode_ffi_request_builder(raw); } @protected - RequestBuilder dco_decode_box_autoadd_request_builder(dynamic raw) { + FfiRequestContext dco_decode_box_autoadd_ffi_request_context(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_request_builder(raw); + return dco_decode_ffi_request_context(raw); } @protected - RequestContext dco_decode_box_autoadd_request_context(dynamic raw) { + FfiSessionInitializer dco_decode_box_autoadd_ffi_session_initializer( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_request_context(raw); + return dco_decode_ffi_session_initializer(raw); } @protected - TxOut dco_decode_box_autoadd_tx_out(dynamic raw) { + FfiUncheckedProposal dco_decode_box_autoadd_ffi_unchecked_proposal( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_tx_out(raw); + return dco_decode_ffi_unchecked_proposal(raw); } @protected - int dco_decode_box_autoadd_u_64(dynamic raw) { + FfiUri dco_decode_box_autoadd_ffi_uri(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_u_64(raw); + return dco_decode_ffi_uri(raw); } @protected - int dco_decode_box_autoadd_u_8(dynamic raw) { + FfiUrl dco_decode_box_autoadd_ffi_url(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as int; + return dco_decode_ffi_url(raw); } @protected - UncheckedProposal dco_decode_box_autoadd_unchecked_proposal(dynamic raw) { + FfiV2MaybeInputsOwned dco_decode_box_autoadd_ffi_v_2_maybe_inputs_owned( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_unchecked_proposal(raw); + return dco_decode_ffi_v_2_maybe_inputs_owned(raw); } @protected - Uri dco_decode_box_autoadd_uri(dynamic raw) { + FfiV2MaybeInputsSeen dco_decode_box_autoadd_ffi_v_2_maybe_inputs_seen( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_uri(raw); + return dco_decode_ffi_v_2_maybe_inputs_seen(raw); } @protected - Url dco_decode_box_autoadd_url(dynamic raw) { + FfiV2MaybeMixedInputScripts + dco_decode_box_autoadd_ffi_v_2_maybe_mixed_input_scripts(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_url(raw); + return dco_decode_ffi_v_2_maybe_mixed_input_scripts(raw); } @protected - V2MaybeInputsOwned dco_decode_box_autoadd_v_2_maybe_inputs_owned( + FfiV2OutputsUnknown dco_decode_box_autoadd_ffi_v_2_outputs_unknown( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_v_2_maybe_inputs_owned(raw); + return dco_decode_ffi_v_2_outputs_unknown(raw); } @protected - V2MaybeInputsSeen dco_decode_box_autoadd_v_2_maybe_inputs_seen(dynamic raw) { + FfiV2PayjoinProposal dco_decode_box_autoadd_ffi_v_2_payjoin_proposal( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_v_2_maybe_inputs_seen(raw); + return dco_decode_ffi_v_2_payjoin_proposal(raw); } @protected - V2MaybeMixedInputScripts dco_decode_box_autoadd_v_2_maybe_mixed_input_scripts( + FfiV2ProvisionalProposal dco_decode_box_autoadd_ffi_v_2_provisional_proposal( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_v_2_maybe_mixed_input_scripts(raw); + return dco_decode_ffi_v_2_provisional_proposal(raw); } @protected - V2OutputsUnknown dco_decode_box_autoadd_v_2_outputs_unknown(dynamic raw) { + FfiV2UncheckedProposal dco_decode_box_autoadd_ffi_v_2_unchecked_proposal( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_v_2_outputs_unknown(raw); + return dco_decode_ffi_v_2_unchecked_proposal(raw); } @protected - V2PayjoinProposal dco_decode_box_autoadd_v_2_payjoin_proposal(dynamic raw) { + Headers dco_decode_box_autoadd_headers(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_v_2_payjoin_proposal(raw); + return dco_decode_headers(raw); } @protected - V2ProvisionalProposal dco_decode_box_autoadd_v_2_provisional_proposal( - dynamic raw) { + 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 + TxOut dco_decode_box_autoadd_tx_out(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_v_2_provisional_proposal(raw); + return dco_decode_tx_out(raw); } @protected - V2UncheckedProposal dco_decode_box_autoadd_v_2_unchecked_proposal( - dynamic raw) { + BigInt dco_decode_box_autoadd_u_64(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_u_64(raw); + } + + @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 + double dco_decode_f_64(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as double; + } + + @protected + FfiActiveSession dco_decode_ffi_active_session(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_v_2_unchecked_proposal(raw); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return FfiActiveSession( + field0: dco_decode_RustOpaque_payjoin_ffireceivev2ActiveSession(arr[0]), + ); } @protected - ClientResponse dco_decode_client_response(dynamic raw) { + FfiClientResponse dco_decode_ffi_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]), + return FfiClientResponse( + field0: + dco_decode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + arr[0]), ); } @protected - ContextV1 dco_decode_context_v_1(dynamic raw) { + FfiContextV1 dco_decode_ffi_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]), + return FfiContextV1( + field0: dco_decode_RustOpaque_payjoin_ffisendv1ContextV1(arr[0]), ); } @protected - ContextV2 dco_decode_context_v_2(dynamic raw) { + FfiContextV2 dco_decode_ffi_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( + return FfiContextV2( field0: dco_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(arr[0]), ); } @protected - Enrolled dco_decode_enrolled(dynamic raw) { + FfiMaybeInputsOwned dco_decode_ffi_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 Enrolled( - field0: dco_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(arr[0]), + return FfiMaybeInputsOwned( + field0: + dco_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned(arr[0]), ); } @protected - Enroller dco_decode_enroller(dynamic raw) { + FfiMaybeInputsSeen dco_decode_ffi_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 Enroller( - field0: dco_decode_RustOpaque_payjoin_ffireceivev2Enroller(arr[0]), + return FfiMaybeInputsSeen( + field0: dco_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen(arr[0]), ); } @protected - double dco_decode_f_64(dynamic raw) { + FfiMaybeMixedInputScripts dco_decode_ffi_maybe_mixed_input_scripts( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as double; + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return FfiMaybeMixedInputScripts( + field0: dco_decode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( + arr[0]), + ); } @protected - Headers dco_decode_headers(dynamic raw) { + FfiOhttpKeys dco_decode_ffi_ohttp_keys(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( - map: dco_decode_Map_String_String(arr[0]), + return FfiOhttpKeys( + field0: dco_decode_RustOpaque_payjoin_ffitypesOhttpKeys(arr[0]), ); } @protected - List dco_decode_list_out_point(dynamic raw) { + FfiOutputsUnknown dco_decode_ffi_outputs_unknown(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return (raw as List).map(dco_decode_out_point).toList(); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return FfiOutputsUnknown( + field0: dco_decode_RustOpaque_payjoin_ffireceivev1OutputsUnknown(arr[0]), + ); } @protected - Uint64List dco_decode_list_prim_u_64_strict(dynamic raw) { + FfiPayjoinProposal dco_decode_ffi_payjoin_proposal(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return Uint64List.from(raw); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return FfiPayjoinProposal( + field0: dco_decode_RustOpaque_payjoin_ffireceivev1PayjoinProposal(arr[0]), + ); } @protected - List dco_decode_list_prim_u_8_loose(dynamic raw) { + FfiPjUri dco_decode_ffi_pj_uri(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as List; + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return FfiPjUri( + field0: dco_decode_RustOpaque_payjoin_ffiuriPjUri(arr[0]), + ); } @protected - Uint8List dco_decode_list_prim_u_8_strict(dynamic raw) { + FfiPjUriBuilder dco_decode_ffi_pj_uri_builder(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as Uint8List; + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return FfiPjUriBuilder( + internal: dco_decode_RustOpaque_payjoin_ffiuriPjUriBuilder(arr[0]), + ); } @protected - List<(String, String)> dco_decode_list_record_string_string(dynamic raw) { + FfiProvisionalProposal dco_decode_ffi_provisional_proposal(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return (raw as List).map(dco_decode_record_string_string).toList(); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return FfiProvisionalProposal( + field0: + dco_decode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal(arr[0]), + ); } @protected - List<(int, OutPoint)> dco_decode_list_record_u_64_out_point(dynamic raw) { + FfiRequestBuilder dco_decode_ffi_request_builder(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(); + final arr = raw as List; + if (arr.length != 1) + throw Exception('unexpected arr length: expect 1 but see ${arr.length}'); + return FfiRequestBuilder( + field0: dco_decode_RustOpaque_payjoin_ffisendv1RequestBuilder(arr[0]), + ); + } + + @protected + FfiRequestContext dco_decode_ffi_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 FfiRequestContext( + field0: dco_decode_RustOpaque_payjoin_ffisendv1RequestContext(arr[0]), + ); } @protected - MaybeInputsOwned dco_decode_maybe_inputs_owned(dynamic raw) { + FfiSessionInitializer dco_decode_ffi_session_initializer(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( + return FfiSessionInitializer( field0: - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned(arr[0]), + dco_decode_RustOpaque_payjoin_ffireceivev2SessionInitializer(arr[0]), ); } @protected - MaybeInputsSeen dco_decode_maybe_inputs_seen(dynamic raw) { + FfiUncheckedProposal dco_decode_ffi_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 MaybeInputsSeen( + return FfiUncheckedProposal( field0: - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen(arr[0]), + dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(arr[0]), + ); + } + + @protected + FfiUri dco_decode_ffi_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 FfiUri( + field0: dco_decode_RustOpaque_payjoin_ffiuriUri(arr[0]), ); } @protected - MaybeMixedInputScripts dco_decode_maybe_mixed_input_scripts(dynamic raw) { + FfiUrl dco_decode_ffi_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 MaybeMixedInputScripts( + return FfiUrl( + field0: dco_decode_RustOpaque_payjoin_ffiuriUrl(arr[0]), + ); + } + + @protected + FfiV2MaybeInputsOwned dco_decode_ffi_v_2_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 FfiV2MaybeInputsOwned( field0: - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + dco_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned(arr[0]), + ); + } + + @protected + FfiV2MaybeInputsSeen dco_decode_ffi_v_2_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 FfiV2MaybeInputsSeen( + field0: + dco_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen(arr[0]), + ); + } + + @protected + FfiV2MaybeMixedInputScripts dco_decode_ffi_v_2_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 FfiV2MaybeMixedInputScripts( + field0: + dco_decode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( arr[0]), ); } @protected - OhttpKeys dco_decode_ohttp_keys(dynamic raw) { + FfiV2OutputsUnknown dco_decode_ffi_v_2_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 OhttpKeys( - field0: dco_decode_RustOpaque_payjoin_ffitypesOhttpKeys(arr[0]), + return FfiV2OutputsUnknown( + field0: + dco_decode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown(arr[0]), + ); + } + + @protected + FfiV2PayjoinProposal dco_decode_ffi_v_2_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 FfiV2PayjoinProposal( + field0: dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + arr[0]), + ); + } + + @protected + FfiV2ProvisionalProposal dco_decode_ffi_v_2_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 FfiV2ProvisionalProposal( + field0: dco_decode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( + arr[0]), ); } + @protected + FfiV2UncheckedProposal dco_decode_ffi_v_2_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 FfiV2UncheckedProposal( + field0: + dco_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal(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( + map: dco_decode_Map_String_String(arr[0]), + ); + } + + @protected + int dco_decode_i_32(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as int; + } + + @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 dcoDecodeUint64List(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<(BigInt, 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 + Network dco_decode_network(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return Network.values[raw as int]; + } + @protected String? dco_decode_opt_String(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -2963,24 +3839,30 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - int? dco_decode_opt_box_autoadd_u_64(dynamic raw) { + FfiOhttpKeys? dco_decode_opt_box_autoadd_ffi_ohttp_keys(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_box_autoadd_u_64(raw); + return raw == null ? null : dco_decode_box_autoadd_ffi_ohttp_keys(raw); } @protected - int? dco_decode_opt_box_autoadd_u_8(dynamic raw) { + FfiV2UncheckedProposal? dco_decode_opt_box_autoadd_ffi_v_2_unchecked_proposal( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_box_autoadd_u_8(raw); + return raw == null + ? null + : dco_decode_box_autoadd_ffi_v_2_unchecked_proposal(raw); } @protected - V2UncheckedProposal? dco_decode_opt_box_autoadd_v_2_unchecked_proposal( - dynamic raw) { + BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null - ? null - : dco_decode_box_autoadd_v_2_unchecked_proposal(raw); + return raw == null ? null : dco_decode_box_autoadd_u_64(raw); + } + + @protected + int? dco_decode_opt_box_autoadd_u_8(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw == null ? null : dco_decode_box_autoadd_u_8(raw); } @protected @@ -2995,18 +3877,6 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform ); } - @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]), - ); - } - @protected PayjoinError dco_decode_payjoin_error(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3079,38 +3949,32 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return PayjoinError_UrlError( message: dco_decode_String(raw[1]), ); + case 17: + return PayjoinError_IoError( + message: dco_decode_String(raw[1]), + ); default: throw Exception("unreachable"); } } @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]), - ); - } - - @protected - ProvisionalProposal dco_decode_provisional_proposal(dynamic raw) { + (FfiUrl, Uint8List) dco_decode_record_ffi_url_list_prim_u_8_strict( + 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]), + if (arr.length != 2) { + throw Exception('Expected 2 elements, got ${arr.length}'); + } + return ( + dco_decode_ffi_url(arr[0]), + dco_decode_list_prim_u_8_strict(arr[1]), ); } @protected - ((Url, Uint8List), ClientResponse) - dco_decode_record_record_url_list_prim_u_8_strict_client_response( + ((FfiUrl, Uint8List), FfiClientResponse) + dco_decode_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; @@ -3118,8 +3982,8 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform throw Exception('Expected 2 elements, got ${arr.length}'); } return ( - dco_decode_record_url_list_prim_u_8_strict(arr[0]), - dco_decode_client_response(arr[1]), + dco_decode_record_ffi_url_list_prim_u_8_strict(arr[0]), + dco_decode_ffi_client_response(arr[1]), ); } @@ -3137,7 +4001,7 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - (int, OutPoint) dco_decode_record_u_64_out_point(dynamic raw) { + (BigInt, 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) { @@ -3149,41 +4013,6 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform ); } - @protected - (Url, Uint8List) dco_decode_record_url_list_prim_u_8_strict(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_url(arr[0]), - dco_decode_list_prim_u_8_strict(arr[1]), - ); - } - - @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]), - ); - } - - @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]), - ); - } - @protected RequestContextV1 dco_decode_request_context_v_1(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -3191,8 +4020,8 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); return RequestContextV1( - request: dco_decode_record_url_list_prim_u_8_strict(arr[0]), - contextV1: dco_decode_context_v_1(arr[1]), + request: dco_decode_record_ffi_url_list_prim_u_8_strict(arr[0]), + contextV1: dco_decode_ffi_context_v_1(arr[1]), ); } @@ -3203,8 +4032,8 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); return RequestContextV2( - request: dco_decode_record_url_list_prim_u_8_strict(arr[0]), - contextV2: dco_decode_context_v_2(arr[1]), + request: dco_decode_record_ffi_url_list_prim_u_8_strict(arr[0]), + contextV2: dco_decode_ffi_context_v_2(arr[1]), ); } @@ -3227,9 +4056,9 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - int dco_decode_u_64(dynamic raw) { + BigInt dco_decode_u_64(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return dcoDecodeI64OrU64(raw); + return dcoDecodeU64(raw); } @protected @@ -3239,628 +4068,730 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - UncheckedProposal dco_decode_unchecked_proposal(dynamic raw) { + void dco_decode_unit(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]), - ); + return; } @protected - void dco_decode_unit(dynamic raw) { + BigInt dco_decode_usize(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return; + return dcoDecodeU64(raw); } @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]), - ); + AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = sse_decode_String(deserializer); + return AnyhowException(inner); } @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]), - ); + 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_usize(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dcoDecodeI64OrU64(raw); + 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 - V2MaybeInputsOwned dco_decode_v_2_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 V2MaybeInputsOwned( - field0: dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( - arr[0]), - ); + 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 - V2MaybeInputsSeen dco_decode_v_2_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 V2MaybeInputsSeen( - field0: dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( - arr[0]), - ); + ArcV2PayjoinProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcV2PayjoinProposalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - V2MaybeMixedInputScripts dco_decode_v_2_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 V2MaybeMixedInputScripts( - field0: - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( - arr[0]), - ); + ArcContextV2 sse_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ArcContextV2Impl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - V2OutputsUnknown dco_decode_v_2_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 V2OutputsUnknown( - field0: - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown(arr[0]), - ); + MaybeInputsOwned sse_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return MaybeInputsOwnedImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - V2PayjoinProposal dco_decode_v_2_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 V2PayjoinProposal( - field0: dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( - arr[0]), - ); + MaybeInputsSeen sse_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return MaybeInputsSeenImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - V2ProvisionalProposal dco_decode_v_2_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 V2ProvisionalProposal( - field0: - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( - arr[0]), - ); + MaybeMixedInputScripts + sse_decode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return MaybeMixedInputScriptsImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - V2UncheckedProposal dco_decode_v_2_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 V2UncheckedProposal( - field0: - dco_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal(arr[0]), - ); + OutputsUnknown sse_decode_RustOpaque_payjoin_ffireceivev1OutputsUnknown( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return OutputsUnknownImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - Object sse_decode_DartOpaque(SseDeserializer deserializer) { + PayjoinProposal sse_decode_RustOpaque_payjoin_ffireceivev1PayjoinProposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var inner = sse_decode_usize(deserializer); - return decodeDartOpaque(inner, generalizedFrbRustBinding); + return PayjoinProposalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - Map sse_decode_Map_String_String( + ProvisionalProposal + sse_decode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return ProvisionalProposalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + UncheckedProposal sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( 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 UncheckedProposalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - Map sse_decode_Map_u_64_out_point( + ActiveSession sse_decode_RustOpaque_payjoin_ffireceivev2ActiveSession( 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))); + return ActiveSessionImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV1MaybeInputsOwned - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + SessionInitializer + sse_decode_RustOpaque_payjoin_ffireceivev2SessionInitializer( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1MaybeInputsOwned.sseDecode( + return SessionInitializerImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV1MaybeInputsSeen - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + V2MaybeInputsOwned + sse_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1MaybeInputsSeen.sseDecode( + return V2MaybeInputsOwnedImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV1MaybeMixedInputScripts - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( - SseDeserializer deserializer) { + V2MaybeInputsSeen sse_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1MaybeMixedInputScripts.sseDecode( + return V2MaybeInputsSeenImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV1OutputsUnknown - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + V2MaybeMixedInputScripts + sse_decode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1OutputsUnknown.sseDecode( + return V2MaybeMixedInputScriptsImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV1PayjoinProposal - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( - SseDeserializer deserializer) { + V2OutputsUnknown sse_decode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1PayjoinProposal.sseDecode( + return V2OutputsUnknownImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV1ProvisionalProposal - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + V2ProvisionalProposal + sse_decode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV1ProvisionalProposal.sseDecode( + return V2ProvisionalProposalImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV2Enrolled - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + V2UncheckedProposal + sse_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2Enrolled.sseDecode( + return V2UncheckedProposalImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV2V2MaybeInputsOwned - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( - SseDeserializer deserializer) { + ContextV1 sse_decode_RustOpaque_payjoin_ffisendv1ContextV1( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2MaybeInputsOwned.sseDecode( + return ContextV1Impl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV2V2MaybeInputsSeen - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( - SseDeserializer deserializer) { + RequestBuilder sse_decode_RustOpaque_payjoin_ffisendv1RequestBuilder( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2MaybeInputsSeen.sseDecode( + return RequestBuilderImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( - SseDeserializer deserializer) { + RequestContext sse_decode_RustOpaque_payjoin_ffisendv1RequestContext( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts.sseDecode( + return RequestContextImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV2V2OutputsUnknown - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( - SseDeserializer deserializer) { + OhttpKeys sse_decode_RustOpaque_payjoin_ffitypesOhttpKeys( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2OutputsUnknown.sseDecode( + return OhttpKeysImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV2V2PayjoinProposal - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + PjUri sse_decode_RustOpaque_payjoin_ffiuriPjUri( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return PjUriImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + PjUriBuilder sse_decode_RustOpaque_payjoin_ffiuriPjUriBuilder( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return PjUriBuilderImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + Uri sse_decode_RustOpaque_payjoin_ffiuriUri(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return UriImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + Url sse_decode_RustOpaque_payjoin_ffiuriUrl(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return UrlImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + MutexOptionClientResponse + sse_decode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2PayjoinProposal.sseDecode( + return MutexOptionClientResponseImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - ArcPayjoinFfiReceiveV2V2ProvisionalProposal - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + 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 + bool sse_decode_bool(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getUint8() != 0; + } + + @protected + double sse_decode_box_autoadd_f_64(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_f_64(deserializer)); + } + + @protected + FfiActiveSession sse_decode_box_autoadd_ffi_active_session( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_ffi_active_session(deserializer)); + } + + @protected + FfiClientResponse sse_decode_box_autoadd_ffi_client_response( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_ffi_client_response(deserializer)); + } + + @protected + FfiContextV1 sse_decode_box_autoadd_ffi_context_v_1( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_ffi_context_v_1(deserializer)); + } + + @protected + FfiContextV2 sse_decode_box_autoadd_ffi_context_v_2( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_ffi_context_v_2(deserializer)); + } + + @protected + FfiMaybeInputsOwned sse_decode_box_autoadd_ffi_maybe_inputs_owned( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_ffi_maybe_inputs_owned(deserializer)); + } + + @protected + FfiMaybeInputsSeen sse_decode_box_autoadd_ffi_maybe_inputs_seen( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_ffi_maybe_inputs_seen(deserializer)); + } + + @protected + FfiMaybeMixedInputScripts + sse_decode_box_autoadd_ffi_maybe_mixed_input_scripts( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return ArcPayjoinFfiReceiveV2V2ProvisionalProposal.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_ffi_maybe_mixed_input_scripts(deserializer)); + } + + @protected + FfiOhttpKeys sse_decode_box_autoadd_ffi_ohttp_keys( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_ffi_ohttp_keys(deserializer)); + } + + @protected + FfiOutputsUnknown sse_decode_box_autoadd_ffi_outputs_unknown( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_ffi_outputs_unknown(deserializer)); } @protected - ArcPayjoinFfiSendV1ContextV1 - sse_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - SseDeserializer deserializer) { + FfiPayjoinProposal sse_decode_box_autoadd_ffi_payjoin_proposal( + 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_ffi_payjoin_proposal(deserializer)); } @protected - ArcPayjoinFfiSendV1RequestBuilder - sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - SseDeserializer deserializer) { + FfiPjUri sse_decode_box_autoadd_ffi_pj_uri(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_ffi_pj_uri(deserializer)); } @protected - ArcPayjoinFfiSendV1RequestContext - sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - SseDeserializer deserializer) { + FfiPjUriBuilder sse_decode_box_autoadd_ffi_pj_uri_builder( + 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_ffi_pj_uri_builder(deserializer)); } @protected - ArcPayjoinFfiSendV2ContextV2 - sse_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - SseDeserializer deserializer) { + FfiProvisionalProposal sse_decode_box_autoadd_ffi_provisional_proposal( + 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_ffi_provisional_proposal(deserializer)); } @protected - ArcPayjoinFfiUriUri sse_decode_RustOpaque_Arcpayjoin_ffiuriUri( + FfiRequestBuilder sse_decode_box_autoadd_ffi_request_builder( 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_ffi_request_builder(deserializer)); } @protected - ArcPayjoinFfiUriUrl sse_decode_RustOpaque_Arcpayjoin_ffiuriUrl( + FfiRequestContext sse_decode_box_autoadd_ffi_request_context( 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_ffi_request_context(deserializer)); } @protected - MutexOptionOhttpClientResponse - sse_decode_RustOpaque_MutexOptionohttpClientResponse( - SseDeserializer deserializer) { + FfiSessionInitializer sse_decode_box_autoadd_ffi_session_initializer( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return MutexOptionOhttpClientResponse.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_ffi_session_initializer(deserializer)); } @protected - PayjoinFfiReceiveV1UncheckedProposal - sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( - SseDeserializer deserializer) { + FfiUncheckedProposal sse_decode_box_autoadd_ffi_unchecked_proposal( + 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_ffi_unchecked_proposal(deserializer)); } @protected - PayjoinFfiReceiveV2Enroller - sse_decode_RustOpaque_payjoin_ffireceivev2Enroller( - SseDeserializer deserializer) { + FfiUri sse_decode_box_autoadd_ffi_uri(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return PayjoinFfiReceiveV2Enroller.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_ffi_uri(deserializer)); } @protected - PayjoinFfiReceiveV2V2UncheckedProposal - sse_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( - SseDeserializer deserializer) { + FfiUrl sse_decode_box_autoadd_ffi_url(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return PayjoinFfiReceiveV2V2UncheckedProposal.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_ffi_url(deserializer)); } @protected - PayjoinFfiTypesOhttpKeys sse_decode_RustOpaque_payjoin_ffitypesOhttpKeys( + FfiV2MaybeInputsOwned sse_decode_box_autoadd_ffi_v_2_maybe_inputs_owned( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return PayjoinFfiTypesOhttpKeys.sseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return (sse_decode_ffi_v_2_maybe_inputs_owned(deserializer)); } @protected - String sse_decode_String(SseDeserializer deserializer) { + FfiV2MaybeInputsSeen sse_decode_box_autoadd_ffi_v_2_maybe_inputs_seen( + 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_ffi_v_2_maybe_inputs_seen(deserializer)); } @protected - bool sse_decode_bool(SseDeserializer deserializer) { + FfiV2MaybeMixedInputScripts + sse_decode_box_autoadd_ffi_v_2_maybe_mixed_input_scripts( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint8() != 0; + return (sse_decode_ffi_v_2_maybe_mixed_input_scripts(deserializer)); } @protected - ClientResponse sse_decode_box_autoadd_client_response( + FfiV2OutputsUnknown sse_decode_box_autoadd_ffi_v_2_outputs_unknown( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_client_response(deserializer)); + return (sse_decode_ffi_v_2_outputs_unknown(deserializer)); } @protected - ContextV1 sse_decode_box_autoadd_context_v_1(SseDeserializer deserializer) { + FfiV2PayjoinProposal sse_decode_box_autoadd_ffi_v_2_payjoin_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_context_v_1(deserializer)); + return (sse_decode_ffi_v_2_payjoin_proposal(deserializer)); } @protected - ContextV2 sse_decode_box_autoadd_context_v_2(SseDeserializer deserializer) { + FfiV2ProvisionalProposal sse_decode_box_autoadd_ffi_v_2_provisional_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_context_v_2(deserializer)); + return (sse_decode_ffi_v_2_provisional_proposal(deserializer)); } @protected - Enrolled sse_decode_box_autoadd_enrolled(SseDeserializer deserializer) { + FfiV2UncheckedProposal sse_decode_box_autoadd_ffi_v_2_unchecked_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_enrolled(deserializer)); + return (sse_decode_ffi_v_2_unchecked_proposal(deserializer)); } @protected - Enroller sse_decode_box_autoadd_enroller(SseDeserializer deserializer) { + Headers sse_decode_box_autoadd_headers(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_enroller(deserializer)); + return (sse_decode_headers(deserializer)); } @protected - double sse_decode_box_autoadd_f_64(SseDeserializer deserializer) { + OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_f_64(deserializer)); + return (sse_decode_out_point(deserializer)); } @protected - Headers sse_decode_box_autoadd_headers(SseDeserializer deserializer) { + TxOut sse_decode_box_autoadd_tx_out(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_headers(deserializer)); + return (sse_decode_tx_out(deserializer)); } @protected - MaybeInputsOwned sse_decode_box_autoadd_maybe_inputs_owned( - SseDeserializer deserializer) { + BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_maybe_inputs_owned(deserializer)); + return (sse_decode_u_64(deserializer)); } @protected - MaybeInputsSeen sse_decode_box_autoadd_maybe_inputs_seen( - SseDeserializer deserializer) { + int sse_decode_box_autoadd_u_8(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_maybe_inputs_seen(deserializer)); + return (sse_decode_u_8(deserializer)); } @protected - MaybeMixedInputScripts sse_decode_box_autoadd_maybe_mixed_input_scripts( - SseDeserializer deserializer) { + double sse_decode_f_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_maybe_mixed_input_scripts(deserializer)); + return deserializer.buffer.getFloat64(); } @protected - OhttpKeys sse_decode_box_autoadd_ohttp_keys(SseDeserializer deserializer) { + FfiActiveSession sse_decode_ffi_active_session(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_ohttp_keys(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev2ActiveSession(deserializer); + return FfiActiveSession(field0: var_field0); } @protected - OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer) { + FfiClientResponse sse_decode_ffi_client_response( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_out_point(deserializer)); + var var_field0 = + sse_decode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + deserializer); + return FfiClientResponse(field0: var_field0); } @protected - OutputsUnknown sse_decode_box_autoadd_outputs_unknown( - SseDeserializer deserializer) { + FfiContextV1 sse_decode_ffi_context_v_1(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_outputs_unknown(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffisendv1ContextV1(deserializer); + return FfiContextV1(field0: var_field0); } @protected - PayjoinProposal sse_decode_box_autoadd_payjoin_proposal( - SseDeserializer deserializer) { + FfiContextV2 sse_decode_ffi_context_v_2(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_payjoin_proposal(deserializer)); + var var_field0 = + sse_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(deserializer); + return FfiContextV2(field0: var_field0); } @protected - ProvisionalProposal sse_decode_box_autoadd_provisional_proposal( + FfiMaybeInputsOwned sse_decode_ffi_maybe_inputs_owned( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_provisional_proposal(deserializer)); + var var_field0 = sse_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + deserializer); + return FfiMaybeInputsOwned(field0: var_field0); } @protected - RequestBuilder sse_decode_box_autoadd_request_builder( + FfiMaybeInputsSeen sse_decode_ffi_maybe_inputs_seen( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_request_builder(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen(deserializer); + return FfiMaybeInputsSeen(field0: var_field0); } @protected - RequestContext sse_decode_box_autoadd_request_context( + FfiMaybeMixedInputScripts sse_decode_ffi_maybe_mixed_input_scripts( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_request_context(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( + deserializer); + return FfiMaybeMixedInputScripts(field0: var_field0); } @protected - TxOut sse_decode_box_autoadd_tx_out(SseDeserializer deserializer) { + FfiOhttpKeys sse_decode_ffi_ohttp_keys(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_tx_out(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffitypesOhttpKeys(deserializer); + return FfiOhttpKeys(field0: var_field0); } @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer) { + FfiOutputsUnknown sse_decode_ffi_outputs_unknown( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_u_64(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev1OutputsUnknown(deserializer); + return FfiOutputsUnknown(field0: var_field0); } @protected - int sse_decode_box_autoadd_u_8(SseDeserializer deserializer) { + FfiPayjoinProposal sse_decode_ffi_payjoin_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_u_8(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev1PayjoinProposal(deserializer); + return FfiPayjoinProposal(field0: var_field0); } @protected - UncheckedProposal sse_decode_box_autoadd_unchecked_proposal( - SseDeserializer deserializer) { + FfiPjUri sse_decode_ffi_pj_uri(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_unchecked_proposal(deserializer)); + var var_field0 = sse_decode_RustOpaque_payjoin_ffiuriPjUri(deserializer); + return FfiPjUri(field0: var_field0); } @protected - Uri sse_decode_box_autoadd_uri(SseDeserializer deserializer) { + FfiPjUriBuilder sse_decode_ffi_pj_uri_builder(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_uri(deserializer)); + var var_internal = + sse_decode_RustOpaque_payjoin_ffiuriPjUriBuilder(deserializer); + return FfiPjUriBuilder(internal: var_internal); } @protected - Url sse_decode_box_autoadd_url(SseDeserializer deserializer) { + FfiProvisionalProposal sse_decode_ffi_provisional_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_url(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( + deserializer); + return FfiProvisionalProposal(field0: var_field0); } @protected - V2MaybeInputsOwned sse_decode_box_autoadd_v_2_maybe_inputs_owned( + FfiRequestBuilder sse_decode_ffi_request_builder( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_v_2_maybe_inputs_owned(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffisendv1RequestBuilder(deserializer); + return FfiRequestBuilder(field0: var_field0); } @protected - V2MaybeInputsSeen sse_decode_box_autoadd_v_2_maybe_inputs_seen( + FfiRequestContext sse_decode_ffi_request_context( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_v_2_maybe_inputs_seen(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffisendv1RequestContext(deserializer); + return FfiRequestContext(field0: var_field0); } @protected - V2MaybeMixedInputScripts sse_decode_box_autoadd_v_2_maybe_mixed_input_scripts( + FfiSessionInitializer sse_decode_ffi_session_initializer( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_v_2_maybe_mixed_input_scripts(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev2SessionInitializer( + deserializer); + return FfiSessionInitializer(field0: var_field0); } @protected - V2OutputsUnknown sse_decode_box_autoadd_v_2_outputs_unknown( + FfiUncheckedProposal sse_decode_ffi_unchecked_proposal( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_v_2_outputs_unknown(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + deserializer); + return FfiUncheckedProposal(field0: var_field0); } @protected - V2PayjoinProposal sse_decode_box_autoadd_v_2_payjoin_proposal( - SseDeserializer deserializer) { + FfiUri sse_decode_ffi_uri(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_v_2_payjoin_proposal(deserializer)); + var var_field0 = sse_decode_RustOpaque_payjoin_ffiuriUri(deserializer); + return FfiUri(field0: var_field0); } @protected - V2ProvisionalProposal sse_decode_box_autoadd_v_2_provisional_proposal( - SseDeserializer deserializer) { + FfiUrl sse_decode_ffi_url(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_v_2_provisional_proposal(deserializer)); + var var_field0 = sse_decode_RustOpaque_payjoin_ffiuriUrl(deserializer); + return FfiUrl(field0: var_field0); } @protected - V2UncheckedProposal sse_decode_box_autoadd_v_2_unchecked_proposal( + FfiV2MaybeInputsOwned sse_decode_ffi_v_2_maybe_inputs_owned( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return (sse_decode_v_2_unchecked_proposal(deserializer)); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( + deserializer); + return FfiV2MaybeInputsOwned(field0: var_field0); } @protected - ClientResponse sse_decode_client_response(SseDeserializer deserializer) { + FfiV2MaybeInputsSeen sse_decode_ffi_v_2_maybe_inputs_seen( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_field0 = - sse_decode_RustOpaque_MutexOptionohttpClientResponse(deserializer); - return ClientResponse(field0: var_field0); + sse_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( + deserializer); + return FfiV2MaybeInputsSeen(field0: var_field0); } @protected - ContextV1 sse_decode_context_v_1(SseDeserializer deserializer) { + FfiV2MaybeMixedInputScripts sse_decode_ffi_v_2_maybe_mixed_input_scripts( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_field0 = - sse_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(deserializer); - return ContextV1(field0: var_field0); + sse_decode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( + deserializer); + return FfiV2MaybeMixedInputScripts(field0: var_field0); } @protected - ContextV2 sse_decode_context_v_2(SseDeserializer deserializer) { + FfiV2OutputsUnknown sse_decode_ffi_v_2_outputs_unknown( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = - sse_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(deserializer); - return ContextV2(field0: var_field0); + var var_field0 = sse_decode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( + deserializer); + return FfiV2OutputsUnknown(field0: var_field0); } @protected - Enrolled sse_decode_enrolled(SseDeserializer deserializer) { + FfiV2PayjoinProposal sse_decode_ffi_v_2_payjoin_proposal( + 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); + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + deserializer); + return FfiV2PayjoinProposal(field0: var_field0); } @protected - Enroller sse_decode_enroller(SseDeserializer deserializer) { + FfiV2ProvisionalProposal sse_decode_ffi_v_2_provisional_proposal( + 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); + sse_decode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( + deserializer); + return FfiV2ProvisionalProposal(field0: var_field0); } @protected - double sse_decode_f_64(SseDeserializer deserializer) { + FfiV2UncheckedProposal sse_decode_ffi_v_2_unchecked_proposal( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getFloat64(); + var var_field0 = + sse_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + deserializer); + return FfiV2UncheckedProposal(field0: var_field0); } @protected @@ -3870,6 +4801,12 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return Headers(map: var_map); } + @protected + int sse_decode_i_32(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getInt32(); + } + @protected List sse_decode_list_out_point(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -3917,12 +4854,12 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - List<(int, OutPoint)> sse_decode_list_record_u_64_out_point( + List<(BigInt, 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)>[]; + var ans_ = <(BigInt, OutPoint)>[]; for (var idx_ = 0; idx_ < len_; ++idx_) { ans_.add(sse_decode_record_u_64_out_point(deserializer)); } @@ -3930,92 +4867,75 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - MaybeInputsOwned sse_decode_maybe_inputs_owned(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - deserializer); - return MaybeInputsOwned(field0: var_field0); - } - - @protected - MaybeInputsSeen sse_decode_maybe_inputs_seen(SseDeserializer deserializer) { + Network sse_decode_network(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); + var inner = sse_decode_i_32(deserializer); + return Network.values[inner]; } @protected - MaybeMixedInputScripts sse_decode_maybe_mixed_input_scripts( - SseDeserializer deserializer) { + String? sse_decode_opt_String(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 - OhttpKeys sse_decode_ohttp_keys(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = - sse_decode_RustOpaque_payjoin_ffitypesOhttpKeys(deserializer); - return OhttpKeys(field0: var_field0); + if (sse_decode_bool(deserializer)) { + return (sse_decode_String(deserializer)); + } else { + return null; + } } @protected - String? sse_decode_opt_String(SseDeserializer deserializer) { + double? sse_decode_opt_box_autoadd_f_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_String(deserializer)); + return (sse_decode_box_autoadd_f_64(deserializer)); } else { return null; } } @protected - double? sse_decode_opt_box_autoadd_f_64(SseDeserializer deserializer) { + FfiOhttpKeys? sse_decode_opt_box_autoadd_ffi_ohttp_keys( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_f_64(deserializer)); + return (sse_decode_box_autoadd_ffi_ohttp_keys(deserializer)); } else { return null; } } @protected - int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer) { + FfiV2UncheckedProposal? sse_decode_opt_box_autoadd_ffi_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_u_64(deserializer)); + return (sse_decode_box_autoadd_ffi_v_2_unchecked_proposal(deserializer)); } else { return null; } } @protected - int? sse_decode_opt_box_autoadd_u_8(SseDeserializer deserializer) { + BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_u_8(deserializer)); + return (sse_decode_box_autoadd_u_64(deserializer)); } else { return null; } } @protected - V2UncheckedProposal? sse_decode_opt_box_autoadd_v_2_unchecked_proposal( - SseDeserializer deserializer) { + int? sse_decode_opt_box_autoadd_u_8(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { - return (sse_decode_box_autoadd_v_2_unchecked_proposal(deserializer)); + return (sse_decode_box_autoadd_u_8(deserializer)); } else { return null; } @@ -4029,15 +4949,6 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform 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 @@ -4095,37 +5006,31 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform case 16: var var_message = sse_decode_String(deserializer); return PayjoinError_UrlError(message: var_message); + case 17: + var var_message = sse_decode_String(deserializer); + return PayjoinError_IoError(message: var_message); default: throw UnimplementedError(''); } } @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( + (FfiUrl, Uint8List) sse_decode_record_ffi_url_list_prim_u_8_strict( 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); + var var_field0 = sse_decode_ffi_url(deserializer); + var var_field1 = sse_decode_list_prim_u_8_strict(deserializer); + return (var_field0, var_field1); } @protected - ((Url, Uint8List), ClientResponse) - sse_decode_record_record_url_list_prim_u_8_strict_client_response( + ((FfiUrl, Uint8List), FfiClientResponse) + sse_decode_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = sse_decode_record_url_list_prim_u_8_strict(deserializer); - var var_field1 = sse_decode_client_response(deserializer); + var var_field0 = + sse_decode_record_ffi_url_list_prim_u_8_strict(deserializer); + var var_field1 = sse_decode_ffi_client_response(deserializer); return (var_field0, var_field1); } @@ -4139,7 +5044,7 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - (int, OutPoint) sse_decode_record_u_64_out_point( + (BigInt, 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); @@ -4147,208 +5052,97 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return (var_field0, var_field1); } - @protected - (Url, Uint8List) sse_decode_record_url_list_prim_u_8_strict( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = sse_decode_url(deserializer); - var var_field1 = sse_decode_list_prim_u_8_strict(deserializer); - return (var_field0, var_field1); - } - - @protected - RequestBuilder sse_decode_request_builder(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = - sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(deserializer); - return RequestBuilder(field0: var_field0); - } - - @protected - RequestContext sse_decode_request_context(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = - sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext(deserializer); - return RequestContext(field0: var_field0); - } - @protected RequestContextV1 sse_decode_request_context_v_1( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_request = sse_decode_record_url_list_prim_u_8_strict(deserializer); - var var_contextV1 = sse_decode_context_v_1(deserializer); + var var_request = + sse_decode_record_ffi_url_list_prim_u_8_strict(deserializer); + var var_contextV1 = sse_decode_ffi_context_v_1(deserializer); return RequestContextV1(request: var_request, contextV1: var_contextV1); } @protected RequestContextV2 sse_decode_request_context_v_2( SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var var_request = sse_decode_record_url_list_prim_u_8_strict(deserializer); - var var_contextV2 = sse_decode_context_v_2(deserializer); - return RequestContextV2(request: var_request, contextV2: var_contextV2); - } - - @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); + // Codec=Sse (Serialization based), see doc to use other codecs + var var_request = + sse_decode_record_ffi_url_list_prim_u_8_strict(deserializer); + var var_contextV2 = sse_decode_ffi_context_v_2(deserializer); + return RequestContextV2(request: var_request, contextV2: var_contextV2); } @protected - V2MaybeMixedInputScripts sse_decode_v_2_maybe_mixed_input_scripts( - SseDeserializer deserializer) { + TxOut sse_decode_tx_out(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( - deserializer); - return V2MaybeMixedInputScripts(field0: var_field0); + 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 - V2OutputsUnknown sse_decode_v_2_outputs_unknown( - SseDeserializer deserializer) { + int sse_decode_u_32(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( - deserializer); - return V2OutputsUnknown(field0: var_field0); + return deserializer.buffer.getUint32(); } @protected - V2PayjoinProposal sse_decode_v_2_payjoin_proposal( - SseDeserializer deserializer) { + BigInt sse_decode_u_64(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( - deserializer); - return V2PayjoinProposal(field0: var_field0); + return deserializer.buffer.getBigUint64(); } @protected - V2ProvisionalProposal sse_decode_v_2_provisional_proposal( - SseDeserializer deserializer) { + int sse_decode_u_8(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var var_field0 = - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( - deserializer); - return V2ProvisionalProposal(field0: var_field0); + return deserializer.buffer.getUint8(); } @protected - V2UncheckedProposal sse_decode_v_2_unchecked_proposal( - SseDeserializer deserializer) { + void sse_decode_unit(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 - int sse_decode_i_32(SseDeserializer deserializer) { + BigInt sse_decode_usize(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getInt32(); + return deserializer.buffer.getBigUint64(); } @protected - PlatformPointer cst_encode_DartFn_Inputs_String_Output_String( + PlatformPointer cst_encode_DartFn_Inputs_String_Output_String_AnyhowException( 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)); + encode_DartFn_Inputs_String_Output_String_AnyhowException(raw)); + } + + @protected + PlatformPointer + cst_encode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException( + FutureOr Function() raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_DartOpaque( + encode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException(raw)); } @protected - PlatformPointer cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( - FutureOr Function(Uint8List) raw) { + PlatformPointer + cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + FutureOr Function(Uint8List) raw) { // Codec=Cst (C-struct based), see doc to use other codecs return cst_encode_DartOpaque( - encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(raw)); + encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + raw)); } @protected - PlatformPointer cst_encode_DartFn_Inputs_out_point_Output_bool( - FutureOr Function(OutPoint) raw) { + PlatformPointer + cst_encode_DartFn_Inputs_out_point_Output_bool_AnyhowException( + 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)); + encode_DartFn_Inputs_out_point_Output_bool_AnyhowException(raw)); } @protected @@ -4359,193 +5153,204 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - ArcPayjoinFfiReceiveV1MaybeInputsOwned raw) { + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ArcV2PayjoinProposal raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ArcV2PayjoinProposalImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( - ArcPayjoinFfiReceiveV1MaybeInputsSeen raw) { + int cst_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(ArcContextV2 raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ArcContextV2Impl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( - ArcPayjoinFfiReceiveV1MaybeMixedInputScripts raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + MaybeInputsOwned raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as MaybeInputsOwnedImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( - ArcPayjoinFfiReceiveV1OutputsUnknown raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( + MaybeInputsSeen raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as MaybeInputsSeenImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( - ArcPayjoinFfiReceiveV1PayjoinProposal raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( + MaybeMixedInputScripts raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as MaybeMixedInputScriptsImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( - ArcPayjoinFfiReceiveV1ProvisionalProposal raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev1OutputsUnknown( + OutputsUnknown raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as OutputsUnknownImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( - ArcPayjoinFfiReceiveV2Enrolled raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev1PayjoinProposal( + PayjoinProposal raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as PayjoinProposalImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( - ArcPayjoinFfiReceiveV2V2MaybeInputsOwned raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( + ProvisionalProposal raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ProvisionalProposalImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( - ArcPayjoinFfiReceiveV2V2MaybeInputsSeen raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + UncheckedProposal raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as UncheckedProposalImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( - ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev2ActiveSession( + ActiveSession raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ActiveSessionImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( - ArcPayjoinFfiReceiveV2V2OutputsUnknown raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev2SessionInitializer( + SessionInitializer raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as SessionInitializerImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( - ArcPayjoinFfiReceiveV2V2PayjoinProposal raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( + V2MaybeInputsOwned raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as V2MaybeInputsOwnedImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( - ArcPayjoinFfiReceiveV2V2ProvisionalProposal raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( + V2MaybeInputsSeen raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as V2MaybeInputsSeenImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - ArcPayjoinFfiSendV1ContextV1 raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( + V2MaybeMixedInputScripts raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as V2MaybeMixedInputScriptsImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ArcPayjoinFfiSendV1RequestBuilder raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( + V2OutputsUnknown raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as V2OutputsUnknownImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - ArcPayjoinFfiSendV1RequestContext raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( + V2ProvisionalProposal raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as V2ProvisionalProposalImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - ArcPayjoinFfiSendV2ContextV2 raw) { + int cst_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + V2UncheckedProposal raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as V2UncheckedProposalImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffiuriUri(ArcPayjoinFfiUriUri raw) { + int cst_encode_RustOpaque_payjoin_ffisendv1ContextV1(ContextV1 raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as ContextV1Impl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_Arcpayjoin_ffiuriUrl(ArcPayjoinFfiUriUrl raw) { + int cst_encode_RustOpaque_payjoin_ffisendv1RequestBuilder( + RequestBuilder raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as RequestBuilderImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_MutexOptionohttpClientResponse( - MutexOptionOhttpClientResponse raw) { + int cst_encode_RustOpaque_payjoin_ffisendv1RequestContext( + RequestContext raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as RequestContextImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( - PayjoinFfiReceiveV1UncheckedProposal raw) { + int cst_encode_RustOpaque_payjoin_ffitypesOhttpKeys(OhttpKeys raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as OhttpKeysImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_payjoin_ffireceivev2Enroller( - PayjoinFfiReceiveV2Enroller raw) { + int cst_encode_RustOpaque_payjoin_ffiuriPjUri(PjUri raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as PjUriImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( - PayjoinFfiReceiveV2V2UncheckedProposal raw) { + int cst_encode_RustOpaque_payjoin_ffiuriPjUriBuilder(PjUriBuilder raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return (raw as PjUriBuilderImpl).frbInternalCstEncode(); + } + + @protected + int cst_encode_RustOpaque_payjoin_ffiuriUri(Uri raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as UriImpl).frbInternalCstEncode(); } @protected - int cst_encode_RustOpaque_payjoin_ffitypesOhttpKeys( - PayjoinFfiTypesOhttpKeys raw) { + int cst_encode_RustOpaque_payjoin_ffiuriUrl(Url raw) { // Codec=Cst (C-struct based), see doc to use other codecs // ignore: invalid_use_of_internal_member - return raw.cstEncode(); + return (raw as UrlImpl).frbInternalCstEncode(); + } + + @protected + int cst_encode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + MutexOptionClientResponse raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return (raw as MutexOptionClientResponseImpl).frbInternalCstEncode(); } @protected @@ -4560,6 +5365,18 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform return raw; } + @protected + int cst_encode_i_32(int raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw; + } + + @protected + int cst_encode_network(Network raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_i_32(raw.index); + } + @protected int cst_encode_u_32(int raw) { // Codec=Cst (C-struct based), see doc to use other codecs @@ -4579,42 +5396,57 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - int cst_encode_usize(int raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw; + void sse_encode_AnyhowException( + AnyhowException self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_String(self.message, serializer); } @protected - void sse_encode_DartFn_Inputs_String_Output_String( + void sse_encode_DartFn_Inputs_String_Output_String_AnyhowException( 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); + encode_DartFn_Inputs_String_Output_String_AnyhowException(self), + serializer); + } + + @protected + void sse_encode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException( + FutureOr Function() self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_DartOpaque( + encode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException(self), + serializer); } @protected - void sse_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( - FutureOr Function(Uint8List) self, SseSerializer serializer) { + void + sse_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + 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), + encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + self), serializer); } @protected - void sse_encode_DartFn_Inputs_out_point_Output_bool( + void sse_encode_DartFn_Inputs_out_point_Output_bool_AnyhowException( 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); + encode_DartFn_Inputs_out_point_Output_bool_AnyhowException(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)), + BigInt.from(PlatformPointerUtil.ptrToInt(encodeDartOpaque( + self, portManager.dartHandlerPort, generalizedFrbRustBinding))) + .toUnsigned(64), serializer); } @@ -4628,182 +5460,240 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform @protected void sse_encode_Map_u_64_out_point( - Map self, SseSerializer serializer) { + 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) { + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ArcV2PayjoinProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ArcV2PayjoinProposalImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( - ArcPayjoinFfiReceiveV1MaybeInputsSeen self, SseSerializer serializer) { + void sse_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + ArcContextV2 self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ArcContextV2Impl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( - ArcPayjoinFfiReceiveV1MaybeMixedInputScripts self, - SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + MaybeInputsOwned self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as MaybeInputsOwnedImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( - ArcPayjoinFfiReceiveV1OutputsUnknown self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( + MaybeInputsSeen self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as MaybeInputsSeenImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( - ArcPayjoinFfiReceiveV1PayjoinProposal self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( + MaybeMixedInputScripts self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as MaybeMixedInputScriptsImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( - ArcPayjoinFfiReceiveV1ProvisionalProposal self, - SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev1OutputsUnknown( + OutputsUnknown self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as OutputsUnknownImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( - ArcPayjoinFfiReceiveV2Enrolled self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev1PayjoinProposal( + PayjoinProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as PayjoinProposalImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( - ArcPayjoinFfiReceiveV2V2MaybeInputsOwned self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( + ProvisionalProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ProvisionalProposalImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( - ArcPayjoinFfiReceiveV2V2MaybeInputsSeen self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + UncheckedProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as UncheckedProposalImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( - ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts self, - SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev2ActiveSession( + ActiveSession self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ActiveSessionImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( - ArcPayjoinFfiReceiveV2V2OutputsUnknown self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev2SessionInitializer( + SessionInitializer self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as SessionInitializerImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( - ArcPayjoinFfiReceiveV2V2PayjoinProposal self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( + V2MaybeInputsOwned self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as V2MaybeInputsOwnedImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( - ArcPayjoinFfiReceiveV2V2ProvisionalProposal self, - SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( + V2MaybeInputsSeen self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as V2MaybeInputsSeenImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - ArcPayjoinFfiSendV1ContextV1 self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( + V2MaybeMixedInputScripts self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as V2MaybeMixedInputScriptsImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ArcPayjoinFfiSendV1RequestBuilder self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( + V2OutputsUnknown self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as V2OutputsUnknownImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - ArcPayjoinFfiSendV1RequestContext self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( + V2ProvisionalProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as V2ProvisionalProposalImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - ArcPayjoinFfiSendV2ContextV2 self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + V2UncheckedProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as V2UncheckedProposalImpl).frbInternalSseEncode(move: null), + serializer); + } + + @protected + void sse_encode_RustOpaque_payjoin_ffisendv1ContextV1( + ContextV1 self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as ContextV1Impl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffiuriUri( - ArcPayjoinFfiUriUri self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffisendv1RequestBuilder( + RequestBuilder self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as RequestBuilderImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_Arcpayjoin_ffiuriUrl( - ArcPayjoinFfiUriUrl self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffisendv1RequestContext( + RequestContext self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as RequestContextImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_MutexOptionohttpClientResponse( - MutexOptionOhttpClientResponse self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffitypesOhttpKeys( + OhttpKeys self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as OhttpKeysImpl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( - PayjoinFfiReceiveV1UncheckedProposal self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffiuriPjUri( + PjUri self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as PjUriImpl).frbInternalSseEncode(move: null), serializer); + } + + @protected + void sse_encode_RustOpaque_payjoin_ffiuriPjUriBuilder( + PjUriBuilder self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as PjUriBuilderImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_payjoin_ffireceivev2Enroller( - PayjoinFfiReceiveV2Enroller self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffiuriUri( + Uri self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as UriImpl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( - PayjoinFfiReceiveV2V2UncheckedProposal self, SseSerializer serializer) { + void sse_encode_RustOpaque_payjoin_ffiuriUrl( + Url self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as UrlImpl).frbInternalSseEncode(move: null), serializer); } @protected - void sse_encode_RustOpaque_payjoin_ffitypesOhttpKeys( - PayjoinFfiTypesOhttpKeys self, SseSerializer serializer) { + void sse_encode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + MutexOptionClientResponse self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize(self.sseEncode(move: null), serializer); + sse_encode_usize( + (self as MutexOptionClientResponseImpl) + .frbInternalSseEncode(move: null), + serializer); } @protected @@ -4819,253 +5709,434 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - void sse_encode_box_autoadd_client_response( - ClientResponse self, SseSerializer serializer) { + void sse_encode_box_autoadd_f_64(double self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_client_response(self, serializer); + sse_encode_f_64(self, serializer); } @protected - void sse_encode_box_autoadd_context_v_1( - ContextV1 self, SseSerializer serializer) { + void sse_encode_box_autoadd_ffi_active_session( + FfiActiveSession self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_active_session(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_client_response( + FfiClientResponse self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_client_response(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_context_v_1( + FfiContextV1 self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_context_v_1(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_context_v_2( + FfiContextV2 self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_context_v_2(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_maybe_inputs_owned( + FfiMaybeInputsOwned self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_maybe_inputs_owned(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_maybe_inputs_seen( + FfiMaybeInputsSeen self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_maybe_inputs_seen(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_maybe_mixed_input_scripts( + FfiMaybeMixedInputScripts self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_maybe_mixed_input_scripts(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_ohttp_keys( + FfiOhttpKeys self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_ohttp_keys(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_outputs_unknown( + FfiOutputsUnknown self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_outputs_unknown(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_payjoin_proposal( + FfiPayjoinProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_payjoin_proposal(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_pj_uri( + FfiPjUri self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_pj_uri(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_pj_uri_builder( + FfiPjUriBuilder self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_pj_uri_builder(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_provisional_proposal( + FfiProvisionalProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_provisional_proposal(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_request_builder( + FfiRequestBuilder self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_request_builder(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_request_context( + FfiRequestContext self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_request_context(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_session_initializer( + FfiSessionInitializer self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_session_initializer(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_unchecked_proposal( + FfiUncheckedProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_unchecked_proposal(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_uri(FfiUri self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_uri(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_url(FfiUrl self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_url(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_v_2_maybe_inputs_owned( + FfiV2MaybeInputsOwned self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_v_2_maybe_inputs_owned(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_v_2_maybe_inputs_seen( + FfiV2MaybeInputsSeen self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_v_2_maybe_inputs_seen(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_v_2_maybe_mixed_input_scripts( + FfiV2MaybeMixedInputScripts self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_v_2_maybe_mixed_input_scripts(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_v_2_outputs_unknown( + FfiV2OutputsUnknown self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_v_2_outputs_unknown(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_v_2_payjoin_proposal( + FfiV2PayjoinProposal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_ffi_v_2_payjoin_proposal(self, serializer); + } + + @protected + void sse_encode_box_autoadd_ffi_v_2_provisional_proposal( + FfiV2ProvisionalProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_context_v_1(self, serializer); + sse_encode_ffi_v_2_provisional_proposal(self, serializer); } @protected - void sse_encode_box_autoadd_context_v_2( - ContextV2 self, SseSerializer serializer) { + void sse_encode_box_autoadd_ffi_v_2_unchecked_proposal( + FfiV2UncheckedProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_context_v_2(self, serializer); + sse_encode_ffi_v_2_unchecked_proposal(self, serializer); } @protected - void sse_encode_box_autoadd_enrolled( - Enrolled self, SseSerializer serializer) { + void sse_encode_box_autoadd_headers(Headers self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_enrolled(self, serializer); + sse_encode_headers(self, serializer); } @protected - void sse_encode_box_autoadd_enroller( - Enroller self, SseSerializer serializer) { + void sse_encode_box_autoadd_out_point( + OutPoint self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_enroller(self, serializer); + sse_encode_out_point(self, serializer); } @protected - void sse_encode_box_autoadd_f_64(double self, SseSerializer serializer) { + void sse_encode_box_autoadd_tx_out(TxOut self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_f_64(self, serializer); + sse_encode_tx_out(self, serializer); } @protected - void sse_encode_box_autoadd_headers(Headers self, SseSerializer serializer) { + void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_headers(self, serializer); + sse_encode_u_64(self, serializer); } @protected - void sse_encode_box_autoadd_maybe_inputs_owned( - MaybeInputsOwned self, SseSerializer serializer) { + void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_maybe_inputs_owned(self, serializer); + sse_encode_u_8(self, serializer); } @protected - void sse_encode_box_autoadd_maybe_inputs_seen( - MaybeInputsSeen self, SseSerializer serializer) { + void sse_encode_f_64(double self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_maybe_inputs_seen(self, serializer); + serializer.buffer.putFloat64(self); } @protected - void sse_encode_box_autoadd_maybe_mixed_input_scripts( - MaybeMixedInputScripts self, SseSerializer serializer) { + void sse_encode_ffi_active_session( + FfiActiveSession self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_maybe_mixed_input_scripts(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev2ActiveSession( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_ohttp_keys( - OhttpKeys self, SseSerializer serializer) { + void sse_encode_ffi_client_response( + FfiClientResponse self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_ohttp_keys(self, serializer); + sse_encode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_out_point( - OutPoint self, SseSerializer serializer) { + void sse_encode_ffi_context_v_1(FfiContextV1 self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_out_point(self, serializer); + sse_encode_RustOpaque_payjoin_ffisendv1ContextV1(self.field0, serializer); } @protected - void sse_encode_box_autoadd_outputs_unknown( - OutputsUnknown self, SseSerializer serializer) { + void sse_encode_ffi_context_v_2(FfiContextV2 self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_outputs_unknown(self, serializer); + sse_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_payjoin_proposal( - PayjoinProposal self, SseSerializer serializer) { + void sse_encode_ffi_maybe_inputs_owned( + FfiMaybeInputsOwned self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_payjoin_proposal(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_provisional_proposal( - ProvisionalProposal self, SseSerializer serializer) { + void sse_encode_ffi_maybe_inputs_seen( + FfiMaybeInputsSeen self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_provisional_proposal(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_request_builder( - RequestBuilder self, SseSerializer serializer) { + void sse_encode_ffi_maybe_mixed_input_scripts( + FfiMaybeMixedInputScripts self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_request_builder(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_request_context( - RequestContext self, SseSerializer serializer) { + void sse_encode_ffi_ohttp_keys(FfiOhttpKeys self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_request_context(self, serializer); + sse_encode_RustOpaque_payjoin_ffitypesOhttpKeys(self.field0, serializer); } @protected - void sse_encode_box_autoadd_tx_out(TxOut self, SseSerializer serializer) { + void sse_encode_ffi_outputs_unknown( + FfiOutputsUnknown self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_tx_out(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev1OutputsUnknown( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer) { + void sse_encode_ffi_payjoin_proposal( + FfiPayjoinProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_u_64(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev1PayjoinProposal( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer) { + void sse_encode_ffi_pj_uri(FfiPjUri self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_u_8(self, serializer); + sse_encode_RustOpaque_payjoin_ffiuriPjUri(self.field0, serializer); } @protected - void sse_encode_box_autoadd_unchecked_proposal( - UncheckedProposal self, SseSerializer serializer) { + void sse_encode_ffi_pj_uri_builder( + FfiPjUriBuilder self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_unchecked_proposal(self, serializer); + sse_encode_RustOpaque_payjoin_ffiuriPjUriBuilder(self.internal, serializer); } @protected - void sse_encode_box_autoadd_uri(Uri self, SseSerializer serializer) { + void sse_encode_ffi_provisional_proposal( + FfiProvisionalProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_uri(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_url(Url self, SseSerializer serializer) { + void sse_encode_ffi_request_builder( + FfiRequestBuilder self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_url(self, serializer); + sse_encode_RustOpaque_payjoin_ffisendv1RequestBuilder( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_v_2_maybe_inputs_owned( - V2MaybeInputsOwned self, SseSerializer serializer) { + void sse_encode_ffi_request_context( + FfiRequestContext self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_v_2_maybe_inputs_owned(self, serializer); + sse_encode_RustOpaque_payjoin_ffisendv1RequestContext( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_v_2_maybe_inputs_seen( - V2MaybeInputsSeen self, SseSerializer serializer) { + void sse_encode_ffi_session_initializer( + FfiSessionInitializer self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_v_2_maybe_inputs_seen(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev2SessionInitializer( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_v_2_maybe_mixed_input_scripts( - V2MaybeMixedInputScripts self, SseSerializer serializer) { + void sse_encode_ffi_unchecked_proposal( + FfiUncheckedProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_v_2_maybe_mixed_input_scripts(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_v_2_outputs_unknown( - V2OutputsUnknown self, SseSerializer serializer) { + void sse_encode_ffi_uri(FfiUri self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_v_2_outputs_unknown(self, serializer); + sse_encode_RustOpaque_payjoin_ffiuriUri(self.field0, serializer); } @protected - void sse_encode_box_autoadd_v_2_payjoin_proposal( - V2PayjoinProposal self, SseSerializer serializer) { + void sse_encode_ffi_url(FfiUrl self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_v_2_payjoin_proposal(self, serializer); + sse_encode_RustOpaque_payjoin_ffiuriUrl(self.field0, serializer); } @protected - void sse_encode_box_autoadd_v_2_provisional_proposal( - V2ProvisionalProposal self, SseSerializer serializer) { + void sse_encode_ffi_v_2_maybe_inputs_owned( + FfiV2MaybeInputsOwned self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_v_2_provisional_proposal(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( + self.field0, serializer); } @protected - void sse_encode_box_autoadd_v_2_unchecked_proposal( - V2UncheckedProposal self, SseSerializer serializer) { + void sse_encode_ffi_v_2_maybe_inputs_seen( + FfiV2MaybeInputsSeen self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_v_2_unchecked_proposal(self, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( + self.field0, serializer); } @protected - void sse_encode_client_response( - ClientResponse self, SseSerializer serializer) { + void sse_encode_ffi_v_2_maybe_mixed_input_scripts( + FfiV2MaybeMixedInputScripts self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_MutexOptionohttpClientResponse( + sse_encode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( self.field0, serializer); } @protected - void sse_encode_context_v_1(ContextV1 self, SseSerializer serializer) { + void sse_encode_ffi_v_2_outputs_unknown( + FfiV2OutputsUnknown self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + sse_encode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( self.field0, serializer); } @protected - void sse_encode_context_v_2(ContextV2 self, SseSerializer serializer) { + void sse_encode_ffi_v_2_payjoin_proposal( + FfiV2PayjoinProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( self.field0, serializer); } @protected - void sse_encode_enrolled(Enrolled self, SseSerializer serializer) { + void sse_encode_ffi_v_2_provisional_proposal( + FfiV2ProvisionalProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + sse_encode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( self.field0, serializer); } @protected - void sse_encode_enroller(Enroller self, SseSerializer serializer) { + void sse_encode_ffi_v_2_unchecked_proposal( + FfiV2UncheckedProposal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_payjoin_ffireceivev2Enroller(self.field0, serializer); + sse_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + self.field0, serializer); } @protected - void sse_encode_f_64(double self, SseSerializer serializer) { + void sse_encode_headers(Headers self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putFloat64(self); + sse_encode_Map_String_String(self.map, serializer); } @protected - void sse_encode_headers(Headers self, SseSerializer serializer) { + void sse_encode_i_32(int self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_Map_String_String(self.map, serializer); + serializer.buffer.putInt32(self); } @protected @@ -5115,7 +6186,7 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform @protected void sse_encode_list_record_u_64_out_point( - List<(int, OutPoint)> self, SseSerializer serializer) { + List<(BigInt, 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) { @@ -5124,33 +6195,9 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - void sse_encode_maybe_inputs_owned( - MaybeInputsOwned self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - 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_ohttp_keys(OhttpKeys self, SseSerializer serializer) { + void sse_encode_network(Network self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_payjoin_ffitypesOhttpKeys(self.field0, serializer); + sse_encode_i_32(self.index, serializer); } @protected @@ -5174,49 +6221,52 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_ffi_ohttp_keys( + FfiOhttpKeys? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); if (self != null) { - sse_encode_box_autoadd_u_64(self, serializer); + sse_encode_box_autoadd_ffi_ohttp_keys(self, serializer); } } @protected - void sse_encode_opt_box_autoadd_u_8(int? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_ffi_v_2_unchecked_proposal( + FfiV2UncheckedProposal? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); if (self != null) { - sse_encode_box_autoadd_u_8(self, serializer); + sse_encode_box_autoadd_ffi_v_2_unchecked_proposal(self, serializer); } } @protected - void sse_encode_opt_box_autoadd_v_2_unchecked_proposal( - V2UncheckedProposal? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); if (self != null) { - sse_encode_box_autoadd_v_2_unchecked_proposal(self, serializer); + sse_encode_box_autoadd_u_64(self, serializer); } } @protected - void sse_encode_out_point(OutPoint self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_u_8(int? 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); + + sse_encode_bool(self != null, serializer); + if (self != null) { + sse_encode_box_autoadd_u_8(self, serializer); + } } @protected - void sse_encode_outputs_unknown( - OutputsUnknown self, SseSerializer serializer) { + void sse_encode_out_point(OutPoint self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( - self.field0, serializer); + sse_encode_String(self.txid, serializer); + sse_encode_u_32(self.vout, serializer); } @protected @@ -5274,31 +6324,30 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform case PayjoinError_UrlError(message: final message): sse_encode_i_32(16, serializer); sse_encode_String(message, serializer); + case PayjoinError_IoError(message: final message): + sse_encode_i_32(17, serializer); + sse_encode_String(message, serializer); + default: + throw UnimplementedError(''); } } @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) { + void sse_encode_record_ffi_url_list_prim_u_8_strict( + (FfiUrl, Uint8List) self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( - self.field0, serializer); + sse_encode_ffi_url(self.$1, serializer); + sse_encode_list_prim_u_8_strict(self.$2, serializer); } @protected - void sse_encode_record_record_url_list_prim_u_8_strict_client_response( - ((Url, Uint8List), ClientResponse) self, SseSerializer serializer) { + void + sse_encode_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response( + ((FfiUrl, Uint8List), FfiClientResponse) self, + SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_record_url_list_prim_u_8_strict(self.$1, serializer); - sse_encode_client_response(self.$2, serializer); + sse_encode_record_ffi_url_list_prim_u_8_strict(self.$1, serializer); + sse_encode_ffi_client_response(self.$2, serializer); } @protected @@ -5311,50 +6360,26 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform @protected void sse_encode_record_u_64_out_point( - (int, OutPoint) self, SseSerializer serializer) { + (BigInt, 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_record_url_list_prim_u_8_strict( - (Url, Uint8List) self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_url(self.$1, serializer); - sse_encode_list_prim_u_8_strict(self.$2, serializer); - } - - @protected - void sse_encode_request_builder( - RequestBuilder self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - self.field0, serializer); - } - - @protected - void sse_encode_request_context( - RequestContext self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - self.field0, serializer); - } - @protected void sse_encode_request_context_v_1( RequestContextV1 self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_record_url_list_prim_u_8_strict(self.request, serializer); - sse_encode_context_v_1(self.contextV1, serializer); + sse_encode_record_ffi_url_list_prim_u_8_strict(self.request, serializer); + sse_encode_ffi_context_v_1(self.contextV1, serializer); } @protected void sse_encode_request_context_v_2( RequestContextV2 self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_record_url_list_prim_u_8_strict(self.request, serializer); - sse_encode_context_v_2(self.contextV2, serializer); + sse_encode_record_ffi_url_list_prim_u_8_strict(self.request, serializer); + sse_encode_ffi_context_v_2(self.contextV2, serializer); } @protected @@ -5371,9 +6396,9 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform } @protected - void sse_encode_u_64(int self, SseSerializer serializer) { + void sse_encode_u_64(BigInt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putUint64(self); + serializer.buffer.putBigUint64(self); } @protected @@ -5382,96 +6407,554 @@ class PayjoinCoreApiImpl extends PayjoinCoreApiImplPlatform serializer.buffer.putUint8(self); } - @protected - void sse_encode_unchecked_proposal( - UncheckedProposal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( - self.field0, serializer); - } - @protected void sse_encode_unit(void self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs } @protected - void sse_encode_uri(Uri self, SseSerializer serializer) { + void sse_encode_usize(BigInt self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcpayjoin_ffiuriUri(self.field0, serializer); + serializer.buffer.putBigUint64(self); } +} - @protected - void sse_encode_url(Url self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_Arcpayjoin_ffiuriUrl(self.field0, serializer); - } +@sealed +class ActiveSessionImpl extends RustOpaque implements ActiveSession { + // Not to be used by end users + ActiveSessionImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ActiveSessionImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_ActiveSession, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_ActiveSession, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_ActiveSessionPtr, + ); +} - @protected - void sse_encode_usize(int self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putUint64(self); - } +@sealed +class ArcContextV2Impl extends RustOpaque implements ArcContextV2 { + // Not to be used by end users + ArcContextV2Impl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ArcContextV2Impl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_ArcContextV2, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_ArcContextV2, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_ArcContextV2Ptr, + ); +} - @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); - } +@sealed +class ArcV2PayjoinProposalImpl extends RustOpaque + implements ArcV2PayjoinProposal { + // Not to be used by end users + ArcV2PayjoinProposalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ArcV2PayjoinProposalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_ArcV2PayjoinProposal, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_ArcV2PayjoinProposal, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_ArcV2PayjoinProposalPtr, + ); +} - @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); - } +@sealed +class ContextV1Impl extends RustOpaque implements ContextV1 { + // Not to be used by end users + ContextV1Impl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ContextV1Impl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_ContextV1, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_ContextV1, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_ContextV1Ptr, + ); +} - @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); - } +@sealed +class MaybeInputsOwnedImpl extends RustOpaque implements MaybeInputsOwned { + // Not to be used by end users + MaybeInputsOwnedImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + MaybeInputsOwnedImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_MaybeInputsOwned, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_MaybeInputsOwned, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_MaybeInputsOwnedPtr, + ); +} - @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); - } +@sealed +class MaybeInputsSeenImpl extends RustOpaque implements MaybeInputsSeen { + // Not to be used by end users + MaybeInputsSeenImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + MaybeInputsSeenImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_MaybeInputsSeen, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_MaybeInputsSeen, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_MaybeInputsSeenPtr, + ); +} - @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); - } +@sealed +class MaybeMixedInputScriptsImpl extends RustOpaque + implements MaybeMixedInputScripts { + // Not to be used by end users + MaybeMixedInputScriptsImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + MaybeMixedInputScriptsImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: core + .instance.api.rust_arc_increment_strong_count_MaybeMixedInputScripts, + rustArcDecrementStrongCount: core + .instance.api.rust_arc_decrement_strong_count_MaybeMixedInputScripts, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_MaybeMixedInputScriptsPtr, + ); +} - @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); - } +@sealed +class MutexOptionClientResponseImpl extends RustOpaque + implements MutexOptionClientResponse { + // Not to be used by end users + MutexOptionClientResponseImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + MutexOptionClientResponseImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: core + .instance.api.rust_arc_increment_strong_count_MutexOptionClientResponse, + rustArcDecrementStrongCount: core + .instance.api.rust_arc_decrement_strong_count_MutexOptionClientResponse, + rustArcDecrementStrongCountPtr: core.instance.api + .rust_arc_decrement_strong_count_MutexOptionClientResponsePtr, + ); +} - @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); - } +@sealed +class OhttpKeysImpl extends RustOpaque implements OhttpKeys { + // Not to be used by end users + OhttpKeysImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + OhttpKeysImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_OhttpKeys, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_OhttpKeys, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_OhttpKeysPtr, + ); +} - @protected - void sse_encode_i_32(int self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putInt32(self); - } +@sealed +class OutputsUnknownImpl extends RustOpaque implements OutputsUnknown { + // Not to be used by end users + OutputsUnknownImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + OutputsUnknownImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_OutputsUnknown, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_OutputsUnknown, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_OutputsUnknownPtr, + ); +} + +@sealed +class PayjoinProposalImpl extends RustOpaque implements PayjoinProposal { + // Not to be used by end users + PayjoinProposalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + PayjoinProposalImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_PayjoinProposal, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_PayjoinProposal, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_PayjoinProposalPtr, + ); +} + +@sealed +class PjUriBuilderImpl extends RustOpaque implements PjUriBuilder { + // Not to be used by end users + PjUriBuilderImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + PjUriBuilderImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_PjUriBuilder, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_PjUriBuilder, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_PjUriBuilderPtr, + ); +} + +@sealed +class PjUriImpl extends RustOpaque implements PjUri { + // Not to be used by end users + PjUriImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + PjUriImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_PjUri, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_PjUri, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_PjUriPtr, + ); +} + +@sealed +class ProvisionalProposalImpl extends RustOpaque + implements ProvisionalProposal { + // Not to be used by end users + ProvisionalProposalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + ProvisionalProposalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_ProvisionalProposal, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_ProvisionalProposal, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_ProvisionalProposalPtr, + ); +} + +@sealed +class RequestBuilderImpl extends RustOpaque implements RequestBuilder { + // Not to be used by end users + RequestBuilderImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + RequestBuilderImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_RequestBuilder, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_RequestBuilder, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_RequestBuilderPtr, + ); +} + +@sealed +class RequestContextImpl extends RustOpaque implements RequestContext { + // Not to be used by end users + RequestContextImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + RequestContextImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_RequestContext, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_RequestContext, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_RequestContextPtr, + ); +} + +@sealed +class SessionInitializerImpl extends RustOpaque implements SessionInitializer { + // Not to be used by end users + SessionInitializerImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + SessionInitializerImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_SessionInitializer, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_SessionInitializer, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_SessionInitializerPtr, + ); +} + +@sealed +class UncheckedProposalImpl extends RustOpaque implements UncheckedProposal { + // Not to be used by end users + UncheckedProposalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + UncheckedProposalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_UncheckedProposal, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_UncheckedProposal, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_UncheckedProposalPtr, + ); +} + +@sealed +class UriImpl extends RustOpaque implements Uri { + // Not to be used by end users + UriImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + UriImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_Uri, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_Uri, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_UriPtr, + ); +} + +@sealed +class UrlImpl extends RustOpaque implements Url { + // Not to be used by end users + UrlImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + UrlImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_Url, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_Url, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_UrlPtr, + ); +} + +@sealed +class V2MaybeInputsOwnedImpl extends RustOpaque implements V2MaybeInputsOwned { + // Not to be used by end users + V2MaybeInputsOwnedImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + V2MaybeInputsOwnedImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_V2MaybeInputsOwned, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_V2MaybeInputsOwned, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_V2MaybeInputsOwnedPtr, + ); +} + +@sealed +class V2MaybeInputsSeenImpl extends RustOpaque implements V2MaybeInputsSeen { + // Not to be used by end users + V2MaybeInputsSeenImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + V2MaybeInputsSeenImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_V2MaybeInputsSeen, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_V2MaybeInputsSeen, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_V2MaybeInputsSeenPtr, + ); +} + +@sealed +class V2MaybeMixedInputScriptsImpl extends RustOpaque + implements V2MaybeMixedInputScripts { + // Not to be used by end users + V2MaybeMixedInputScriptsImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + V2MaybeMixedInputScriptsImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: core + .instance.api.rust_arc_increment_strong_count_V2MaybeMixedInputScripts, + rustArcDecrementStrongCount: core + .instance.api.rust_arc_decrement_strong_count_V2MaybeMixedInputScripts, + rustArcDecrementStrongCountPtr: core.instance.api + .rust_arc_decrement_strong_count_V2MaybeMixedInputScriptsPtr, + ); +} + +@sealed +class V2OutputsUnknownImpl extends RustOpaque implements V2OutputsUnknown { + // Not to be used by end users + V2OutputsUnknownImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + V2OutputsUnknownImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_V2OutputsUnknown, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_V2OutputsUnknown, + rustArcDecrementStrongCountPtr: + core.instance.api.rust_arc_decrement_strong_count_V2OutputsUnknownPtr, + ); +} + +@sealed +class V2ProvisionalProposalImpl extends RustOpaque + implements V2ProvisionalProposal { + // Not to be used by end users + V2ProvisionalProposalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + V2ProvisionalProposalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_V2ProvisionalProposal, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_V2ProvisionalProposal, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_V2ProvisionalProposalPtr, + ); +} + +@sealed +class V2UncheckedProposalImpl extends RustOpaque + implements V2UncheckedProposal { + // Not to be used by end users + V2UncheckedProposalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + V2UncheckedProposalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + core.instance.api.rust_arc_increment_strong_count_V2UncheckedProposal, + rustArcDecrementStrongCount: + core.instance.api.rust_arc_decrement_strong_count_V2UncheckedProposal, + rustArcDecrementStrongCountPtr: core + .instance.api.rust_arc_decrement_strong_count_V2UncheckedProposalPtr, + ); } diff --git a/lib/src/generated/frb_generated.io.dart b/lib/src/generated/frb_generated.io.dart index ac46a42..853e2bf 100644 --- a/lib/src/generated/frb_generated.io.dart +++ b/lib/src/generated/frb_generated.io.dart @@ -1,8 +1,9 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. +// Generated by `flutter_rust_bridge`@ 2.0.0. // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field +import 'api/io.dart'; import 'api/receive.dart'; import 'api/send.dart'; import 'api/uri.dart'; @@ -10,12 +11,13 @@ import 'dart:async'; import 'dart:convert'; import 'dart:ffi' as ffi; import 'frb_generated.dart'; +import 'lib.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_io.dart'; import 'utils/error.dart'; import 'utils/types.dart'; -abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { - PayjoinCoreApiImplPlatform({ +abstract class coreApiImplPlatform extends BaseApiImpl { + coreApiImplPlatform({ required super.handler, required super.wire, required super.generalizedFrbRustBinding, @@ -23,112 +25,126 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { }); CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsOwnedPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr; + get rust_arc_decrement_strong_count_ArcV2PayjoinProposalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposalPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeInputsSeenPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeenPtr; + get rust_arc_decrement_strong_count_ArcContextV2Ptr => wire + ._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1MaybeMixedInputScriptsPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScriptsPtr; + get rust_arc_decrement_strong_count_MaybeInputsOwnedPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwnedPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1OutputsUnknownPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknownPtr; + get rust_arc_decrement_strong_count_MaybeInputsSeenPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeenPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1PayjoinProposalPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposalPtr; + get rust_arc_decrement_strong_count_MaybeMixedInputScriptsPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScriptsPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV1ProvisionalProposalPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposalPtr; + get rust_arc_decrement_strong_count_OutputsUnknownPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknownPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2EnrolledPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2EnrolledPtr; + get rust_arc_decrement_strong_count_PayjoinProposalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposalPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsOwnedPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwnedPtr; + get rust_arc_decrement_strong_count_ProvisionalProposalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposalPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeInputsSeenPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeenPtr; + get rust_arc_decrement_strong_count_UncheckedProposalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2MaybeMixedInputScriptsPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScriptsPtr; + get rust_arc_decrement_strong_count_ActiveSessionPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSessionPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2OutputsUnknownPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknownPtr; + get rust_arc_decrement_strong_count_SessionInitializerPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializerPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2PayjoinProposalPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposalPtr; + get rust_arc_decrement_strong_count_V2MaybeInputsOwnedPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwnedPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiReceiveV2V2ProvisionalProposalPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposalPtr; + get rust_arc_decrement_strong_count_V2MaybeInputsSeenPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeenPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1ContextV1Ptr => wire - ._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr; + get rust_arc_decrement_strong_count_V2MaybeMixedInputScriptsPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScriptsPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestBuilderPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr; + get rust_arc_decrement_strong_count_V2OutputsUnknownPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknownPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestContextPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr; + get rust_arc_decrement_strong_count_V2ProvisionalProposalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposalPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV2ContextV2Ptr => wire - ._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr; + get rust_arc_decrement_strong_count_V2UncheckedProposalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUriPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ContextV1Ptr => + wire._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1ContextV1Ptr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUrlPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr; + get rust_arc_decrement_strong_count_RequestBuilderPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilderPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_MutexOptionOhttpClientResponsePtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponsePtr; + get rust_arc_decrement_strong_count_RequestContextPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestContextPtr; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV1UncheckedProposalPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_OhttpKeysPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeysPtr; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2EnrollerPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2EnrollerPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_PjUriPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_PayjoinFfiReceiveV2V2UncheckedProposalPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr; + get rust_arc_decrement_strong_count_PjUriBuilderPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilderPtr; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_UriPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUriPtr; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_UrlPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUrlPtr; CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_PayjoinFfiTypesOhttpKeysPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeysPtr; + get rust_arc_decrement_strong_count_MutexOptionClientResponsePtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponsePtr; + + @protected + AnyhowException dco_decode_AnyhowException(dynamic raw); @protected FutureOr Function(String) - dco_decode_DartFn_Inputs_String_Output_String(dynamic raw); + dco_decode_DartFn_Inputs_String_Output_String_AnyhowException( + dynamic raw); + + @protected + FutureOr Function() + dco_decode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException( + dynamic raw); @protected FutureOr Function(Uint8List) - dco_decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(dynamic raw); + dco_decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + dynamic raw); @protected FutureOr Function(OutPoint) - dco_decode_DartFn_Inputs_out_point_Output_bool(dynamic raw); + dco_decode_DartFn_Inputs_out_point_Output_bool_AnyhowException( + dynamic raw); @protected Object dco_decode_DartOpaque(dynamic raw); @@ -137,111 +153,111 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { Map dco_decode_Map_String_String(dynamic raw); @protected - Map dco_decode_Map_u_64_out_point(dynamic raw); + Map dco_decode_Map_u_64_out_point(dynamic raw); @protected - ArcPayjoinFfiReceiveV1MaybeInputsOwned - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + ArcV2PayjoinProposal + dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( dynamic raw); @protected - ArcPayjoinFfiReceiveV1MaybeInputsSeen - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen(dynamic raw); + ArcContextV2 dco_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(dynamic raw); @protected - ArcPayjoinFfiReceiveV1MaybeMixedInputScripts - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + MaybeInputsOwned dco_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + dynamic raw); + + @protected + MaybeInputsSeen dco_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( + dynamic raw); + + @protected + MaybeMixedInputScripts + dco_decode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( dynamic raw); @protected - ArcPayjoinFfiReceiveV1OutputsUnknown - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown(dynamic raw); + OutputsUnknown dco_decode_RustOpaque_payjoin_ffireceivev1OutputsUnknown( + dynamic raw); @protected - ArcPayjoinFfiReceiveV1PayjoinProposal - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal(dynamic raw); + PayjoinProposal dco_decode_RustOpaque_payjoin_ffireceivev1PayjoinProposal( + dynamic raw); @protected - ArcPayjoinFfiReceiveV1ProvisionalProposal - dco_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + ProvisionalProposal + dco_decode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( dynamic raw); @protected - ArcPayjoinFfiReceiveV2Enrolled - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(dynamic raw); + UncheckedProposal dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + dynamic raw); @protected - ArcPayjoinFfiReceiveV2V2MaybeInputsOwned - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( - dynamic raw); + ActiveSession dco_decode_RustOpaque_payjoin_ffireceivev2ActiveSession( + dynamic raw); @protected - ArcPayjoinFfiReceiveV2V2MaybeInputsSeen - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( - dynamic raw); + SessionInitializer + dco_decode_RustOpaque_payjoin_ffireceivev2SessionInitializer(dynamic raw); @protected - ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( - dynamic raw); + V2MaybeInputsOwned + dco_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned(dynamic raw); @protected - ArcPayjoinFfiReceiveV2V2OutputsUnknown - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( - dynamic raw); + V2MaybeInputsSeen dco_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( + dynamic raw); @protected - ArcPayjoinFfiReceiveV2V2PayjoinProposal - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + V2MaybeMixedInputScripts + dco_decode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( dynamic raw); @protected - ArcPayjoinFfiReceiveV2V2ProvisionalProposal - dco_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( - dynamic raw); + V2OutputsUnknown dco_decode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( + dynamic raw); @protected - ArcPayjoinFfiSendV1ContextV1 - dco_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(dynamic raw); + V2ProvisionalProposal + dco_decode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( + dynamic raw); @protected - ArcPayjoinFfiSendV1RequestBuilder - dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(dynamic raw); + V2UncheckedProposal + dco_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + dynamic raw); @protected - ArcPayjoinFfiSendV1RequestContext - dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext(dynamic raw); + ContextV1 dco_decode_RustOpaque_payjoin_ffisendv1ContextV1(dynamic raw); @protected - ArcPayjoinFfiSendV2ContextV2 - dco_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(dynamic raw); + RequestBuilder dco_decode_RustOpaque_payjoin_ffisendv1RequestBuilder( + dynamic raw); @protected - ArcPayjoinFfiUriUri dco_decode_RustOpaque_Arcpayjoin_ffiuriUri(dynamic raw); + RequestContext dco_decode_RustOpaque_payjoin_ffisendv1RequestContext( + dynamic raw); @protected - ArcPayjoinFfiUriUrl dco_decode_RustOpaque_Arcpayjoin_ffiuriUrl(dynamic raw); + OhttpKeys dco_decode_RustOpaque_payjoin_ffitypesOhttpKeys(dynamic raw); @protected - MutexOptionOhttpClientResponse - dco_decode_RustOpaque_MutexOptionohttpClientResponse(dynamic raw); + PjUri dco_decode_RustOpaque_payjoin_ffiuriPjUri(dynamic raw); @protected - PayjoinFfiReceiveV1UncheckedProposal - dco_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal(dynamic raw); + PjUriBuilder dco_decode_RustOpaque_payjoin_ffiuriPjUriBuilder(dynamic raw); @protected - PayjoinFfiReceiveV2Enroller - dco_decode_RustOpaque_payjoin_ffireceivev2Enroller(dynamic raw); + Uri dco_decode_RustOpaque_payjoin_ffiuriUri(dynamic raw); @protected - PayjoinFfiReceiveV2V2UncheckedProposal - dco_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( - dynamic raw); + Url dco_decode_RustOpaque_payjoin_ffiuriUrl(dynamic raw); @protected - PayjoinFfiTypesOhttpKeys dco_decode_RustOpaque_payjoin_ffitypesOhttpKeys( - dynamic raw); + MutexOptionClientResponse + dco_decode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + dynamic raw); @protected String dco_decode_String(dynamic raw); @@ -250,949 +266,1046 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { bool dco_decode_bool(dynamic raw); @protected - ClientResponse dco_decode_box_autoadd_client_response(dynamic raw); + double dco_decode_box_autoadd_f_64(dynamic raw); @protected - ContextV1 dco_decode_box_autoadd_context_v_1(dynamic raw); + FfiActiveSession dco_decode_box_autoadd_ffi_active_session(dynamic raw); @protected - ContextV2 dco_decode_box_autoadd_context_v_2(dynamic raw); + FfiClientResponse dco_decode_box_autoadd_ffi_client_response(dynamic raw); @protected - Enrolled dco_decode_box_autoadd_enrolled(dynamic raw); + FfiContextV1 dco_decode_box_autoadd_ffi_context_v_1(dynamic raw); @protected - Enroller dco_decode_box_autoadd_enroller(dynamic raw); + FfiContextV2 dco_decode_box_autoadd_ffi_context_v_2(dynamic raw); @protected - double dco_decode_box_autoadd_f_64(dynamic raw); + FfiMaybeInputsOwned dco_decode_box_autoadd_ffi_maybe_inputs_owned( + dynamic raw); @protected - Headers dco_decode_box_autoadd_headers(dynamic raw); + FfiMaybeInputsSeen dco_decode_box_autoadd_ffi_maybe_inputs_seen(dynamic raw); @protected - MaybeInputsOwned dco_decode_box_autoadd_maybe_inputs_owned(dynamic raw); + FfiMaybeMixedInputScripts + dco_decode_box_autoadd_ffi_maybe_mixed_input_scripts(dynamic raw); @protected - MaybeInputsSeen dco_decode_box_autoadd_maybe_inputs_seen(dynamic raw); + FfiOhttpKeys dco_decode_box_autoadd_ffi_ohttp_keys(dynamic raw); @protected - MaybeMixedInputScripts dco_decode_box_autoadd_maybe_mixed_input_scripts( - dynamic raw); + FfiOutputsUnknown dco_decode_box_autoadd_ffi_outputs_unknown(dynamic raw); @protected - OhttpKeys dco_decode_box_autoadd_ohttp_keys(dynamic raw); + FfiPayjoinProposal dco_decode_box_autoadd_ffi_payjoin_proposal(dynamic raw); @protected - OutPoint dco_decode_box_autoadd_out_point(dynamic raw); + FfiPjUri dco_decode_box_autoadd_ffi_pj_uri(dynamic raw); @protected - OutputsUnknown dco_decode_box_autoadd_outputs_unknown(dynamic raw); + FfiPjUriBuilder dco_decode_box_autoadd_ffi_pj_uri_builder(dynamic raw); @protected - PayjoinProposal dco_decode_box_autoadd_payjoin_proposal(dynamic raw); + FfiProvisionalProposal dco_decode_box_autoadd_ffi_provisional_proposal( + dynamic raw); @protected - ProvisionalProposal dco_decode_box_autoadd_provisional_proposal(dynamic raw); + FfiRequestBuilder dco_decode_box_autoadd_ffi_request_builder(dynamic raw); @protected - RequestBuilder dco_decode_box_autoadd_request_builder(dynamic raw); + FfiRequestContext dco_decode_box_autoadd_ffi_request_context(dynamic raw); @protected - RequestContext dco_decode_box_autoadd_request_context(dynamic raw); + FfiSessionInitializer dco_decode_box_autoadd_ffi_session_initializer( + dynamic raw); @protected - TxOut dco_decode_box_autoadd_tx_out(dynamic raw); + FfiUncheckedProposal dco_decode_box_autoadd_ffi_unchecked_proposal( + dynamic raw); @protected - int dco_decode_box_autoadd_u_64(dynamic raw); + FfiUri dco_decode_box_autoadd_ffi_uri(dynamic raw); @protected - int dco_decode_box_autoadd_u_8(dynamic raw); + FfiUrl dco_decode_box_autoadd_ffi_url(dynamic raw); @protected - UncheckedProposal dco_decode_box_autoadd_unchecked_proposal(dynamic raw); + FfiV2MaybeInputsOwned dco_decode_box_autoadd_ffi_v_2_maybe_inputs_owned( + dynamic raw); @protected - Uri dco_decode_box_autoadd_uri(dynamic raw); + FfiV2MaybeInputsSeen dco_decode_box_autoadd_ffi_v_2_maybe_inputs_seen( + dynamic raw); @protected - Url dco_decode_box_autoadd_url(dynamic raw); + FfiV2MaybeMixedInputScripts + dco_decode_box_autoadd_ffi_v_2_maybe_mixed_input_scripts(dynamic raw); @protected - V2MaybeInputsOwned dco_decode_box_autoadd_v_2_maybe_inputs_owned(dynamic raw); + FfiV2OutputsUnknown dco_decode_box_autoadd_ffi_v_2_outputs_unknown( + dynamic raw); @protected - V2MaybeInputsSeen dco_decode_box_autoadd_v_2_maybe_inputs_seen(dynamic raw); + FfiV2PayjoinProposal dco_decode_box_autoadd_ffi_v_2_payjoin_proposal( + dynamic raw); @protected - V2MaybeMixedInputScripts dco_decode_box_autoadd_v_2_maybe_mixed_input_scripts( + FfiV2ProvisionalProposal dco_decode_box_autoadd_ffi_v_2_provisional_proposal( dynamic raw); @protected - V2OutputsUnknown dco_decode_box_autoadd_v_2_outputs_unknown(dynamic raw); + FfiV2UncheckedProposal dco_decode_box_autoadd_ffi_v_2_unchecked_proposal( + dynamic raw); @protected - V2PayjoinProposal dco_decode_box_autoadd_v_2_payjoin_proposal(dynamic raw); + Headers dco_decode_box_autoadd_headers(dynamic raw); @protected - V2ProvisionalProposal dco_decode_box_autoadd_v_2_provisional_proposal( - dynamic raw); + OutPoint dco_decode_box_autoadd_out_point(dynamic raw); @protected - V2UncheckedProposal dco_decode_box_autoadd_v_2_unchecked_proposal( - dynamic raw); + TxOut dco_decode_box_autoadd_tx_out(dynamic raw); @protected - ClientResponse dco_decode_client_response(dynamic raw); + BigInt dco_decode_box_autoadd_u_64(dynamic raw); @protected - ContextV1 dco_decode_context_v_1(dynamic raw); + int dco_decode_box_autoadd_u_8(dynamic raw); @protected - ContextV2 dco_decode_context_v_2(dynamic raw); + double dco_decode_f_64(dynamic raw); @protected - Enrolled dco_decode_enrolled(dynamic raw); + FfiActiveSession dco_decode_ffi_active_session(dynamic raw); @protected - Enroller dco_decode_enroller(dynamic raw); + FfiClientResponse dco_decode_ffi_client_response(dynamic raw); @protected - double dco_decode_f_64(dynamic raw); + FfiContextV1 dco_decode_ffi_context_v_1(dynamic raw); @protected - Headers dco_decode_headers(dynamic raw); + FfiContextV2 dco_decode_ffi_context_v_2(dynamic raw); @protected - List dco_decode_list_out_point(dynamic raw); + FfiMaybeInputsOwned dco_decode_ffi_maybe_inputs_owned(dynamic raw); @protected - Uint64List dco_decode_list_prim_u_64_strict(dynamic raw); + FfiMaybeInputsSeen dco_decode_ffi_maybe_inputs_seen(dynamic raw); @protected - List dco_decode_list_prim_u_8_loose(dynamic raw); + FfiMaybeMixedInputScripts dco_decode_ffi_maybe_mixed_input_scripts( + dynamic raw); @protected - Uint8List dco_decode_list_prim_u_8_strict(dynamic raw); + FfiOhttpKeys dco_decode_ffi_ohttp_keys(dynamic raw); @protected - List<(String, String)> dco_decode_list_record_string_string(dynamic raw); + FfiOutputsUnknown dco_decode_ffi_outputs_unknown(dynamic raw); @protected - List<(int, OutPoint)> dco_decode_list_record_u_64_out_point(dynamic raw); + FfiPayjoinProposal dco_decode_ffi_payjoin_proposal(dynamic raw); @protected - MaybeInputsOwned dco_decode_maybe_inputs_owned(dynamic raw); + FfiPjUri dco_decode_ffi_pj_uri(dynamic raw); @protected - MaybeInputsSeen dco_decode_maybe_inputs_seen(dynamic raw); + FfiPjUriBuilder dco_decode_ffi_pj_uri_builder(dynamic raw); @protected - MaybeMixedInputScripts dco_decode_maybe_mixed_input_scripts(dynamic raw); + FfiProvisionalProposal dco_decode_ffi_provisional_proposal(dynamic raw); @protected - OhttpKeys dco_decode_ohttp_keys(dynamic raw); + FfiRequestBuilder dco_decode_ffi_request_builder(dynamic raw); @protected - String? dco_decode_opt_String(dynamic raw); + FfiRequestContext dco_decode_ffi_request_context(dynamic raw); @protected - double? dco_decode_opt_box_autoadd_f_64(dynamic raw); + FfiSessionInitializer dco_decode_ffi_session_initializer(dynamic raw); @protected - int? dco_decode_opt_box_autoadd_u_64(dynamic raw); + FfiUncheckedProposal dco_decode_ffi_unchecked_proposal(dynamic raw); @protected - int? dco_decode_opt_box_autoadd_u_8(dynamic raw); + FfiUri dco_decode_ffi_uri(dynamic raw); @protected - V2UncheckedProposal? dco_decode_opt_box_autoadd_v_2_unchecked_proposal( - dynamic raw); + FfiUrl dco_decode_ffi_url(dynamic raw); @protected - OutPoint dco_decode_out_point(dynamic raw); + FfiV2MaybeInputsOwned dco_decode_ffi_v_2_maybe_inputs_owned(dynamic raw); @protected - OutputsUnknown dco_decode_outputs_unknown(dynamic raw); + FfiV2MaybeInputsSeen dco_decode_ffi_v_2_maybe_inputs_seen(dynamic raw); @protected - PayjoinError dco_decode_payjoin_error(dynamic raw); + FfiV2MaybeMixedInputScripts dco_decode_ffi_v_2_maybe_mixed_input_scripts( + dynamic raw); @protected - PayjoinProposal dco_decode_payjoin_proposal(dynamic raw); + FfiV2OutputsUnknown dco_decode_ffi_v_2_outputs_unknown(dynamic raw); @protected - ProvisionalProposal dco_decode_provisional_proposal(dynamic raw); + FfiV2PayjoinProposal dco_decode_ffi_v_2_payjoin_proposal(dynamic raw); @protected - ((Url, Uint8List), ClientResponse) - dco_decode_record_record_url_list_prim_u_8_strict_client_response( - dynamic raw); + FfiV2ProvisionalProposal dco_decode_ffi_v_2_provisional_proposal(dynamic raw); @protected - (String, String) dco_decode_record_string_string(dynamic raw); + FfiV2UncheckedProposal dco_decode_ffi_v_2_unchecked_proposal(dynamic raw); @protected - (int, OutPoint) dco_decode_record_u_64_out_point(dynamic raw); + Headers dco_decode_headers(dynamic raw); @protected - (Url, Uint8List) dco_decode_record_url_list_prim_u_8_strict(dynamic raw); + int dco_decode_i_32(dynamic raw); @protected - RequestBuilder dco_decode_request_builder(dynamic raw); + List dco_decode_list_out_point(dynamic raw); @protected - RequestContext dco_decode_request_context(dynamic raw); + Uint64List dco_decode_list_prim_u_64_strict(dynamic raw); @protected - RequestContextV1 dco_decode_request_context_v_1(dynamic raw); + List dco_decode_list_prim_u_8_loose(dynamic raw); @protected - RequestContextV2 dco_decode_request_context_v_2(dynamic raw); + Uint8List dco_decode_list_prim_u_8_strict(dynamic raw); @protected - TxOut dco_decode_tx_out(dynamic raw); + List<(String, String)> dco_decode_list_record_string_string(dynamic raw); @protected - int dco_decode_u_32(dynamic raw); + List<(BigInt, OutPoint)> dco_decode_list_record_u_64_out_point(dynamic raw); @protected - int dco_decode_u_64(dynamic raw); + Network dco_decode_network(dynamic raw); @protected - int dco_decode_u_8(dynamic raw); + String? dco_decode_opt_String(dynamic raw); @protected - UncheckedProposal dco_decode_unchecked_proposal(dynamic raw); + double? dco_decode_opt_box_autoadd_f_64(dynamic raw); @protected - void dco_decode_unit(dynamic raw); + FfiOhttpKeys? dco_decode_opt_box_autoadd_ffi_ohttp_keys(dynamic raw); @protected - Uri dco_decode_uri(dynamic raw); + FfiV2UncheckedProposal? dco_decode_opt_box_autoadd_ffi_v_2_unchecked_proposal( + dynamic raw); @protected - Url dco_decode_url(dynamic raw); + BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw); @protected - int dco_decode_usize(dynamic raw); + int? dco_decode_opt_box_autoadd_u_8(dynamic raw); @protected - V2MaybeInputsOwned dco_decode_v_2_maybe_inputs_owned(dynamic raw); + OutPoint dco_decode_out_point(dynamic raw); @protected - V2MaybeInputsSeen dco_decode_v_2_maybe_inputs_seen(dynamic raw); + PayjoinError dco_decode_payjoin_error(dynamic raw); @protected - V2MaybeMixedInputScripts dco_decode_v_2_maybe_mixed_input_scripts( + (FfiUrl, Uint8List) dco_decode_record_ffi_url_list_prim_u_8_strict( dynamic raw); @protected - V2OutputsUnknown dco_decode_v_2_outputs_unknown(dynamic raw); + ((FfiUrl, Uint8List), FfiClientResponse) + dco_decode_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response( + dynamic raw); @protected - V2PayjoinProposal dco_decode_v_2_payjoin_proposal(dynamic raw); + (String, String) dco_decode_record_string_string(dynamic raw); @protected - V2ProvisionalProposal dco_decode_v_2_provisional_proposal(dynamic raw); + (BigInt, OutPoint) dco_decode_record_u_64_out_point(dynamic raw); @protected - V2UncheckedProposal dco_decode_v_2_unchecked_proposal(dynamic raw); + RequestContextV1 dco_decode_request_context_v_1(dynamic raw); @protected - Object sse_decode_DartOpaque(SseDeserializer deserializer); + RequestContextV2 dco_decode_request_context_v_2(dynamic raw); @protected - Map sse_decode_Map_String_String( - SseDeserializer deserializer); + TxOut dco_decode_tx_out(dynamic raw); @protected - Map sse_decode_Map_u_64_out_point( - SseDeserializer deserializer); + int dco_decode_u_32(dynamic raw); @protected - ArcPayjoinFfiReceiveV1MaybeInputsOwned - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - SseDeserializer deserializer); + BigInt dco_decode_u_64(dynamic raw); @protected - ArcPayjoinFfiReceiveV1MaybeInputsSeen - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( - SseDeserializer deserializer); + int dco_decode_u_8(dynamic raw); @protected - ArcPayjoinFfiReceiveV1MaybeMixedInputScripts - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( - SseDeserializer deserializer); + void dco_decode_unit(dynamic raw); @protected - ArcPayjoinFfiReceiveV1OutputsUnknown - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( - SseDeserializer deserializer); + BigInt dco_decode_usize(dynamic raw); @protected - ArcPayjoinFfiReceiveV1PayjoinProposal - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( - SseDeserializer deserializer); + AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer); @protected - ArcPayjoinFfiReceiveV1ProvisionalProposal - sse_decode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( - SseDeserializer deserializer); + Object sse_decode_DartOpaque(SseDeserializer deserializer); @protected - ArcPayjoinFfiReceiveV2Enrolled - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( - SseDeserializer deserializer); + Map sse_decode_Map_String_String( + SseDeserializer deserializer); @protected - ArcPayjoinFfiReceiveV2V2MaybeInputsOwned - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( - SseDeserializer deserializer); + Map sse_decode_Map_u_64_out_point( + SseDeserializer deserializer); @protected - ArcPayjoinFfiReceiveV2V2MaybeInputsSeen - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + ArcV2PayjoinProposal + sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( SseDeserializer deserializer); @protected - ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( - SseDeserializer deserializer); + ArcContextV2 sse_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + SseDeserializer deserializer); @protected - ArcPayjoinFfiReceiveV2V2OutputsUnknown - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( - SseDeserializer deserializer); + MaybeInputsOwned sse_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + SseDeserializer deserializer); @protected - ArcPayjoinFfiReceiveV2V2PayjoinProposal - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( - SseDeserializer deserializer); + MaybeInputsSeen sse_decode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( + SseDeserializer deserializer); @protected - ArcPayjoinFfiReceiveV2V2ProvisionalProposal - sse_decode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + MaybeMixedInputScripts + sse_decode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( SseDeserializer deserializer); @protected - ArcPayjoinFfiSendV1ContextV1 - sse_decode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - SseDeserializer deserializer); + OutputsUnknown sse_decode_RustOpaque_payjoin_ffireceivev1OutputsUnknown( + SseDeserializer deserializer); @protected - ArcPayjoinFfiSendV1RequestBuilder - sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - SseDeserializer deserializer); + PayjoinProposal sse_decode_RustOpaque_payjoin_ffireceivev1PayjoinProposal( + SseDeserializer deserializer); @protected - ArcPayjoinFfiSendV1RequestContext - sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + ProvisionalProposal + sse_decode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( SseDeserializer deserializer); @protected - ArcPayjoinFfiSendV2ContextV2 - sse_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - SseDeserializer deserializer); + UncheckedProposal sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + SseDeserializer deserializer); @protected - ArcPayjoinFfiUriUri sse_decode_RustOpaque_Arcpayjoin_ffiuriUri( + ActiveSession sse_decode_RustOpaque_payjoin_ffireceivev2ActiveSession( SseDeserializer deserializer); @protected - ArcPayjoinFfiUriUrl sse_decode_RustOpaque_Arcpayjoin_ffiuriUrl( - SseDeserializer deserializer); + SessionInitializer + sse_decode_RustOpaque_payjoin_ffireceivev2SessionInitializer( + SseDeserializer deserializer); @protected - MutexOptionOhttpClientResponse - sse_decode_RustOpaque_MutexOptionohttpClientResponse( + V2MaybeInputsOwned + sse_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( SseDeserializer deserializer); @protected - PayjoinFfiReceiveV1UncheckedProposal - sse_decode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + V2MaybeInputsSeen sse_decode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( + SseDeserializer deserializer); + + @protected + V2MaybeMixedInputScripts + sse_decode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( SseDeserializer deserializer); @protected - PayjoinFfiReceiveV2Enroller - sse_decode_RustOpaque_payjoin_ffireceivev2Enroller( + V2OutputsUnknown sse_decode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( + SseDeserializer deserializer); + + @protected + V2ProvisionalProposal + sse_decode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( SseDeserializer deserializer); @protected - PayjoinFfiReceiveV2V2UncheckedProposal + V2UncheckedProposal sse_decode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( SseDeserializer deserializer); @protected - PayjoinFfiTypesOhttpKeys sse_decode_RustOpaque_payjoin_ffitypesOhttpKeys( + ContextV1 sse_decode_RustOpaque_payjoin_ffisendv1ContextV1( SseDeserializer deserializer); @protected - String sse_decode_String(SseDeserializer deserializer); + RequestBuilder sse_decode_RustOpaque_payjoin_ffisendv1RequestBuilder( + SseDeserializer deserializer); @protected - bool sse_decode_bool(SseDeserializer deserializer); + RequestContext sse_decode_RustOpaque_payjoin_ffisendv1RequestContext( + SseDeserializer deserializer); + + @protected + OhttpKeys sse_decode_RustOpaque_payjoin_ffitypesOhttpKeys( + SseDeserializer deserializer); + + @protected + PjUri sse_decode_RustOpaque_payjoin_ffiuriPjUri(SseDeserializer deserializer); @protected - ClientResponse sse_decode_box_autoadd_client_response( + PjUriBuilder sse_decode_RustOpaque_payjoin_ffiuriPjUriBuilder( SseDeserializer deserializer); @protected - ContextV1 sse_decode_box_autoadd_context_v_1(SseDeserializer deserializer); + Uri sse_decode_RustOpaque_payjoin_ffiuriUri(SseDeserializer deserializer); @protected - ContextV2 sse_decode_box_autoadd_context_v_2(SseDeserializer deserializer); + Url sse_decode_RustOpaque_payjoin_ffiuriUrl(SseDeserializer deserializer); @protected - Enrolled sse_decode_box_autoadd_enrolled(SseDeserializer deserializer); + MutexOptionClientResponse + sse_decode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + SseDeserializer deserializer); + + @protected + String sse_decode_String(SseDeserializer deserializer); @protected - Enroller sse_decode_box_autoadd_enroller(SseDeserializer deserializer); + bool sse_decode_bool(SseDeserializer deserializer); @protected double sse_decode_box_autoadd_f_64(SseDeserializer deserializer); @protected - Headers sse_decode_box_autoadd_headers(SseDeserializer deserializer); + FfiActiveSession sse_decode_box_autoadd_ffi_active_session( + SseDeserializer deserializer); + + @protected + FfiClientResponse sse_decode_box_autoadd_ffi_client_response( + SseDeserializer deserializer); @protected - MaybeInputsOwned sse_decode_box_autoadd_maybe_inputs_owned( + FfiContextV1 sse_decode_box_autoadd_ffi_context_v_1( SseDeserializer deserializer); @protected - MaybeInputsSeen sse_decode_box_autoadd_maybe_inputs_seen( + FfiContextV2 sse_decode_box_autoadd_ffi_context_v_2( SseDeserializer deserializer); @protected - MaybeMixedInputScripts sse_decode_box_autoadd_maybe_mixed_input_scripts( + FfiMaybeInputsOwned sse_decode_box_autoadd_ffi_maybe_inputs_owned( SseDeserializer deserializer); @protected - OhttpKeys sse_decode_box_autoadd_ohttp_keys(SseDeserializer deserializer); + FfiMaybeInputsSeen sse_decode_box_autoadd_ffi_maybe_inputs_seen( + SseDeserializer deserializer); @protected - OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer); + FfiMaybeMixedInputScripts + sse_decode_box_autoadd_ffi_maybe_mixed_input_scripts( + SseDeserializer deserializer); @protected - OutputsUnknown sse_decode_box_autoadd_outputs_unknown( + FfiOhttpKeys sse_decode_box_autoadd_ffi_ohttp_keys( SseDeserializer deserializer); @protected - PayjoinProposal sse_decode_box_autoadd_payjoin_proposal( + FfiOutputsUnknown sse_decode_box_autoadd_ffi_outputs_unknown( SseDeserializer deserializer); @protected - ProvisionalProposal sse_decode_box_autoadd_provisional_proposal( + FfiPayjoinProposal sse_decode_box_autoadd_ffi_payjoin_proposal( SseDeserializer deserializer); @protected - RequestBuilder sse_decode_box_autoadd_request_builder( + FfiPjUri sse_decode_box_autoadd_ffi_pj_uri(SseDeserializer deserializer); + + @protected + FfiPjUriBuilder sse_decode_box_autoadd_ffi_pj_uri_builder( SseDeserializer deserializer); @protected - RequestContext sse_decode_box_autoadd_request_context( + FfiProvisionalProposal sse_decode_box_autoadd_ffi_provisional_proposal( SseDeserializer deserializer); @protected - TxOut sse_decode_box_autoadd_tx_out(SseDeserializer deserializer); + FfiRequestBuilder sse_decode_box_autoadd_ffi_request_builder( + SseDeserializer deserializer); @protected - int sse_decode_box_autoadd_u_64(SseDeserializer deserializer); + FfiRequestContext sse_decode_box_autoadd_ffi_request_context( + SseDeserializer deserializer); @protected - int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); + FfiSessionInitializer sse_decode_box_autoadd_ffi_session_initializer( + SseDeserializer deserializer); @protected - UncheckedProposal sse_decode_box_autoadd_unchecked_proposal( + FfiUncheckedProposal sse_decode_box_autoadd_ffi_unchecked_proposal( SseDeserializer deserializer); @protected - Uri sse_decode_box_autoadd_uri(SseDeserializer deserializer); + FfiUri sse_decode_box_autoadd_ffi_uri(SseDeserializer deserializer); @protected - Url sse_decode_box_autoadd_url(SseDeserializer deserializer); + FfiUrl sse_decode_box_autoadd_ffi_url(SseDeserializer deserializer); @protected - V2MaybeInputsOwned sse_decode_box_autoadd_v_2_maybe_inputs_owned( + FfiV2MaybeInputsOwned sse_decode_box_autoadd_ffi_v_2_maybe_inputs_owned( SseDeserializer deserializer); @protected - V2MaybeInputsSeen sse_decode_box_autoadd_v_2_maybe_inputs_seen( + FfiV2MaybeInputsSeen sse_decode_box_autoadd_ffi_v_2_maybe_inputs_seen( SseDeserializer deserializer); @protected - V2MaybeMixedInputScripts sse_decode_box_autoadd_v_2_maybe_mixed_input_scripts( - SseDeserializer deserializer); + FfiV2MaybeMixedInputScripts + sse_decode_box_autoadd_ffi_v_2_maybe_mixed_input_scripts( + SseDeserializer deserializer); @protected - V2OutputsUnknown sse_decode_box_autoadd_v_2_outputs_unknown( + FfiV2OutputsUnknown sse_decode_box_autoadd_ffi_v_2_outputs_unknown( SseDeserializer deserializer); @protected - V2PayjoinProposal sse_decode_box_autoadd_v_2_payjoin_proposal( + FfiV2PayjoinProposal sse_decode_box_autoadd_ffi_v_2_payjoin_proposal( SseDeserializer deserializer); @protected - V2ProvisionalProposal sse_decode_box_autoadd_v_2_provisional_proposal( + FfiV2ProvisionalProposal sse_decode_box_autoadd_ffi_v_2_provisional_proposal( SseDeserializer deserializer); @protected - V2UncheckedProposal sse_decode_box_autoadd_v_2_unchecked_proposal( + FfiV2UncheckedProposal sse_decode_box_autoadd_ffi_v_2_unchecked_proposal( SseDeserializer deserializer); @protected - ClientResponse sse_decode_client_response(SseDeserializer deserializer); + Headers sse_decode_box_autoadd_headers(SseDeserializer deserializer); @protected - ContextV1 sse_decode_context_v_1(SseDeserializer deserializer); + OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer); @protected - ContextV2 sse_decode_context_v_2(SseDeserializer deserializer); + TxOut sse_decode_box_autoadd_tx_out(SseDeserializer deserializer); @protected - Enrolled sse_decode_enrolled(SseDeserializer deserializer); + BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer); @protected - Enroller sse_decode_enroller(SseDeserializer deserializer); + int sse_decode_box_autoadd_u_8(SseDeserializer deserializer); @protected double sse_decode_f_64(SseDeserializer deserializer); @protected - Headers sse_decode_headers(SseDeserializer deserializer); + FfiActiveSession sse_decode_ffi_active_session(SseDeserializer deserializer); @protected - List sse_decode_list_out_point(SseDeserializer deserializer); + FfiClientResponse sse_decode_ffi_client_response( + SseDeserializer deserializer); @protected - Uint64List sse_decode_list_prim_u_64_strict(SseDeserializer deserializer); + FfiContextV1 sse_decode_ffi_context_v_1(SseDeserializer deserializer); @protected - List sse_decode_list_prim_u_8_loose(SseDeserializer deserializer); + FfiContextV2 sse_decode_ffi_context_v_2(SseDeserializer deserializer); @protected - Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer); + FfiMaybeInputsOwned sse_decode_ffi_maybe_inputs_owned( + SseDeserializer deserializer); @protected - List<(String, String)> sse_decode_list_record_string_string( + FfiMaybeInputsSeen sse_decode_ffi_maybe_inputs_seen( SseDeserializer deserializer); @protected - List<(int, OutPoint)> sse_decode_list_record_u_64_out_point( + FfiMaybeMixedInputScripts sse_decode_ffi_maybe_mixed_input_scripts( SseDeserializer deserializer); @protected - MaybeInputsOwned sse_decode_maybe_inputs_owned(SseDeserializer deserializer); + FfiOhttpKeys sse_decode_ffi_ohttp_keys(SseDeserializer deserializer); @protected - MaybeInputsSeen sse_decode_maybe_inputs_seen(SseDeserializer deserializer); + FfiOutputsUnknown sse_decode_ffi_outputs_unknown( + SseDeserializer deserializer); @protected - MaybeMixedInputScripts sse_decode_maybe_mixed_input_scripts( + FfiPayjoinProposal sse_decode_ffi_payjoin_proposal( SseDeserializer deserializer); @protected - OhttpKeys sse_decode_ohttp_keys(SseDeserializer deserializer); + FfiPjUri sse_decode_ffi_pj_uri(SseDeserializer deserializer); @protected - String? sse_decode_opt_String(SseDeserializer deserializer); + FfiPjUriBuilder sse_decode_ffi_pj_uri_builder(SseDeserializer deserializer); @protected - double? sse_decode_opt_box_autoadd_f_64(SseDeserializer deserializer); + FfiProvisionalProposal sse_decode_ffi_provisional_proposal( + SseDeserializer deserializer); @protected - int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer); + FfiRequestBuilder sse_decode_ffi_request_builder( + SseDeserializer deserializer); @protected - int? sse_decode_opt_box_autoadd_u_8(SseDeserializer deserializer); + FfiRequestContext sse_decode_ffi_request_context( + SseDeserializer deserializer); @protected - V2UncheckedProposal? sse_decode_opt_box_autoadd_v_2_unchecked_proposal( + FfiSessionInitializer sse_decode_ffi_session_initializer( SseDeserializer deserializer); @protected - OutPoint sse_decode_out_point(SseDeserializer deserializer); + FfiUncheckedProposal sse_decode_ffi_unchecked_proposal( + SseDeserializer deserializer); @protected - OutputsUnknown sse_decode_outputs_unknown(SseDeserializer deserializer); + FfiUri sse_decode_ffi_uri(SseDeserializer deserializer); @protected - PayjoinError sse_decode_payjoin_error(SseDeserializer deserializer); + FfiUrl sse_decode_ffi_url(SseDeserializer deserializer); @protected - PayjoinProposal sse_decode_payjoin_proposal(SseDeserializer deserializer); + FfiV2MaybeInputsOwned sse_decode_ffi_v_2_maybe_inputs_owned( + SseDeserializer deserializer); @protected - ProvisionalProposal sse_decode_provisional_proposal( + FfiV2MaybeInputsSeen sse_decode_ffi_v_2_maybe_inputs_seen( SseDeserializer deserializer); @protected - ((Url, Uint8List), ClientResponse) - sse_decode_record_record_url_list_prim_u_8_strict_client_response( - SseDeserializer deserializer); + FfiV2MaybeMixedInputScripts sse_decode_ffi_v_2_maybe_mixed_input_scripts( + SseDeserializer deserializer); @protected - (String, String) sse_decode_record_string_string( + FfiV2OutputsUnknown sse_decode_ffi_v_2_outputs_unknown( SseDeserializer deserializer); @protected - (int, OutPoint) sse_decode_record_u_64_out_point( + FfiV2PayjoinProposal sse_decode_ffi_v_2_payjoin_proposal( SseDeserializer deserializer); @protected - (Url, Uint8List) sse_decode_record_url_list_prim_u_8_strict( + FfiV2ProvisionalProposal sse_decode_ffi_v_2_provisional_proposal( SseDeserializer deserializer); @protected - RequestBuilder sse_decode_request_builder(SseDeserializer deserializer); + FfiV2UncheckedProposal sse_decode_ffi_v_2_unchecked_proposal( + SseDeserializer deserializer); @protected - RequestContext sse_decode_request_context(SseDeserializer deserializer); + Headers sse_decode_headers(SseDeserializer deserializer); @protected - RequestContextV1 sse_decode_request_context_v_1(SseDeserializer deserializer); + int sse_decode_i_32(SseDeserializer deserializer); @protected - RequestContextV2 sse_decode_request_context_v_2(SseDeserializer deserializer); + List sse_decode_list_out_point(SseDeserializer deserializer); @protected - TxOut sse_decode_tx_out(SseDeserializer deserializer); + Uint64List sse_decode_list_prim_u_64_strict(SseDeserializer deserializer); @protected - int sse_decode_u_32(SseDeserializer deserializer); + List sse_decode_list_prim_u_8_loose(SseDeserializer deserializer); @protected - int sse_decode_u_64(SseDeserializer deserializer); + Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer); @protected - int sse_decode_u_8(SseDeserializer deserializer); + List<(String, String)> sse_decode_list_record_string_string( + SseDeserializer deserializer); @protected - UncheckedProposal sse_decode_unchecked_proposal(SseDeserializer deserializer); + List<(BigInt, OutPoint)> sse_decode_list_record_u_64_out_point( + SseDeserializer deserializer); @protected - void sse_decode_unit(SseDeserializer deserializer); + Network sse_decode_network(SseDeserializer deserializer); @protected - Uri sse_decode_uri(SseDeserializer deserializer); + String? sse_decode_opt_String(SseDeserializer deserializer); @protected - Url sse_decode_url(SseDeserializer deserializer); + double? sse_decode_opt_box_autoadd_f_64(SseDeserializer deserializer); @protected - int sse_decode_usize(SseDeserializer deserializer); + FfiOhttpKeys? sse_decode_opt_box_autoadd_ffi_ohttp_keys( + SseDeserializer deserializer); @protected - V2MaybeInputsOwned sse_decode_v_2_maybe_inputs_owned( + FfiV2UncheckedProposal? sse_decode_opt_box_autoadd_ffi_v_2_unchecked_proposal( SseDeserializer deserializer); @protected - V2MaybeInputsSeen sse_decode_v_2_maybe_inputs_seen( - SseDeserializer deserializer); + BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer); @protected - V2MaybeMixedInputScripts sse_decode_v_2_maybe_mixed_input_scripts( - SseDeserializer deserializer); + int? sse_decode_opt_box_autoadd_u_8(SseDeserializer deserializer); @protected - V2OutputsUnknown sse_decode_v_2_outputs_unknown(SseDeserializer deserializer); + OutPoint sse_decode_out_point(SseDeserializer deserializer); @protected - V2PayjoinProposal sse_decode_v_2_payjoin_proposal( - SseDeserializer deserializer); + PayjoinError sse_decode_payjoin_error(SseDeserializer deserializer); @protected - V2ProvisionalProposal sse_decode_v_2_provisional_proposal( + (FfiUrl, Uint8List) sse_decode_record_ffi_url_list_prim_u_8_strict( SseDeserializer deserializer); @protected - V2UncheckedProposal sse_decode_v_2_unchecked_proposal( - SseDeserializer deserializer); + ((FfiUrl, Uint8List), FfiClientResponse) + sse_decode_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response( + SseDeserializer deserializer); @protected - int sse_decode_i_32(SseDeserializer deserializer); + (String, String) sse_decode_record_string_string( + SseDeserializer deserializer); @protected - ffi.Pointer cst_encode_Map_String_String( - Map raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_list_record_string_string( - raw.entries.map((e) => (e.key, e.value)).toList()); - } + (BigInt, OutPoint) sse_decode_record_u_64_out_point( + SseDeserializer deserializer); @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()); - } + RequestContextV1 sse_decode_request_context_v_1(SseDeserializer deserializer); @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)); - } + RequestContextV2 sse_decode_request_context_v_2(SseDeserializer deserializer); @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; - } + TxOut sse_decode_tx_out(SseDeserializer deserializer); @protected - ffi.Pointer cst_encode_box_autoadd_context_v_1( - ContextV1 raw) { + int sse_decode_u_32(SseDeserializer deserializer); + + @protected + BigInt sse_decode_u_64(SseDeserializer deserializer); + + @protected + int sse_decode_u_8(SseDeserializer deserializer); + + @protected + void sse_decode_unit(SseDeserializer deserializer); + + @protected + BigInt sse_decode_usize(SseDeserializer deserializer); + + @protected + ffi.Pointer cst_encode_AnyhowException( + AnyhowException raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + throw UnimplementedError(); + } + + @protected + ffi.Pointer cst_encode_Map_String_String( + Map raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return cst_encode_list_record_string_string( + raw.entries.map((e) => (e.key, e.value)).toList()); + } + + @protected + ffi.Pointer + cst_encode_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_f_64(double raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return wire.cst_new_box_autoadd_f_64(cst_encode_f_64(raw)); + } + + @protected + ffi.Pointer + cst_encode_box_autoadd_ffi_active_session(FfiActiveSession raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_context_v_1(); - cst_api_fill_to_wire_context_v_1(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_active_session(); + cst_api_fill_to_wire_ffi_active_session(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_context_v_2( - ContextV2 raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_client_response(FfiClientResponse raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_context_v_2(); - cst_api_fill_to_wire_context_v_2(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_client_response(); + cst_api_fill_to_wire_ffi_client_response(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_enrolled(Enrolled raw) { + ffi.Pointer cst_encode_box_autoadd_ffi_context_v_1( + FfiContextV1 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); + final ptr = wire.cst_new_box_autoadd_ffi_context_v_1(); + cst_api_fill_to_wire_ffi_context_v_1(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_enroller(Enroller raw) { + ffi.Pointer cst_encode_box_autoadd_ffi_context_v_2( + FfiContextV2 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); + final ptr = wire.cst_new_box_autoadd_ffi_context_v_2(); + cst_api_fill_to_wire_ffi_context_v_2(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_f_64(double raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_maybe_inputs_owned(FfiMaybeInputsOwned raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return wire.cst_new_box_autoadd_f_64(cst_encode_f_64(raw)); + final ptr = wire.cst_new_box_autoadd_ffi_maybe_inputs_owned(); + cst_api_fill_to_wire_ffi_maybe_inputs_owned(raw, ptr.ref); + return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_headers(Headers raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_maybe_inputs_seen(FfiMaybeInputsSeen raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_headers(); - cst_api_fill_to_wire_headers(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_maybe_inputs_seen(); + cst_api_fill_to_wire_ffi_maybe_inputs_seen(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_maybe_inputs_owned(MaybeInputsOwned raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_maybe_mixed_input_scripts( + FfiMaybeMixedInputScripts 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); + final ptr = wire.cst_new_box_autoadd_ffi_maybe_mixed_input_scripts(); + cst_api_fill_to_wire_ffi_maybe_mixed_input_scripts(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_maybe_inputs_seen(MaybeInputsSeen raw) { + ffi.Pointer cst_encode_box_autoadd_ffi_ohttp_keys( + FfiOhttpKeys 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); + final ptr = wire.cst_new_box_autoadd_ffi_ohttp_keys(); + cst_api_fill_to_wire_ffi_ohttp_keys(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_maybe_mixed_input_scripts( - MaybeMixedInputScripts raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_outputs_unknown(FfiOutputsUnknown 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); + final ptr = wire.cst_new_box_autoadd_ffi_outputs_unknown(); + cst_api_fill_to_wire_ffi_outputs_unknown(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_ohttp_keys( - OhttpKeys raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_payjoin_proposal(FfiPayjoinProposal raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_ohttp_keys(); - cst_api_fill_to_wire_ohttp_keys(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_payjoin_proposal(); + cst_api_fill_to_wire_ffi_payjoin_proposal(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_out_point( - OutPoint raw) { + ffi.Pointer cst_encode_box_autoadd_ffi_pj_uri( + FfiPjUri 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); + final ptr = wire.cst_new_box_autoadd_ffi_pj_uri(); + cst_api_fill_to_wire_ffi_pj_uri(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_outputs_unknown( - OutputsUnknown raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_pj_uri_builder(FfiPjUriBuilder 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); + final ptr = wire.cst_new_box_autoadd_ffi_pj_uri_builder(); + cst_api_fill_to_wire_ffi_pj_uri_builder(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_payjoin_proposal(PayjoinProposal raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_provisional_proposal( + FfiProvisionalProposal 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); + final ptr = wire.cst_new_box_autoadd_ffi_provisional_proposal(); + cst_api_fill_to_wire_ffi_provisional_proposal(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_provisional_proposal(ProvisionalProposal raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_request_builder(FfiRequestBuilder 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); + final ptr = wire.cst_new_box_autoadd_ffi_request_builder(); + cst_api_fill_to_wire_ffi_request_builder(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_request_builder( - RequestBuilder raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_request_context(FfiRequestContext raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_request_builder(); - cst_api_fill_to_wire_request_builder(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_request_context(); + cst_api_fill_to_wire_ffi_request_context(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_request_context( - RequestContext raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_session_initializer( + FfiSessionInitializer raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_request_context(); - cst_api_fill_to_wire_request_context(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_session_initializer(); + cst_api_fill_to_wire_ffi_session_initializer(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_tx_out(TxOut raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_unchecked_proposal(FfiUncheckedProposal 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); + final ptr = wire.cst_new_box_autoadd_ffi_unchecked_proposal(); + cst_api_fill_to_wire_ffi_unchecked_proposal(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_u_64(int raw) { + ffi.Pointer cst_encode_box_autoadd_ffi_uri(FfiUri raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return wire.cst_new_box_autoadd_u_64(cst_encode_u_64(raw)); + final ptr = wire.cst_new_box_autoadd_ffi_uri(); + cst_api_fill_to_wire_ffi_uri(raw, ptr.ref); + return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_u_8(int raw) { + ffi.Pointer cst_encode_box_autoadd_ffi_url(FfiUrl raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return wire.cst_new_box_autoadd_u_8(cst_encode_u_8(raw)); + final ptr = wire.cst_new_box_autoadd_ffi_url(); + cst_api_fill_to_wire_ffi_url(raw, ptr.ref); + return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_unchecked_proposal(UncheckedProposal raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_v_2_maybe_inputs_owned( + FfiV2MaybeInputsOwned raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_unchecked_proposal(); - cst_api_fill_to_wire_unchecked_proposal(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_v_2_maybe_inputs_owned(); + cst_api_fill_to_wire_ffi_v_2_maybe_inputs_owned(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_uri(Uri raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_v_2_maybe_inputs_seen( + FfiV2MaybeInputsSeen raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_uri(); - cst_api_fill_to_wire_uri(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_v_2_maybe_inputs_seen(); + cst_api_fill_to_wire_ffi_v_2_maybe_inputs_seen(raw, ptr.ref); return ptr; } @protected - ffi.Pointer cst_encode_box_autoadd_url(Url raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_v_2_maybe_mixed_input_scripts( + FfiV2MaybeMixedInputScripts raw) { // Codec=Cst (C-struct based), see doc to use other codecs - final ptr = wire.cst_new_box_autoadd_url(); - cst_api_fill_to_wire_url(raw, ptr.ref); + final ptr = wire.cst_new_box_autoadd_ffi_v_2_maybe_mixed_input_scripts(); + cst_api_fill_to_wire_ffi_v_2_maybe_mixed_input_scripts(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_v_2_maybe_inputs_owned(V2MaybeInputsOwned raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_v_2_outputs_unknown(FfiV2OutputsUnknown 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); + final ptr = wire.cst_new_box_autoadd_ffi_v_2_outputs_unknown(); + cst_api_fill_to_wire_ffi_v_2_outputs_unknown(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_v_2_maybe_inputs_seen(V2MaybeInputsSeen raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_v_2_payjoin_proposal( + FfiV2PayjoinProposal 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); + final ptr = wire.cst_new_box_autoadd_ffi_v_2_payjoin_proposal(); + cst_api_fill_to_wire_ffi_v_2_payjoin_proposal(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_v_2_maybe_mixed_input_scripts( - V2MaybeMixedInputScripts raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_v_2_provisional_proposal( + FfiV2ProvisionalProposal 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); + final ptr = wire.cst_new_box_autoadd_ffi_v_2_provisional_proposal(); + cst_api_fill_to_wire_ffi_v_2_provisional_proposal(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_v_2_outputs_unknown(V2OutputsUnknown raw) { + ffi.Pointer + cst_encode_box_autoadd_ffi_v_2_unchecked_proposal( + FfiV2UncheckedProposal 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); + final ptr = wire.cst_new_box_autoadd_ffi_v_2_unchecked_proposal(); + cst_api_fill_to_wire_ffi_v_2_unchecked_proposal(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_v_2_payjoin_proposal(V2PayjoinProposal raw) { + ffi.Pointer cst_encode_box_autoadd_headers(Headers 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); + final ptr = wire.cst_new_box_autoadd_headers(); + cst_api_fill_to_wire_headers(raw, ptr.ref); return ptr; } @protected - ffi.Pointer - cst_encode_box_autoadd_v_2_provisional_proposal( - V2ProvisionalProposal raw) { + 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_v_2_provisional_proposal(); - cst_api_fill_to_wire_v_2_provisional_proposal(raw, ptr.ref); + 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_v_2_unchecked_proposal(V2UncheckedProposal raw) { + 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_v_2_unchecked_proposal(); - cst_api_fill_to_wire_v_2_unchecked_proposal(raw, ptr.ref); + 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(BigInt raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return wire.cst_new_box_autoadd_u_64(cst_encode_u_64(raw)); + } + + @protected + ffi.Pointer cst_encode_box_autoadd_u_8(int raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return wire.cst_new_box_autoadd_u_8(cst_encode_u_8(raw)); + } + @protected ffi.Pointer cst_encode_list_out_point( List raw) { @@ -1244,7 +1357,7 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected ffi.Pointer - cst_encode_list_record_u_64_out_point(List<(int, OutPoint)> raw) { + cst_encode_list_record_u_64_out_point(List<(BigInt, 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) { @@ -1267,7 +1380,26 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer cst_encode_opt_box_autoadd_u_64(int? raw) { + ffi.Pointer + cst_encode_opt_box_autoadd_ffi_ohttp_keys(FfiOhttpKeys? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null + ? ffi.nullptr + : cst_encode_box_autoadd_ffi_ohttp_keys(raw); + } + + @protected + ffi.Pointer + cst_encode_opt_box_autoadd_ffi_v_2_unchecked_proposal( + FfiV2UncheckedProposal? raw) { + // Codec=Cst (C-struct based), see doc to use other codecs + return raw == null + ? ffi.nullptr + : cst_encode_box_autoadd_ffi_v_2_unchecked_proposal(raw); + } + + @protected + ffi.Pointer cst_encode_opt_box_autoadd_u_64(BigInt? raw) { // Codec=Cst (C-struct based), see doc to use other codecs return raw == null ? ffi.nullptr : cst_encode_box_autoadd_u_64(raw); } @@ -1279,118 +1411,203 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { } @protected - ffi.Pointer - cst_encode_opt_box_autoadd_v_2_unchecked_proposal( - V2UncheckedProposal? raw) { + int cst_encode_u_64(BigInt 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); + return raw.toSigned(64).toInt(); } @protected - int cst_encode_u_64(int raw) { + int cst_encode_usize(BigInt raw) { // Codec=Cst (C-struct based), see doc to use other codecs - return raw.toInt(); + return raw.toSigned(64).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); + void cst_api_fill_to_wire_box_autoadd_ffi_active_session( + FfiActiveSession apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_active_session(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_context_v_1( - ContextV1 apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_context_v_1(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_client_response( + FfiClientResponse apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_client_response(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_context_v_2( - ContextV2 apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_context_v_2(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_context_v_1( + FfiContextV1 apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_context_v_1(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); + void cst_api_fill_to_wire_box_autoadd_ffi_context_v_2( + FfiContextV2 apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_context_v_2(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); + void cst_api_fill_to_wire_box_autoadd_ffi_maybe_inputs_owned( + FfiMaybeInputsOwned apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_maybe_inputs_owned(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_headers( - Headers apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_headers(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_maybe_inputs_seen( + FfiMaybeInputsSeen apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_maybe_inputs_seen(apiObj, wireObj.ref); } @protected - 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); + void cst_api_fill_to_wire_box_autoadd_ffi_maybe_mixed_input_scripts( + FfiMaybeMixedInputScripts apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_maybe_mixed_input_scripts(apiObj, wireObj.ref); } @protected - 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); + void cst_api_fill_to_wire_box_autoadd_ffi_ohttp_keys( + FfiOhttpKeys apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_ohttp_keys(apiObj, wireObj.ref); } @protected - 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); + void cst_api_fill_to_wire_box_autoadd_ffi_outputs_unknown( + FfiOutputsUnknown apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_outputs_unknown(apiObj, wireObj.ref); } @protected - void cst_api_fill_to_wire_box_autoadd_ohttp_keys( - OhttpKeys apiObj, ffi.Pointer wireObj) { - cst_api_fill_to_wire_ohttp_keys(apiObj, wireObj.ref); + void cst_api_fill_to_wire_box_autoadd_ffi_payjoin_proposal( + FfiPayjoinProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_payjoin_proposal(apiObj, wireObj.ref); } @protected - 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); + void cst_api_fill_to_wire_box_autoadd_ffi_pj_uri( + FfiPjUri apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_pj_uri(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_pj_uri_builder( + FfiPjUriBuilder apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_pj_uri_builder(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_provisional_proposal( + FfiProvisionalProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_provisional_proposal(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_request_builder( + FfiRequestBuilder apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_request_builder(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_request_context( + FfiRequestContext apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_request_context(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_session_initializer( + FfiSessionInitializer apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_session_initializer(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_unchecked_proposal( + FfiUncheckedProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_unchecked_proposal(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_uri( + FfiUri apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_uri(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_url( + FfiUrl apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_url(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_v_2_maybe_inputs_owned( + FfiV2MaybeInputsOwned apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_v_2_maybe_inputs_owned(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_v_2_maybe_inputs_seen( + FfiV2MaybeInputsSeen apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_v_2_maybe_inputs_seen(apiObj, wireObj.ref); + } + + @protected + void cst_api_fill_to_wire_box_autoadd_ffi_v_2_maybe_mixed_input_scripts( + FfiV2MaybeMixedInputScripts apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_v_2_maybe_mixed_input_scripts(apiObj, wireObj.ref); } @protected - 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); + void cst_api_fill_to_wire_box_autoadd_ffi_v_2_outputs_unknown( + FfiV2OutputsUnknown apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_v_2_outputs_unknown(apiObj, wireObj.ref); } @protected - 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); + void cst_api_fill_to_wire_box_autoadd_ffi_v_2_payjoin_proposal( + FfiV2PayjoinProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_v_2_payjoin_proposal(apiObj, wireObj.ref); } @protected - 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); + void cst_api_fill_to_wire_box_autoadd_ffi_v_2_provisional_proposal( + FfiV2ProvisionalProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_v_2_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); + void cst_api_fill_to_wire_box_autoadd_ffi_v_2_unchecked_proposal( + FfiV2UncheckedProposal apiObj, + ffi.Pointer wireObj) { + cst_api_fill_to_wire_ffi_v_2_unchecked_proposal(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_headers( + Headers apiObj, ffi.Pointer wireObj) { + cst_api_fill_to_wire_headers(apiObj, wireObj.ref); + } + + @protected + 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 @@ -1400,160 +1617,211 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { } @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_ffi_active_session( + FfiActiveSession apiObj, wire_cst_ffi_active_session wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_payjoin_ffireceivev2ActiveSession(apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_ffi_client_response( + FfiClientResponse apiObj, wire_cst_ffi_client_response wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_ffi_context_v_1( + FfiContextV1 apiObj, wire_cst_ffi_context_v_1 wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_payjoin_ffisendv1ContextV1(apiObj.field0); } @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_ffi_context_v_2( + FfiContextV2 apiObj, wire_cst_ffi_context_v_2 wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(apiObj.field0); } @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_ffi_maybe_inputs_owned( + FfiMaybeInputsOwned apiObj, wire_cst_ffi_maybe_inputs_owned wireObj) { + wireObj.field0 = cst_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + apiObj.field0); } @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); + void cst_api_fill_to_wire_ffi_maybe_inputs_seen( + FfiMaybeInputsSeen apiObj, wire_cst_ffi_maybe_inputs_seen wireObj) { + wireObj.field0 = cst_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( + apiObj.field0); } @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); + void cst_api_fill_to_wire_ffi_maybe_mixed_input_scripts( + FfiMaybeMixedInputScripts apiObj, + wire_cst_ffi_maybe_mixed_input_scripts wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( + apiObj.field0); } @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); + void cst_api_fill_to_wire_ffi_ohttp_keys( + FfiOhttpKeys apiObj, wire_cst_ffi_ohttp_keys wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_payjoin_ffitypesOhttpKeys(apiObj.field0); } @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); + void cst_api_fill_to_wire_ffi_outputs_unknown( + FfiOutputsUnknown apiObj, wire_cst_ffi_outputs_unknown wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_payjoin_ffireceivev1OutputsUnknown(apiObj.field0); } @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); + void cst_api_fill_to_wire_ffi_payjoin_proposal( + FfiPayjoinProposal apiObj, wire_cst_ffi_payjoin_proposal wireObj) { + wireObj.field0 = cst_encode_RustOpaque_payjoin_ffireceivev1PayjoinProposal( + apiObj.field0); } @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); + void cst_api_fill_to_wire_ffi_pj_uri( + FfiPjUri apiObj, wire_cst_ffi_pj_uri wireObj) { + wireObj.field0 = cst_encode_RustOpaque_payjoin_ffiuriPjUri(apiObj.field0); } @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); + void cst_api_fill_to_wire_ffi_pj_uri_builder( + FfiPjUriBuilder apiObj, wire_cst_ffi_pj_uri_builder wireObj) { + wireObj.internal = + cst_encode_RustOpaque_payjoin_ffiuriPjUriBuilder(apiObj.internal); } @protected - void cst_api_fill_to_wire_client_response( - ClientResponse apiObj, wire_cst_client_response wireObj) { + void cst_api_fill_to_wire_ffi_provisional_proposal( + FfiProvisionalProposal apiObj, + wire_cst_ffi_provisional_proposal wireObj) { wireObj.field0 = - cst_encode_RustOpaque_MutexOptionohttpClientResponse(apiObj.field0); + cst_encode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( + apiObj.field0); } @protected - void cst_api_fill_to_wire_context_v_1( - ContextV1 apiObj, wire_cst_context_v_1 wireObj) { + void cst_api_fill_to_wire_ffi_request_builder( + FfiRequestBuilder apiObj, wire_cst_ffi_request_builder wireObj) { wireObj.field0 = - cst_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(apiObj.field0); + cst_encode_RustOpaque_payjoin_ffisendv1RequestBuilder(apiObj.field0); } @protected - void cst_api_fill_to_wire_context_v_2( - ContextV2 apiObj, wire_cst_context_v_2 wireObj) { + void cst_api_fill_to_wire_ffi_request_context( + FfiRequestContext apiObj, wire_cst_ffi_request_context wireObj) { wireObj.field0 = - cst_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(apiObj.field0); + cst_encode_RustOpaque_payjoin_ffisendv1RequestContext(apiObj.field0); } @protected - void cst_api_fill_to_wire_enrolled( - Enrolled apiObj, wire_cst_enrolled wireObj) { + void cst_api_fill_to_wire_ffi_session_initializer( + FfiSessionInitializer apiObj, wire_cst_ffi_session_initializer wireObj) { wireObj.field0 = - cst_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled(apiObj.field0); + cst_encode_RustOpaque_payjoin_ffireceivev2SessionInitializer( + apiObj.field0); } @protected - void cst_api_fill_to_wire_enroller( - Enroller apiObj, wire_cst_enroller wireObj) { + void cst_api_fill_to_wire_ffi_unchecked_proposal( + FfiUncheckedProposal apiObj, wire_cst_ffi_unchecked_proposal wireObj) { wireObj.field0 = - cst_encode_RustOpaque_payjoin_ffireceivev2Enroller(apiObj.field0); + cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + apiObj.field0); } @protected - void cst_api_fill_to_wire_headers(Headers apiObj, wire_cst_headers wireObj) { - wireObj.map = cst_encode_Map_String_String(apiObj.map); + void cst_api_fill_to_wire_ffi_uri(FfiUri apiObj, wire_cst_ffi_uri wireObj) { + wireObj.field0 = cst_encode_RustOpaque_payjoin_ffiuriUri(apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_ffi_url(FfiUrl apiObj, wire_cst_ffi_url wireObj) { + wireObj.field0 = cst_encode_RustOpaque_payjoin_ffiuriUrl(apiObj.field0); } @protected - void cst_api_fill_to_wire_maybe_inputs_owned( - MaybeInputsOwned apiObj, wire_cst_maybe_inputs_owned wireObj) { + void cst_api_fill_to_wire_ffi_v_2_maybe_inputs_owned( + FfiV2MaybeInputsOwned apiObj, + wire_cst_ffi_v_2_maybe_inputs_owned wireObj) { wireObj.field0 = - cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + cst_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( apiObj.field0); } @protected - void cst_api_fill_to_wire_maybe_inputs_seen( - MaybeInputsSeen apiObj, wire_cst_maybe_inputs_seen wireObj) { + void cst_api_fill_to_wire_ffi_v_2_maybe_inputs_seen( + FfiV2MaybeInputsSeen apiObj, wire_cst_ffi_v_2_maybe_inputs_seen wireObj) { wireObj.field0 = - cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + cst_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( apiObj.field0); } @protected - void cst_api_fill_to_wire_maybe_mixed_input_scripts( - MaybeMixedInputScripts apiObj, - wire_cst_maybe_mixed_input_scripts wireObj) { + void cst_api_fill_to_wire_ffi_v_2_maybe_mixed_input_scripts( + FfiV2MaybeMixedInputScripts apiObj, + wire_cst_ffi_v_2_maybe_mixed_input_scripts wireObj) { wireObj.field0 = - cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + cst_encode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( apiObj.field0); } @protected - void cst_api_fill_to_wire_ohttp_keys( - OhttpKeys apiObj, wire_cst_ohttp_keys wireObj) { + void cst_api_fill_to_wire_ffi_v_2_outputs_unknown( + FfiV2OutputsUnknown apiObj, wire_cst_ffi_v_2_outputs_unknown wireObj) { + wireObj.field0 = cst_encode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( + apiObj.field0); + } + + @protected + void cst_api_fill_to_wire_ffi_v_2_payjoin_proposal( + FfiV2PayjoinProposal apiObj, wire_cst_ffi_v_2_payjoin_proposal wireObj) { wireObj.field0 = - cst_encode_RustOpaque_payjoin_ffitypesOhttpKeys(apiObj.field0); + cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + 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); + void cst_api_fill_to_wire_ffi_v_2_provisional_proposal( + FfiV2ProvisionalProposal apiObj, + wire_cst_ffi_v_2_provisional_proposal wireObj) { + wireObj.field0 = + cst_encode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( + apiObj.field0); } @protected - void cst_api_fill_to_wire_outputs_unknown( - OutputsUnknown apiObj, wire_cst_outputs_unknown wireObj) { + void cst_api_fill_to_wire_ffi_v_2_unchecked_proposal( + FfiV2UncheckedProposal apiObj, + wire_cst_ffi_v_2_unchecked_proposal wireObj) { wireObj.field0 = - cst_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + cst_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( apiObj.field0); } + @protected + void cst_api_fill_to_wire_headers(Headers apiObj, wire_cst_headers wireObj) { + wireObj.map = cst_encode_Map_String_String(apiObj.map); + } + + @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_payjoin_error( PayjoinError apiObj, wire_cst_payjoin_error wireObj) { @@ -1659,33 +1927,30 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { wireObj.kind.UrlError.message = pre_message; return; } + if (apiObj is PayjoinError_IoError) { + var pre_message = cst_encode_String(apiObj.message); + wireObj.tag = 17; + wireObj.kind.IoError.message = pre_message; + return; + } } @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); + void cst_api_fill_to_wire_record_ffi_url_list_prim_u_8_strict( + (FfiUrl, Uint8List) apiObj, + wire_cst_record_ffi_url_list_prim_u_8_strict wireObj) { + cst_api_fill_to_wire_ffi_url(apiObj.$1, wireObj.field0); + wireObj.field1 = cst_encode_list_prim_u_8_strict(apiObj.$2); } @protected - void - cst_api_fill_to_wire_record_record_url_list_prim_u_8_strict_client_response( - ((Url, Uint8List), ClientResponse) apiObj, - wire_cst_record_record_url_list_prim_u_8_strict_client_response - wireObj) { - cst_api_fill_to_wire_record_url_list_prim_u_8_strict( + void cst_api_fill_to_wire_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response( + ((FfiUrl, Uint8List), FfiClientResponse) apiObj, + wire_cst_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response + wireObj) { + cst_api_fill_to_wire_record_ffi_url_list_prim_u_8_strict( apiObj.$1, wireObj.field0); - cst_api_fill_to_wire_client_response(apiObj.$2, wireObj.field1); + cst_api_fill_to_wire_ffi_client_response(apiObj.$2, wireObj.field1); } @protected @@ -1697,47 +1962,25 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected void cst_api_fill_to_wire_record_u_64_out_point( - (int, OutPoint) apiObj, wire_cst_record_u_64_out_point wireObj) { + (BigInt, 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_record_url_list_prim_u_8_strict( - (Url, Uint8List) apiObj, - wire_cst_record_url_list_prim_u_8_strict wireObj) { - cst_api_fill_to_wire_url(apiObj.$1, wireObj.field0); - wireObj.field1 = cst_encode_list_prim_u_8_strict(apiObj.$2); - } - - @protected - void cst_api_fill_to_wire_request_builder( - RequestBuilder apiObj, wire_cst_request_builder wireObj) { - wireObj.field0 = - cst_encode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(apiObj.field0); - } - - @protected - void cst_api_fill_to_wire_request_context( - RequestContext apiObj, wire_cst_request_context wireObj) { - wireObj.field0 = - cst_encode_RustOpaque_Arcpayjoin_ffisendv1RequestContext(apiObj.field0); - } - @protected void cst_api_fill_to_wire_request_context_v_1( RequestContextV1 apiObj, wire_cst_request_context_v_1 wireObj) { - cst_api_fill_to_wire_record_url_list_prim_u_8_strict( + cst_api_fill_to_wire_record_ffi_url_list_prim_u_8_strict( apiObj.request, wireObj.request); - cst_api_fill_to_wire_context_v_1(apiObj.contextV1, wireObj.context_v1); + cst_api_fill_to_wire_ffi_context_v_1(apiObj.contextV1, wireObj.context_v1); } @protected void cst_api_fill_to_wire_request_context_v_2( RequestContextV2 apiObj, wire_cst_request_context_v_2 wireObj) { - cst_api_fill_to_wire_record_url_list_prim_u_8_strict( + cst_api_fill_to_wire_record_ffi_url_list_prim_u_8_strict( apiObj.request, wireObj.request); - cst_api_fill_to_wire_context_v_2(apiObj.contextV2, wireObj.context_v2); + cst_api_fill_to_wire_ffi_context_v_2(apiObj.contextV2, wireObj.context_v2); } @protected @@ -1748,194 +1991,133 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { } @protected - void cst_api_fill_to_wire_unchecked_proposal( - UncheckedProposal apiObj, wire_cst_unchecked_proposal wireObj) { - wireObj.field0 = - cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( - apiObj.field0); - } + PlatformPointer cst_encode_DartFn_Inputs_String_Output_String_AnyhowException( + FutureOr Function(String) raw); @protected - void cst_api_fill_to_wire_uri(Uri apiObj, wire_cst_uri wireObj) { - wireObj.field0 = cst_encode_RustOpaque_Arcpayjoin_ffiuriUri(apiObj.field0); - } + PlatformPointer + cst_encode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException( + FutureOr Function() raw); @protected - void cst_api_fill_to_wire_url(Url apiObj, wire_cst_url wireObj) { - wireObj.field0 = cst_encode_RustOpaque_Arcpayjoin_ffiuriUrl(apiObj.field0); - } + PlatformPointer + cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + FutureOr Function(Uint8List) raw); @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); - } + PlatformPointer + cst_encode_DartFn_Inputs_out_point_Output_bool_AnyhowException( + FutureOr Function(OutPoint) raw); @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); - } + PlatformPointer cst_encode_DartOpaque(Object raw); @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); - } + int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ArcV2PayjoinProposal raw); @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); - } + int cst_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(ArcContextV2 raw); @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); - } + int cst_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + MaybeInputsOwned raw); @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); - } + int cst_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( + MaybeInputsSeen raw); @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); - } + int cst_encode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( + MaybeMixedInputScripts raw); @protected - PlatformPointer cst_encode_DartFn_Inputs_String_Output_String( - FutureOr Function(String) raw); + int cst_encode_RustOpaque_payjoin_ffireceivev1OutputsUnknown( + OutputsUnknown raw); @protected - PlatformPointer cst_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( - FutureOr Function(Uint8List) raw); + int cst_encode_RustOpaque_payjoin_ffireceivev1PayjoinProposal( + PayjoinProposal raw); @protected - PlatformPointer cst_encode_DartFn_Inputs_out_point_Output_bool( - FutureOr Function(OutPoint) raw); + int cst_encode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( + ProvisionalProposal raw); @protected - PlatformPointer cst_encode_DartOpaque(Object raw); + int cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + UncheckedProposal raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - ArcPayjoinFfiReceiveV1MaybeInputsOwned raw); + int cst_encode_RustOpaque_payjoin_ffireceivev2ActiveSession( + ActiveSession raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( - ArcPayjoinFfiReceiveV1MaybeInputsSeen raw); + int cst_encode_RustOpaque_payjoin_ffireceivev2SessionInitializer( + SessionInitializer raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( - ArcPayjoinFfiReceiveV1MaybeMixedInputScripts raw); + int cst_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( + V2MaybeInputsOwned raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( - ArcPayjoinFfiReceiveV1OutputsUnknown raw); + int cst_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( + V2MaybeInputsSeen raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( - ArcPayjoinFfiReceiveV1PayjoinProposal raw); + int cst_encode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( + V2MaybeMixedInputScripts raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( - ArcPayjoinFfiReceiveV1ProvisionalProposal raw); + int cst_encode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( + V2OutputsUnknown raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( - ArcPayjoinFfiReceiveV2Enrolled raw); + int cst_encode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( + V2ProvisionalProposal 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); + int cst_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + V2UncheckedProposal raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - ArcPayjoinFfiSendV1ContextV1 raw); + int cst_encode_RustOpaque_payjoin_ffisendv1ContextV1(ContextV1 raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ArcPayjoinFfiSendV1RequestBuilder raw); + int cst_encode_RustOpaque_payjoin_ffisendv1RequestBuilder(RequestBuilder raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - ArcPayjoinFfiSendV1RequestContext raw); + int cst_encode_RustOpaque_payjoin_ffisendv1RequestContext(RequestContext raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - ArcPayjoinFfiSendV2ContextV2 raw); + int cst_encode_RustOpaque_payjoin_ffitypesOhttpKeys(OhttpKeys raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffiuriUri(ArcPayjoinFfiUriUri raw); + int cst_encode_RustOpaque_payjoin_ffiuriPjUri(PjUri raw); @protected - int cst_encode_RustOpaque_Arcpayjoin_ffiuriUrl(ArcPayjoinFfiUriUrl raw); + int cst_encode_RustOpaque_payjoin_ffiuriPjUriBuilder(PjUriBuilder raw); @protected - int cst_encode_RustOpaque_MutexOptionohttpClientResponse( - MutexOptionOhttpClientResponse raw); + int cst_encode_RustOpaque_payjoin_ffiuriUri(Uri raw); @protected - int cst_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( - PayjoinFfiReceiveV1UncheckedProposal raw); + int cst_encode_RustOpaque_payjoin_ffiuriUrl(Url raw); @protected - int cst_encode_RustOpaque_payjoin_ffireceivev2Enroller( - PayjoinFfiReceiveV2Enroller raw); + int cst_encode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + MutexOptionClientResponse raw); @protected - int cst_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( - PayjoinFfiReceiveV2V2UncheckedProposal raw); + bool cst_encode_bool(bool raw); @protected - int cst_encode_RustOpaque_payjoin_ffitypesOhttpKeys( - PayjoinFfiTypesOhttpKeys raw); + double cst_encode_f_64(double raw); @protected - bool cst_encode_bool(bool raw); + int cst_encode_i_32(int raw); @protected - double cst_encode_f_64(double raw); + int cst_encode_network(Network raw); @protected int cst_encode_u_32(int raw); @@ -1947,18 +2129,24 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void cst_encode_unit(void raw); @protected - int cst_encode_usize(int raw); + void sse_encode_AnyhowException( + AnyhowException self, SseSerializer serializer); @protected - void sse_encode_DartFn_Inputs_String_Output_String( + void sse_encode_DartFn_Inputs_String_Output_String_AnyhowException( 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); + void sse_encode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException( + FutureOr Function() self, SseSerializer serializer); + + @protected + void + sse_encode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + FutureOr Function(Uint8List) self, SseSerializer serializer); @protected - void sse_encode_DartFn_Inputs_out_point_Output_bool( + void sse_encode_DartFn_Inputs_out_point_Output_bool_AnyhowException( FutureOr Function(OutPoint) self, SseSerializer serializer); @protected @@ -1970,106 +2158,111 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { @protected void sse_encode_Map_u_64_out_point( - Map self, SseSerializer serializer); + Map self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - ArcPayjoinFfiReceiveV1MaybeInputsOwned self, SseSerializer serializer); + void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + ArcV2PayjoinProposal self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( - ArcPayjoinFfiReceiveV1MaybeInputsSeen self, SseSerializer serializer); + void sse_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + ArcContextV2 self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( - ArcPayjoinFfiReceiveV1MaybeMixedInputScripts self, - SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( + MaybeInputsOwned self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( - ArcPayjoinFfiReceiveV1OutputsUnknown self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( + MaybeInputsSeen self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( - ArcPayjoinFfiReceiveV1PayjoinProposal self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( + MaybeMixedInputScripts self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( - ArcPayjoinFfiReceiveV1ProvisionalProposal self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev1OutputsUnknown( + OutputsUnknown self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( - ArcPayjoinFfiReceiveV2Enrolled self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev1PayjoinProposal( + PayjoinProposal self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( - ArcPayjoinFfiReceiveV2V2MaybeInputsOwned self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( + ProvisionalProposal self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( - ArcPayjoinFfiReceiveV2V2MaybeInputsSeen self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + UncheckedProposal self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( - ArcPayjoinFfiReceiveV2V2MaybeMixedInputScripts self, - SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev2ActiveSession( + ActiveSession self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( - ArcPayjoinFfiReceiveV2V2OutputsUnknown self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev2SessionInitializer( + SessionInitializer self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( - ArcPayjoinFfiReceiveV2V2PayjoinProposal self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( + V2MaybeInputsOwned self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( - ArcPayjoinFfiReceiveV2V2ProvisionalProposal self, - SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( + V2MaybeInputsSeen self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - ArcPayjoinFfiSendV1ContextV1 self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( + V2MaybeMixedInputScripts self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ArcPayjoinFfiSendV1RequestBuilder self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( + V2OutputsUnknown self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - ArcPayjoinFfiSendV1RequestContext self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( + V2ProvisionalProposal self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - ArcPayjoinFfiSendV2ContextV2 self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + V2UncheckedProposal self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffiuriUri( - ArcPayjoinFfiUriUri self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffisendv1ContextV1( + ContextV1 self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_Arcpayjoin_ffiuriUrl( - ArcPayjoinFfiUriUrl self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffisendv1RequestBuilder( + RequestBuilder self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_MutexOptionohttpClientResponse( - MutexOptionOhttpClientResponse self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffisendv1RequestContext( + RequestContext self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_payjoin_ffireceivev1UncheckedProposal( - PayjoinFfiReceiveV1UncheckedProposal self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffitypesOhttpKeys( + OhttpKeys self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_payjoin_ffireceivev2Enroller( - PayjoinFfiReceiveV2Enroller self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffiuriPjUri( + PjUri self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( - PayjoinFfiReceiveV2V2UncheckedProposal self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffiuriPjUriBuilder( + PjUriBuilder self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_payjoin_ffitypesOhttpKeys( - PayjoinFfiTypesOhttpKeys self, SseSerializer serializer); + void sse_encode_RustOpaque_payjoin_ffiuriUri( + Uri self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_payjoin_ffiuriUrl( + Url self, SseSerializer serializer); + + @protected + void sse_encode_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( + MutexOptionClientResponse self, SseSerializer serializer); @protected void sse_encode_String(String self, SseSerializer serializer); @@ -2078,299 +2271,327 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { void sse_encode_bool(bool self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_client_response( - ClientResponse self, SseSerializer serializer); + void sse_encode_box_autoadd_f_64(double self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_context_v_1( - ContextV1 self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_active_session( + FfiActiveSession self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_context_v_2( - ContextV2 self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_client_response( + FfiClientResponse self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_enrolled(Enrolled self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_context_v_1( + FfiContextV1 self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_enroller(Enroller self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_context_v_2( + FfiContextV2 self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_f_64(double self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_maybe_inputs_owned( + FfiMaybeInputsOwned self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_headers(Headers self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_maybe_inputs_seen( + FfiMaybeInputsSeen self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_maybe_inputs_owned( - MaybeInputsOwned self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_maybe_mixed_input_scripts( + FfiMaybeMixedInputScripts self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_maybe_inputs_seen( - MaybeInputsSeen self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_ohttp_keys( + FfiOhttpKeys self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_maybe_mixed_input_scripts( - MaybeMixedInputScripts self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_outputs_unknown( + FfiOutputsUnknown self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_ohttp_keys( - OhttpKeys self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_payjoin_proposal( + FfiPayjoinProposal self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_out_point( - OutPoint self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_pj_uri( + FfiPjUri self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_outputs_unknown( - OutputsUnknown self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_pj_uri_builder( + FfiPjUriBuilder self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_payjoin_proposal( - PayjoinProposal self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_provisional_proposal( + FfiProvisionalProposal self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_provisional_proposal( - ProvisionalProposal self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_request_builder( + FfiRequestBuilder self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_request_builder( - RequestBuilder self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_request_context( + FfiRequestContext self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_request_context( - RequestContext self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_session_initializer( + FfiSessionInitializer self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_tx_out(TxOut self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_unchecked_proposal( + FfiUncheckedProposal self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_uri(FfiUri self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_url(FfiUrl self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_unchecked_proposal( - UncheckedProposal self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_v_2_maybe_inputs_owned( + FfiV2MaybeInputsOwned self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_uri(Uri self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_v_2_maybe_inputs_seen( + FfiV2MaybeInputsSeen self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_url(Url self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_v_2_maybe_mixed_input_scripts( + FfiV2MaybeMixedInputScripts self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_v_2_maybe_inputs_owned( - V2MaybeInputsOwned self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_v_2_outputs_unknown( + FfiV2OutputsUnknown self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_v_2_maybe_inputs_seen( - V2MaybeInputsSeen self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_v_2_payjoin_proposal( + FfiV2PayjoinProposal self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_v_2_maybe_mixed_input_scripts( - V2MaybeMixedInputScripts self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_v_2_provisional_proposal( + FfiV2ProvisionalProposal self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_v_2_outputs_unknown( - V2OutputsUnknown self, SseSerializer serializer); + void sse_encode_box_autoadd_ffi_v_2_unchecked_proposal( + FfiV2UncheckedProposal self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_v_2_payjoin_proposal( - V2PayjoinProposal self, SseSerializer serializer); + void sse_encode_box_autoadd_headers(Headers self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_v_2_provisional_proposal( - V2ProvisionalProposal self, SseSerializer serializer); + void sse_encode_box_autoadd_out_point( + OutPoint self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_v_2_unchecked_proposal( - V2UncheckedProposal self, SseSerializer serializer); + void sse_encode_box_autoadd_tx_out(TxOut self, SseSerializer serializer); @protected - void sse_encode_client_response( - ClientResponse self, SseSerializer serializer); + void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer); @protected - void sse_encode_context_v_1(ContextV1 self, SseSerializer serializer); + void sse_encode_box_autoadd_u_8(int self, SseSerializer serializer); @protected - void sse_encode_context_v_2(ContextV2 self, SseSerializer serializer); + void sse_encode_f_64(double self, SseSerializer serializer); @protected - void sse_encode_enrolled(Enrolled self, SseSerializer serializer); + void sse_encode_ffi_active_session( + FfiActiveSession self, SseSerializer serializer); @protected - void sse_encode_enroller(Enroller self, SseSerializer serializer); + void sse_encode_ffi_client_response( + FfiClientResponse self, SseSerializer serializer); @protected - void sse_encode_f_64(double self, SseSerializer serializer); + void sse_encode_ffi_context_v_1(FfiContextV1 self, SseSerializer serializer); @protected - void sse_encode_headers(Headers self, SseSerializer serializer); + void sse_encode_ffi_context_v_2(FfiContextV2 self, SseSerializer serializer); @protected - void sse_encode_list_out_point(List self, SseSerializer serializer); + void sse_encode_ffi_maybe_inputs_owned( + FfiMaybeInputsOwned self, SseSerializer serializer); @protected - void sse_encode_list_prim_u_64_strict( - Uint64List self, SseSerializer serializer); + void sse_encode_ffi_maybe_inputs_seen( + FfiMaybeInputsSeen self, SseSerializer serializer); @protected - void sse_encode_list_prim_u_8_loose(List self, SseSerializer serializer); + void sse_encode_ffi_maybe_mixed_input_scripts( + FfiMaybeMixedInputScripts self, SseSerializer serializer); @protected - void sse_encode_list_prim_u_8_strict( - Uint8List self, SseSerializer serializer); + void sse_encode_ffi_ohttp_keys(FfiOhttpKeys self, SseSerializer serializer); @protected - void sse_encode_list_record_string_string( - List<(String, String)> self, SseSerializer serializer); + void sse_encode_ffi_outputs_unknown( + FfiOutputsUnknown self, SseSerializer serializer); @protected - void sse_encode_list_record_u_64_out_point( - List<(int, OutPoint)> self, SseSerializer serializer); + void sse_encode_ffi_payjoin_proposal( + FfiPayjoinProposal self, SseSerializer serializer); @protected - void sse_encode_maybe_inputs_owned( - MaybeInputsOwned self, SseSerializer serializer); + void sse_encode_ffi_pj_uri(FfiPjUri self, SseSerializer serializer); @protected - void sse_encode_maybe_inputs_seen( - MaybeInputsSeen self, SseSerializer serializer); + void sse_encode_ffi_pj_uri_builder( + FfiPjUriBuilder self, SseSerializer serializer); @protected - void sse_encode_maybe_mixed_input_scripts( - MaybeMixedInputScripts self, SseSerializer serializer); + void sse_encode_ffi_provisional_proposal( + FfiProvisionalProposal self, SseSerializer serializer); @protected - void sse_encode_ohttp_keys(OhttpKeys self, SseSerializer serializer); + void sse_encode_ffi_request_builder( + FfiRequestBuilder self, SseSerializer serializer); @protected - void sse_encode_opt_String(String? self, SseSerializer serializer); + void sse_encode_ffi_request_context( + FfiRequestContext self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_f_64(double? self, SseSerializer serializer); + void sse_encode_ffi_session_initializer( + FfiSessionInitializer self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer); + void sse_encode_ffi_unchecked_proposal( + FfiUncheckedProposal self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_u_8(int? self, SseSerializer serializer); + void sse_encode_ffi_uri(FfiUri self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_v_2_unchecked_proposal( - V2UncheckedProposal? self, SseSerializer serializer); + void sse_encode_ffi_url(FfiUrl self, SseSerializer serializer); @protected - void sse_encode_out_point(OutPoint self, SseSerializer serializer); + void sse_encode_ffi_v_2_maybe_inputs_owned( + FfiV2MaybeInputsOwned self, SseSerializer serializer); @protected - void sse_encode_outputs_unknown( - OutputsUnknown self, SseSerializer serializer); + void sse_encode_ffi_v_2_maybe_inputs_seen( + FfiV2MaybeInputsSeen self, SseSerializer serializer); @protected - void sse_encode_payjoin_error(PayjoinError self, SseSerializer serializer); + void sse_encode_ffi_v_2_maybe_mixed_input_scripts( + FfiV2MaybeMixedInputScripts self, SseSerializer serializer); @protected - void sse_encode_payjoin_proposal( - PayjoinProposal self, SseSerializer serializer); + void sse_encode_ffi_v_2_outputs_unknown( + FfiV2OutputsUnknown self, SseSerializer serializer); @protected - void sse_encode_provisional_proposal( - ProvisionalProposal self, SseSerializer serializer); + void sse_encode_ffi_v_2_payjoin_proposal( + FfiV2PayjoinProposal self, SseSerializer serializer); @protected - void sse_encode_record_record_url_list_prim_u_8_strict_client_response( - ((Url, Uint8List), ClientResponse) self, SseSerializer serializer); + void sse_encode_ffi_v_2_provisional_proposal( + FfiV2ProvisionalProposal self, SseSerializer serializer); @protected - void sse_encode_record_string_string( - (String, String) self, SseSerializer serializer); + void sse_encode_ffi_v_2_unchecked_proposal( + FfiV2UncheckedProposal self, SseSerializer serializer); @protected - void sse_encode_record_u_64_out_point( - (int, OutPoint) self, SseSerializer serializer); + void sse_encode_headers(Headers self, SseSerializer serializer); @protected - void sse_encode_record_url_list_prim_u_8_strict( - (Url, Uint8List) self, SseSerializer serializer); + void sse_encode_i_32(int self, SseSerializer serializer); @protected - void sse_encode_request_builder( - RequestBuilder self, SseSerializer serializer); + void sse_encode_list_out_point(List self, SseSerializer serializer); @protected - void sse_encode_request_context( - RequestContext self, SseSerializer serializer); + void sse_encode_list_prim_u_64_strict( + Uint64List self, SseSerializer serializer); @protected - void sse_encode_request_context_v_1( - RequestContextV1 self, SseSerializer serializer); + void sse_encode_list_prim_u_8_loose(List self, SseSerializer serializer); @protected - void sse_encode_request_context_v_2( - RequestContextV2 self, SseSerializer serializer); + void sse_encode_list_prim_u_8_strict( + Uint8List self, SseSerializer serializer); @protected - void sse_encode_tx_out(TxOut self, SseSerializer serializer); + void sse_encode_list_record_string_string( + List<(String, String)> self, SseSerializer serializer); @protected - void sse_encode_u_32(int self, SseSerializer serializer); + void sse_encode_list_record_u_64_out_point( + List<(BigInt, OutPoint)> self, SseSerializer serializer); @protected - void sse_encode_u_64(int self, SseSerializer serializer); + void sse_encode_network(Network self, SseSerializer serializer); @protected - void sse_encode_u_8(int self, SseSerializer serializer); + void sse_encode_opt_String(String? self, SseSerializer serializer); @protected - void sse_encode_unchecked_proposal( - UncheckedProposal self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_f_64(double? self, SseSerializer serializer); @protected - void sse_encode_unit(void self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_ffi_ohttp_keys( + FfiOhttpKeys? self, SseSerializer serializer); @protected - void sse_encode_uri(Uri self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_ffi_v_2_unchecked_proposal( + FfiV2UncheckedProposal? self, SseSerializer serializer); @protected - void sse_encode_url(Url self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer); @protected - void sse_encode_usize(int self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_u_8(int? self, SseSerializer serializer); @protected - void sse_encode_v_2_maybe_inputs_owned( - V2MaybeInputsOwned self, SseSerializer serializer); + void sse_encode_out_point(OutPoint self, SseSerializer serializer); @protected - void sse_encode_v_2_maybe_inputs_seen( - V2MaybeInputsSeen self, SseSerializer serializer); + void sse_encode_payjoin_error(PayjoinError self, SseSerializer serializer); @protected - void sse_encode_v_2_maybe_mixed_input_scripts( - V2MaybeMixedInputScripts self, SseSerializer serializer); + void sse_encode_record_ffi_url_list_prim_u_8_strict( + (FfiUrl, Uint8List) self, SseSerializer serializer); @protected - void sse_encode_v_2_outputs_unknown( - V2OutputsUnknown self, SseSerializer serializer); + void + sse_encode_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response( + ((FfiUrl, Uint8List), FfiClientResponse) self, + SseSerializer serializer); @protected - void sse_encode_v_2_payjoin_proposal( - V2PayjoinProposal self, SseSerializer serializer); + void sse_encode_record_string_string( + (String, String) self, SseSerializer serializer); @protected - void sse_encode_v_2_provisional_proposal( - V2ProvisionalProposal self, SseSerializer serializer); + void sse_encode_record_u_64_out_point( + (BigInt, OutPoint) self, SseSerializer serializer); @protected - void sse_encode_v_2_unchecked_proposal( - V2UncheckedProposal self, SseSerializer serializer); + void sse_encode_request_context_v_1( + RequestContextV1 self, SseSerializer serializer); @protected - void sse_encode_i_32(int self, SseSerializer serializer); + void sse_encode_request_context_v_2( + RequestContextV2 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(BigInt self, SseSerializer serializer); + + @protected + void sse_encode_u_8(int self, SseSerializer serializer); + + @protected + void sse_encode_unit(void self, SseSerializer serializer); + + @protected + void sse_encode_usize(BigInt self, SseSerializer serializer); } // Section: wire_class @@ -2382,20 +2603,19 @@ abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { // ignore_for_file: type=lint /// generated by flutter_rust_bridge -class PayjoinCoreWire implements BaseWire { - factory PayjoinCoreWire.fromExternalLibrary(ExternalLibrary lib) => - PayjoinCoreWire(lib.ffiDynamicLibrary); +class coreWire implements BaseWire { + factory coreWire.fromExternalLibrary(ExternalLibrary lib) => + coreWire(lib.ffiDynamicLibrary); /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) _lookup; /// The symbols are looked up in [dynamicLibrary]. - PayjoinCoreWire(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; + coreWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. - PayjoinCoreWire.fromLookup( + coreWire.fromLookup( ffi.Pointer Function(String symbolName) lookup) : _lookup = lookup; @@ -2414,121 +2634,102 @@ class PayjoinCoreWire implements BaseWire { late final _store_dart_post_cobject = _store_dart_post_cobjectPtr .asFunction(); - void wire_enrolled_extract_req( - int port_, - ffi.Pointer ptr, - ) { - return _wire_enrolled_extract_req( - port_, - ptr, - ); - } - - 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( + void wire__crate__api__io__fetch_ohttp_keys( int port_, - ffi.Pointer that, - ffi.Pointer body, - ffi.Pointer ctx, + ffi.Pointer ohttp_relay, + ffi.Pointer payjoin_directory, + ffi.Pointer cert_der, ) { - return _wire_enrolled_process_res( + return _wire__crate__api__io__fetch_ohttp_keys( port_, - that, - body, - ctx, + ohttp_relay, + payjoin_directory, + cert_der, ); } - late final _wire_enrolled_process_resPtr = _lookup< + late final _wire__crate__api__io__fetch_ohttp_keysPtr = _lookup< ffi.NativeFunction< ffi.Void Function( 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< + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__io__fetch_ohttp_keys'); + late final _wire__crate__api__io__fetch_ohttp_keys = + _wire__crate__api__io__fetch_ohttp_keysPtr.asFunction< void Function( int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire_enroller_extract_req( + void wire__crate__api__receive__ffi_active_session_extract_req( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire_enroller_extract_req( + return _wire__crate__api__receive__ffi_active_session_extract_req( port_, ptr, ); } - late final _wire_enroller_extract_reqPtr = _lookup< - ffi.NativeFunction< - 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)>(); + late final _wire__crate__api__receive__ffi_active_session_extract_reqPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_extract_req'); + late final _wire__crate__api__receive__ffi_active_session_extract_req = + _wire__crate__api__receive__ffi_active_session_extract_reqPtr.asFunction< + void Function(int, ffi.Pointer)>(); + + WireSyncRust2DartDco + wire__crate__api__receive__ffi_active_session_pj_uri_builder( + ffi.Pointer ptr, + ) { + return _wire__crate__api__receive__ffi_active_session_pj_uri_builder( + ptr, + ); + } - void wire_enroller_from_directory_config( - int port_, - ffi.Pointer directory, - ffi.Pointer ohttp_keys, - ffi.Pointer ohttp_relay, + late final _wire__crate__api__receive__ffi_active_session_pj_uri_builderPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_pj_uri_builder'); + late final _wire__crate__api__receive__ffi_active_session_pj_uri_builder = + _wire__crate__api__receive__ffi_active_session_pj_uri_builderPtr + .asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__receive__ffi_active_session_pj_url( + ffi.Pointer ptr, ) { - return _wire_enroller_from_directory_config( - port_, - directory, - ohttp_keys, - ohttp_relay, + return _wire__crate__api__receive__ffi_active_session_pj_url( + ptr, ); } - late final _wire_enroller_from_directory_configPtr = _lookup< + late final _wire__crate__api__receive__ffi_active_session_pj_urlPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_enroller_from_directory_config'); - late final _wire_enroller_from_directory_config = - _wire_enroller_from_directory_configPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - void wire_enroller_process_res( + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_pj_url'); + late final _wire__crate__api__receive__ffi_active_session_pj_url = + _wire__crate__api__receive__ffi_active_session_pj_urlPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + void wire__crate__api__receive__ffi_active_session_process_res( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer body, - ffi.Pointer ctx, + ffi.Pointer ctx, ) { - return _wire_enroller_process_res( + return _wire__crate__api__receive__ffi_active_session_process_res( port_, that, body, @@ -2536,198 +2737,234 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_enroller_process_resPtr = _lookup< - ffi.NativeFunction< - 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< + late final _wire__crate__api__receive__ffi_active_session_process_resPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_process_res'); + late final _wire__crate__api__receive__ffi_active_session_process_res = + _wire__crate__api__receive__ffi_active_session_process_resPtr.asFunction< void Function( int, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__receive__ffi_active_session_public_key( + ffi.Pointer that, + ) { + return _wire__crate__api__receive__ffi_active_session_public_key( + that, + ); + } - void wire_maybe_inputs_owned_check_inputs_not_owned( + late final _wire__crate__api__receive__ffi_active_session_public_keyPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_public_key'); + late final _wire__crate__api__receive__ffi_active_session_public_key = + _wire__crate__api__receive__ffi_active_session_public_keyPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + void wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_owned( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ffi.Pointer is_owned, ) { - return _wire_maybe_inputs_owned_check_inputs_not_owned( + return _wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_owned( port_, ptr, is_owned, ); } - late final _wire_maybe_inputs_owned_check_inputs_not_ownedPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_maybe_inputs_owned_check_inputs_not_owned'); - late final _wire_maybe_inputs_owned_check_inputs_not_owned = - _wire_maybe_inputs_owned_check_inputs_not_ownedPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_maybe_inputs_seen_check_no_inputs_seen_before( + late final _wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_ownedPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_owned'); + late final _wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_owned = + _wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_ownedPtr + .asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_before( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ffi.Pointer is_known, ) { - return _wire_maybe_inputs_seen_check_no_inputs_seen_before( + return _wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_before( port_, ptr, is_known, ); } - late final _wire_maybe_inputs_seen_check_no_inputs_seen_beforePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_maybe_inputs_seen_check_no_inputs_seen_before'); - late final _wire_maybe_inputs_seen_check_no_inputs_seen_before = - _wire_maybe_inputs_seen_check_no_inputs_seen_beforePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts( + late final _wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_beforePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_before'); + late final _wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_before = + _wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_beforePtr + .asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts( + return _wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts( port_, ptr, ); } - late final _wire_maybe_mixed_input_scripts_check_no_mixed_input_scriptsPtr = + late final _wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scriptsPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts'); - late final _wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts = - _wire_maybe_mixed_input_scripts_check_no_mixed_input_scriptsPtr + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts'); + late final _wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts = + _wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scriptsPtr .asFunction< void Function( - int, ffi.Pointer)>(); + int, ffi.Pointer)>(); - void wire_outputs_unknown_identify_receiver_outputs( + void wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputs( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ffi.Pointer is_receiver_output, ) { - return _wire_outputs_unknown_identify_receiver_outputs( + return _wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputs( port_, ptr, is_receiver_output, ); } - late final _wire_outputs_unknown_identify_receiver_outputsPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_outputs_unknown_identify_receiver_outputs'); - late final _wire_outputs_unknown_identify_receiver_outputs = - _wire_outputs_unknown_identify_receiver_outputsPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_payjoin_proposal_is_output_substitution_disabled( - int port_, - ffi.Pointer that, - ) { - return _wire_payjoin_proposal_is_output_substitution_disabled( - port_, - that, - ); - } + late final _wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputs'); + late final _wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputs = + _wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputsPtr + .asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); - late final _wire_payjoin_proposal_is_output_substitution_disabledPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_payjoin_proposal_is_output_substitution_disabled'); - late final _wire_payjoin_proposal_is_output_substitution_disabled = - _wire_payjoin_proposal_is_output_substitution_disabledPtr.asFunction< - void Function(int, ffi.Pointer)>(); + void + wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabled( + int port_, + ffi.Pointer that, + ) { + return _wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabled( + port_, + that, + ); + } + + late final _wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabledPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabled'); + late final _wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabled = + _wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabledPtr + .asFunction< + void Function(int, ffi.Pointer)>(); - void wire_payjoin_proposal_owned_vouts( + void wire__crate__api__receive__ffi_payjoin_proposal_owned_vouts( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_payjoin_proposal_owned_vouts( + return _wire__crate__api__receive__ffi_payjoin_proposal_owned_vouts( port_, that, ); } - late final _wire_payjoin_proposal_owned_voutsPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_payjoin_proposal_owned_vouts'); - late final _wire_payjoin_proposal_owned_vouts = - _wire_payjoin_proposal_owned_voutsPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_payjoin_proposal_owned_voutsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_owned_vouts'); + late final _wire__crate__api__receive__ffi_payjoin_proposal_owned_vouts = + _wire__crate__api__receive__ffi_payjoin_proposal_owned_voutsPtr + .asFunction< + void Function(int, ffi.Pointer)>(); - void wire_payjoin_proposal_psbt( + void wire__crate__api__receive__ffi_payjoin_proposal_psbt( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_payjoin_proposal_psbt( + return _wire__crate__api__receive__ffi_payjoin_proposal_psbt( port_, that, ); } - late final _wire_payjoin_proposal_psbtPtr = _lookup< + late final _wire__crate__api__receive__ffi_payjoin_proposal_psbtPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_payjoin_proposal_psbt'); - late final _wire_payjoin_proposal_psbt = _wire_payjoin_proposal_psbtPtr - .asFunction)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_psbt'); + late final _wire__crate__api__receive__ffi_payjoin_proposal_psbt = + _wire__crate__api__receive__ffi_payjoin_proposal_psbtPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_payjoin_proposal_utxos_to_be_locked( + void wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_locked( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_payjoin_proposal_utxos_to_be_locked( + return _wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_locked( port_, that, ); } - late final _wire_payjoin_proposal_utxos_to_be_lockedPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_payjoin_proposal_utxos_to_be_locked'); - late final _wire_payjoin_proposal_utxos_to_be_locked = - _wire_payjoin_proposal_utxos_to_be_lockedPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_lockedPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_locked'); + late final _wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_locked = + _wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_lockedPtr + .asFunction< + void Function(int, ffi.Pointer)>(); - void wire_provisional_proposal_contribute_non_witness_input( + void + wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_input( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer tx, ffi.Pointer outpoint, ) { - return _wire_provisional_proposal_contribute_non_witness_input( + return _wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_input( port_, that, tx, @@ -2735,29 +2972,32 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_provisional_proposal_contribute_non_witness_inputPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, + late final _wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_inputPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_input'); + late final _wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_input = + _wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_inputPtr + .asFunction< + void Function( + int, + ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_provisional_proposal_contribute_non_witness_input'); - late final _wire_provisional_proposal_contribute_non_witness_input = - _wire_provisional_proposal_contribute_non_witness_inputPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); - void wire_provisional_proposal_contribute_witness_input( + void + wire__crate__api__receive__ffi_provisional_proposal_contribute_witness_input( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer txo, ffi.Pointer outpoint, ) { - return _wire_provisional_proposal_contribute_witness_input( + return _wire__crate__api__receive__ffi_provisional_proposal_contribute_witness_input( port_, that, txo, @@ -2765,26 +3005,31 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_provisional_proposal_contribute_witness_inputPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, + late final _wire__crate__api__receive__ffi_provisional_proposal_contribute_witness_inputPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_contribute_witness_input'); + late final _wire__crate__api__receive__ffi_provisional_proposal_contribute_witness_input = + _wire__crate__api__receive__ffi_provisional_proposal_contribute_witness_inputPtr + .asFunction< + void Function( + int, + ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_provisional_proposal_contribute_witness_input'); - late final _wire_provisional_proposal_contribute_witness_input = - _wire_provisional_proposal_contribute_witness_inputPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - void wire_provisional_proposal_finalize_proposal( + ffi.Pointer)>(); + + void wire__crate__api__receive__ffi_provisional_proposal_finalize_proposal( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ffi.Pointer process_psbt, ffi.Pointer min_feerate_sat_per_vb, ) { - return _wire_provisional_proposal_finalize_proposal( + return _wire__crate__api__receive__ffi_provisional_proposal_finalize_proposal( port_, ptr, process_psbt, @@ -2792,93 +3037,202 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_provisional_proposal_finalize_proposalPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_provisional_proposal_finalize_proposal'); - late final _wire_provisional_proposal_finalize_proposal = - _wire_provisional_proposal_finalize_proposalPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_provisional_proposal_finalize_proposalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_finalize_proposal'); + late final _wire__crate__api__receive__ffi_provisional_proposal_finalize_proposal = + _wire__crate__api__receive__ffi_provisional_proposal_finalize_proposalPtr + .asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void wire_provisional_proposal_substitute_output_address( + void + wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacy( int port_, - ffi.Pointer that, - ffi.Pointer address, + ffi.Pointer that, + ffi.Pointer candidate_inputs, + ) { + return _wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacy( + port_, + that, + candidate_inputs, + ); + } + + late final _wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacy'); + late final _wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacy = + _wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacyPtr + .asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_output( + int port_, + ffi.Pointer that, + ffi.Pointer generate_script, ) { - return _wire_provisional_proposal_substitute_output_address( + return _wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_output( port_, that, + generate_script, + ); + } + + late final _wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_outputPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_output'); + late final _wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_output = + _wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_outputPtr + .asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__receive__ffi_session_initializer_extract_req( + int port_, + ffi.Pointer ptr, + ) { + return _wire__crate__api__receive__ffi_session_initializer_extract_req( + port_, + ptr, + ); + } + + late final _wire__crate__api__receive__ffi_session_initializer_extract_reqPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_extract_req'); + late final _wire__crate__api__receive__ffi_session_initializer_extract_req = + _wire__crate__api__receive__ffi_session_initializer_extract_reqPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); + + void wire__crate__api__receive__ffi_session_initializer_new( + int port_, + ffi.Pointer address, + ffi.Pointer expire_after, + int network, + ffi.Pointer directory, + ffi.Pointer ohttp_keys, + ffi.Pointer ohttp_relay, + ) { + return _wire__crate__api__receive__ffi_session_initializer_new( + port_, address, + expire_after, + network, + directory, + ohttp_keys, + ohttp_relay, ); } - late final _wire_provisional_proposal_substitute_output_addressPtr = _lookup< + late final _wire__crate__api__receive__ffi_session_initializer_newPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_provisional_proposal_substitute_output_address'); - late final _wire_provisional_proposal_substitute_output_address = - _wire_provisional_proposal_substitute_output_addressPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_new'); + late final _wire__crate__api__receive__ffi_session_initializer_new = + _wire__crate__api__receive__ffi_session_initializer_newPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire_provisional_proposal_try_preserving_privacy( + void wire__crate__api__receive__ffi_session_initializer_process_res( int port_, - ffi.Pointer that, - ffi.Pointer candidate_inputs, + ffi.Pointer that, + ffi.Pointer body, + ffi.Pointer ctx, ) { - return _wire_provisional_proposal_try_preserving_privacy( + return _wire__crate__api__receive__ffi_session_initializer_process_res( port_, that, - candidate_inputs, + body, + ctx, ); } - late final _wire_provisional_proposal_try_preserving_privacyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_provisional_proposal_try_preserving_privacy'); - late final _wire_provisional_proposal_try_preserving_privacy = - _wire_provisional_proposal_try_preserving_privacyPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_unchecked_proposal_assume_interactive_receiver( + late final _wire__crate__api__receive__ffi_session_initializer_process_resPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_process_res'); + late final _wire__crate__api__receive__ffi_session_initializer_process_res = + _wire__crate__api__receive__ffi_session_initializer_process_resPtr + .asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiver( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire_unchecked_proposal_assume_interactive_receiver( + return _wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiver( port_, ptr, ); } - late final _wire_unchecked_proposal_assume_interactive_receiverPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_unchecked_proposal_assume_interactive_receiver'); - late final _wire_unchecked_proposal_assume_interactive_receiver = - _wire_unchecked_proposal_assume_interactive_receiverPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiverPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiver'); + late final _wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiver = + _wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiverPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); - void wire_unchecked_proposal_check_broadcast_suitability( + void + wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitability( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ffi.Pointer min_fee_rate, ffi.Pointer can_broadcast, ) { - return _wire_unchecked_proposal_check_broadcast_suitability( + return _wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitability( port_, ptr, min_fee_rate, @@ -2886,45 +3240,51 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_unchecked_proposal_check_broadcast_suitabilityPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_unchecked_proposal_check_broadcast_suitability'); - late final _wire_unchecked_proposal_check_broadcast_suitability = - _wire_unchecked_proposal_check_broadcast_suitabilityPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - void wire_unchecked_proposal_extract_tx_to_schedule_broadcast( + late final _wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitabilityPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitability'); + late final _wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitability = + _wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitabilityPtr + .asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcast( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_unchecked_proposal_extract_tx_to_schedule_broadcast( + return _wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcast( port_, that, ); } - late final _wire_unchecked_proposal_extract_tx_to_schedule_broadcastPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_unchecked_proposal_extract_tx_to_schedule_broadcast'); - late final _wire_unchecked_proposal_extract_tx_to_schedule_broadcast = - _wire_unchecked_proposal_extract_tx_to_schedule_broadcastPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcastPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcast'); + late final _wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcast = + _wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcastPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); - void wire_unchecked_proposal_from_request( + void wire__crate__api__receive__ffi_unchecked_proposal_from_request( int port_, ffi.Pointer body, ffi.Pointer query, ffi.Pointer headers, ) { - return _wire_unchecked_proposal_from_request( + return _wire__crate__api__receive__ffi_unchecked_proposal_from_request( port_, body, query, @@ -2932,268 +3292,304 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_unchecked_proposal_from_requestPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, + late final _wire__crate__api__receive__ffi_unchecked_proposal_from_requestPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_from_request'); + late final _wire__crate__api__receive__ffi_unchecked_proposal_from_request = + _wire__crate__api__receive__ffi_unchecked_proposal_from_requestPtr + .asFunction< + void Function( + int, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_unchecked_proposal_from_request'); - late final _wire_unchecked_proposal_from_request = - _wire_unchecked_proposal_from_requestPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); - void wire_v_2_maybe_inputs_owned_check_inputs_not_owned( + void + wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_owned( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer is_owned, ) { - return _wire_v_2_maybe_inputs_owned_check_inputs_not_owned( + return _wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_owned( port_, that, is_owned, ); } - late final _wire_v_2_maybe_inputs_owned_check_inputs_not_ownedPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_maybe_inputs_owned_check_inputs_not_owned'); - late final _wire_v_2_maybe_inputs_owned_check_inputs_not_owned = - _wire_v_2_maybe_inputs_owned_check_inputs_not_ownedPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before( + late final _wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_ownedPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_owned'); + late final _wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_owned = + _wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_ownedPtr + .asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_before( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer is_known, ) { - return _wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before( + return _wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_before( port_, that, is_known, ); } - late final _wire_v_2_maybe_inputs_seen_check_no_inputs_seen_beforePtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before'); - late final _wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before = - _wire_v_2_maybe_inputs_seen_check_no_inputs_seen_beforePtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( + late final _wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_beforePtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_before'); + late final _wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_before = + _wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_beforePtr + .asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( + return _wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( port_, that, ); } - late final _wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scriptsPtr = + late final _wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scriptsPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts'); - late final _wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts = - _wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scriptsPtr + ffi.Void Function( + ffi.Int64, + ffi.Pointer< + wire_cst_ffi_v_2_maybe_mixed_input_scripts>)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts'); + late final _wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts = + _wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scriptsPtr .asFunction< - void Function( - int, ffi.Pointer)>(); + void Function(int, + ffi.Pointer)>(); - void wire_v_2_outputs_unknown_identify_receiver_outputs( + void + wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputs( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer is_receiver_output, ) { - return _wire_v_2_outputs_unknown_identify_receiver_outputs( + return _wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputs( port_, that, is_receiver_output, ); } - late final _wire_v_2_outputs_unknown_identify_receiver_outputsPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_outputs_unknown_identify_receiver_outputs'); - late final _wire_v_2_outputs_unknown_identify_receiver_outputs = - _wire_v_2_outputs_unknown_identify_receiver_outputsPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_v_2_payjoin_proposal_deserialize_res( + late final _wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputsPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputs'); + late final _wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputs = + _wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputsPtr + .asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_req( int port_, - ffi.Pointer that, - ffi.Pointer res, - ffi.Pointer ohttp_context, + ffi.Pointer that, ) { - return _wire_v_2_payjoin_proposal_deserialize_res( + return _wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_req( port_, that, - res, - ohttp_context, ); } - late final _wire_v_2_payjoin_proposal_deserialize_resPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_deserialize_res'); - late final _wire_v_2_payjoin_proposal_deserialize_res = - _wire_v_2_payjoin_proposal_deserialize_resPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_reqPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_req'); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_req = + _wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_reqPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); - void wire_v_2_payjoin_proposal_extract_v1_req( + void wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_req( int port_, - ffi.Pointer that, + ffi.Pointer ptr, ) { - return _wire_v_2_payjoin_proposal_extract_v1_req( + return _wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_req( port_, - that, + ptr, ); } - late final _wire_v_2_payjoin_proposal_extract_v1_reqPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_extract_v1_req'); - late final _wire_v_2_payjoin_proposal_extract_v1_req = - _wire_v_2_payjoin_proposal_extract_v1_reqPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_reqPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_req'); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_req = + _wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_reqPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); - void wire_v_2_payjoin_proposal_extract_v2_req( + void + wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabled( int port_, - ffi.Pointer ptr, + ffi.Pointer that, ) { - return _wire_v_2_payjoin_proposal_extract_v2_req( + return _wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabled( port_, - ptr, + that, ); } - late final _wire_v_2_payjoin_proposal_extract_v2_reqPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_extract_v2_req'); - late final _wire_v_2_payjoin_proposal_extract_v2_req = - _wire_v_2_payjoin_proposal_extract_v2_reqPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabledPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabled'); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabled = + _wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabledPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); - void wire_v_2_payjoin_proposal_is_output_substitution_disabled( + void wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_vouts( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_v_2_payjoin_proposal_is_output_substitution_disabled( + return _wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_vouts( port_, that, ); } - late final _wire_v_2_payjoin_proposal_is_output_substitution_disabledPtr = + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_voutsPtr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_is_output_substitution_disabled'); - late final _wire_v_2_payjoin_proposal_is_output_substitution_disabled = - _wire_v_2_payjoin_proposal_is_output_substitution_disabledPtr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_vouts'); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_vouts = + _wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_voutsPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); - void wire_v_2_payjoin_proposal_owned_vouts( + void wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_res( int port_, - ffi.Pointer that, + ffi.Pointer that, + ffi.Pointer res, + ffi.Pointer ohttp_context, ) { - return _wire_v_2_payjoin_proposal_owned_vouts( + return _wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_res( port_, that, + res, + ohttp_context, ); } - late final _wire_v_2_payjoin_proposal_owned_voutsPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_owned_vouts'); - late final _wire_v_2_payjoin_proposal_owned_vouts = - _wire_v_2_payjoin_proposal_owned_voutsPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_resPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_res'); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_res = + _wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_resPtr + .asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire_v_2_payjoin_proposal_psbt( + void wire__crate__api__receive__ffi_v_2_payjoin_proposal_psbt( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_v_2_payjoin_proposal_psbt( + return _wire__crate__api__receive__ffi_v_2_payjoin_proposal_psbt( port_, that, ); } - late final _wire_v_2_payjoin_proposal_psbtPtr = _lookup< + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_psbtPtr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_psbt'); - late final _wire_v_2_payjoin_proposal_psbt = - _wire_v_2_payjoin_proposal_psbtPtr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_psbt'); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_psbt = + _wire__crate__api__receive__ffi_v_2_payjoin_proposal_psbtPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_v_2_payjoin_proposal_utxos_to_be_locked( + void wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_locked( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_v_2_payjoin_proposal_utxos_to_be_locked( + return _wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_locked( port_, that, ); } - late final _wire_v_2_payjoin_proposal_utxos_to_be_lockedPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_utxos_to_be_locked'); - late final _wire_v_2_payjoin_proposal_utxos_to_be_locked = - _wire_v_2_payjoin_proposal_utxos_to_be_lockedPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_lockedPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_locked'); + late final _wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_locked = + _wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_lockedPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); - void wire_v_2_provisional_proposal_contribute_non_witness_input( + void + wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_input( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer tx, ffi.Pointer outpoint, ) { - return _wire_v_2_provisional_proposal_contribute_non_witness_input( + return _wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_input( port_, that, tx, @@ -3201,30 +3597,32 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_v_2_provisional_proposal_contribute_non_witness_inputPtr = + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_inputPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, + ffi.Pointer, ffi.Pointer, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_provisional_proposal_contribute_non_witness_input'); - late final _wire_v_2_provisional_proposal_contribute_non_witness_input = - _wire_v_2_provisional_proposal_contribute_non_witness_inputPtr.asFunction< - void Function( - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_input'); + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_input = + _wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_inputPtr + .asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - void wire_v_2_provisional_proposal_contribute_witness_input( + void + wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_input( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer txo, ffi.Pointer outpoint, ) { - return _wire_v_2_provisional_proposal_contribute_witness_input( + return _wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_input( port_, that, txo, @@ -3232,26 +3630,32 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_v_2_provisional_proposal_contribute_witness_inputPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_inputPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_input'); + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_input = + _wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_inputPtr + .asFunction< + void Function( + int, + ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_provisional_proposal_contribute_witness_input'); - late final _wire_v_2_provisional_proposal_contribute_witness_input = - _wire_v_2_provisional_proposal_contribute_witness_inputPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - void wire_v_2_provisional_proposal_finalize_proposal( + ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposal( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer process_psbt, ffi.Pointer min_feerate_sat_per_vb, ) { - return _wire_v_2_provisional_proposal_finalize_proposal( + return _wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposal( port_, that, process_psbt, @@ -3259,93 +3663,136 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_v_2_provisional_proposal_finalize_proposalPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposal'); + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposal = + _wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposalPtr + .asFunction< + void Function( + int, + ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_provisional_proposal_finalize_proposal'); - late final _wire_v_2_provisional_proposal_finalize_proposal = - _wire_v_2_provisional_proposal_finalize_proposalPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer)>(); - void wire_v_2_provisional_proposal_substitute_output_address( + void + wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabled( int port_, - ffi.Pointer that, - ffi.Pointer address, + ffi.Pointer that, ) { - return _wire_v_2_provisional_proposal_substitute_output_address( + return _wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabled( port_, that, - address, ); } - late final _wire_v_2_provisional_proposal_substitute_output_addressPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_provisional_proposal_substitute_output_address'); - late final _wire_v_2_provisional_proposal_substitute_output_address = - _wire_v_2_provisional_proposal_substitute_output_addressPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabledPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabled'); + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabled = + _wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabledPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacy( + int port_, + ffi.Pointer that, + ffi.Pointer candidate_inputs, + ) { + return _wire__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacy( + port_, + that, + candidate_inputs, + ); + } + + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacyPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacy'); + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacy = + _wire__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacyPtr + .asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer)>(); - void wire_v_2_provisional_proposal_try_preserving_privacy( + void + wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_output( int port_, - ffi.Pointer that, - ffi.Pointer candidate_inputs, + ffi.Pointer that, + ffi.Pointer generate_script, ) { - return _wire_v_2_provisional_proposal_try_preserving_privacy( + return _wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_output( port_, that, - candidate_inputs, + generate_script, ); } - late final _wire_v_2_provisional_proposal_try_preserving_privacyPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_provisional_proposal_try_preserving_privacy'); - late final _wire_v_2_provisional_proposal_try_preserving_privacy = - _wire_v_2_provisional_proposal_try_preserving_privacyPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_v_2_unchecked_proposal_assume_interactive_receiver( + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_outputPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_output'); + late final _wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_output = + _wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_outputPtr + .asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiver( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_v_2_unchecked_proposal_assume_interactive_receiver( + return _wire__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiver( port_, that, ); } - late final _wire_v_2_unchecked_proposal_assume_interactive_receiverPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_assume_interactive_receiver'); - late final _wire_v_2_unchecked_proposal_assume_interactive_receiver = - _wire_v_2_unchecked_proposal_assume_interactive_receiverPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiverPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiver'); + late final _wire__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiver = + _wire__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiverPtr + .asFunction< + void Function( + int, ffi.Pointer)>(); - void wire_v_2_unchecked_proposal_check_broadcast_suitability( + void + wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitability( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer min_fee_rate, ffi.Pointer can_broadcast, ) { - return _wire_v_2_unchecked_proposal_check_broadcast_suitability( + return _wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitability( port_, that, min_fee_rate, @@ -3353,155 +3800,177 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_v_2_unchecked_proposal_check_broadcast_suitabilityPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, + late final _wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitabilityPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitability'); + late final _wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitability = + _wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitabilityPtr + .asFunction< + void Function( + int, + ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_check_broadcast_suitability'); - late final _wire_v_2_unchecked_proposal_check_broadcast_suitability = - _wire_v_2_unchecked_proposal_check_broadcast_suitabilityPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - void wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( + ffi.Pointer)>(); + + void + wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( int port_, - ffi.Pointer that, + ffi.Pointer that, ) { - return _wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( + return _wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( port_, that, ); } - late final _wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcastPtr = + late final _wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcastPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast'); - late final _wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast = - _wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcastPtr + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast'); + late final _wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast = + _wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcastPtr .asFunction< void Function( - int, ffi.Pointer)>(); + int, ffi.Pointer)>(); - void wire_context_v_1_process_response( + void wire__crate__api__send__ffi_context_v_1_process_response( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer response, ) { - return _wire_context_v_1_process_response( + return _wire__crate__api__send__ffi_context_v_1_process_response( port_, that, response, ); } - late final _wire_context_v_1_process_responsePtr = _lookup< + late final _wire__crate__api__send__ffi_context_v_1_process_responsePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Void Function( + ffi.Int64, + ffi.Pointer, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_context_v_1_process_response'); - late final _wire_context_v_1_process_response = - _wire_context_v_1_process_responsePtr.asFunction< - void Function(int, ffi.Pointer, + 'frbgen_payjoin_flutter_wire__crate__api__send__ffi_context_v_1_process_response'); + late final _wire__crate__api__send__ffi_context_v_1_process_response = + _wire__crate__api__send__ffi_context_v_1_process_responsePtr.asFunction< + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_context_v_2_process_response( + void wire__crate__api__send__ffi_context_v_2_process_response( int port_, - ffi.Pointer that, + ffi.Pointer that, ffi.Pointer response, ) { - return _wire_context_v_2_process_response( + return _wire__crate__api__send__ffi_context_v_2_process_response( port_, that, response, ); } - late final _wire_context_v_2_process_responsePtr = _lookup< + late final _wire__crate__api__send__ffi_context_v_2_process_responsePtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Void Function( + ffi.Int64, + ffi.Pointer, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_context_v_2_process_response'); - late final _wire_context_v_2_process_response = - _wire_context_v_2_process_responsePtr.asFunction< - void Function(int, ffi.Pointer, + 'frbgen_payjoin_flutter_wire__crate__api__send__ffi_context_v_2_process_response'); + late final _wire__crate__api__send__ffi_context_v_2_process_response = + _wire__crate__api__send__ffi_context_v_2_process_responsePtr.asFunction< + void Function(int, ffi.Pointer, ffi.Pointer)>(); - void wire_request_builder_always_disable_output_substitution( + void + wire__crate__api__send__ffi_request_builder_always_disable_output_substitution( int port_, - ffi.Pointer that, + ffi.Pointer that, bool disable, ) { - return _wire_request_builder_always_disable_output_substitution( + return _wire__crate__api__send__ffi_request_builder_always_disable_output_substitution( port_, that, disable, ); } - late final _wire_request_builder_always_disable_output_substitutionPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer, ffi.Bool)>>( - 'frbgen_payjoin_flutter_wire_request_builder_always_disable_output_substitution'); - late final _wire_request_builder_always_disable_output_substitution = - _wire_request_builder_always_disable_output_substitutionPtr.asFunction< - void Function(int, ffi.Pointer, bool)>(); + late final _wire__crate__api__send__ffi_request_builder_always_disable_output_substitutionPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Bool)>>( + 'frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_always_disable_output_substitution'); + late final _wire__crate__api__send__ffi_request_builder_always_disable_output_substitution = + _wire__crate__api__send__ffi_request_builder_always_disable_output_substitutionPtr + .asFunction< + void Function( + int, ffi.Pointer, bool)>(); - void wire_request_builder_build_non_incentivizing( + void wire__crate__api__send__ffi_request_builder_build_non_incentivizing( int port_, - ffi.Pointer that, + ffi.Pointer that, + int min_fee_rate, ) { - return _wire_request_builder_build_non_incentivizing( + return _wire__crate__api__send__ffi_request_builder_build_non_incentivizing( port_, that, + min_fee_rate, ); } - late final _wire_request_builder_build_non_incentivizingPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_request_builder_build_non_incentivizing'); - late final _wire_request_builder_build_non_incentivizing = - _wire_request_builder_build_non_incentivizingPtr.asFunction< - void Function(int, ffi.Pointer)>(); + late final _wire__crate__api__send__ffi_request_builder_build_non_incentivizingPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Uint64)>>( + 'frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_build_non_incentivizing'); + late final _wire__crate__api__send__ffi_request_builder_build_non_incentivizing = + _wire__crate__api__send__ffi_request_builder_build_non_incentivizingPtr + .asFunction< + void Function( + int, ffi.Pointer, int)>(); - void wire_request_builder_build_recommended( + void wire__crate__api__send__ffi_request_builder_build_recommended( int port_, - ffi.Pointer that, + ffi.Pointer that, int min_fee_rate, ) { - return _wire_request_builder_build_recommended( + return _wire__crate__api__send__ffi_request_builder_build_recommended( port_, that, min_fee_rate, ); } - late final _wire_request_builder_build_recommendedPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Int64, - ffi.Pointer, ffi.Uint64)>>( - 'frbgen_payjoin_flutter_wire_request_builder_build_recommended'); - late final _wire_request_builder_build_recommended = - _wire_request_builder_build_recommendedPtr.asFunction< - void Function(int, ffi.Pointer, int)>(); - - void wire_request_builder_build_with_additional_fee( + late final _wire__crate__api__send__ffi_request_builder_build_recommendedPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, + ffi.Pointer, ffi.Uint64)>>( + 'frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_build_recommended'); + late final _wire__crate__api__send__ffi_request_builder_build_recommended = + _wire__crate__api__send__ffi_request_builder_build_recommendedPtr + .asFunction< + void Function( + int, ffi.Pointer, int)>(); + + void wire__crate__api__send__ffi_request_builder_build_with_additional_fee( int port_, - ffi.Pointer that, + ffi.Pointer that, int max_fee_contribution, ffi.Pointer change_index, int min_fee_rate, bool clamp_fee_contribution, ) { - return _wire_request_builder_build_with_additional_fee( + return _wire__crate__api__send__ffi_request_builder_build_with_additional_fee( port_, that, max_fee_contribution, @@ -3511,1323 +3980,1643 @@ class PayjoinCoreWire implements BaseWire { ); } - late final _wire_request_builder_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_request_builder_build_with_additional_fee'); - late final _wire_request_builder_build_with_additional_fee = - _wire_request_builder_build_with_additional_feePtr.asFunction< - void Function(int, ffi.Pointer, int, - ffi.Pointer, int, bool)>(); - - void wire_request_builder_from_psbt_and_uri( + late final _wire__crate__api__send__ffi_request_builder_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__crate__api__send__ffi_request_builder_build_with_additional_fee'); + late final _wire__crate__api__send__ffi_request_builder_build_with_additional_fee = + _wire__crate__api__send__ffi_request_builder_build_with_additional_feePtr + .asFunction< + void Function(int, ffi.Pointer, int, + ffi.Pointer, int, bool)>(); + + void wire__crate__api__send__ffi_request_builder_from_psbt_and_uri( int port_, ffi.Pointer psbt_base64, - ffi.Pointer uri, + ffi.Pointer pj_uri, ) { - return _wire_request_builder_from_psbt_and_uri( + return _wire__crate__api__send__ffi_request_builder_from_psbt_and_uri( port_, psbt_base64, - uri, + pj_uri, ); } - late final _wire_request_builder_from_psbt_and_uriPtr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_request_builder_from_psbt_and_uri'); - late final _wire_request_builder_from_psbt_and_uri = - _wire_request_builder_from_psbt_and_uriPtr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_request_context_extract_v1( + late final _wire__crate__api__send__ffi_request_builder_from_psbt_and_uriPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_from_psbt_and_uri'); + late final _wire__crate__api__send__ffi_request_builder_from_psbt_and_uri = + _wire__crate__api__send__ffi_request_builder_from_psbt_and_uriPtr + .asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__send__ffi_request_context_extract_v1( int port_, - ffi.Pointer ptr, + ffi.Pointer ptr, ) { - return _wire_request_context_extract_v1( + return _wire__crate__api__send__ffi_request_context_extract_v1( port_, ptr, ); } - late final _wire_request_context_extract_v1Ptr = _lookup< + late final _wire__crate__api__send__ffi_request_context_extract_v1Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( - ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_request_context_extract_v1'); - late final _wire_request_context_extract_v1 = - _wire_request_context_extract_v1Ptr.asFunction< - void Function(int, ffi.Pointer)>(); + ffi.Int64, ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_context_extract_v1'); + late final _wire__crate__api__send__ffi_request_context_extract_v1 = + _wire__crate__api__send__ffi_request_context_extract_v1Ptr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_request_context_extract_v2( + void wire__crate__api__send__ffi_request_context_extract_v2( int port_, - ffi.Pointer ptr, - ffi.Pointer ohttp_proxy_url, + ffi.Pointer ptr, + ffi.Pointer ohttp_proxy_url, ) { - return _wire_request_context_extract_v2( + return _wire__crate__api__send__ffi_request_context_extract_v2( port_, ptr, ohttp_proxy_url, ); } - late final _wire_request_context_extract_v2Ptr = _lookup< + late final _wire__crate__api__send__ffi_request_context_extract_v2Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, - ffi.Pointer, - ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_request_context_extract_v2'); - late final _wire_request_context_extract_v2 = - _wire_request_context_extract_v2Ptr.asFunction< - void Function(int, ffi.Pointer, - ffi.Pointer)>(); - - void wire_ohttp_keys_decode( + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_context_extract_v2'); + late final _wire__crate__api__send__ffi_request_context_extract_v2 = + _wire__crate__api__send__ffi_request_context_extract_v2Ptr.asFunction< + void Function(int, ffi.Pointer, + ffi.Pointer)>(); + + void wire__crate__api__uri__ffi_ohttp_keys_decode( int port_, ffi.Pointer bytes, ) { - return _wire_ohttp_keys_decode( + return _wire__crate__api__uri__ffi_ohttp_keys_decode( port_, bytes, ); } - late final _wire_ohttp_keys_decodePtr = _lookup< + late final _wire__crate__api__uri__ffi_ohttp_keys_decodePtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_ohttp_keys_decode'); - late final _wire_ohttp_keys_decode = _wire_ohttp_keys_decodePtr.asFunction< - void Function(int, ffi.Pointer)>(); + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_ohttp_keys_decode'); + late final _wire__crate__api__uri__ffi_ohttp_keys_decode = + _wire__crate__api__uri__ffi_ohttp_keys_decodePtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_uri_address( - int port_, - ffi.Pointer that, + WireSyncRust2DartDco wire__crate__api__uri__ffi_pj_uri_address( + ffi.Pointer that, ) { - return _wire_uri_address( - port_, + return _wire__crate__api__uri__ffi_pj_uri_address( + that, + ); + } + + late final _wire__crate__api__uri__ffi_pj_uri_addressPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_address'); + late final _wire__crate__api__uri__ffi_pj_uri_address = + _wire__crate__api__uri__ffi_pj_uri_addressPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_pj_uri_amount( + ffi.Pointer that, + ) { + return _wire__crate__api__uri__ffi_pj_uri_amount( + that, + ); + } + + late final _wire__crate__api__uri__ffi_pj_uri_amountPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_amount'); + late final _wire__crate__api__uri__ffi_pj_uri_amount = + _wire__crate__api__uri__ffi_pj_uri_amountPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_pj_uri_as_string( + ffi.Pointer that, + ) { + return _wire__crate__api__uri__ffi_pj_uri_as_string( + that, + ); + } + + late final _wire__crate__api__uri__ffi_pj_uri_as_stringPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_as_string'); + late final _wire__crate__api__uri__ffi_pj_uri_as_string = + _wire__crate__api__uri__ffi_pj_uri_as_stringPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_pj_uri_builder_amount( + ffi.Pointer that, + int amount, + ) { + return _wire__crate__api__uri__ffi_pj_uri_builder_amount( that, + amount, ); } - late final _wire_uri_addressPtr = _lookup< + late final _wire__crate__api__uri__ffi_pj_uri_builder_amountPtr = _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)>(); + WireSyncRust2DartDco Function( + ffi.Pointer, ffi.Uint64)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_amount'); + late final _wire__crate__api__uri__ffi_pj_uri_builder_amount = + _wire__crate__api__uri__ffi_pj_uri_builder_amountPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, int)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_pj_uri_builder_build( + ffi.Pointer that, + ) { + return _wire__crate__api__uri__ffi_pj_uri_builder_build( + that, + ); + } - void wire_uri_amount( + late final _wire__crate__api__uri__ffi_pj_uri_builder_buildPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_build'); + late final _wire__crate__api__uri__ffi_pj_uri_builder_build = + _wire__crate__api__uri__ffi_pj_uri_builder_buildPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer)>(); + + void wire__crate__api__uri__ffi_pj_uri_builder_create( int port_, - ffi.Pointer that, + ffi.Pointer address, + ffi.Pointer pj, + ffi.Pointer ohttp_keys, + ffi.Pointer expiry, ) { - return _wire_uri_amount( + return _wire__crate__api__uri__ffi_pj_uri_builder_create( port_, + address, + pj, + ohttp_keys, + expiry, + ); + } + + late final _wire__crate__api__uri__ffi_pj_uri_builder_createPtr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Int64, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_create'); + late final _wire__crate__api__uri__ffi_pj_uri_builder_create = + _wire__crate__api__uri__ffi_pj_uri_builder_createPtr.asFunction< + void Function( + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_pj_uri_builder_label( + ffi.Pointer that, + ffi.Pointer label, + ) { + return _wire__crate__api__uri__ffi_pj_uri_builder_label( + that, + label, + ); + } + + late final _wire__crate__api__uri__ffi_pj_uri_builder_labelPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_label'); + late final _wire__crate__api__uri__ffi_pj_uri_builder_label = + _wire__crate__api__uri__ffi_pj_uri_builder_labelPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_pj_uri_builder_message( + ffi.Pointer that, + ffi.Pointer message, + ) { + return _wire__crate__api__uri__ffi_pj_uri_builder_message( + that, + message, + ); + } + + late final _wire__crate__api__uri__ffi_pj_uri_builder_messagePtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, + ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_message'); + late final _wire__crate__api__uri__ffi_pj_uri_builder_message = + _wire__crate__api__uri__ffi_pj_uri_builder_messagePtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, + ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_pj_uri_builder_pjos( + ffi.Pointer that, + bool pjos, + ) { + return _wire__crate__api__uri__ffi_pj_uri_builder_pjos( + that, + pjos, + ); + } + + late final _wire__crate__api__uri__ffi_pj_uri_builder_pjosPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, ffi.Bool)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_pjos'); + late final _wire__crate__api__uri__ffi_pj_uri_builder_pjos = + _wire__crate__api__uri__ffi_pj_uri_builder_pjosPtr.asFunction< + WireSyncRust2DartDco Function( + ffi.Pointer, bool)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_uri_address( + ffi.Pointer that, + ) { + return _wire__crate__api__uri__ffi_uri_address( + that, + ); + } + + late final _wire__crate__api__uri__ffi_uri_addressPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_address'); + late final _wire__crate__api__uri__ffi_uri_address = + _wire__crate__api__uri__ffi_uri_addressPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_uri_amount( + ffi.Pointer that, + ) { + return _wire__crate__api__uri__ffi_uri_amount( that, ); } - late final _wire_uri_amountPtr = _lookup< + late final _wire__crate__api__uri__ffi_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)>(); + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_amount'); + late final _wire__crate__api__uri__ffi_uri_amount = + _wire__crate__api__uri__ffi_uri_amountPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_uri_as_string( + ffi.Pointer that, + ) { + return _wire__crate__api__uri__ffi_uri_as_string( + that, + ); + } + + late final _wire__crate__api__uri__ffi_uri_as_stringPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_as_string'); + late final _wire__crate__api__uri__ffi_uri_as_string = + _wire__crate__api__uri__ffi_uri_as_stringPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + WireSyncRust2DartDco wire__crate__api__uri__ffi_uri_check_pj_supported( + ffi.Pointer that, + ) { + return _wire__crate__api__uri__ffi_uri_check_pj_supported( + that, + ); + } + + late final _wire__crate__api__uri__ffi_uri_check_pj_supportedPtr = _lookup< + ffi.NativeFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_check_pj_supported'); + late final _wire__crate__api__uri__ffi_uri_check_pj_supported = + _wire__crate__api__uri__ffi_uri_check_pj_supportedPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire_uri_from_str( + void wire__crate__api__uri__ffi_uri_from_str( int port_, ffi.Pointer uri, ) { - return _wire_uri_from_str( + return _wire__crate__api__uri__ffi_uri_from_str( port_, uri, ); } - late final _wire_uri_from_strPtr = _lookup< + late final _wire__crate__api__uri__ffi_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)>(); + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_from_str'); + late final _wire__crate__api__uri__ffi_uri_from_str = + _wire__crate__api__uri__ffi_uri_from_strPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_url_as_string( - int port_, - ffi.Pointer that, + WireSyncRust2DartDco wire__crate__api__uri__ffi_url_as_string( + ffi.Pointer that, ) { - return _wire_url_as_string( - port_, + return _wire__crate__api__uri__ffi_url_as_string( that, ); } - late final _wire_url_as_stringPtr = _lookup< + late final _wire__crate__api__uri__ffi_url_as_stringPtr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_url_as_string'); - late final _wire_url_as_string = _wire_url_as_stringPtr - .asFunction)>(); + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_as_string'); + late final _wire__crate__api__uri__ffi_url_as_string = + _wire__crate__api__uri__ffi_url_as_stringPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); - void wire_url_from_str( + void wire__crate__api__uri__ffi_url_from_str( int port_, ffi.Pointer url, ) { - return _wire_url_from_str( + return _wire__crate__api__uri__ffi_url_from_str( port_, url, ); } - late final _wire_url_from_strPtr = _lookup< + late final _wire__crate__api__uri__ffi_url_from_strPtr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Int64, ffi.Pointer)>>( - 'frbgen_payjoin_flutter_wire_url_from_str'); - late final _wire_url_from_str = _wire_url_from_strPtr.asFunction< - void Function(int, ffi.Pointer)>(); + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_from_str'); + late final _wire__crate__api__uri__ffi_url_from_str = + _wire__crate__api__uri__ffi_url_from_strPtr.asFunction< + void Function(int, ffi.Pointer)>(); - void wire_url_query( - int port_, - ffi.Pointer that, + WireSyncRust2DartDco wire__crate__api__uri__ffi_url_query( + ffi.Pointer that, ) { - return _wire_url_query( - port_, + return _wire__crate__api__uri__ffi_url_query( that, ); } - late final _wire_url_queryPtr = _lookup< + late final _wire__crate__api__uri__ffi_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)>(); + WireSyncRust2DartDco Function(ffi.Pointer)>>( + 'frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_query'); + late final _wire__crate__api__uri__ffi_url_query = + _wire__crate__api__uri__ffi_url_queryPtr.asFunction< + WireSyncRust2DartDco Function(ffi.Pointer)>(); + + 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_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + 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_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_payjoin_ffireceivev1MaybeInputsOwned( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwnedPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwnedPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwned = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsOwnedPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeenPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeenPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeen( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsSeenPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeenPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScriptsPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScriptsPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScriptsPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScriptsPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknownPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknownPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknownPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknownPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposalPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposalPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposal( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1PayjoinProposalPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposalPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposalPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposalPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposal( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1ProvisionalProposalPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposalPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2EnrolledPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr = _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 + '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_ffireceivev2Enrolled( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2Enrolled( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2EnrolledPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr = _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 + '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_ffireceivev2V2MaybeInputsOwned( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwnedPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSessionPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSessionPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwned( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsOwnedPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSessionPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSessionPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeenPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializerPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializerPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeen( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeInputsSeenPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializerPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializerPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScriptsPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwnedPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwnedPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScripts( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2MaybeMixedInputScriptsPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwnedPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwnedPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknownPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeenPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeenPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknown( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2OutputsUnknownPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeenPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeenPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposalPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScriptsPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScriptsPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposalPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScriptsPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScriptsPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposalPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknownPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknownPtr .asFunction)>(); void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposalPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknownPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknownPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + void + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposalPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposalPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + void + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1Ptr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposalPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposal = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2ProvisionalProposalPtr .asFunction)>(); void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( + rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr = _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 + '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_Arcpayjoin_ffisendv1RequestBuilder( + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilderPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr = _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_payjoin_ffireceivev2V2UncheckedProposal'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr .asFunction)>(); - void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + void rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1ContextV1( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1ContextV1( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1ContextV1Ptr = _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_payjoin_ffisendv1ContextV1'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1ContextV1 = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1ContextV1Ptr .asFunction)>(); - void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1ContextV1( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1ContextV1( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContextPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1ContextV1Ptr = _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_payjoin_ffisendv1ContextV1'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1ContextV1 = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1ContextV1Ptr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + void + rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilderPtr = _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_payjoin_ffisendv1RequestBuilder'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilderPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + void + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2Ptr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilderPtr = _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_payjoin_ffisendv1RequestBuilder'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilder = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestBuilderPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + void + rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestContext( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestContext( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestContextPtr = _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_ffisendv1RequestContext'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestContext = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1RequestContextPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + void + rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestContext( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestContext( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUriPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestContextPtr = _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_ffisendv1RequestContext'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestContext = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffisendv1RequestContextPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + void rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeysPtr = _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_ffitypesOhttpKeys'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeysPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrlPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeysPtr = _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_ffitypesOhttpKeys'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeysPtr .asFunction)>(); - void - rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse( + void rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUri( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponse( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUri( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_MutexOptionohttpClientResponsePtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUriPtr = _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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUri'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUri = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUriPtr .asFunction)>(); - void - rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse( + void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUri( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponse( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUri( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_MutexOptionohttpClientResponsePtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriPtr = _lookup)>>( - '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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUri'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUri = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriPtr .asFunction)>(); - void - rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + void rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilderPtr = _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_ffiuriPjUriBuilder'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilderPtr .asFunction)>(); - void - rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposalPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilderPtr = _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_ffiuriPjUriBuilder'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilder = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUriBuilderPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + void rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUri( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUri( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2EnrollerPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUriPtr = _lookup)>>( - '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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUri'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUri = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUriPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUri( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2Enroller( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUri( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2EnrollerPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUriPtr = _lookup)>>( - '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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUri'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUri = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUriPtr .asFunction)>(); - void - rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + void rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUrl( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUrl( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr = + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUrlPtr = _lookup)>>( - '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 + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUrl'); + late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUrl = + _rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriUrlPtr .asFunction)>(); - void - rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUrl( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposal( + return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUrl( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2UncheckedProposalPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUrlPtr = _lookup)>>( - '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 + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUrl'); + late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUrl = + _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriUrlPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( + void + rust_arc_increment_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( ffi.Pointer ptr, ) { - return _rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( + return _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( ptr, ); } - late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeysPtr = + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponsePtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys'); - late final _rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys = - _rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeysPtr + 'frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse'); + late final _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse = + _rust_arc_increment_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponsePtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( + void + rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( ffi.Pointer ptr, ) { - return _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( + return _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( ptr, ); } - late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeysPtr = + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponsePtr = _lookup)>>( - 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys'); - late final _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys = - _rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeysPtr + 'frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse'); + late final _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse = + _rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponsePtr .asFunction)>(); - ffi.Pointer cst_new_box_autoadd_client_response() { - return _cst_new_box_autoadd_client_response(); + ffi.Pointer cst_new_box_autoadd_f_64( + double value, + ) { + return _cst_new_box_autoadd_f_64( + value, + ); } - 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()>(); + late final _cst_new_box_autoadd_f_64Ptr = + _lookup Function(ffi.Double)>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_f_64'); + late final _cst_new_box_autoadd_f_64 = _cst_new_box_autoadd_f_64Ptr + .asFunction Function(double)>(); - ffi.Pointer cst_new_box_autoadd_context_v_1() { - return _cst_new_box_autoadd_context_v_1(); + ffi.Pointer + cst_new_box_autoadd_ffi_active_session() { + return _cst_new_box_autoadd_ffi_active_session(); } - late final _cst_new_box_autoadd_context_v_1Ptr = - _lookup Function()>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_1'); - late final _cst_new_box_autoadd_context_v_1 = - _cst_new_box_autoadd_context_v_1Ptr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_active_sessionPtr = _lookup< + ffi + .NativeFunction Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_active_session'); + late final _cst_new_box_autoadd_ffi_active_session = + _cst_new_box_autoadd_ffi_active_sessionPtr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_context_v_2() { - return _cst_new_box_autoadd_context_v_2(); + ffi.Pointer + cst_new_box_autoadd_ffi_client_response() { + return _cst_new_box_autoadd_ffi_client_response(); } - late final _cst_new_box_autoadd_context_v_2Ptr = - _lookup Function()>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_2'); - late final _cst_new_box_autoadd_context_v_2 = - _cst_new_box_autoadd_context_v_2Ptr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_client_responsePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_client_response'); + late final _cst_new_box_autoadd_ffi_client_response = + _cst_new_box_autoadd_ffi_client_responsePtr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_enrolled() { - return _cst_new_box_autoadd_enrolled(); + ffi.Pointer cst_new_box_autoadd_ffi_context_v_1() { + return _cst_new_box_autoadd_ffi_context_v_1(); } - 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()>(); + late final _cst_new_box_autoadd_ffi_context_v_1Ptr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_context_v_1'); + late final _cst_new_box_autoadd_ffi_context_v_1 = + _cst_new_box_autoadd_ffi_context_v_1Ptr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_enroller() { - return _cst_new_box_autoadd_enroller(); + ffi.Pointer cst_new_box_autoadd_ffi_context_v_2() { + return _cst_new_box_autoadd_ffi_context_v_2(); } - 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()>(); + late final _cst_new_box_autoadd_ffi_context_v_2Ptr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_context_v_2'); + late final _cst_new_box_autoadd_ffi_context_v_2 = + _cst_new_box_autoadd_ffi_context_v_2Ptr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_f_64( - double value, - ) { - return _cst_new_box_autoadd_f_64( - value, - ); + ffi.Pointer + cst_new_box_autoadd_ffi_maybe_inputs_owned() { + return _cst_new_box_autoadd_ffi_maybe_inputs_owned(); } - late final _cst_new_box_autoadd_f_64Ptr = - _lookup Function(ffi.Double)>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_f_64'); - late final _cst_new_box_autoadd_f_64 = _cst_new_box_autoadd_f_64Ptr - .asFunction Function(double)>(); + late final _cst_new_box_autoadd_ffi_maybe_inputs_ownedPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_inputs_owned'); + late final _cst_new_box_autoadd_ffi_maybe_inputs_owned = + _cst_new_box_autoadd_ffi_maybe_inputs_ownedPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer cst_new_box_autoadd_headers() { - return _cst_new_box_autoadd_headers(); + ffi.Pointer + cst_new_box_autoadd_ffi_maybe_inputs_seen() { + return _cst_new_box_autoadd_ffi_maybe_inputs_seen(); } - late final _cst_new_box_autoadd_headersPtr = - _lookup Function()>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_headers'); - late final _cst_new_box_autoadd_headers = _cst_new_box_autoadd_headersPtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_maybe_inputs_seenPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_inputs_seen'); + late final _cst_new_box_autoadd_ffi_maybe_inputs_seen = + _cst_new_box_autoadd_ffi_maybe_inputs_seenPtr + .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_maybe_inputs_owned() { - return _cst_new_box_autoadd_maybe_inputs_owned(); + ffi.Pointer + cst_new_box_autoadd_ffi_maybe_mixed_input_scripts() { + return _cst_new_box_autoadd_ffi_maybe_mixed_input_scripts(); } - 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()>(); + late final _cst_new_box_autoadd_ffi_maybe_mixed_input_scriptsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_mixed_input_scripts'); + late final _cst_new_box_autoadd_ffi_maybe_mixed_input_scripts = + _cst_new_box_autoadd_ffi_maybe_mixed_input_scriptsPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer - cst_new_box_autoadd_maybe_inputs_seen() { - return _cst_new_box_autoadd_maybe_inputs_seen(); + ffi.Pointer cst_new_box_autoadd_ffi_ohttp_keys() { + return _cst_new_box_autoadd_ffi_ohttp_keys(); } - 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()>(); + late final _cst_new_box_autoadd_ffi_ohttp_keysPtr = _lookup< + ffi.NativeFunction Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_ohttp_keys'); + late final _cst_new_box_autoadd_ffi_ohttp_keys = + _cst_new_box_autoadd_ffi_ohttp_keysPtr + .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_maybe_mixed_input_scripts() { - return _cst_new_box_autoadd_maybe_mixed_input_scripts(); + ffi.Pointer + cst_new_box_autoadd_ffi_outputs_unknown() { + return _cst_new_box_autoadd_ffi_outputs_unknown(); } - late final _cst_new_box_autoadd_maybe_mixed_input_scriptsPtr = _lookup< + late final _cst_new_box_autoadd_ffi_outputs_unknownPtr = _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 Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_outputs_unknown'); + late final _cst_new_box_autoadd_ffi_outputs_unknown = + _cst_new_box_autoadd_ffi_outputs_unknownPtr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_ohttp_keys() { - return _cst_new_box_autoadd_ohttp_keys(); + ffi.Pointer + cst_new_box_autoadd_ffi_payjoin_proposal() { + return _cst_new_box_autoadd_ffi_payjoin_proposal(); } - late final _cst_new_box_autoadd_ohttp_keysPtr = - _lookup Function()>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_ohttp_keys'); - late final _cst_new_box_autoadd_ohttp_keys = - _cst_new_box_autoadd_ohttp_keysPtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_payjoin_proposalPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_payjoin_proposal'); + late final _cst_new_box_autoadd_ffi_payjoin_proposal = + _cst_new_box_autoadd_ffi_payjoin_proposalPtr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_out_point() { - return _cst_new_box_autoadd_out_point(); + ffi.Pointer cst_new_box_autoadd_ffi_pj_uri() { + return _cst_new_box_autoadd_ffi_pj_uri(); } - 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()>(); + late final _cst_new_box_autoadd_ffi_pj_uriPtr = + _lookup Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_pj_uri'); + late final _cst_new_box_autoadd_ffi_pj_uri = + _cst_new_box_autoadd_ffi_pj_uriPtr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_outputs_unknown() { - return _cst_new_box_autoadd_outputs_unknown(); + ffi.Pointer + cst_new_box_autoadd_ffi_pj_uri_builder() { + return _cst_new_box_autoadd_ffi_pj_uri_builder(); } - 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()>(); + late final _cst_new_box_autoadd_ffi_pj_uri_builderPtr = _lookup< + ffi + .NativeFunction Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_pj_uri_builder'); + late final _cst_new_box_autoadd_ffi_pj_uri_builder = + _cst_new_box_autoadd_ffi_pj_uri_builderPtr + .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_payjoin_proposal() { - return _cst_new_box_autoadd_payjoin_proposal(); + ffi.Pointer + cst_new_box_autoadd_ffi_provisional_proposal() { + return _cst_new_box_autoadd_ffi_provisional_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()>(); + late final _cst_new_box_autoadd_ffi_provisional_proposalPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_provisional_proposal'); + late final _cst_new_box_autoadd_ffi_provisional_proposal = + _cst_new_box_autoadd_ffi_provisional_proposalPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer - cst_new_box_autoadd_provisional_proposal() { - return _cst_new_box_autoadd_provisional_proposal(); + ffi.Pointer + cst_new_box_autoadd_ffi_request_builder() { + return _cst_new_box_autoadd_ffi_request_builder(); } - late final _cst_new_box_autoadd_provisional_proposalPtr = _lookup< + late final _cst_new_box_autoadd_ffi_request_builderPtr = _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 Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_request_builder'); + late final _cst_new_box_autoadd_ffi_request_builder = + _cst_new_box_autoadd_ffi_request_builderPtr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_request_builder() { - return _cst_new_box_autoadd_request_builder(); + ffi.Pointer + cst_new_box_autoadd_ffi_request_context() { + return _cst_new_box_autoadd_ffi_request_context(); } - late final _cst_new_box_autoadd_request_builderPtr = _lookup< - ffi.NativeFunction Function()>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_request_builder'); - late final _cst_new_box_autoadd_request_builder = - _cst_new_box_autoadd_request_builderPtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_request_contextPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_request_context'); + late final _cst_new_box_autoadd_ffi_request_context = + _cst_new_box_autoadd_ffi_request_contextPtr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_request_context() { - return _cst_new_box_autoadd_request_context(); + ffi.Pointer + cst_new_box_autoadd_ffi_session_initializer() { + return _cst_new_box_autoadd_ffi_session_initializer(); } - late final _cst_new_box_autoadd_request_contextPtr = _lookup< - ffi.NativeFunction Function()>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_request_context'); - late final _cst_new_box_autoadd_request_context = - _cst_new_box_autoadd_request_contextPtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_session_initializerPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_session_initializer'); + late final _cst_new_box_autoadd_ffi_session_initializer = + _cst_new_box_autoadd_ffi_session_initializerPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer cst_new_box_autoadd_tx_out() { - return _cst_new_box_autoadd_tx_out(); + ffi.Pointer + cst_new_box_autoadd_ffi_unchecked_proposal() { + return _cst_new_box_autoadd_ffi_unchecked_proposal(); } - 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()>(); + late final _cst_new_box_autoadd_ffi_unchecked_proposalPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_unchecked_proposal'); + late final _cst_new_box_autoadd_ffi_unchecked_proposal = + _cst_new_box_autoadd_ffi_unchecked_proposalPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer cst_new_box_autoadd_u_64( - int value, - ) { - return _cst_new_box_autoadd_u_64( - value, - ); + ffi.Pointer cst_new_box_autoadd_ffi_uri() { + return _cst_new_box_autoadd_ffi_uri(); } - late final _cst_new_box_autoadd_u_64Ptr = - _lookup Function(ffi.Uint64)>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_u_64'); - late final _cst_new_box_autoadd_u_64 = _cst_new_box_autoadd_u_64Ptr - .asFunction Function(int)>(); + late final _cst_new_box_autoadd_ffi_uriPtr = + _lookup Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_uri'); + late final _cst_new_box_autoadd_ffi_uri = _cst_new_box_autoadd_ffi_uriPtr + .asFunction Function()>(); - ffi.Pointer cst_new_box_autoadd_u_8( - int value, - ) { - return _cst_new_box_autoadd_u_8( - value, - ); + ffi.Pointer cst_new_box_autoadd_ffi_url() { + return _cst_new_box_autoadd_ffi_url(); } - late final _cst_new_box_autoadd_u_8Ptr = - _lookup Function(ffi.Uint8)>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_u_8'); - late final _cst_new_box_autoadd_u_8 = _cst_new_box_autoadd_u_8Ptr - .asFunction Function(int)>(); + late final _cst_new_box_autoadd_ffi_urlPtr = + _lookup Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_url'); + late final _cst_new_box_autoadd_ffi_url = _cst_new_box_autoadd_ffi_urlPtr + .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_unchecked_proposal() { - return _cst_new_box_autoadd_unchecked_proposal(); + ffi.Pointer + cst_new_box_autoadd_ffi_v_2_maybe_inputs_owned() { + return _cst_new_box_autoadd_ffi_v_2_maybe_inputs_owned(); } - late final _cst_new_box_autoadd_unchecked_proposalPtr = _lookup< - ffi - .NativeFunction Function()>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_unchecked_proposal'); - late final _cst_new_box_autoadd_unchecked_proposal = - _cst_new_box_autoadd_unchecked_proposalPtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_v_2_maybe_inputs_ownedPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_inputs_owned'); + late final _cst_new_box_autoadd_ffi_v_2_maybe_inputs_owned = + _cst_new_box_autoadd_ffi_v_2_maybe_inputs_ownedPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer cst_new_box_autoadd_uri() { - return _cst_new_box_autoadd_uri(); + ffi.Pointer + cst_new_box_autoadd_ffi_v_2_maybe_inputs_seen() { + return _cst_new_box_autoadd_ffi_v_2_maybe_inputs_seen(); } - late final _cst_new_box_autoadd_uriPtr = - _lookup Function()>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_uri'); - late final _cst_new_box_autoadd_uri = _cst_new_box_autoadd_uriPtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_v_2_maybe_inputs_seenPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_inputs_seen'); + late final _cst_new_box_autoadd_ffi_v_2_maybe_inputs_seen = + _cst_new_box_autoadd_ffi_v_2_maybe_inputs_seenPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer cst_new_box_autoadd_url() { - return _cst_new_box_autoadd_url(); + ffi.Pointer + cst_new_box_autoadd_ffi_v_2_maybe_mixed_input_scripts() { + return _cst_new_box_autoadd_ffi_v_2_maybe_mixed_input_scripts(); } - late final _cst_new_box_autoadd_urlPtr = - _lookup Function()>>( - 'frbgen_payjoin_flutter_cst_new_box_autoadd_url'); - late final _cst_new_box_autoadd_url = _cst_new_box_autoadd_urlPtr - .asFunction Function()>(); + late final _cst_new_box_autoadd_ffi_v_2_maybe_mixed_input_scriptsPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer + Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_mixed_input_scripts'); + late final _cst_new_box_autoadd_ffi_v_2_maybe_mixed_input_scripts = + _cst_new_box_autoadd_ffi_v_2_maybe_mixed_input_scriptsPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer - cst_new_box_autoadd_v_2_maybe_inputs_owned() { - return _cst_new_box_autoadd_v_2_maybe_inputs_owned(); + ffi.Pointer + cst_new_box_autoadd_ffi_v_2_outputs_unknown() { + return _cst_new_box_autoadd_ffi_v_2_outputs_unknown(); } - late final _cst_new_box_autoadd_v_2_maybe_inputs_ownedPtr = _lookup< + late final _cst_new_box_autoadd_ffi_v_2_outputs_unknownPtr = _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 Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_outputs_unknown'); + late final _cst_new_box_autoadd_ffi_v_2_outputs_unknown = + _cst_new_box_autoadd_ffi_v_2_outputs_unknownPtr.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(); + ffi.Pointer + cst_new_box_autoadd_ffi_v_2_payjoin_proposal() { + return _cst_new_box_autoadd_ffi_v_2_payjoin_proposal(); } - late final _cst_new_box_autoadd_v_2_maybe_inputs_seenPtr = _lookup< + late final _cst_new_box_autoadd_ffi_v_2_payjoin_proposalPtr = _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 Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_payjoin_proposal'); + late final _cst_new_box_autoadd_ffi_v_2_payjoin_proposal = + _cst_new_box_autoadd_ffi_v_2_payjoin_proposalPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer - cst_new_box_autoadd_v_2_maybe_mixed_input_scripts() { - return _cst_new_box_autoadd_v_2_maybe_mixed_input_scripts(); + ffi.Pointer + cst_new_box_autoadd_ffi_v_2_provisional_proposal() { + return _cst_new_box_autoadd_ffi_v_2_provisional_proposal(); } - late final _cst_new_box_autoadd_v_2_maybe_mixed_input_scriptsPtr = _lookup< + late final _cst_new_box_autoadd_ffi_v_2_provisional_proposalPtr = _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 Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_provisional_proposal'); + late final _cst_new_box_autoadd_ffi_v_2_provisional_proposal = + _cst_new_box_autoadd_ffi_v_2_provisional_proposalPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer - cst_new_box_autoadd_v_2_outputs_unknown() { - return _cst_new_box_autoadd_v_2_outputs_unknown(); + ffi.Pointer + cst_new_box_autoadd_ffi_v_2_unchecked_proposal() { + return _cst_new_box_autoadd_ffi_v_2_unchecked_proposal(); } - late final _cst_new_box_autoadd_v_2_outputs_unknownPtr = _lookup< + late final _cst_new_box_autoadd_ffi_v_2_unchecked_proposalPtr = _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 Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_unchecked_proposal'); + late final _cst_new_box_autoadd_ffi_v_2_unchecked_proposal = + _cst_new_box_autoadd_ffi_v_2_unchecked_proposalPtr.asFunction< + ffi.Pointer Function()>(); - ffi.Pointer - cst_new_box_autoadd_v_2_payjoin_proposal() { - return _cst_new_box_autoadd_v_2_payjoin_proposal(); + ffi.Pointer cst_new_box_autoadd_headers() { + return _cst_new_box_autoadd_headers(); } - 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()>(); + late final _cst_new_box_autoadd_headersPtr = + _lookup Function()>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_headers'); + late final _cst_new_box_autoadd_headers = _cst_new_box_autoadd_headersPtr + .asFunction Function()>(); - ffi.Pointer - cst_new_box_autoadd_v_2_provisional_proposal() { - return _cst_new_box_autoadd_v_2_provisional_proposal(); + ffi.Pointer cst_new_box_autoadd_out_point() { + return _cst_new_box_autoadd_out_point(); } - 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()>(); + 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_v_2_unchecked_proposal() { - return _cst_new_box_autoadd_v_2_unchecked_proposal(); + ffi.Pointer cst_new_box_autoadd_tx_out() { + return _cst_new_box_autoadd_tx_out(); } - 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()>(); + 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, + ) { + return _cst_new_box_autoadd_u_64( + value, + ); + } + + late final _cst_new_box_autoadd_u_64Ptr = + _lookup Function(ffi.Uint64)>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_u_64'); + late final _cst_new_box_autoadd_u_64 = _cst_new_box_autoadd_u_64Ptr + .asFunction Function(int)>(); + + ffi.Pointer cst_new_box_autoadd_u_8( + int value, + ) { + return _cst_new_box_autoadd_u_8( + value, + ); + } + + late final _cst_new_box_autoadd_u_8Ptr = + _lookup Function(ffi.Uint8)>>( + 'frbgen_payjoin_flutter_cst_new_box_autoadd_u_8'); + late final _cst_new_box_autoadd_u_8 = _cst_new_box_autoadd_u_8Ptr + .asFunction Function(int)>(); ffi.Pointer cst_new_list_out_point( int len, @@ -4941,7 +5730,7 @@ typedef DartPostCObjectFnType = ffi.Pointer< ffi.Bool Function(DartPort port_id, ffi.Pointer message)>>; typedef DartPort = ffi.Int64; -final class wire_cst_enrolled extends ffi.Struct { +final class wire_cst_ffi_url extends ffi.Struct { @ffi.UintPtr() external int field0; } @@ -4953,52 +5742,42 @@ final class wire_cst_list_prim_u_8_loose extends ffi.Struct { external int len; } -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; -} - -final class wire_cst_url extends ffi.Struct { +final class wire_cst_ffi_active_session extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_ohttp_keys extends ffi.Struct { +final class wire_cst_ffi_client_response extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_maybe_inputs_owned extends ffi.Struct { +final class wire_cst_ffi_maybe_inputs_owned extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_maybe_inputs_seen extends ffi.Struct { +final class wire_cst_ffi_maybe_inputs_seen extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_maybe_mixed_input_scripts extends ffi.Struct { +final class wire_cst_ffi_maybe_mixed_input_scripts extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_outputs_unknown extends ffi.Struct { +final class wire_cst_ffi_outputs_unknown extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_payjoin_proposal extends ffi.Struct { +final class wire_cst_ffi_payjoin_proposal extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_provisional_proposal extends ffi.Struct { +final class wire_cst_ffi_provisional_proposal extends ffi.Struct { @ffi.UintPtr() external int field0; } @@ -5038,7 +5817,17 @@ final class wire_cst_list_record_u_64_out_point extends ffi.Struct { external int len; } -final class wire_cst_unchecked_proposal extends ffi.Struct { +final class wire_cst_ffi_session_initializer extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_ffi_ohttp_keys extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_ffi_unchecked_proposal extends ffi.Struct { @ffi.UintPtr() external int field0; } @@ -5060,62 +5849,72 @@ final class wire_cst_headers extends ffi.Struct { external ffi.Pointer map; } -final class wire_cst_v_2_maybe_inputs_owned extends ffi.Struct { +final class wire_cst_ffi_v_2_maybe_inputs_owned extends ffi.Struct { + @ffi.UintPtr() + external int field0; +} + +final class wire_cst_ffi_v_2_maybe_inputs_seen extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_v_2_maybe_inputs_seen extends ffi.Struct { +final class wire_cst_ffi_v_2_maybe_mixed_input_scripts extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_v_2_maybe_mixed_input_scripts extends ffi.Struct { +final class wire_cst_ffi_v_2_outputs_unknown extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_v_2_outputs_unknown extends ffi.Struct { +final class wire_cst_ffi_v_2_payjoin_proposal extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_v_2_payjoin_proposal extends ffi.Struct { +final class wire_cst_ffi_v_2_provisional_proposal extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_v_2_provisional_proposal extends ffi.Struct { +final class wire_cst_ffi_v_2_unchecked_proposal extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_v_2_unchecked_proposal extends ffi.Struct { +final class wire_cst_ffi_context_v_1 extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_context_v_1 extends ffi.Struct { +final class wire_cst_ffi_context_v_2 extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_context_v_2 extends ffi.Struct { +final class wire_cst_ffi_request_builder extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_request_builder extends ffi.Struct { +final class wire_cst_ffi_pj_uri extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_uri extends ffi.Struct { +final class wire_cst_ffi_request_context extends ffi.Struct { @ffi.UintPtr() external int field0; } -final class wire_cst_request_context extends ffi.Struct { +final class wire_cst_ffi_pj_uri_builder extends ffi.Struct { + @ffi.UintPtr() + external int internal; +} + +final class wire_cst_ffi_uri extends ffi.Struct { @ffi.UintPtr() external int field0; } @@ -5202,6 +6001,10 @@ final class wire_cst_PayjoinError_UrlError extends ffi.Struct { external ffi.Pointer message; } +final class wire_cst_PayjoinError_IoError extends ffi.Struct { + external ffi.Pointer message; +} + final class PayjoinErrorKind extends ffi.Union { external wire_cst_PayjoinError_InvalidAddress InvalidAddress; @@ -5236,6 +6039,8 @@ final class PayjoinErrorKind extends ffi.Union { external wire_cst_PayjoinError_OhttpError OhttpError; external wire_cst_PayjoinError_UrlError UrlError; + + external wire_cst_PayjoinError_IoError IoError; } final class wire_cst_payjoin_error extends ffi.Struct { @@ -5245,27 +6050,27 @@ final class wire_cst_payjoin_error extends ffi.Struct { external PayjoinErrorKind kind; } -final class wire_cst_record_url_list_prim_u_8_strict extends ffi.Struct { - external wire_cst_url field0; +final class wire_cst_record_ffi_url_list_prim_u_8_strict extends ffi.Struct { + external wire_cst_ffi_url field0; external ffi.Pointer field1; } -final class wire_cst_record_record_url_list_prim_u_8_strict_client_response +final class wire_cst_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response extends ffi.Struct { - external wire_cst_record_url_list_prim_u_8_strict field0; + external wire_cst_record_ffi_url_list_prim_u_8_strict field0; - external wire_cst_client_response field1; + external wire_cst_ffi_client_response field1; } final class wire_cst_request_context_v_1 extends ffi.Struct { - external wire_cst_record_url_list_prim_u_8_strict request; + external wire_cst_record_ffi_url_list_prim_u_8_strict request; - external wire_cst_context_v_1 context_v1; + external wire_cst_ffi_context_v_1 context_v1; } final class wire_cst_request_context_v_2 extends ffi.Struct { - external wire_cst_record_url_list_prim_u_8_strict request; + external wire_cst_record_ffi_url_list_prim_u_8_strict request; - external wire_cst_context_v_2 context_v2; + external wire_cst_ffi_context_v_2 context_v2; } diff --git a/lib/src/generated/frb_generated.web.dart b/lib/src/generated/frb_generated.web.dart deleted file mode 100644 index af2832b..0000000 --- a/lib/src/generated/frb_generated.web.dart +++ /dev/null @@ -1,3048 +0,0 @@ -// This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. - -// 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 - -import 'api/receive.dart'; -import 'api/send.dart'; -import 'api/uri.dart'; -import 'dart:async'; -import 'dart:convert'; -import 'frb_generated.dart'; -import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_web.dart'; -import 'utils/error.dart'; -import 'utils/types.dart'; - -abstract class PayjoinCoreApiImplPlatform extends BaseApiImpl { - PayjoinCoreApiImplPlatform({ - required super.handler, - required super.wire, - required super.generalizedFrbRustBinding, - required super.portManager, - }); - - CrossPlatformFinalizerArg - 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; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestBuilderPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV1RequestContextPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiSendV2ContextV2Ptr => wire - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_ArcPayjoinFfiUriUriPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri; - - CrossPlatformFinalizerArg - 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_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; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_PayjoinFfiTypesOhttpKeysPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys; - - @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); - - @protected - ArcPayjoinFfiSendV1RequestBuilder - dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(dynamic raw); - - @protected - ArcPayjoinFfiSendV1RequestContext - dco_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext(dynamic raw); - - @protected - ArcPayjoinFfiSendV2ContextV2 - dco_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2(dynamic raw); - - @protected - ArcPayjoinFfiUriUri dco_decode_RustOpaque_Arcpayjoin_ffiuriUri(dynamic raw); - - @protected - ArcPayjoinFfiUriUrl dco_decode_RustOpaque_Arcpayjoin_ffiuriUrl(dynamic raw); - - @protected - MutexOptionOhttpClientResponse - dco_decode_RustOpaque_MutexOptionohttpClientResponse(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 - PayjoinFfiTypesOhttpKeys dco_decode_RustOpaque_payjoin_ffitypesOhttpKeys( - 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 - double dco_decode_box_autoadd_f_64(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 - OhttpKeys dco_decode_box_autoadd_ohttp_keys(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); - - @protected - int dco_decode_box_autoadd_u_8(dynamic raw); - - @protected - UncheckedProposal dco_decode_box_autoadd_unchecked_proposal(dynamic raw); - - @protected - Uri dco_decode_box_autoadd_uri(dynamic raw); - - @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 - double dco_decode_f_64(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); - - @protected - Uint8List dco_decode_list_prim_u_8_strict(dynamic raw); - - @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 - OhttpKeys dco_decode_ohttp_keys(dynamic raw); - - @protected - String? dco_decode_opt_String(dynamic raw); - - @protected - double? dco_decode_opt_box_autoadd_f_64(dynamic raw); - - @protected - int? dco_decode_opt_box_autoadd_u_64(dynamic raw); - - @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 - ((Url, Uint8List), ClientResponse) - dco_decode_record_record_url_list_prim_u_8_strict_client_response( - 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 - (Url, Uint8List) dco_decode_record_url_list_prim_u_8_strict(dynamic raw); - - @protected - RequestBuilder dco_decode_request_builder(dynamic raw); - - @protected - RequestContext dco_decode_request_context(dynamic raw); - - @protected - RequestContextV1 dco_decode_request_context_v_1(dynamic raw); - - @protected - RequestContextV2 dco_decode_request_context_v_2(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); - - @protected - int dco_decode_u_8(dynamic raw); - - @protected - UncheckedProposal dco_decode_unchecked_proposal(dynamic raw); - - @protected - void dco_decode_unit(dynamic raw); - - @protected - Uri dco_decode_uri(dynamic raw); - - @protected - Url dco_decode_url(dynamic raw); - - @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 - Object sse_decode_DartOpaque(SseDeserializer deserializer); - - @protected - 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( - SseDeserializer deserializer); - - @protected - ArcPayjoinFfiSendV1RequestBuilder - sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - SseDeserializer deserializer); - - @protected - ArcPayjoinFfiSendV1RequestContext - sse_decode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - SseDeserializer deserializer); - - @protected - ArcPayjoinFfiSendV2ContextV2 - sse_decode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - SseDeserializer deserializer); - - @protected - ArcPayjoinFfiUriUri sse_decode_RustOpaque_Arcpayjoin_ffiuriUri( - SseDeserializer deserializer); - - @protected - ArcPayjoinFfiUriUrl sse_decode_RustOpaque_Arcpayjoin_ffiuriUrl( - SseDeserializer deserializer); - - @protected - MutexOptionOhttpClientResponse - sse_decode_RustOpaque_MutexOptionohttpClientResponse( - 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 - PayjoinFfiTypesOhttpKeys sse_decode_RustOpaque_payjoin_ffitypesOhttpKeys( - 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 - double sse_decode_box_autoadd_f_64(SseDeserializer deserializer); - - @protected - Headers sse_decode_box_autoadd_headers(SseDeserializer deserializer); - - @protected - MaybeInputsOwned sse_decode_box_autoadd_maybe_inputs_owned( - SseDeserializer deserializer); - - @protected - MaybeInputsSeen sse_decode_box_autoadd_maybe_inputs_seen( - SseDeserializer deserializer); - - @protected - MaybeMixedInputScripts sse_decode_box_autoadd_maybe_mixed_input_scripts( - SseDeserializer deserializer); - - @protected - OhttpKeys sse_decode_box_autoadd_ohttp_keys(SseDeserializer deserializer); - - @protected - OutPoint sse_decode_box_autoadd_out_point(SseDeserializer deserializer); - - @protected - OutputsUnknown sse_decode_box_autoadd_outputs_unknown( - SseDeserializer deserializer); - - @protected - PayjoinProposal sse_decode_box_autoadd_payjoin_proposal( - SseDeserializer deserializer); - - @protected - ProvisionalProposal sse_decode_box_autoadd_provisional_proposal( - SseDeserializer deserializer); - - @protected - RequestBuilder sse_decode_box_autoadd_request_builder( - SseDeserializer deserializer); - - @protected - 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 - double sse_decode_f_64(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); - - @protected - Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer); - - @protected - 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 - OhttpKeys sse_decode_ohttp_keys(SseDeserializer deserializer); - - @protected - String? sse_decode_opt_String(SseDeserializer deserializer); - - @protected - double? sse_decode_opt_box_autoadd_f_64(SseDeserializer deserializer); - - @protected - int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer); - - @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 - ((Url, Uint8List), ClientResponse) - sse_decode_record_record_url_list_prim_u_8_strict_client_response( - 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 - (Url, Uint8List) sse_decode_record_url_list_prim_u_8_strict( - SseDeserializer deserializer); - - @protected - RequestBuilder sse_decode_request_builder(SseDeserializer deserializer); - - @protected - RequestContext sse_decode_request_context(SseDeserializer deserializer); - - @protected - RequestContextV1 sse_decode_request_context_v_1(SseDeserializer deserializer); - - @protected - RequestContextV2 sse_decode_request_context_v_2(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); - - @protected - int sse_decode_u_8(SseDeserializer deserializer); - - @protected - UncheckedProposal sse_decode_unchecked_proposal(SseDeserializer deserializer); - - @protected - void sse_decode_unit(SseDeserializer deserializer); - - @protected - Uri sse_decode_uri(SseDeserializer deserializer); - - @protected - Url sse_decode_url(SseDeserializer deserializer); - - @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); - - @protected - List cst_encode_Map_String_String(Map raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_list_record_string_string( - raw.entries.map((e) => (e.key, e.value)).toList()); - } - - @protected - 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 - return cst_encode_context_v_1(raw); - } - - @protected - List cst_encode_box_autoadd_context_v_2(ContextV2 raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - 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 - double cst_encode_box_autoadd_f_64(double raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_f_64(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_ohttp_keys(OhttpKeys raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_ohttp_keys(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 - return cst_encode_request_builder(raw); - } - - @protected - List cst_encode_box_autoadd_request_context(RequestContext raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - 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 - return cst_encode_u_64(raw); - } - - @protected - int cst_encode_box_autoadd_u_8(int raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_u_8(raw); - } - - @protected - List cst_encode_box_autoadd_unchecked_proposal( - UncheckedProposal raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_unchecked_proposal(raw); - } - - @protected - List cst_encode_box_autoadd_uri(Uri raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return cst_encode_uri(raw); - } - - @protected - List cst_encode_box_autoadd_url(Url raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - 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 - return [cst_encode_RustOpaque_Arcpayjoin_ffisendv1ContextV1(raw.field0)]; - } - - @protected - List cst_encode_context_v_2(ContextV2 raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - 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.map)]; - } - - @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 - return raw; - } - - @protected - Uint8List cst_encode_list_prim_u_8_strict(Uint8List raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw; - } - - @protected - List cst_encode_list_record_string_string( - List<(String, String)> raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - 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 - return [ - cst_encode_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned(raw.field0) - ]; - } - - @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 - List cst_encode_ohttp_keys(OhttpKeys raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_payjoin_ffitypesOhttpKeys(raw.field0)]; - } - - @protected - String? cst_encode_opt_String(String? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_String(raw); - } - - @protected - double? cst_encode_opt_box_autoadd_f_64(double? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_f_64(raw); - } - - @protected - Object? cst_encode_opt_box_autoadd_u_64(int? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return raw == null ? null : cst_encode_box_autoadd_u_64(raw); - } - - @protected - int? cst_encode_opt_box_autoadd_u_8(int? raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - 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 - if (raw is PayjoinError_InvalidAddress) { - return [0, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_InvalidScript) { - return [1, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_NetworkValidation) { - return [2, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_PsbtParseError) { - return [3, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_ResponseError) { - return [4, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_RequestError) { - return [5, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_TransactionError) { - return [6, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_ServerError) { - return [7, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_SelectionError) { - return [8, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_CreateRequestError) { - return [9, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_PjParseError) { - return [10, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_PjNotSupported) { - return [11, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_ValidationError) { - return [12, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_V2Error) { - return [13, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_UnexpectedError) { - return [14, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_OhttpError) { - return [15, cst_encode_String(raw.message)]; - } - if (raw is PayjoinError_UrlError) { - return [16, cst_encode_String(raw.message)]; - } - - 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_record_url_list_prim_u_8_strict_client_response( - ((Url, Uint8List), ClientResponse) raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_record_url_list_prim_u_8_strict(raw.$1), - cst_encode_client_response(raw.$2) - ]; - } - - @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_record_url_list_prim_u_8_strict( - (Url, Uint8List) raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_url(raw.$1), cst_encode_list_prim_u_8_strict(raw.$2)]; - } - - @protected - List cst_encode_request_builder(RequestBuilder raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder(raw.field0) - ]; - } - - @protected - List cst_encode_request_context(RequestContext raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_RustOpaque_Arcpayjoin_ffisendv1RequestContext(raw.field0) - ]; - } - - @protected - List cst_encode_request_context_v_1(RequestContextV1 raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_record_url_list_prim_u_8_strict(raw.request), - cst_encode_context_v_1(raw.contextV1) - ]; - } - - @protected - List cst_encode_request_context_v_2(RequestContextV2 raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - cst_encode_record_url_list_prim_u_8_strict(raw.request), - cst_encode_context_v_2(raw.contextV2) - ]; - } - - @protected - List cst_encode_tx_out(TxOut raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [ - 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) - ]; - } - - @protected - List cst_encode_uri(Uri raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - return [cst_encode_RustOpaque_Arcpayjoin_ffiuriUri(raw.field0)]; - } - - @protected - List cst_encode_url(Url raw) { - // Codec=Cst (C-struct based), see doc to use other codecs - 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 - 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); - - @protected - 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); - - @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ArcPayjoinFfiSendV1RequestBuilder raw); - - @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - ArcPayjoinFfiSendV1RequestContext raw); - - @protected - int cst_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - ArcPayjoinFfiSendV2ContextV2 raw); - - @protected - int cst_encode_RustOpaque_Arcpayjoin_ffiuriUri(ArcPayjoinFfiUriUri raw); - - @protected - int cst_encode_RustOpaque_Arcpayjoin_ffiuriUrl(ArcPayjoinFfiUriUrl raw); - - @protected - int cst_encode_RustOpaque_MutexOptionohttpClientResponse( - MutexOptionOhttpClientResponse 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 - int cst_encode_RustOpaque_payjoin_ffitypesOhttpKeys( - PayjoinFfiTypesOhttpKeys raw); - - @protected - bool cst_encode_bool(bool raw); - - @protected - double cst_encode_f_64(double raw); - - @protected - int cst_encode_u_32(int raw); - - @protected - int cst_encode_u_8(int raw); - - @protected - void cst_encode_unit(void raw); - - @protected - int cst_encode_usize(int raw); - - @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); - - @protected - 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); - - @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ArcPayjoinFfiSendV1RequestBuilder self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - ArcPayjoinFfiSendV1RequestContext self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - ArcPayjoinFfiSendV2ContextV2 self, SseSerializer serializer); - - @protected - void sse_encode_RustOpaque_Arcpayjoin_ffiuriUri( - ArcPayjoinFfiUriUri self, SseSerializer serializer); - - @protected - 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_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_RustOpaque_payjoin_ffitypesOhttpKeys( - PayjoinFfiTypesOhttpKeys 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); - - @protected - 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_f_64(double 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_ohttp_keys( - OhttpKeys 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( - UncheckedProposal self, SseSerializer serializer); - - @protected - void sse_encode_box_autoadd_uri(Uri self, SseSerializer serializer); - - @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_f_64(double 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); - - @protected - void sse_encode_list_prim_u_8_strict( - Uint8List self, SseSerializer serializer); - - @protected - 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_ohttp_keys(OhttpKeys self, SseSerializer serializer); - - @protected - void sse_encode_opt_String(String? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_f_64(double? self, SseSerializer serializer); - - @protected - void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer); - - @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_record_url_list_prim_u_8_strict_client_response( - ((Url, Uint8List), ClientResponse) 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_record_url_list_prim_u_8_strict( - (Url, Uint8List) self, SseSerializer serializer); - - @protected - void sse_encode_request_builder( - RequestBuilder self, SseSerializer serializer); - - @protected - void sse_encode_request_context( - RequestContext self, SseSerializer serializer); - - @protected - void sse_encode_request_context_v_1( - RequestContextV1 self, SseSerializer serializer); - - @protected - void sse_encode_request_context_v_2( - RequestContextV2 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); - - @protected - void sse_encode_u_8(int self, SseSerializer serializer); - - @protected - void sse_encode_unchecked_proposal( - UncheckedProposal self, SseSerializer serializer); - - @protected - void sse_encode_unit(void self, SseSerializer serializer); - - @protected - void sse_encode_uri(Uri self, SseSerializer serializer); - - @protected - void sse_encode_url(Url self, SseSerializer serializer); - - @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); -} - -// Section: wire_class - -class PayjoinCoreWire implements BaseWire { - PayjoinCoreWire.fromExternalLibrary(ExternalLibrary lib); - - void wire_enrolled_extract_req(NativePortType port_, List ptr) => - wasmModule.wire_enrolled_extract_req(port_, ptr); - - 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_enroller_extract_req(NativePortType port_, List ptr) => - wasmModule.wire_enroller_extract_req(port_, ptr); - - void wire_enroller_from_directory_config( - NativePortType port_, - List directory, - List ohttp_keys, - List ohttp_relay) => - wasmModule.wire_enroller_from_directory_config( - port_, directory, ohttp_keys, ohttp_relay); - - void wire_enroller_process_res(NativePortType port_, List that, - List body, List ctx) => - wasmModule.wire_enroller_process_res(port_, that, body, ctx); - - void wire_maybe_inputs_owned_check_inputs_not_owned( - NativePortType port_, List ptr, PlatformPointer is_owned) => - wasmModule.wire_maybe_inputs_owned_check_inputs_not_owned( - port_, ptr, is_owned); - - void wire_maybe_inputs_seen_check_no_inputs_seen_before( - NativePortType port_, List ptr, PlatformPointer is_known) => - wasmModule.wire_maybe_inputs_seen_check_no_inputs_seen_before( - port_, ptr, is_known); - - void wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts( - NativePortType port_, List ptr) => - wasmModule.wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts( - port_, ptr); - - void wire_outputs_unknown_identify_receiver_outputs(NativePortType port_, - List ptr, PlatformPointer is_receiver_output) => - wasmModule.wire_outputs_unknown_identify_receiver_outputs( - port_, ptr, is_receiver_output); - - void wire_payjoin_proposal_is_output_substitution_disabled( - NativePortType port_, List that) => - wasmModule.wire_payjoin_proposal_is_output_substitution_disabled( - port_, that); - - void wire_payjoin_proposal_owned_vouts( - NativePortType port_, List that) => - wasmModule.wire_payjoin_proposal_owned_vouts(port_, that); - - void wire_payjoin_proposal_psbt(NativePortType port_, List that) => - wasmModule.wire_payjoin_proposal_psbt(port_, that); - - void wire_payjoin_proposal_utxos_to_be_locked( - NativePortType port_, List that) => - wasmModule.wire_payjoin_proposal_utxos_to_be_locked(port_, that); - - void wire_provisional_proposal_contribute_non_witness_input( - NativePortType port_, - List that, - List tx, - List outpoint) => - wasmModule.wire_provisional_proposal_contribute_non_witness_input( - port_, that, tx, outpoint); - - void wire_provisional_proposal_contribute_witness_input(NativePortType port_, - List that, List txo, List outpoint) => - wasmModule.wire_provisional_proposal_contribute_witness_input( - port_, that, txo, outpoint); - - void wire_provisional_proposal_finalize_proposal( - NativePortType port_, - List ptr, - PlatformPointer process_psbt, - Object? min_feerate_sat_per_vb) => - wasmModule.wire_provisional_proposal_finalize_proposal( - port_, ptr, process_psbt, min_feerate_sat_per_vb); - - void wire_provisional_proposal_substitute_output_address( - NativePortType port_, List that, String address) => - wasmModule.wire_provisional_proposal_substitute_output_address( - port_, that, address); - - void wire_provisional_proposal_try_preserving_privacy(NativePortType port_, - List that, List candidate_inputs) => - wasmModule.wire_provisional_proposal_try_preserving_privacy( - port_, that, candidate_inputs); - - void wire_unchecked_proposal_assume_interactive_receiver( - NativePortType port_, List ptr) => - wasmModule.wire_unchecked_proposal_assume_interactive_receiver( - port_, ptr); - - void wire_unchecked_proposal_check_broadcast_suitability( - NativePortType port_, - List ptr, - Object? min_fee_rate, - PlatformPointer can_broadcast) => - wasmModule.wire_unchecked_proposal_check_broadcast_suitability( - port_, ptr, min_fee_rate, can_broadcast); - - void wire_unchecked_proposal_extract_tx_to_schedule_broadcast( - NativePortType port_, List that) => - wasmModule.wire_unchecked_proposal_extract_tx_to_schedule_broadcast( - port_, that); - - void wire_unchecked_proposal_from_request(NativePortType port_, - List body, String query, List headers) => - wasmModule.wire_unchecked_proposal_from_request( - port_, body, query, headers); - - void wire_v_2_maybe_inputs_owned_check_inputs_not_owned( - NativePortType port_, List that, PlatformPointer is_owned) => - wasmModule.wire_v_2_maybe_inputs_owned_check_inputs_not_owned( - port_, that, is_owned); - - void wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before( - NativePortType port_, List that, PlatformPointer is_known) => - wasmModule.wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before( - port_, that, is_known); - - void wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( - NativePortType port_, List that) => - wasmModule - .wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( - port_, that); - - void wire_v_2_outputs_unknown_identify_receiver_outputs(NativePortType port_, - List that, PlatformPointer is_receiver_output) => - wasmModule.wire_v_2_outputs_unknown_identify_receiver_outputs( - port_, that, is_receiver_output); - - void wire_v_2_payjoin_proposal_deserialize_res(NativePortType port_, - List that, List res, List ohttp_context) => - wasmModule.wire_v_2_payjoin_proposal_deserialize_res( - port_, that, res, ohttp_context); - - void wire_v_2_payjoin_proposal_extract_v1_req( - NativePortType port_, List that) => - wasmModule.wire_v_2_payjoin_proposal_extract_v1_req(port_, that); - - void wire_v_2_payjoin_proposal_extract_v2_req( - NativePortType port_, List ptr) => - wasmModule.wire_v_2_payjoin_proposal_extract_v2_req(port_, ptr); - - void wire_v_2_payjoin_proposal_is_output_substitution_disabled( - NativePortType port_, List that) => - wasmModule.wire_v_2_payjoin_proposal_is_output_substitution_disabled( - port_, that); - - void wire_v_2_payjoin_proposal_owned_vouts( - NativePortType port_, List that) => - wasmModule.wire_v_2_payjoin_proposal_owned_vouts(port_, that); - - void wire_v_2_payjoin_proposal_psbt( - NativePortType port_, List that) => - wasmModule.wire_v_2_payjoin_proposal_psbt(port_, that); - - void wire_v_2_payjoin_proposal_utxos_to_be_locked( - NativePortType port_, List that) => - wasmModule.wire_v_2_payjoin_proposal_utxos_to_be_locked(port_, that); - - void wire_v_2_provisional_proposal_contribute_non_witness_input( - NativePortType port_, - List that, - List tx, - List outpoint) => - wasmModule.wire_v_2_provisional_proposal_contribute_non_witness_input( - port_, that, tx, outpoint); - - void wire_v_2_provisional_proposal_contribute_witness_input( - NativePortType port_, - List that, - List txo, - List outpoint) => - wasmModule.wire_v_2_provisional_proposal_contribute_witness_input( - port_, that, txo, outpoint); - - void wire_v_2_provisional_proposal_finalize_proposal( - NativePortType port_, - List that, - PlatformPointer process_psbt, - Object? min_feerate_sat_per_vb) => - wasmModule.wire_v_2_provisional_proposal_finalize_proposal( - port_, that, process_psbt, min_feerate_sat_per_vb); - - void wire_v_2_provisional_proposal_substitute_output_address( - NativePortType port_, List that, String address) => - wasmModule.wire_v_2_provisional_proposal_substitute_output_address( - port_, that, address); - - void wire_v_2_provisional_proposal_try_preserving_privacy( - NativePortType port_, - List that, - List candidate_inputs) => - wasmModule.wire_v_2_provisional_proposal_try_preserving_privacy( - port_, that, candidate_inputs); - - void wire_v_2_unchecked_proposal_assume_interactive_receiver( - NativePortType port_, List that) => - wasmModule.wire_v_2_unchecked_proposal_assume_interactive_receiver( - port_, that); - - void wire_v_2_unchecked_proposal_check_broadcast_suitability( - NativePortType port_, - List that, - Object? min_fee_rate, - PlatformPointer can_broadcast) => - wasmModule.wire_v_2_unchecked_proposal_check_broadcast_suitability( - port_, that, min_fee_rate, can_broadcast); - - void wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( - NativePortType port_, List that) => - wasmModule.wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( - port_, that); - - void wire_context_v_1_process_response( - NativePortType port_, List that, List response) => - wasmModule.wire_context_v_1_process_response(port_, that, response); - - void wire_context_v_2_process_response( - NativePortType port_, List that, List response) => - wasmModule.wire_context_v_2_process_response(port_, that, response); - - void wire_request_builder_always_disable_output_substitution( - NativePortType port_, List that, bool disable) => - wasmModule.wire_request_builder_always_disable_output_substitution( - port_, that, disable); - - void wire_request_builder_build_non_incentivizing( - NativePortType port_, List that) => - wasmModule.wire_request_builder_build_non_incentivizing(port_, that); - - void wire_request_builder_build_recommended( - NativePortType port_, List that, Object min_fee_rate) => - wasmModule.wire_request_builder_build_recommended( - port_, that, min_fee_rate); - - void wire_request_builder_build_with_additional_fee( - NativePortType port_, - List that, - Object max_fee_contribution, - int? change_index, - Object min_fee_rate, - bool clamp_fee_contribution) => - wasmModule.wire_request_builder_build_with_additional_fee( - port_, - that, - max_fee_contribution, - change_index, - min_fee_rate, - clamp_fee_contribution); - - void wire_request_builder_from_psbt_and_uri( - NativePortType port_, String psbt_base64, List uri) => - wasmModule.wire_request_builder_from_psbt_and_uri( - port_, psbt_base64, uri); - - void wire_request_context_extract_v1( - NativePortType port_, List ptr) => - wasmModule.wire_request_context_extract_v1(port_, ptr); - - void wire_request_context_extract_v2(NativePortType port_, List ptr, - List ohttp_proxy_url) => - wasmModule.wire_request_context_extract_v2(port_, ptr, ohttp_proxy_url); - - void wire_ohttp_keys_decode(NativePortType port_, List bytes) => - wasmModule.wire_ohttp_keys_decode(port_, bytes); - - void wire_uri_address(NativePortType port_, List that) => - wasmModule.wire_uri_address(port_, that); - - void wire_uri_amount(NativePortType port_, List that) => - wasmModule.wire_uri_amount(port_, that); - - void wire_uri_from_str(NativePortType port_, String uri) => - wasmModule.wire_uri_from_str(port_, uri); - - void wire_url_as_string(NativePortType port_, List that) => - wasmModule.wire_url_as_string(port_, that); - - 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); - - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - dynamic ptr) => - wasmModule - .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 - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri(ptr); - - void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl(ptr); - - void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( - dynamic ptr) => - 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_payjoin_ffireceivev1UncheckedProposal( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1UncheckedProposal( - dynamic ptr) => - 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); - - void rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( - dynamic ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( - dynamic ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( - ptr); -} - -@JS('wasm_bindgen') -external PayjoinCoreWasmModule get wasmModule; - -@JS() -@anonymous -class PayjoinCoreWasmModule implements WasmModule { - @override - external Object /* Promise */ call([String? moduleName]); - - @override - external PayjoinCoreWasmModule bind(dynamic thisArg, String moduleName); - - external void wire_enrolled_extract_req( - NativePortType port_, List ptr); - - 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_enroller_extract_req( - NativePortType port_, List ptr); - - external void wire_enroller_from_directory_config( - NativePortType port_, - List directory, - List ohttp_keys, - List ohttp_relay); - - external void wire_enroller_process_res(NativePortType port_, - List that, List body, List ctx); - - external void wire_maybe_inputs_owned_check_inputs_not_owned( - NativePortType port_, List ptr, PlatformPointer is_owned); - - external void wire_maybe_inputs_seen_check_no_inputs_seen_before( - NativePortType port_, List ptr, PlatformPointer is_known); - - external void wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts( - NativePortType port_, List ptr); - - external void wire_outputs_unknown_identify_receiver_outputs( - NativePortType port_, - List ptr, - PlatformPointer is_receiver_output); - - external void wire_payjoin_proposal_is_output_substitution_disabled( - NativePortType port_, List that); - - external void wire_payjoin_proposal_owned_vouts( - NativePortType port_, List that); - - external void wire_payjoin_proposal_psbt( - NativePortType port_, List that); - - external void wire_payjoin_proposal_utxos_to_be_locked( - NativePortType port_, List that); - - external void wire_provisional_proposal_contribute_non_witness_input( - NativePortType port_, - List that, - List tx, - List outpoint); - - external void wire_provisional_proposal_contribute_witness_input( - NativePortType port_, - List that, - List txo, - List outpoint); - - external void wire_provisional_proposal_finalize_proposal( - NativePortType port_, - List ptr, - PlatformPointer process_psbt, - Object? min_feerate_sat_per_vb); - - external void wire_provisional_proposal_substitute_output_address( - NativePortType port_, List that, String address); - - external void wire_provisional_proposal_try_preserving_privacy( - NativePortType port_, List that, List candidate_inputs); - - external void wire_unchecked_proposal_assume_interactive_receiver( - NativePortType port_, List ptr); - - external void wire_unchecked_proposal_check_broadcast_suitability( - NativePortType port_, - List ptr, - Object? min_fee_rate, - PlatformPointer can_broadcast); - - external void wire_unchecked_proposal_extract_tx_to_schedule_broadcast( - NativePortType port_, List that); - - external void wire_unchecked_proposal_from_request(NativePortType port_, - List body, String query, List headers); - - external void wire_v_2_maybe_inputs_owned_check_inputs_not_owned( - NativePortType port_, List that, PlatformPointer is_owned); - - external void wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before( - NativePortType port_, List that, PlatformPointer is_known); - - external void wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( - NativePortType port_, List that); - - external void wire_v_2_outputs_unknown_identify_receiver_outputs( - NativePortType port_, - List that, - PlatformPointer is_receiver_output); - - external void wire_v_2_payjoin_proposal_deserialize_res(NativePortType port_, - List that, List res, List ohttp_context); - - external void wire_v_2_payjoin_proposal_extract_v1_req( - NativePortType port_, List that); - - external void wire_v_2_payjoin_proposal_extract_v2_req( - NativePortType port_, List ptr); - - external void wire_v_2_payjoin_proposal_is_output_substitution_disabled( - NativePortType port_, List that); - - external void wire_v_2_payjoin_proposal_owned_vouts( - NativePortType port_, List that); - - external void wire_v_2_payjoin_proposal_psbt( - NativePortType port_, List that); - - external void wire_v_2_payjoin_proposal_utxos_to_be_locked( - NativePortType port_, List that); - - external void wire_v_2_provisional_proposal_contribute_non_witness_input( - NativePortType port_, - List that, - List tx, - List outpoint); - - external void wire_v_2_provisional_proposal_contribute_witness_input( - NativePortType port_, - List that, - List txo, - List outpoint); - - external void wire_v_2_provisional_proposal_finalize_proposal( - NativePortType port_, - List that, - PlatformPointer process_psbt, - Object? min_feerate_sat_per_vb); - - external void wire_v_2_provisional_proposal_substitute_output_address( - NativePortType port_, List that, String address); - - external void wire_v_2_provisional_proposal_try_preserving_privacy( - NativePortType port_, List that, List candidate_inputs); - - external void wire_v_2_unchecked_proposal_assume_interactive_receiver( - NativePortType port_, List that); - - external void wire_v_2_unchecked_proposal_check_broadcast_suitability( - NativePortType port_, - List that, - Object? min_fee_rate, - PlatformPointer can_broadcast); - - external void wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( - NativePortType port_, List that); - - external void wire_context_v_1_process_response( - NativePortType port_, List that, List response); - - external void wire_context_v_2_process_response( - NativePortType port_, List that, List response); - - external void wire_request_builder_always_disable_output_substitution( - NativePortType port_, List that, bool disable); - - external void wire_request_builder_build_non_incentivizing( - NativePortType port_, List that); - - external void wire_request_builder_build_recommended( - NativePortType port_, List that, Object min_fee_rate); - - external void wire_request_builder_build_with_additional_fee( - NativePortType port_, - List that, - Object max_fee_contribution, - int? change_index, - Object min_fee_rate, - bool clamp_fee_contribution); - - external void wire_request_builder_from_psbt_and_uri( - NativePortType port_, String psbt_base64, List uri); - - external void wire_request_context_extract_v1( - NativePortType port_, List ptr); - - external void wire_request_context_extract_v2( - NativePortType port_, List ptr, List ohttp_proxy_url); - - external void wire_ohttp_keys_decode(NativePortType port_, List bytes); - - external void wire_uri_address(NativePortType port_, List that); - - external void wire_uri_amount(NativePortType port_, List that); - - external void wire_uri_from_str(NativePortType port_, String uri); - - external void wire_url_as_string(NativePortType port_, List that); - - external void wire_url_from_str(NativePortType port_, String url); - - external void wire_url_query(NativePortType port_, List that); - - external void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeInputsOwned( - dynamic ptr); - - external void - 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); - - external void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1ContextV1( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestBuilder( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( - dynamic ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffisendv2ContextV2( - dynamic ptr); - - external void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( - dynamic ptr); - - external void rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffiuriUri( - dynamic ptr); - - external void rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffiuriUrl( - dynamic ptr); - - 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_payjoin_ffireceivev1UncheckedProposal( - dynamic ptr); - - 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); - - external void - rust_arc_increment_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( - dynamic ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_payjoin_ffitypesOhttpKeys( - dynamic ptr); -} diff --git a/lib/src/generated/lib.dart b/lib/src/generated/lib.dart new file mode 100644 index 0000000..4a3f470 --- /dev/null +++ b/lib/src/generated/lib.dart @@ -0,0 +1,85 @@ +// This file is automatically generated, so please do not edit it. +// Generated by `flutter_rust_bridge`@ 2.0.0. + +// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import + +import 'frb_generated.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; + +// Rust type: RustOpaqueNom> +abstract class ArcV2PayjoinProposal implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom> +abstract class ArcContextV2 implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class MaybeInputsOwned implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class MaybeInputsSeen implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class MaybeMixedInputScripts implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class OutputsUnknown implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class PayjoinProposal implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class ProvisionalProposal implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class UncheckedProposal implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class ActiveSession implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class SessionInitializer implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class V2MaybeInputsOwned implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class V2MaybeInputsSeen implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class V2MaybeMixedInputScripts implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class V2OutputsUnknown implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class V2ProvisionalProposal implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class V2UncheckedProposal implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class ContextV1 implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class RequestBuilder implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class RequestContext implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class OhttpKeys implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class PjUri implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class PjUriBuilder implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class Uri implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom +abstract class Url implements RustOpaqueInterface {} + +// Rust type: RustOpaqueNom >> +abstract class MutexOptionClientResponse implements RustOpaqueInterface {} diff --git a/lib/src/generated/utils/error.dart b/lib/src/generated/utils/error.dart index 4207324..b83889f 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.31. +// Generated by `flutter_rust_bridge`@ 2.0.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -73,4 +73,7 @@ sealed class PayjoinError with _$PayjoinError implements FrbException { const factory PayjoinError.urlError({ required String message, }) = PayjoinError_UrlError; + const factory PayjoinError.ioError({ + required String message, + }) = PayjoinError_IoError; } diff --git a/lib/src/generated/utils/error.freezed.dart b/lib/src/generated/utils/error.freezed.dart index 715b59e..bc0a13a 100644 --- a/lib/src/generated/utils/error.freezed.dart +++ b/lib/src/generated/utils/error.freezed.dart @@ -36,6 +36,7 @@ mixin _$PayjoinError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -57,6 +58,7 @@ mixin _$PayjoinError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -78,6 +80,7 @@ mixin _$PayjoinError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) => throw _privateConstructorUsedError; @@ -105,6 +108,7 @@ mixin _$PayjoinError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -127,6 +131,7 @@ mixin _$PayjoinError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) => throw _privateConstructorUsedError; @optionalTypeArgs @@ -148,6 +153,7 @@ mixin _$PayjoinError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) => throw _privateConstructorUsedError; @@ -276,6 +282,7 @@ class _$PayjoinError_InvalidAddressImpl extends PayjoinError_InvalidAddress { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return invalidAddress(message); } @@ -300,6 +307,7 @@ class _$PayjoinError_InvalidAddressImpl extends PayjoinError_InvalidAddress { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return invalidAddress?.call(message); } @@ -324,6 +332,7 @@ class _$PayjoinError_InvalidAddressImpl extends PayjoinError_InvalidAddress { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (invalidAddress != null) { @@ -357,6 +366,7 @@ class _$PayjoinError_InvalidAddressImpl extends PayjoinError_InvalidAddress { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return invalidAddress(this); } @@ -382,6 +392,7 @@ class _$PayjoinError_InvalidAddressImpl extends PayjoinError_InvalidAddress { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return invalidAddress?.call(this); } @@ -406,6 +417,7 @@ class _$PayjoinError_InvalidAddressImpl extends PayjoinError_InvalidAddress { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (invalidAddress != null) { @@ -514,6 +526,7 @@ class _$PayjoinError_InvalidScriptImpl extends PayjoinError_InvalidScript { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return invalidScript(message); } @@ -538,6 +551,7 @@ class _$PayjoinError_InvalidScriptImpl extends PayjoinError_InvalidScript { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return invalidScript?.call(message); } @@ -562,6 +576,7 @@ class _$PayjoinError_InvalidScriptImpl extends PayjoinError_InvalidScript { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (invalidScript != null) { @@ -595,6 +610,7 @@ class _$PayjoinError_InvalidScriptImpl extends PayjoinError_InvalidScript { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return invalidScript(this); } @@ -620,6 +636,7 @@ class _$PayjoinError_InvalidScriptImpl extends PayjoinError_InvalidScript { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return invalidScript?.call(this); } @@ -644,6 +661,7 @@ class _$PayjoinError_InvalidScriptImpl extends PayjoinError_InvalidScript { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (invalidScript != null) { @@ -756,6 +774,7 @@ class _$PayjoinError_NetworkValidationImpl required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return networkValidation(message); } @@ -780,6 +799,7 @@ class _$PayjoinError_NetworkValidationImpl TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return networkValidation?.call(message); } @@ -804,6 +824,7 @@ class _$PayjoinError_NetworkValidationImpl TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (networkValidation != null) { @@ -837,6 +858,7 @@ class _$PayjoinError_NetworkValidationImpl unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return networkValidation(this); } @@ -862,6 +884,7 @@ class _$PayjoinError_NetworkValidationImpl TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return networkValidation?.call(this); } @@ -886,6 +909,7 @@ class _$PayjoinError_NetworkValidationImpl TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (networkValidation != null) { @@ -995,6 +1019,7 @@ class _$PayjoinError_PsbtParseErrorImpl extends PayjoinError_PsbtParseError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return psbtParseError(message); } @@ -1019,6 +1044,7 @@ class _$PayjoinError_PsbtParseErrorImpl extends PayjoinError_PsbtParseError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return psbtParseError?.call(message); } @@ -1043,6 +1069,7 @@ class _$PayjoinError_PsbtParseErrorImpl extends PayjoinError_PsbtParseError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (psbtParseError != null) { @@ -1076,6 +1103,7 @@ class _$PayjoinError_PsbtParseErrorImpl extends PayjoinError_PsbtParseError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return psbtParseError(this); } @@ -1101,6 +1129,7 @@ class _$PayjoinError_PsbtParseErrorImpl extends PayjoinError_PsbtParseError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return psbtParseError?.call(this); } @@ -1125,6 +1154,7 @@ class _$PayjoinError_PsbtParseErrorImpl extends PayjoinError_PsbtParseError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (psbtParseError != null) { @@ -1233,6 +1263,7 @@ class _$PayjoinError_ResponseErrorImpl extends PayjoinError_ResponseError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return responseError(message); } @@ -1257,6 +1288,7 @@ class _$PayjoinError_ResponseErrorImpl extends PayjoinError_ResponseError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return responseError?.call(message); } @@ -1281,6 +1313,7 @@ class _$PayjoinError_ResponseErrorImpl extends PayjoinError_ResponseError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (responseError != null) { @@ -1314,6 +1347,7 @@ class _$PayjoinError_ResponseErrorImpl extends PayjoinError_ResponseError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return responseError(this); } @@ -1339,6 +1373,7 @@ class _$PayjoinError_ResponseErrorImpl extends PayjoinError_ResponseError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return responseError?.call(this); } @@ -1363,6 +1398,7 @@ class _$PayjoinError_ResponseErrorImpl extends PayjoinError_ResponseError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (responseError != null) { @@ -1471,6 +1507,7 @@ class _$PayjoinError_RequestErrorImpl extends PayjoinError_RequestError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return requestError(message); } @@ -1495,6 +1532,7 @@ class _$PayjoinError_RequestErrorImpl extends PayjoinError_RequestError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return requestError?.call(message); } @@ -1519,6 +1557,7 @@ class _$PayjoinError_RequestErrorImpl extends PayjoinError_RequestError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (requestError != null) { @@ -1552,6 +1591,7 @@ class _$PayjoinError_RequestErrorImpl extends PayjoinError_RequestError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return requestError(this); } @@ -1577,6 +1617,7 @@ class _$PayjoinError_RequestErrorImpl extends PayjoinError_RequestError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return requestError?.call(this); } @@ -1601,6 +1642,7 @@ class _$PayjoinError_RequestErrorImpl extends PayjoinError_RequestError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (requestError != null) { @@ -1713,6 +1755,7 @@ class _$PayjoinError_TransactionErrorImpl required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return transactionError(message); } @@ -1737,6 +1780,7 @@ class _$PayjoinError_TransactionErrorImpl TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return transactionError?.call(message); } @@ -1761,6 +1805,7 @@ class _$PayjoinError_TransactionErrorImpl TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (transactionError != null) { @@ -1794,6 +1839,7 @@ class _$PayjoinError_TransactionErrorImpl unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return transactionError(this); } @@ -1819,6 +1865,7 @@ class _$PayjoinError_TransactionErrorImpl TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return transactionError?.call(this); } @@ -1843,6 +1890,7 @@ class _$PayjoinError_TransactionErrorImpl TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (transactionError != null) { @@ -1952,6 +2000,7 @@ class _$PayjoinError_ServerErrorImpl extends PayjoinError_ServerError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return serverError(message); } @@ -1976,6 +2025,7 @@ class _$PayjoinError_ServerErrorImpl extends PayjoinError_ServerError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return serverError?.call(message); } @@ -2000,6 +2050,7 @@ class _$PayjoinError_ServerErrorImpl extends PayjoinError_ServerError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (serverError != null) { @@ -2033,6 +2084,7 @@ class _$PayjoinError_ServerErrorImpl extends PayjoinError_ServerError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return serverError(this); } @@ -2058,6 +2110,7 @@ class _$PayjoinError_ServerErrorImpl extends PayjoinError_ServerError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return serverError?.call(this); } @@ -2082,6 +2135,7 @@ class _$PayjoinError_ServerErrorImpl extends PayjoinError_ServerError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (serverError != null) { @@ -2190,6 +2244,7 @@ class _$PayjoinError_SelectionErrorImpl extends PayjoinError_SelectionError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return selectionError(message); } @@ -2214,6 +2269,7 @@ class _$PayjoinError_SelectionErrorImpl extends PayjoinError_SelectionError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return selectionError?.call(message); } @@ -2238,6 +2294,7 @@ class _$PayjoinError_SelectionErrorImpl extends PayjoinError_SelectionError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (selectionError != null) { @@ -2271,6 +2328,7 @@ class _$PayjoinError_SelectionErrorImpl extends PayjoinError_SelectionError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return selectionError(this); } @@ -2296,6 +2354,7 @@ class _$PayjoinError_SelectionErrorImpl extends PayjoinError_SelectionError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return selectionError?.call(this); } @@ -2320,6 +2379,7 @@ class _$PayjoinError_SelectionErrorImpl extends PayjoinError_SelectionError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (selectionError != null) { @@ -2432,6 +2492,7 @@ class _$PayjoinError_CreateRequestErrorImpl required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return createRequestError(message); } @@ -2456,6 +2517,7 @@ class _$PayjoinError_CreateRequestErrorImpl TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return createRequestError?.call(message); } @@ -2480,6 +2542,7 @@ class _$PayjoinError_CreateRequestErrorImpl TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (createRequestError != null) { @@ -2513,6 +2576,7 @@ class _$PayjoinError_CreateRequestErrorImpl unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return createRequestError(this); } @@ -2538,6 +2602,7 @@ class _$PayjoinError_CreateRequestErrorImpl TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return createRequestError?.call(this); } @@ -2562,6 +2627,7 @@ class _$PayjoinError_CreateRequestErrorImpl TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (createRequestError != null) { @@ -2671,6 +2737,7 @@ class _$PayjoinError_PjParseErrorImpl extends PayjoinError_PjParseError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return pjParseError(message); } @@ -2695,6 +2762,7 @@ class _$PayjoinError_PjParseErrorImpl extends PayjoinError_PjParseError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return pjParseError?.call(message); } @@ -2719,6 +2787,7 @@ class _$PayjoinError_PjParseErrorImpl extends PayjoinError_PjParseError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (pjParseError != null) { @@ -2752,6 +2821,7 @@ class _$PayjoinError_PjParseErrorImpl extends PayjoinError_PjParseError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return pjParseError(this); } @@ -2777,6 +2847,7 @@ class _$PayjoinError_PjParseErrorImpl extends PayjoinError_PjParseError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return pjParseError?.call(this); } @@ -2801,6 +2872,7 @@ class _$PayjoinError_PjParseErrorImpl extends PayjoinError_PjParseError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (pjParseError != null) { @@ -2909,6 +2981,7 @@ class _$PayjoinError_PjNotSupportedImpl extends PayjoinError_PjNotSupported { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return pjNotSupported(message); } @@ -2933,6 +3006,7 @@ class _$PayjoinError_PjNotSupportedImpl extends PayjoinError_PjNotSupported { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return pjNotSupported?.call(message); } @@ -2957,6 +3031,7 @@ class _$PayjoinError_PjNotSupportedImpl extends PayjoinError_PjNotSupported { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (pjNotSupported != null) { @@ -2990,6 +3065,7 @@ class _$PayjoinError_PjNotSupportedImpl extends PayjoinError_PjNotSupported { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return pjNotSupported(this); } @@ -3015,6 +3091,7 @@ class _$PayjoinError_PjNotSupportedImpl extends PayjoinError_PjNotSupported { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return pjNotSupported?.call(this); } @@ -3039,6 +3116,7 @@ class _$PayjoinError_PjNotSupportedImpl extends PayjoinError_PjNotSupported { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (pjNotSupported != null) { @@ -3148,6 +3226,7 @@ class _$PayjoinError_ValidationErrorImpl extends PayjoinError_ValidationError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return validationError(message); } @@ -3172,6 +3251,7 @@ class _$PayjoinError_ValidationErrorImpl extends PayjoinError_ValidationError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return validationError?.call(message); } @@ -3196,6 +3276,7 @@ class _$PayjoinError_ValidationErrorImpl extends PayjoinError_ValidationError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (validationError != null) { @@ -3229,6 +3310,7 @@ class _$PayjoinError_ValidationErrorImpl extends PayjoinError_ValidationError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return validationError(this); } @@ -3254,6 +3336,7 @@ class _$PayjoinError_ValidationErrorImpl extends PayjoinError_ValidationError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return validationError?.call(this); } @@ -3278,6 +3361,7 @@ class _$PayjoinError_ValidationErrorImpl extends PayjoinError_ValidationError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (validationError != null) { @@ -3386,6 +3470,7 @@ class _$PayjoinError_V2ErrorImpl extends PayjoinError_V2Error { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return v2Error(message); } @@ -3410,6 +3495,7 @@ class _$PayjoinError_V2ErrorImpl extends PayjoinError_V2Error { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return v2Error?.call(message); } @@ -3434,6 +3520,7 @@ class _$PayjoinError_V2ErrorImpl extends PayjoinError_V2Error { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (v2Error != null) { @@ -3467,6 +3554,7 @@ class _$PayjoinError_V2ErrorImpl extends PayjoinError_V2Error { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return v2Error(this); } @@ -3492,6 +3580,7 @@ class _$PayjoinError_V2ErrorImpl extends PayjoinError_V2Error { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return v2Error?.call(this); } @@ -3516,6 +3605,7 @@ class _$PayjoinError_V2ErrorImpl extends PayjoinError_V2Error { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (v2Error != null) { @@ -3625,6 +3715,7 @@ class _$PayjoinError_UnexpectedErrorImpl extends PayjoinError_UnexpectedError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return unexpectedError(message); } @@ -3649,6 +3740,7 @@ class _$PayjoinError_UnexpectedErrorImpl extends PayjoinError_UnexpectedError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return unexpectedError?.call(message); } @@ -3673,6 +3765,7 @@ class _$PayjoinError_UnexpectedErrorImpl extends PayjoinError_UnexpectedError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (unexpectedError != null) { @@ -3706,6 +3799,7 @@ class _$PayjoinError_UnexpectedErrorImpl extends PayjoinError_UnexpectedError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return unexpectedError(this); } @@ -3731,6 +3825,7 @@ class _$PayjoinError_UnexpectedErrorImpl extends PayjoinError_UnexpectedError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return unexpectedError?.call(this); } @@ -3755,6 +3850,7 @@ class _$PayjoinError_UnexpectedErrorImpl extends PayjoinError_UnexpectedError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (unexpectedError != null) { @@ -3864,6 +3960,7 @@ class _$PayjoinError_OhttpErrorImpl extends PayjoinError_OhttpError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return ohttpError(message); } @@ -3888,6 +3985,7 @@ class _$PayjoinError_OhttpErrorImpl extends PayjoinError_OhttpError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return ohttpError?.call(message); } @@ -3912,6 +4010,7 @@ class _$PayjoinError_OhttpErrorImpl extends PayjoinError_OhttpError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (ohttpError != null) { @@ -3945,6 +4044,7 @@ class _$PayjoinError_OhttpErrorImpl extends PayjoinError_OhttpError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return ohttpError(this); } @@ -3970,6 +4070,7 @@ class _$PayjoinError_OhttpErrorImpl extends PayjoinError_OhttpError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return ohttpError?.call(this); } @@ -3994,6 +4095,7 @@ class _$PayjoinError_OhttpErrorImpl extends PayjoinError_OhttpError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (ohttpError != null) { @@ -4101,6 +4203,7 @@ class _$PayjoinError_UrlErrorImpl extends PayjoinError_UrlError { required TResult Function(String message) unexpectedError, required TResult Function(String message) ohttpError, required TResult Function(String message) urlError, + required TResult Function(String message) ioError, }) { return urlError(message); } @@ -4125,6 +4228,7 @@ class _$PayjoinError_UrlErrorImpl extends PayjoinError_UrlError { TResult? Function(String message)? unexpectedError, TResult? Function(String message)? ohttpError, TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, }) { return urlError?.call(message); } @@ -4149,6 +4253,7 @@ class _$PayjoinError_UrlErrorImpl extends PayjoinError_UrlError { TResult Function(String message)? unexpectedError, TResult Function(String message)? ohttpError, TResult Function(String message)? urlError, + TResult Function(String message)? ioError, required TResult orElse(), }) { if (urlError != null) { @@ -4182,6 +4287,7 @@ class _$PayjoinError_UrlErrorImpl extends PayjoinError_UrlError { unexpectedError, required TResult Function(PayjoinError_OhttpError value) ohttpError, required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, }) { return urlError(this); } @@ -4207,6 +4313,7 @@ class _$PayjoinError_UrlErrorImpl extends PayjoinError_UrlError { TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult? Function(PayjoinError_OhttpError value)? ohttpError, TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, }) { return urlError?.call(this); } @@ -4231,6 +4338,7 @@ class _$PayjoinError_UrlErrorImpl extends PayjoinError_UrlError { TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, TResult Function(PayjoinError_OhttpError value)? ohttpError, TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, required TResult orElse(), }) { if (urlError != null) { @@ -4252,3 +4360,246 @@ abstract class PayjoinError_UrlError extends PayjoinError { _$$PayjoinError_UrlErrorImplCopyWith<_$PayjoinError_UrlErrorImpl> get copyWith => throw _privateConstructorUsedError; } + +/// @nodoc +abstract class _$$PayjoinError_IoErrorImplCopyWith<$Res> + implements $PayjoinErrorCopyWith<$Res> { + factory _$$PayjoinError_IoErrorImplCopyWith(_$PayjoinError_IoErrorImpl value, + $Res Function(_$PayjoinError_IoErrorImpl) then) = + __$$PayjoinError_IoErrorImplCopyWithImpl<$Res>; + @override + @useResult + $Res call({String message}); +} + +/// @nodoc +class __$$PayjoinError_IoErrorImplCopyWithImpl<$Res> + extends _$PayjoinErrorCopyWithImpl<$Res, _$PayjoinError_IoErrorImpl> + implements _$$PayjoinError_IoErrorImplCopyWith<$Res> { + __$$PayjoinError_IoErrorImplCopyWithImpl(_$PayjoinError_IoErrorImpl _value, + $Res Function(_$PayjoinError_IoErrorImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? message = null, + }) { + return _then(_$PayjoinError_IoErrorImpl( + message: null == message + ? _value.message + : message // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +/// @nodoc + +class _$PayjoinError_IoErrorImpl extends PayjoinError_IoError { + const _$PayjoinError_IoErrorImpl({required this.message}) : super._(); + + @override + final String message; + + @override + String toString() { + return 'PayjoinError.ioError(message: $message)'; + } + + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$PayjoinError_IoErrorImpl && + (identical(other.message, message) || other.message == message)); + } + + @override + int get hashCode => Object.hash(runtimeType, message); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$PayjoinError_IoErrorImplCopyWith<_$PayjoinError_IoErrorImpl> + get copyWith => + __$$PayjoinError_IoErrorImplCopyWithImpl<_$PayjoinError_IoErrorImpl>( + this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function(String message) invalidAddress, + required TResult Function(String message) invalidScript, + required TResult Function(String message) networkValidation, + required TResult Function(String message) psbtParseError, + required TResult Function(String message) responseError, + required TResult Function(String message) requestError, + required TResult Function(String message) transactionError, + required TResult Function(String message) serverError, + required TResult Function(String message) selectionError, + required TResult Function(String message) createRequestError, + required TResult Function(String message) pjParseError, + required TResult Function(String message) pjNotSupported, + required TResult Function(String message) validationError, + required TResult Function(String message) v2Error, + required TResult Function(String message) unexpectedError, + required TResult Function(String message) ohttpError, + required TResult Function(String message) urlError, + required TResult Function(String message) ioError, + }) { + return ioError(message); + } + + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(String message)? invalidAddress, + TResult? Function(String message)? invalidScript, + TResult? Function(String message)? networkValidation, + TResult? Function(String message)? psbtParseError, + TResult? Function(String message)? responseError, + TResult? Function(String message)? requestError, + TResult? Function(String message)? transactionError, + TResult? Function(String message)? serverError, + TResult? Function(String message)? selectionError, + TResult? Function(String message)? createRequestError, + TResult? Function(String message)? pjParseError, + TResult? Function(String message)? pjNotSupported, + TResult? Function(String message)? validationError, + TResult? Function(String message)? v2Error, + TResult? Function(String message)? unexpectedError, + TResult? Function(String message)? ohttpError, + TResult? Function(String message)? urlError, + TResult? Function(String message)? ioError, + }) { + return ioError?.call(message); + } + + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(String message)? invalidAddress, + TResult Function(String message)? invalidScript, + TResult Function(String message)? networkValidation, + TResult Function(String message)? psbtParseError, + TResult Function(String message)? responseError, + TResult Function(String message)? requestError, + TResult Function(String message)? transactionError, + TResult Function(String message)? serverError, + TResult Function(String message)? selectionError, + TResult Function(String message)? createRequestError, + TResult Function(String message)? pjParseError, + TResult Function(String message)? pjNotSupported, + TResult Function(String message)? validationError, + TResult Function(String message)? v2Error, + TResult Function(String message)? unexpectedError, + TResult Function(String message)? ohttpError, + TResult Function(String message)? urlError, + TResult Function(String message)? ioError, + required TResult orElse(), + }) { + if (ioError != null) { + return ioError(message); + } + return orElse(); + } + + @override + @optionalTypeArgs + TResult map({ + required TResult Function(PayjoinError_InvalidAddress value) invalidAddress, + required TResult Function(PayjoinError_InvalidScript value) invalidScript, + required TResult Function(PayjoinError_NetworkValidation value) + networkValidation, + required TResult Function(PayjoinError_PsbtParseError value) psbtParseError, + required TResult Function(PayjoinError_ResponseError value) responseError, + required TResult Function(PayjoinError_RequestError value) requestError, + required TResult Function(PayjoinError_TransactionError value) + transactionError, + required TResult Function(PayjoinError_ServerError value) serverError, + required TResult Function(PayjoinError_SelectionError value) selectionError, + required TResult Function(PayjoinError_CreateRequestError value) + createRequestError, + required TResult Function(PayjoinError_PjParseError value) pjParseError, + required TResult Function(PayjoinError_PjNotSupported value) pjNotSupported, + required TResult Function(PayjoinError_ValidationError value) + validationError, + required TResult Function(PayjoinError_V2Error value) v2Error, + required TResult Function(PayjoinError_UnexpectedError value) + unexpectedError, + required TResult Function(PayjoinError_OhttpError value) ohttpError, + required TResult Function(PayjoinError_UrlError value) urlError, + required TResult Function(PayjoinError_IoError value) ioError, + }) { + return ioError(this); + } + + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(PayjoinError_InvalidAddress value)? invalidAddress, + TResult? Function(PayjoinError_InvalidScript value)? invalidScript, + TResult? Function(PayjoinError_NetworkValidation value)? networkValidation, + TResult? Function(PayjoinError_PsbtParseError value)? psbtParseError, + TResult? Function(PayjoinError_ResponseError value)? responseError, + TResult? Function(PayjoinError_RequestError value)? requestError, + TResult? Function(PayjoinError_TransactionError value)? transactionError, + TResult? Function(PayjoinError_ServerError value)? serverError, + TResult? Function(PayjoinError_SelectionError value)? selectionError, + TResult? Function(PayjoinError_CreateRequestError value)? + createRequestError, + TResult? Function(PayjoinError_PjParseError value)? pjParseError, + TResult? Function(PayjoinError_PjNotSupported value)? pjNotSupported, + TResult? Function(PayjoinError_ValidationError value)? validationError, + TResult? Function(PayjoinError_V2Error value)? v2Error, + TResult? Function(PayjoinError_UnexpectedError value)? unexpectedError, + TResult? Function(PayjoinError_OhttpError value)? ohttpError, + TResult? Function(PayjoinError_UrlError value)? urlError, + TResult? Function(PayjoinError_IoError value)? ioError, + }) { + return ioError?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(PayjoinError_InvalidAddress value)? invalidAddress, + TResult Function(PayjoinError_InvalidScript value)? invalidScript, + TResult Function(PayjoinError_NetworkValidation value)? networkValidation, + TResult Function(PayjoinError_PsbtParseError value)? psbtParseError, + TResult Function(PayjoinError_ResponseError value)? responseError, + TResult Function(PayjoinError_RequestError value)? requestError, + TResult Function(PayjoinError_TransactionError value)? transactionError, + TResult Function(PayjoinError_ServerError value)? serverError, + TResult Function(PayjoinError_SelectionError value)? selectionError, + TResult Function(PayjoinError_CreateRequestError value)? createRequestError, + TResult Function(PayjoinError_PjParseError value)? pjParseError, + TResult Function(PayjoinError_PjNotSupported value)? pjNotSupported, + TResult Function(PayjoinError_ValidationError value)? validationError, + TResult Function(PayjoinError_V2Error value)? v2Error, + TResult Function(PayjoinError_UnexpectedError value)? unexpectedError, + TResult Function(PayjoinError_OhttpError value)? ohttpError, + TResult Function(PayjoinError_UrlError value)? urlError, + TResult Function(PayjoinError_IoError value)? ioError, + required TResult orElse(), + }) { + if (ioError != null) { + return ioError(this); + } + return orElse(); + } +} + +abstract class PayjoinError_IoError extends PayjoinError { + const factory PayjoinError_IoError({required final String message}) = + _$PayjoinError_IoErrorImpl; + const PayjoinError_IoError._() : super._(); + + @override + String get message; + @override + @JsonKey(ignore: true) + _$$PayjoinError_IoErrorImplCopyWith<_$PayjoinError_IoErrorImpl> + get copyWith => throw _privateConstructorUsedError; +} diff --git a/lib/src/generated/utils/types.dart b/lib/src/generated/utils/types.dart index 6f2f4ed..203ff8d 100644 --- a/lib/src/generated/utils/types.dart +++ b/lib/src/generated/utils/types.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. +// Generated by `flutter_rust_bridge`@ 2.0.0. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -22,6 +22,21 @@ class Headers { other is Headers && runtimeType == other.runtimeType && map == other.map; } +enum Network { + ///Bitcoin’s testnet + testnet, + + ///Bitcoin’s regtest + regtest, + + ///Classic Bitcoin + bitcoin, + + ///Bitcoin’s signet + signet, + ; +} + /// A reference to a transaction output. class OutPoint { /// The referenced transaction's txid. @@ -49,7 +64,7 @@ class OutPoint { class TxOut { /// The value of the output, in satoshis. - final int value; + final BigInt value; /// The address of the output. final Uint8List scriptPubkey; diff --git a/lib/uri.dart b/lib/uri.dart index fd56bd6..ea19416 100644 --- a/lib/uri.dart +++ b/lib/uri.dart @@ -1,16 +1,41 @@ import 'package:payjoin_flutter/src/config.dart'; import 'package:payjoin_flutter/src/exceptions.dart'; -import 'src/generated/api/uri.dart' as generated; +import 'src/generated/api/io.dart' as io; +import 'src/generated/api/uri.dart'; import 'src/generated/utils/error.dart' as error; -class Uri extends generated.Uri { +class PjUriBuilder extends FfiPjUriBuilder { + PjUriBuilder({required super.internal}); + + ///Create a new PjUriBuilder with required parameters. + /// Parameters + /// address: Represents a bitcoin address. + /// ohttpKeys: Optional OHTTP keys for v2. + /// expiry: Optional non-default duration_since epoch expiry for the `payjoin` session. + static Future create( + {required String address, + required FfiUrl pj, + FfiOhttpKeys? ohttpKeys, + BigInt? expiry}) async { + try { + await PConfig.initializeApp(); + final res = await FfiPjUriBuilder.create( + address: address, pj: pj, ohttpKeys: ohttpKeys, expiry: expiry); + return PjUriBuilder(internal: res.internal); + } on error.PayjoinError catch (e) { + throw mapPayjoinError(e); + } + } +} + +class Uri extends FfiUri { Uri._({required super.field0}); static Future fromString(String uri) async { try { await PConfig.initializeApp(); - final res = await generated.Uri.fromStr(uri: uri); + final res = await FfiUri.fromStr(uri: uri); return Uri._(field0: res.field0); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -19,7 +44,44 @@ class Uri extends generated.Uri { ///Gets the amount in btc. @override - Future amount({hint}) { + double? amount({hint}) { + try { + return super.amount(); + } on error.PayjoinError catch (e) { + throw mapPayjoinError(e); + } + } + + @override + String address({hint}) { + try { + return super.address(); + } on error.PayjoinError catch (e) { + throw mapPayjoinError(e); + } + } + + @override + PjUri checkPjSupported({hint}) { + try { + return PjUri._(field0: super.checkPjSupported().field0); + } on error.PayjoinError catch (e) { + throw mapPayjoinError(e); + } + } + + @override + String toString() { + return super.asString(); + } +} + +class PjUri extends FfiPjUri { + PjUri._({required super.field0}); + + ///Gets the amount in btc. + @override + double? amount({hint}) { try { return super.amount(); } on error.PayjoinError catch (e) { @@ -28,21 +90,26 @@ class Uri extends generated.Uri { } @override - Future address({hint}) { + String address({hint}) { try { return super.address(); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); } } + + @override + String toString() { + return super.asString(); + } } -class Url extends generated.Url { +class Url extends FfiUrl { Url._({required super.field0}); static Future fromString(String uri) async { try { await PConfig.initializeApp(); - final res = await generated.Url.fromStr(url: uri); + final res = await FfiUrl.fromStr(url: uri); return Url._(field0: res.field0); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); @@ -50,7 +117,7 @@ class Url extends generated.Url { } @override - Future query({hint}) { + String? query({hint}) { try { return super.query(); } on error.PayjoinError catch (e) { @@ -59,27 +126,49 @@ class Url extends generated.Url { } @override - Future asString({hint}) { - try { - return super.asString(); - } on error.PayjoinError catch (e) { - throw mapPayjoinError(e); - } + String toString() { + return super.asString(); } } ///The key configuration of a server. This can be used by both client and server. ///An important invariant of this structure is that it does not include any combination of KEM, KDF, and AEAD that is not supported. -class OhttpKeys extends generated.OhttpKeys { +class OhttpKeys extends FfiOhttpKeys { OhttpKeys._({required super.field0}); ///Construct a configuration from the encoded server configuration. static Future decode({required List bytes}) async { try { - final res = await generated.OhttpKeys.decode(bytes: bytes); + final res = await FfiOhttpKeys.decode(bytes: bytes); return OhttpKeys._(field0: res.field0); } on error.PayjoinError catch (e) { throw mapPayjoinError(e); } } } + +/// Fetch the ohttp keys from the specified payjoin directory via proxy. +/// +/// * `ohttpRelay`: The http CONNNECT method proxy to request the ohttp keys from a payjoin +/// directory. Proxying requests for ohttp keys ensures a client IP address is never revealed to +/// the payjoin directory. +/// +/// * `payjoinDirectory`: The payjoin directory from which to fetch the ohttp keys. This +/// directory stores and forwards payjoin client payloads. +/// +/// * `certDer` (optional): The DER-encoded certificate to use for local HTTPS connections. This +/// parameter is only available when the "danger-local-https" feature is enabled. +Future fetchOhttpKeys( + {required Url ohttpRelay, + required Url payjoinDirectory, + required List certDer}) async { + try { + final res = await io.fetchOhttpKeys( + ohttpRelay: ohttpRelay, + payjoinDirectory: payjoinDirectory, + certDer: certDer); + return OhttpKeys._(field0: res.field0); + } on error.PayjoinError catch (e) { + throw mapPayjoinError(e); + } +} diff --git a/makefile b/makefile index 5a42da9..a31cc3b 100644 --- a/makefile +++ b/makefile @@ -11,7 +11,7 @@ help: makefile ## init: Install missing dependencies. init: - cargo install flutter_rust_bridge_codegen --version 2.0.0-dev.31 + cargo install flutter_rust_bridge_codegen --version 2.0.0 ## : all: init generate-bindings @@ -19,11 +19,4 @@ all: init generate-bindings generate-bindings: @echo "[GENERATING FRB CODE] $@" flutter_rust_bridge_codegen generate - @echo "[Done ✅]" - - - - - - - + @echo "[Done ✅]" \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index 635218a..8dd113c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,18 +5,18 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051 + sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7" url: "https://pub.dev" source: hosted - version: "64.0.0" + version: "67.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893" + sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d" url: "https://pub.dev" source: hosted - version: "6.2.0" + version: "6.4.1" args: dependency: transitive description: @@ -69,10 +69,10 @@ packages: dependency: transitive description: name: build_daemon - sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" + sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" url: "https://pub.dev" source: hosted - version: "4.0.1" + version: "4.0.2" build_resolvers: dependency: transitive description: @@ -85,18 +85,18 @@ packages: dependency: "direct dev" description: name: build_runner - sha256: "3ac61a79bfb6f6cc11f693591063a7f19a7af628dc52f141743edac5c16e8c22" + sha256: "644dc98a0f179b872f612d3eb627924b578897c629788e858157fa5e704ca0c7" url: "https://pub.dev" source: hosted - version: "2.4.9" + version: "2.4.11" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: "4ae8ffe5ac758da294ecf1802f2aff01558d8b1b00616aa7538ea9a8a5d50799" + sha256: e3c79f69a64bdfcd8a776a3c28db4eb6e3fb5356d013ae5eb2e52007706d5dbe url: "https://pub.dev" source: hosted - version: "7.3.0" + version: "7.3.1" built_collection: dependency: transitive description: @@ -197,10 +197,10 @@ packages: dependency: "direct main" description: name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" ffigen: dependency: "direct dev" description: @@ -242,10 +242,10 @@ packages: dependency: "direct main" description: name: flutter_rust_bridge - sha256: e9a8716b1ad2fc81c434f3e4bf84b86c578578678c57e568b44aea7acf210102 + sha256: f703c4b50e253e53efc604d50281bbaefe82d615856f8ae1e7625518ae252e98 url: "https://pub.dev" source: hosted - version: "2.0.0-dev.31" + version: "2.0.0" flutter_test: dependency: "direct dev" description: flutter @@ -463,10 +463,10 @@ packages: dependency: transitive description: name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "2.0.0" sky_engine: dependency: transitive description: flutter @@ -592,14 +592,30 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.0" + web: + dependency: transitive + description: + name: web + sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + url: "https://pub.dev" + source: hosted + version: "0.5.1" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "24301d8c293ce6fe327ffe6f59d8fd8834735f0ec36e4fd383ec7ff8a64aa078" + url: "https://pub.dev" + source: hosted + version: "0.1.5" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: a2d56211ee4d35d9b344d9d4ce60f362e4f5d1aafb988302906bd732bc731276 url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "3.0.0" yaml: dependency: transitive description: @@ -617,5 +633,5 @@ packages: source: hosted version: "2.2.1" sdks: - dart: ">=3.3.0 <4.0.0" + dart: ">=3.4.0 <4.0.0" flutter: ">=3.18.0-18.0.pre.54" diff --git a/pubspec.yaml b/pubspec.yaml index 4245658..6ab93e5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: payjoin_flutter -description: "A Flutter library for the Payjoin Dev Kit." -version: 0.13.0-dev.2 +description: "A new Flutter FFI plugin project." +version: 0.18.0 homepage: https://github.com/LtbLightning/payjoin-flutter environment: @@ -12,7 +12,7 @@ dependencies: sdk: flutter collection: ^1.17.1 ffi: ^2.0.1 - flutter_rust_bridge: ">2.0.0-dev.30 <= 2.0.0-dev.31" + flutter_rust_bridge: "2.0.0" freezed_annotation: ^2.2.0 meta: ^1.10.0 uuid: ^4.2.1 diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 305d556..761c621 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -62,14 +62,14 @@ dependencies = [ [[package]] name = "aes-gcm" -version = "0.9.4" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df5f85a83a7d8b0442b6aa7b504b8212c1733da07b98aae43d4bc21b2cb3cdf6" +checksum = "bc3be92e19a7ef47457b8e6f90707e12b6ac5d20c6f3866584fa3be0787d839f" dependencies = [ "aead 0.4.3", "aes 0.7.5", "cipher 0.3.0", - "ctr 0.8.0", + "ctr 0.7.0", "ghash 0.4.4", "subtle", ] @@ -162,7 +162,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" dependencies = [ - "windows-sys", + "windows-sys 0.52.0", ] [[package]] @@ -172,7 +172,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" dependencies = [ "anstyle", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] @@ -181,6 +181,12 @@ version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" +[[package]] +name = "arrayvec" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" + [[package]] name = "askama" version = "0.12.1" @@ -260,6 +266,16 @@ dependencies = [ "rustc-demangle", ] +[[package]] +name = "base58ck" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c8d66485a3a2ea485c1913c4572ce0256067a5377ac8c75c4960e1cda98605f" +dependencies = [ + "bitcoin-internals 0.3.0", + "bitcoin_hashes 0.14.0", +] + [[package]] name = "base64" version = "0.13.1" @@ -329,9 +345,9 @@ checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445" [[package]] name = "bech32" -version = "0.10.0-beta" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98f7eed2b2781a6f0b5c903471d48e15f56fb4e1165df8a9a2337fd1a59d45ea" +checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d" [[package]] name = "bhttp" @@ -389,16 +405,19 @@ dependencies = [ [[package]] name = "bitcoin" -version = "0.31.2" +version = "0.32.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c85783c2fe40083ea54a33aa2f0ba58831d90fcd190f5bdc47e74e84d2a96ae" +checksum = "ea507acc1cd80fc084ace38544bbcf7ced7c2aa65b653b102de0ce718df668f6" dependencies = [ - "bech32 0.10.0-beta", - "bitcoin-internals 0.2.0", - "bitcoin_hashes 0.13.0", + "base58ck", + "bech32 0.11.0", + "bitcoin-internals 0.3.0", + "bitcoin-io", + "bitcoin-units", + "bitcoin_hashes 0.14.0", "hex-conservative", "hex_lit", - "secp256k1 0.28.2", + "secp256k1 0.29.0", "serde", ] @@ -410,19 +429,35 @@ checksum = "1f9997f8650dd818369931b5672a18dbef95324d0513aa99aae758de8ce86e5b" [[package]] name = "bitcoin-internals" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9425c3bf7089c983facbae04de54513cce73b41c7f9ff8c845b54e7bc64ebbfb" +checksum = "30bdbe14aa07b06e6cfeffc529a1f099e5fbe249524f8125358604df99a4bed2" dependencies = [ "serde", ] +[[package]] +name = "bitcoin-io" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "340e09e8399c7bd8912f495af6aa58bea0c9214773417ffaa8f6460f93aaee56" + [[package]] name = "bitcoin-private" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73290177011694f38ec25e165d0387ab7ea749a4b81cd4c80dae5988229f7a57" +[[package]] +name = "bitcoin-units" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5285c8bcaa25876d07f37e3d30c303f2609179716e11d688f51e8f1fe70063e2" +dependencies = [ + "bitcoin-internals 0.3.0", + "serde", +] + [[package]] name = "bitcoin_hashes" version = "0.11.0" @@ -441,20 +476,20 @@ dependencies = [ [[package]] name = "bitcoin_hashes" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1930a4dabfebb8d7d9992db18ebe3ae2876f0a305fab206fd168df931ede293b" +checksum = "bb18c03d0db0247e147a21a6faafd5a7eb851c743db062de72018b6b7e8e4d16" dependencies = [ - "bitcoin-internals 0.2.0", + "bitcoin-io", "hex-conservative", "serde", ] [[package]] name = "bitcoincore-rpc" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eb70725a621848c83b3809913d5314c0d20ca84877d99dd909504b564edab00" +checksum = "aedd23ae0fd321affb4bbbc36126c6f49a32818dc6b979395d24da8c9d4e80ee" dependencies = [ "bitcoincore-rpc-json", "jsonrpc", @@ -465,11 +500,11 @@ dependencies = [ [[package]] name = "bitcoincore-rpc-json" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "856ffbee2e492c23bca715d72ea34aae80d58400f2bda26a82015d6bc2ec3662" +checksum = "d8909583c5fab98508e80ef73e5592a651c954993dc6b7739963257d19f0e71a" dependencies = [ - "bitcoin 0.31.2", + "bitcoin 0.32.2", "serde", "serde_json", ] @@ -524,9 +559,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" +checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952" [[package]] name = "camino" @@ -643,9 +678,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.7" +version = "4.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5db83dced34638ad474f39f250d7fea9598bdd239eaced1bdf45d597da0f433f" +checksum = "64acc1846d54c1fe936a78dc189c34e28d3f5afc348403f28ecf53660b9b8462" dependencies = [ "clap_builder", "clap_derive", @@ -653,9 +688,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.7" +version = "4.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7e204572485eb3fbf28f871612191521df159bc3e15a9f5064c66dba3a8c05f" +checksum = "6fb8393d67ba2e7bfaf28a23458e4e2b543cc73a99595511eb207fdb8aede942" dependencies = [ "anstream", "anstyle", @@ -665,11 +700,11 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.5" +version = "4.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c780290ccf4fb26629baa7a1081e68ced113f1d3ec302fa5948f1c381ebf06c6" +checksum = "2bac35c6dafb060fd4d275d9a4ffae97917c13a6327903a8be2153cd964f7085" dependencies = [ - "heck 0.5.0", + "heck", "proc-macro2", "quote", "syn 2.0.66", @@ -752,9 +787,9 @@ dependencies = [ [[package]] name = "crypto-mac" -version = "0.11.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" +checksum = "25fab6889090c8133f3deb8f73ba3c65a7f456f66436fc012a1b1e272b1e103e" dependencies = [ "generic-array", "subtle", @@ -762,9 +797,9 @@ dependencies = [ [[package]] name = "ctr" -version = "0.8.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "049bb91fb4aaf0e3c7efa6cd5ef877dbbbd15b39dad06d9948de4ec8a75761ea" +checksum = "a232f92a03f37dd7d7dd2adc67166c77e9cd88de5b019b9a9eecfaeaf7bfd481" dependencies = [ "cipher 0.3.0", ] @@ -863,7 +898,7 @@ dependencies = [ "byteorder", "libc", "log", - "rustls", + "rustls 0.21.12", "serde", "serde_json", "webpki", @@ -906,9 +941,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge" -version = "2.0.0-dev.31" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d9ceb6f8db0bf711a55e20151c6699132bb5975f846ecac2c3bc7d23cc0845d" +checksum = "033e831e28f1077ceae3490fb6d093dfdefefd09c5c6e8544c6579effe7e814f" dependencies = [ "allo-isolate", "android_logger", @@ -933,15 +968,23 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_macros" -version = "2.0.0-dev.31" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e02edfe56f04af804d3145b17dfe7820d46a6753b214160f227dbdfa1073f7cb" +checksum = "0217fc4b7131b52578be60bbe38c76b3edfc2f9fecab46d9f930510f40ef9023" dependencies = [ "hex", + "md-5", + "proc-macro2", "quote", "syn 2.0.66", ] +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + [[package]] name = "form_urlencoded" version = "1.2.1" @@ -1132,12 +1175,6 @@ dependencies = [ "scroll", ] -[[package]] -name = "heck" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" - [[package]] name = "heck" version = "0.5.0" @@ -1158,9 +1195,12 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hex-conservative" -version = "0.1.2" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "212ab92002354b4819390025006c897e8140934349e8635c9b077f47b4dcbd20" +checksum = "5313b072ce3c597065a808dbf612c4c8e8590bdbf8b579508bf7a762c5eae6cd" +dependencies = [ + "arrayvec", +] [[package]] name = "hex_lit" @@ -1227,6 +1267,103 @@ dependencies = [ "zeroize", ] +[[package]] +name = "http" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" +dependencies = [ + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9" + +[[package]] +name = "hyper" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ee4be2c948921a1a5320b629c4193916ed787a7f7f293fd3f7f5a6c9de74155" +dependencies = [ + "futures-util", + "http", + "hyper", + "hyper-util", + "rustls 0.23.11", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tower-service", + "webpki-roots 0.26.3", +] + +[[package]] +name = "hyper-util" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ab92f4f49ee4fb4f997c784b7a2e0fa70050211e0b6a287f898c3c9785ca956" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "pin-project-lite", + "socket2", + "tokio", + "tower", + "tower-service", + "tracing", +] + [[package]] name = "icu_collections" version = "1.5.0" @@ -1375,6 +1512,12 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "ipnet" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" + [[package]] name = "is_terminal_polyfill" version = "1.70.0" @@ -1398,11 +1541,12 @@ dependencies = [ [[package]] name = "jsonrpc" -version = "0.14.1" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8128f36b47411cd3f044be8c1f5cc0c9e24d1d1bfdc45f0a57897b32513053f2" +checksum = "3662a38d341d77efecb73caf01420cfa5aa63c0253fd7bc05289ef9f6616e1bf" dependencies = [ "base64 0.13.1", + "minreq", "serde", "serde_json", ] @@ -1441,6 +1585,16 @@ version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" +[[package]] +name = "md-5" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" +dependencies = [ + "cfg-if", + "digest 0.10.7", +] + [[package]] name = "memchr" version = "2.7.4" @@ -1455,9 +1609,9 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "mime_guess" -version = "2.0.4" +version = "2.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4192263c238a5f0d0c6bfd21f336a313a4ce1c450542449ca191bb657b4642ef" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" dependencies = [ "mime", "unicase", @@ -1489,6 +1643,28 @@ dependencies = [ "adler", ] +[[package]] +name = "minreq" +version = "2.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fdef521c74c2884a4f3570bcdb6d2a77b3c533feb6b27ac2ae72673cc221c64" +dependencies = [ + "log", + "serde", + "serde_json", +] + +[[package]] +name = "mio" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.48.0", +] + [[package]] name = "nom" version = "7.1.3" @@ -1525,7 +1701,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "578cb11a3fb5c85697ed8bb850d5ad1cbf819d3eea05c2b253cf1d240fbb10c5" dependencies = [ "aead 0.4.3", - "aes-gcm 0.9.4", + "aes-gcm 0.9.2", "byteorder", "chacha20poly1305 0.8.0", "hex", @@ -1597,15 +1773,18 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "payjoin" -version = "0.16.0" -source = "git+https://github.com/payjoin/rust-payjoin?rev=457a0dd5cb212ddd9ea169b7fa3842bfc3d5f373#457a0dd5cb212ddd9ea169b7fa3842bfc3d5f373" +version = "0.18.0" +source = "git+https://github.com/LtbLightning/rust-payjoin?branch=clone-pj-uri-builder#3b5bda95fc8ce63f506538f0ff9daed885810488" dependencies = [ "bhttp", "bip21", "bitcoin 0.30.2", "chacha20poly1305 0.10.1", + "http", "log", "ohttp", + "reqwest", + "rustls 0.22.4", "serde", "serde_json", "url", @@ -1613,8 +1792,8 @@ dependencies = [ [[package]] name = "payjoin_ffi" -version = "0.13.0" -source = "git+https://github.com/LtbLightning/payjoin-ffi?rev=bd9d0b3d514c17a288d2896da3cdd739b4f5c71d#bd9d0b3d514c17a288d2896da3cdd739b4f5c71d" +version = "0.18.0" +source = "git+https://github.com/LtbLightning/payjoin-ffi?branch=v0.18.0#610aed9239c6e1e28cc56118e9b94b5000ae6052" dependencies = [ "base64 0.22.1", "hex", @@ -1627,10 +1806,10 @@ dependencies = [ [[package]] name = "payjoin_flutter" -version = "0.13.0" +version = "0.18.0" dependencies = [ "anyhow", - "base64 0.13.1", + "base64 0.22.1", "bdk", "bitcoincore-rpc", "flutter_rust_bridge", @@ -1651,6 +1830,26 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3637c05577168127568a64e9dc5a6887da720efef07b3d9472d45f63ab191166" +[[package]] +name = "pin-project" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.66", +] + [[package]] name = "pin-project-lite" version = "0.2.14" @@ -1677,7 +1876,7 @@ checksum = "048aeb476be11a4b6ca432ca569e375810de9294ae78f4774e78ea98a9246ede" dependencies = [ "cpufeatures 0.2.12", "opaque-debug", - "universal-hash 0.4.1", + "universal-hash 0.4.0", ] [[package]] @@ -1700,7 +1899,7 @@ dependencies = [ "cfg-if", "cpufeatures 0.2.12", "opaque-debug", - "universal-hash 0.4.1", + "universal-hash 0.4.0", ] [[package]] @@ -1730,6 +1929,53 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "quinn" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4ceeeeabace7857413798eb1ffa1e9c905a9946a57d81fb69b4b71c4d8eb3ad" +dependencies = [ + "bytes", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls 0.23.11", + "thiserror", + "tokio", + "tracing", +] + +[[package]] +name = "quinn-proto" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddf517c03a109db8100448a4be38d498df8a210a99fe0e1b9eaf39e78c640efe" +dependencies = [ + "bytes", + "rand", + "ring", + "rustc-hash", + "rustls 0.23.11", + "slab", + "thiserror", + "tinyvec", + "tracing", +] + +[[package]] +name = "quinn-udp" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9096629c45860fc7fb143e125eb826b5e721e10be3263160c7d60ca832cf8c46" +dependencies = [ + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.52.0", +] + [[package]] name = "quote" version = "1.0.36" @@ -1813,6 +2059,48 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" +[[package]] +name = "reqwest" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7d6d2a27d57148378eb5e111173f4276ad26340ecc5c49a4a2152167a2d6a37" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "ipnet", + "js-sys", + "log", + "mime", + "once_cell", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls 0.23.11", + "rustls-pemfile", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "webpki-roots 0.26.3", + "winreg", +] + [[package]] name = "ring" version = "0.17.8" @@ -1825,7 +2113,7 @@ dependencies = [ "libc", "spin", "untrusted", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] @@ -1834,6 +2122,12 @@ version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + [[package]] name = "rustls" version = "0.21.12" @@ -1842,10 +2136,54 @@ checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" dependencies = [ "log", "ring", - "rustls-webpki", + "rustls-webpki 0.101.7", "sct", ] +[[package]] +name = "rustls" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432" +dependencies = [ + "log", + "ring", + "rustls-pki-types", + "rustls-webpki 0.102.5", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls" +version = "0.23.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4828ea528154ae444e5a642dbb7d5623354030dc9822b83fd9bb79683c7399d0" +dependencies = [ + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki 0.102.5", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pemfile" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" +dependencies = [ + "base64 0.22.1", + "rustls-pki-types", +] + +[[package]] +name = "rustls-pki-types" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" + [[package]] name = "rustls-webpki" version = "0.101.7" @@ -1856,6 +2194,17 @@ dependencies = [ "untrusted", ] +[[package]] +name = "rustls-webpki" +version = "0.102.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9a6fccd794a42c2c105b513a2f62bc3fd8f3ba57a4593677ceb0bd035164d78" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + [[package]] name = "ryu" version = "1.0.18" @@ -1912,13 +2261,13 @@ dependencies = [ [[package]] name = "secp256k1" -version = "0.28.2" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d24b59d129cdadea20aea4fb2352fa053712e5d713eee47d700cd4b2bc002f10" +checksum = "0e0cc0f1cf93f4969faf3ea1c7d8a9faed25918d96affa959720823dfe86d4f3" dependencies = [ - "bitcoin_hashes 0.13.0", + "bitcoin_hashes 0.14.0", "rand", - "secp256k1-sys 0.9.2", + "secp256k1-sys 0.10.0", "serde", ] @@ -1933,9 +2282,9 @@ dependencies = [ [[package]] name = "secp256k1-sys" -version = "0.9.2" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5d1746aae42c19d583c3c1a8c646bfad910498e2051c551a7f2e3c0c9fbb7eb" +checksum = "1433bd67156263443f14d603720b082dd3121779323fce20cba2aa07b874bc1b" dependencies = [ "cc", ] @@ -1980,6 +2329,18 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + [[package]] name = "sha2" version = "0.9.9" @@ -2047,6 +2408,16 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" +[[package]] +name = "socket2" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + [[package]] name = "socks" version = "0.3.4" @@ -2084,9 +2455,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "subtle" -version = "2.4.1" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" @@ -2110,6 +2481,12 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "sync_wrapper" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" + [[package]] name = "synstructure" version = "0.13.1" @@ -2191,9 +2568,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a" dependencies = [ "backtrace", + "bytes", + "libc", + "mio", "num_cpus", "pin-project-lite", + "socket2", "tokio-macros", + "windows-sys 0.48.0", ] [[package]] @@ -2207,6 +2589,17 @@ dependencies = [ "syn 2.0.66", ] +[[package]] +name = "tokio-rustls" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" +dependencies = [ + "rustls 0.23.11", + "rustls-pki-types", + "tokio", +] + [[package]] name = "toml" version = "0.5.11" @@ -2216,6 +2609,70 @@ dependencies = [ "serde", ] +[[package]] +name = "tower" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" +dependencies = [ + "futures-core", + "futures-util", + "pin-project", + "pin-project-lite", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" + +[[package]] +name = "tower-service" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" + +[[package]] +name = "tracing" +version = "0.1.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.66", +] + +[[package]] +name = "tracing-core" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +dependencies = [ + "once_cell", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + [[package]] name = "typenum" version = "1.17.0" @@ -2248,9 +2705,9 @@ dependencies = [ [[package]] name = "uniffi" -version = "0.27.3" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb3a4c447c50fcda7bc5604a8588b7e1f37ffbfd8838a1516a290398efa7c6f0" +checksum = "f31bff6daf87277a9014bcdefbc2842b0553392919d1096843c5aad899ca4588" dependencies = [ "anyhow", "camino", @@ -2263,19 +2720,18 @@ dependencies = [ [[package]] name = "uniffi_bindgen" -version = "0.27.3" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0be2bc6bafd82c979b0faca77c7b26630d54017de9f5bd5a686ec6ef038ad5d9" +checksum = "96061d7e01b185aa405f7c9b134741ab3e50cc6796a47d6fd8ab9a5364b5feed" dependencies = [ "anyhow", "askama", "camino", "cargo_metadata", - "clap", "fs-err", "glob", "goblin", - "heck 0.4.1", + "heck", "once_cell", "paste", "serde", @@ -2288,9 +2744,9 @@ dependencies = [ [[package]] name = "uniffi_build" -version = "0.27.3" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c59b65d59685ff3a10569287c6419f76487b4052ac52d5a0df38b2253d7f440" +checksum = "9d6b86f9b221046af0c533eafe09ece04e2f1ded04ccdc9bba0ec09aec1c52bd" dependencies = [ "anyhow", "camino", @@ -2299,9 +2755,9 @@ dependencies = [ [[package]] name = "uniffi_checksum_derive" -version = "0.27.3" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5c400339a9d1d17be34257d0b407e91d64af335e5b4fa49f4bf28467fc8d635" +checksum = "2fcfa22f55829d3aaa7acfb1c5150224188fe0f27c59a8a3eddcaa24d1ffbe58" dependencies = [ "quote", "syn 2.0.66", @@ -2309,9 +2765,9 @@ dependencies = [ [[package]] name = "uniffi_core" -version = "0.27.3" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a02e67ac9634b10da9e4aa63a29a7920b8f1395eafef1ea659b2dd76dda96906" +checksum = "3210d57d6ab6065ab47a2898dacdb7c606fd6a4156196831fa3bf82e34ac58a6" dependencies = [ "anyhow", "bytes", @@ -2324,9 +2780,9 @@ dependencies = [ [[package]] name = "uniffi_macros" -version = "0.27.3" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6f08d5592c669b80a8af5066027098bebec4b4af17a9b8b299bac5f518ab89e" +checksum = "b58691741080935437dc862122e68d7414432a11824ac1137868de46181a0bd2" dependencies = [ "bincode", "camino", @@ -2342,9 +2798,9 @@ dependencies = [ [[package]] name = "uniffi_meta" -version = "0.27.3" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "583bab49f2bdf5681f9732f8b67a7e555ad920dbb5427be21450217bf1818189" +checksum = "7663eacdbd9fbf4a88907ddcfe2e6fa85838eb6dc2418a7d91eebb3786f8e20b" dependencies = [ "anyhow", "bytes", @@ -2354,9 +2810,9 @@ dependencies = [ [[package]] name = "uniffi_testing" -version = "0.27.3" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13963044ca9bde9b709d2eee68bc11dafc7acea144ae0fdc0cf29ed4add44481" +checksum = "f922465f7566f25f8fe766920205fdfa9a3fcdc209c6bfb7557f0b5bf45b04dd" dependencies = [ "anyhow", "camino", @@ -2367,9 +2823,9 @@ dependencies = [ [[package]] name = "uniffi_udl" -version = "0.27.3" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b92f984bb0d9a06778f256aec963e1e9a80714014f7a90fb0e01008821fe5a97" +checksum = "cef408229a3a407fafa4c36dc4f6ece78a6fb258ab28d2b64bddd49c8cb680f6" dependencies = [ "anyhow", "textwrap", @@ -2380,9 +2836,9 @@ dependencies = [ [[package]] name = "universal-hash" -version = "0.4.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" +checksum = "8326b2c654932e3e4f9196e69d08fdf7cfd718e1dc6f66b347e6024a0c961402" dependencies = [ "generic-array", "subtle", @@ -2414,8 +2870,8 @@ dependencies = [ "flate2", "log", "once_cell", - "rustls", - "rustls-webpki", + "rustls 0.21.12", + "rustls-webpki 0.101.7", "serde", "serde_json", "socks", @@ -2432,6 +2888,7 @@ dependencies = [ "form_urlencoded", "idna", "percent-encoding", + "serde", ] [[package]] @@ -2458,6 +2915,15 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -2565,6 +3031,15 @@ version = "0.25.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" +[[package]] +name = "webpki-roots" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd7c23921eeb1713a4e851530e9b9756e4fb0e89978582942612524cf09f01cd" +dependencies = [ + "rustls-pki-types", +] + [[package]] name = "weedle2" version = "5.0.0" @@ -2596,13 +3071,37 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + [[package]] name = "windows-sys" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets", + "windows-targets 0.52.5", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", ] [[package]] @@ -2611,28 +3110,46 @@ version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", + "windows_aarch64_gnullvm 0.52.5", + "windows_aarch64_msvc 0.52.5", + "windows_i686_gnu 0.52.5", "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", + "windows_i686_msvc 0.52.5", + "windows_x86_64_gnu 0.52.5", + "windows_x86_64_gnullvm 0.52.5", + "windows_x86_64_msvc 0.52.5", ] +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + [[package]] name = "windows_aarch64_gnullvm" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + [[package]] name = "windows_aarch64_msvc" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + [[package]] name = "windows_i686_gnu" version = "0.52.5" @@ -2645,30 +3162,64 @@ version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + [[package]] name = "windows_i686_msvc" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + [[package]] name = "windows_x86_64_gnu" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + [[package]] name = "windows_x86_64_gnullvm" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + [[package]] name = "windows_x86_64_msvc" version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" +[[package]] +name = "winreg" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" +dependencies = [ + "cfg-if", + "windows-sys 0.48.0", +] + [[package]] name = "write16" version = "1.0.0" diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 07ebfa9..6fef0b1 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "payjoin_flutter" -version = "0.13.0" +version = "0.18.0" edition = "2021" [lib] @@ -8,15 +8,15 @@ crate-type = ["cdylib", "staticlib"] [dev-dependencies] bdk = { version = "0.29.0", features = ["all-keys", "use-esplora-ureq", "keys-bip39"] } -bitcoincore-rpc = "0.18.0" +bitcoincore-rpc = "0.19.0" anyhow = "1.0.68" [dependencies] ohttp = { version = "0.5.1" } -payjoin_ffi = {git = "https://github.com/LtbLightning/payjoin-ffi", rev="bd9d0b3d514c17a288d2896da3cdd739b4f5c71d"} -flutter_rust_bridge = "=2.0.0-dev.31" +payjoin_ffi = {git = "https://github.com/LtbLightning/payjoin-ffi", branch="v0.18.0"} +flutter_rust_bridge = "=2.0.0" anyhow = "1.0.68" tokio = "1.36.0" -base64 = "0.13.1" +base64 = "0.22.1" [profile.release] strip = true diff --git a/rust/cargokit.yaml b/rust/cargokit.yaml index 7f137e3..87c82f9 100644 --- a/rust/cargokit.yaml +++ b/rust/cargokit.yaml @@ -3,4 +3,4 @@ cargo: toolchain: stable precompiled_binaries: url_prefix: https://github.com/LtbLightning/payjoin-flutter/releases/download/precompiled_ - public_key: 0e43d5e8452d00db7f3000c18fb1ba796babfcb5dc6306bb0629eff24f8be85b + public_key: acc9fbea1d5cca0660ed71b0e516663d36f0180a9826a6e5ba06ca26d4850de7 diff --git a/rust/src/api/io.rs b/rust/src/api/io.rs new file mode 100644 index 0000000..5461c5d --- /dev/null +++ b/rust/src/api/io.rs @@ -0,0 +1,28 @@ +use crate::api::uri::{FfiOhttpKeys, FfiUrl}; +use crate::utils::error::PayjoinError; + +/// Fetch the ohttp keys from the specified payjoin directory via proxy. +/// +/// * `ohttp_relay`: The http CONNNECT method proxy to request the ohttp keys from a payjoin +/// directory. Proxying requests for ohttp keys ensures a client IP address is never revealed to +/// the payjoin directory. +/// +/// * `payjoin_directory`: The payjoin directory from which to fetch the ohttp keys. This +/// directory stores and forwards payjoin client payloads. +/// +/// * `cert_der` (optional): The DER-encoded certificate to use for local HTTPS connections. This +/// parameter is only available when the "danger-local-https" feature is enabled. +pub async fn fetch_ohttp_keys( + ohttp_relay: FfiUrl, + payjoin_directory: FfiUrl, + cert_der: Vec, +) -> Result { + payjoin_ffi::io::fetch_ohttp_keys( + (*ohttp_relay.0).clone(), + (*payjoin_directory.0).clone(), + cert_der, + ) + .await + .map(|e| e.into()) + .map_err(|e| e.into()) +} diff --git a/rust/src/api/mod.rs b/rust/src/api/mod.rs index ebd5a6d..860a805 100644 --- a/rust/src/api/mod.rs +++ b/rust/src/api/mod.rs @@ -1,3 +1,5 @@ +pub mod io; pub mod receive; pub mod send; pub mod uri; +pub mod io; diff --git a/rust/src/api/receive.rs b/rust/src/api/receive.rs index 42f99ec..ca927d2 100644 --- a/rust/src/api/receive.rs +++ b/rust/src/api/receive.rs @@ -1,23 +1,24 @@ -use crate::api::uri::{OhttpKeys, Url}; +use crate::api::uri::{FfiOhttpKeys, FfiPjUriBuilder, FfiUrl}; use crate::frb_generated::RustOpaque; pub use crate::utils::error::PayjoinError; use crate::utils::types::{Headers, OutPoint, TxOut}; -use flutter_rust_bridge::DartFnFuture; +use flutter_rust_bridge::{frb, DartFnFuture}; use std::collections::HashMap; -pub use std::sync::{Arc, Mutex}; -pub struct UncheckedProposal(pub RustOpaque); -impl From for UncheckedProposal { +pub use std::sync::Arc; + +pub struct FfiUncheckedProposal(pub RustOpaque); +impl From for FfiUncheckedProposal { fn from(value: payjoin_ffi::receive::v1::UncheckedProposal) -> Self { Self(RustOpaque::new(value)) } } -impl UncheckedProposal { +impl FfiUncheckedProposal { pub fn from_request( body: Vec, query: String, headers: Headers, - ) -> Result { + ) -> Result { match payjoin_ffi::receive::v1::UncheckedProposal::from_request( body, query, @@ -44,151 +45,112 @@ impl UncheckedProposal { ptr: Self, min_fee_rate: Option, can_broadcast: impl Fn(Vec) -> DartFnFuture, - ) -> Result { + ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); ptr.0 .check_broadcast_suitability(min_fee_rate, |x| { Ok(runtime.block_on(can_broadcast(x.clone()))) }) - .map(|e| e.into()) - .map_err(|e| e.into()) - } - pub(crate) fn _check_broadcast_suitability( - ptr: Self, - min_fee_rate: Option, - can_broadcast: impl Fn(Vec) -> Result, - ) -> Result { - ptr.0 - .check_broadcast_suitability(min_fee_rate, |x| { - can_broadcast(x.clone()).map_err(|e| e.into()) - }) - .map(|e| e.into()) + .map(|e| (*e).clone().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(ptr: Self) -> MaybeInputsOwned { - ptr.0.assume_interactive_receiver().into() + pub fn assume_interactive_receiver(ptr: Self) -> FfiMaybeInputsOwned { + (*ptr.0.assume_interactive_receiver()).clone().into() } } -pub struct MaybeInputsOwned(pub RustOpaque>); -impl From> for MaybeInputsOwned { - fn from(value: Arc) -> Self { +pub struct FfiMaybeInputsOwned(pub RustOpaque); +impl From for FfiMaybeInputsOwned { + fn from(value: payjoin_ffi::receive::v1::MaybeInputsOwned) -> Self { Self(RustOpaque::new(value)) } } -impl MaybeInputsOwned { +impl FfiMaybeInputsOwned { pub fn check_inputs_not_owned( ptr: Self, is_owned: impl Fn(Vec) -> DartFnFuture, - ) -> Result { + ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); ptr.0 .check_inputs_not_owned(|o| Ok(runtime.block_on(is_owned(o.clone())))) - .map(|e| e.into()) - .map_err(|e| e.into()) - } - pub(crate) fn _check_inputs_not_owned( - ptr: Self, - is_owned: impl Fn(Vec) ->Result, - ) -> Result { - ptr.0 - .check_inputs_not_owned(|o| is_owned(o.clone()).map_err(|e| e.into())) - .map(|e| e.into()) + .map(|e| (*e).clone().into()) .map_err(|e| e.into()) } } -pub struct MaybeMixedInputScripts( - pub RustOpaque>, +pub struct FfiMaybeMixedInputScripts( + pub RustOpaque, ); -impl From> for MaybeMixedInputScripts { - fn from(value: Arc) -> Self { +impl From for FfiMaybeMixedInputScripts { + fn from(value: payjoin_ffi::receive::v1::MaybeMixedInputScripts) -> Self { Self(RustOpaque::new(value)) } } -impl MaybeMixedInputScripts { - pub fn check_no_mixed_input_scripts(ptr: Self) -> Result { +impl FfiMaybeMixedInputScripts { + pub fn check_no_mixed_input_scripts(ptr: Self) -> Result { ptr.0 .clone() .check_no_mixed_input_scripts() - .map(|e| e.into()) + .map(|e| (*e).clone().into()) .map_err(|e| e.into()) } } -pub struct MaybeInputsSeen(pub RustOpaque>); -impl From> for MaybeInputsSeen { - fn from(value: Arc) -> Self { +pub struct FfiMaybeInputsSeen(pub RustOpaque); +impl From for FfiMaybeInputsSeen { + fn from(value: payjoin_ffi::receive::v1::MaybeInputsSeen) -> Self { Self(RustOpaque::new(value)) } } -impl MaybeInputsSeen { +impl FfiMaybeInputsSeen { pub fn check_no_inputs_seen_before( ptr: Self, is_known: impl Fn(OutPoint) -> DartFnFuture, - ) -> Result { + ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); ptr.0 .check_no_inputs_seen_before(|o| Ok(runtime.block_on(is_known(o.into())))) - .map(|e| e.into()) - .map_err(|e| e.into()) - } - pub(crate) fn _check_no_inputs_seen_before( - ptr: Self, - is_known: impl Fn(OutPoint) -> Result, - ) -> Result { - ptr.0 - .check_no_inputs_seen_before(|o| is_known(o.into()).map_err(|e| e.into())) - .map(|e| e.into()) + .map(|e| (*e).clone().into()) .map_err(|e| e.into()) } } -pub struct OutputsUnknown(pub RustOpaque>); -impl From> for OutputsUnknown { - fn from(value: Arc) -> Self { +pub struct FfiOutputsUnknown(pub RustOpaque); +impl From for FfiOutputsUnknown { + fn from(value: payjoin_ffi::receive::v1::OutputsUnknown) -> Self { Self(RustOpaque::new(value)) } } -impl OutputsUnknown { +impl FfiOutputsUnknown { pub fn identify_receiver_outputs( ptr: Self, is_receiver_output: impl Fn(Vec) -> DartFnFuture, - ) -> Result { + ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); ptr.0 - .identify_receiver_outputs(|o| { - Ok(runtime.block_on(is_receiver_output(o.clone()))) - }) - .map(|e| e.into()) - .map_err(|e| e.into()) - } - pub(crate) fn _identify_receiver_outputs( - ptr: Self, - is_receiver_output: impl Fn(Vec) -> Result, - ) -> Result { - ptr.0 - .identify_receiver_outputs(|o| { - is_receiver_output(o.clone()).map_err(|e|e.into()) - }) + .identify_receiver_outputs(|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 { +pub struct FfiProvisionalProposal(pub RustOpaque); +impl From for FfiProvisionalProposal { + fn from(value: payjoin_ffi::receive::v1::ProvisionalProposal) -> Self { Self(RustOpaque::new(value)) } } -impl ProvisionalProposal { - pub fn substitute_output_address(&self, address: String) -> Result<(), PayjoinError> { +impl FfiProvisionalProposal { + pub fn try_substitute_receiver_output( + &self, + generate_script: impl Fn() -> DartFnFuture>, + ) -> Result<(), PayjoinError> { + let runtime = tokio::runtime::Runtime::new().unwrap(); self.0 - .substitute_output_address(address) + .try_substitute_receiver_output(|| Ok(runtime.block_on(generate_script()))) .map_err(|e| e.into()) } pub fn contribute_witness_input( @@ -228,38 +190,38 @@ impl ProvisionalProposal { ptr: Self, process_psbt: impl Fn(String) -> DartFnFuture, min_feerate_sat_per_vb: Option, - ) -> Result { + ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); ptr.0 .finalize_proposal( |o| Ok(runtime.block_on(process_psbt(o.clone()))), min_feerate_sat_per_vb, ) - .map(|e| e.into()) + .map(|e| (*e).clone().into()) .map_err(|e| e.into()) } pub(crate) fn _finalize_proposal( ptr: Self, process_psbt: impl Fn(String) -> Result, min_feerate_sat_per_vb: Option, - ) -> Result { + ) -> Result { ptr.0 .finalize_proposal( |o| process_psbt(o.clone()).map_err(|e| e.into()), min_feerate_sat_per_vb, ) - .map(|e| e.into()) + .map(|e| (*e).clone().into()) .map_err(|e| e.into()) } } -pub struct PayjoinProposal(pub RustOpaque>); -impl From> for PayjoinProposal { - fn from(value: Arc) -> Self { +pub struct FfiPayjoinProposal(pub RustOpaque); +impl From for FfiPayjoinProposal { + fn from(value: payjoin_ffi::receive::v1::PayjoinProposal) -> Self { Self(RustOpaque::new(value)) } } -impl PayjoinProposal { +impl FfiPayjoinProposal { pub fn utxos_to_be_locked(&self) -> Vec { self.0 .utxos_to_be_locked() @@ -277,38 +239,51 @@ impl PayjoinProposal { self.0.psbt() } } -pub struct ClientResponse(pub RustOpaque>>); +pub struct FfiClientResponse( + pub RustOpaque>>, +); -impl From for ohttp::ClientResponse { - fn from(value: ClientResponse) -> Self { +impl From for ohttp::ClientResponse { + fn from(value: FfiClientResponse) -> Self { let mut data_guard = value.0.lock().unwrap(); Option::take(&mut *data_guard).expect("ClientResponse moved out of memory") } } -impl From for ClientResponse { +impl From for FfiClientResponse { fn from(value: ohttp::ClientResponse) -> Self { - Self(RustOpaque::new(Mutex::new(Some(value)))) + Self(RustOpaque::new(std::sync::Mutex::new(Some(value)))) } } #[derive(Clone, Debug)] -pub struct Enroller(pub RustOpaque); +pub struct FfiSessionInitializer(pub RustOpaque); -impl From for Enroller { - fn from(value: payjoin_ffi::receive::v2::Enroller) -> Self { +impl From for FfiSessionInitializer { + fn from(value: payjoin_ffi::receive::v2::SessionInitializer) -> Self { Self(RustOpaque::new(value)) } } -impl Enroller { - pub fn from_directory_config( - directory: Url, ohttp_keys: OhttpKeys, ohttp_relay:Url - ) -> Enroller { - payjoin_ffi::receive::v2::Enroller::from_directory_config( - (*directory.0).clone(), Arc::new(ohttp_keys.into()), (*ohttp_relay.0).clone() - ).into() +impl FfiSessionInitializer { + pub fn new( + address: String, + expire_after: Option, + network: crate::utils::types::Network, + directory: FfiUrl, + ohttp_keys: FfiOhttpKeys, + ohttp_relay: FfiUrl, + ) -> Result { + Ok(payjoin_ffi::receive::v2::SessionInitializer::new( + address, + expire_after, + network, + Arc::new((*directory.0).clone()), + (*ohttp_keys.0).clone().into(), + Arc::new((*ohttp_relay.0).clone()), + )? + .into()) } - pub fn extract_req(ptr: Self) -> Result<((Url, Vec), ClientResponse), PayjoinError> { + pub fn extract_req(ptr: Self) -> Result<((FfiUrl, Vec), FfiClientResponse), PayjoinError> { ptr.0 .extract_req() .map(|e| (((*e.0.url).clone().into(), e.0.body), e.1.into())) @@ -317,8 +292,8 @@ impl Enroller { pub fn process_res( &self, body: Vec, - ctx: ClientResponse, - ) -> Result { + ctx: FfiClientResponse, + ) -> Result { self.0 .process_res(body, ctx.into()) .map(|e| e.into()) @@ -326,18 +301,29 @@ impl Enroller { } } #[derive(Clone, Debug)] -pub struct Enrolled(pub RustOpaque>); +pub struct FfiActiveSession(pub RustOpaque); -impl From> for Enrolled { - fn from(value: Arc) -> Self { +impl From for FfiActiveSession { + fn from(value: payjoin_ffi::receive::v2::ActiveSession) -> Self { Self(RustOpaque::new(value)) } } -impl Enrolled { - pub fn fallback_target(&self) -> String { - self.0.fallback_target() +impl FfiActiveSession { + ///The per-session public key to use as an identifier + #[frb(sync)] + pub fn public_key(&self) -> String { + self.0.public_key() + } + + #[frb(sync)] + pub fn pj_url(ptr: Self) -> FfiUrl { + ptr.0.pj_url().into() } - pub fn extract_req(ptr: Self) -> Result<((Url, Vec), ClientResponse), PayjoinError> { + #[frb(sync)] + pub fn pj_uri_builder(ptr: Self) -> FfiPjUriBuilder { + ptr.0.pj_uri_builder().into() + } + pub fn extract_req(ptr: Self) -> Result<((FfiUrl, Vec), FfiClientResponse), PayjoinError> { ptr.0 .extract_req() .map(|e| (((*e.0.url).clone().into(), e.0.body), e.1.into())) @@ -346,8 +332,8 @@ impl Enrolled { pub fn process_res( &self, body: Vec, - ctx: ClientResponse, - ) -> Result, PayjoinError> { + ctx: FfiClientResponse, + ) -> Result, PayjoinError> { self.0 .process_res(body, ctx.into()) .map(|e| e.map(|o| o.into())) @@ -356,13 +342,13 @@ impl Enrolled { } #[derive(Clone)] -pub struct V2UncheckedProposal(pub RustOpaque); -impl From for V2UncheckedProposal { +pub struct FfiV2UncheckedProposal(pub RustOpaque); +impl From for FfiV2UncheckedProposal { fn from(value: payjoin_ffi::receive::v2::V2UncheckedProposal) -> Self { Self(RustOpaque::new(value)) } } -impl V2UncheckedProposal { +impl FfiV2UncheckedProposal { ///The Sender’s Original PSBT pub fn extract_tx_to_schedule_broadcast(&self) -> Vec { self.0.extract_tx_to_schedule_broadcast() @@ -378,13 +364,13 @@ impl V2UncheckedProposal { &self, min_fee_rate: Option, can_broadcast: impl Fn(Vec) -> DartFnFuture, - ) -> Result { + ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); self.0 .check_broadcast_suitability(min_fee_rate, |x| { Ok(runtime.block_on(can_broadcast(x.clone()))) }) - .map(|e| e.into()) + .map(|e| (*e).clone().into()) .map_err(|e| e.into()) } /// Call this method if the only way to initiate a Payjoin with this receiver @@ -392,113 +378,120 @@ impl V2UncheckedProposal { /// /// 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) -> V2MaybeInputsOwned { - self.0.clone().assume_interactive_receiver().into() + pub fn assume_interactive_receiver(&self) -> FfiV2MaybeInputsOwned { + (*self.0.clone().assume_interactive_receiver()) + .clone() + .into() } } #[derive(Clone)] -pub struct V2MaybeInputsOwned(pub RustOpaque>); +pub struct FfiV2MaybeInputsOwned(pub RustOpaque); -impl From> for V2MaybeInputsOwned { - fn from(value: Arc) -> Self { +impl From for FfiV2MaybeInputsOwned { + fn from(value: payjoin_ffi::receive::v2::V2MaybeInputsOwned) -> Self { Self(RustOpaque::new(value)) } } -impl V2MaybeInputsOwned { +impl FfiV2MaybeInputsOwned { ///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 { + ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); self.0 .check_inputs_not_owned(|o| Ok(runtime.block_on(is_owned(o.clone())))) - .map(|e| e.into()) + .map(|e| (*e).clone().into()) .map_err(|e| e.into()) } } -pub struct V2MaybeMixedInputScripts( - pub RustOpaque>, +pub struct FfiV2MaybeMixedInputScripts( + pub RustOpaque, ); -impl From> for V2MaybeMixedInputScripts { - fn from(value: Arc) -> Self { +impl From for FfiV2MaybeMixedInputScripts { + fn from(value: payjoin_ffi::receive::v2::V2MaybeMixedInputScripts) -> Self { Self(RustOpaque::new(value)) } } -impl V2MaybeMixedInputScripts { +impl FfiV2MaybeMixedInputScripts { /// 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 { + pub fn check_no_mixed_input_scripts(&self) -> Result { self.0 .clone() .check_no_mixed_input_scripts() - .map(|e| e.into()) + .map(|e| (*e).clone().into()) .map_err(|e| e.into()) } } -pub struct V2MaybeInputsSeen(pub RustOpaque>); +pub struct FfiV2MaybeInputsSeen(pub RustOpaque); -impl From> for V2MaybeInputsSeen { - fn from(value: Arc) -> Self { +impl From for FfiV2MaybeInputsSeen { + fn from(value: payjoin_ffi::receive::v2::V2MaybeInputsSeen) -> Self { Self(RustOpaque::new(value)) } } -impl V2MaybeInputsSeen { +impl FfiV2MaybeInputsSeen { /// 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 { + ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); self.0 .check_no_inputs_seen_before(|o| Ok(runtime.block_on(is_known(o.into())))) - .map(|e| e.into()) + .map(|e| (*e).clone().into()) .map_err(|e| e.into()) } } -pub struct V2OutputsUnknown(pub RustOpaque>); +pub struct FfiV2OutputsUnknown(pub RustOpaque); -impl From> for V2OutputsUnknown { - fn from(value: Arc) -> Self { +impl From for FfiV2OutputsUnknown { + fn from(value: payjoin_ffi::receive::v2::V2OutputsUnknown) -> Self { Self(RustOpaque::new(value)) } } -impl V2OutputsUnknown { +impl FfiV2OutputsUnknown { /// Find which outputs belong to the receiver pub fn identify_receiver_outputs( &self, is_receiver_output: impl Fn(Vec) -> DartFnFuture, - ) -> Result { + ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); self.0 - .identify_receiver_outputs(|o| { - Ok(runtime.block_on(is_receiver_output(o.clone()))) - }) + .identify_receiver_outputs(|o| Ok(runtime.block_on(is_receiver_output(o.clone())))) .map(|e| e.into()) .map_err(|e| e.into()) } } -pub struct V2ProvisionalProposal( - pub RustOpaque>, +pub struct FfiV2ProvisionalProposal( + pub RustOpaque, ); -impl From> for V2ProvisionalProposal { - fn from(value: Arc) -> Self { +impl From for FfiV2ProvisionalProposal { + fn from(value: payjoin_ffi::receive::v2::V2ProvisionalProposal) -> Self { Self(RustOpaque::new(value)) } } -impl V2ProvisionalProposal { - pub fn substitute_output_address(&self, address: String) -> Result<(), PayjoinError> { +impl FfiV2ProvisionalProposal { + pub fn is_output_substitution_disabled(&self) -> bool { + self.0.is_output_substitution_disabled() + } + pub fn try_substitute_receiver_output( + &self, + generate_script: impl Fn() -> DartFnFuture>, + ) -> Result<(), PayjoinError> { + let runtime = tokio::runtime::Runtime::new().unwrap(); self.0 - .substitute_output_address(address) + .try_substitute_receiver_output(|| Ok(runtime.block_on(generate_script()))) .map_err(|e| e.into()) } pub fn contribute_witness_input( @@ -542,7 +535,7 @@ impl V2ProvisionalProposal { &self, process_psbt: impl Fn(String) -> DartFnFuture, min_feerate_sat_per_vb: Option, - ) -> Result { + ) -> Result { let runtime = tokio::runtime::Runtime::new().unwrap(); self.0 .finalize_proposal( @@ -553,13 +546,13 @@ impl V2ProvisionalProposal { .map_err(|e| e.into()) } } -pub struct V2PayjoinProposal(pub RustOpaque>); -impl From> for V2PayjoinProposal { +pub struct FfiV2PayjoinProposal(pub RustOpaque>); +impl From> for FfiV2PayjoinProposal { fn from(value: Arc) -> Self { Self(RustOpaque::new(value)) } } -impl V2PayjoinProposal { +impl FfiV2PayjoinProposal { pub fn utxos_to_be_locked(&self) -> Vec { self.0 .utxos_to_be_locked() @@ -579,7 +572,9 @@ impl V2PayjoinProposal { pub fn extract_v1_req(&self) -> String { self.0.extract_v1_req() } - pub fn extract_v2_req(ptr: Self) -> Result<((Url, Vec), ClientResponse), PayjoinError> { + pub fn extract_v2_req( + ptr: Self, + ) -> Result<((FfiUrl, Vec), FfiClientResponse), PayjoinError> { ptr.0 .clone() .extract_v2_req() @@ -587,14 +582,13 @@ impl V2PayjoinProposal { .map_err(|e| e.into()) } - pub fn deserialize_res( + pub fn process_res( &self, res: Vec, - ohttp_context: ClientResponse, - ) -> Result, PayjoinError> { + ohttp_context: FfiClientResponse, + ) -> Result<(), PayjoinError> { self.0 - .deserialize_res(res, ohttp_context.into()) - .map(|e| e) + .process_res(res, ohttp_context.into()) .map_err(|e| e.into()) } } diff --git a/rust/src/api/send.rs b/rust/src/api/send.rs index 1c25dce..cea7ca2 100644 --- a/rust/src/api/send.rs +++ b/rust/src/api/send.rs @@ -1,45 +1,40 @@ -use crate::api::uri::Url; -use crate::{api::uri::Uri, frb_generated::RustOpaque}; +use crate::api::uri::{FfiPjUri, FfiUrl}; +use crate::frb_generated::RustOpaque; use std::sync::Arc; use super::receive::PayjoinError; -pub struct RequestBuilder(pub RustOpaque>); -impl From> for RequestBuilder { - fn from(value: Arc) -> Self { - Self(RustOpaque::new(value)) - } -} -impl From for RequestBuilder { +pub struct FfiRequestBuilder(pub RustOpaque); +impl From for FfiRequestBuilder { fn from(value: payjoin_ffi::send::v1::RequestBuilder) -> Self { - Self(RustOpaque::new(Arc::from(value))) + Self(RustOpaque::new(value)) } } -impl RequestBuilder { + +impl FfiRequestBuilder { pub fn from_psbt_and_uri( psbt_base64: String, - uri: Uri, - ) -> anyhow::Result { + pj_uri: FfiPjUri, + ) -> anyhow::Result { match payjoin_ffi::send::v1::RequestBuilder::from_psbt_and_uri( psbt_base64, - (*uri.0).clone(), + Arc::new((*pj_uri.0).clone()), ) { Ok(e) => Ok(e.into()), Err(e) => Err(e.into()), } } - pub fn always_disable_output_substitution(&self, disable: bool) -> RequestBuilder { - self.0 + pub fn always_disable_output_substitution(&self, disable: bool) -> FfiRequestBuilder { + (*self.0.clone().always_disable_output_substitution(disable)) .clone() - .always_disable_output_substitution(disable) .into() } pub fn build_recommended( &self, min_fee_rate: u64, - ) -> anyhow::Result { + ) -> anyhow::Result { match self.0.build_recommended(min_fee_rate) { - Ok(e) => Ok(e.into()), + Ok(e) => Ok((*e).clone().into()), Err(e) => Err(e.into()), } } @@ -49,42 +44,40 @@ impl RequestBuilder { change_index: Option, min_fee_rate: u64, clamp_fee_contribution: bool, - ) -> anyhow::Result { + ) -> anyhow::Result { match self.0.build_with_additional_fee( max_fee_contribution, change_index, min_fee_rate, clamp_fee_contribution, ) { - Ok(e) => Ok(e.into()), + Ok(e) => Ok((*e).clone().into()), Err(e) => Err(e.into()), } } - pub fn build_non_incentivizing(&self) -> anyhow::Result { - match self.0.clone().build_non_incentivizing() { - Ok(e) => Ok(e.into()), + pub fn build_non_incentivizing( + &self, + min_fee_rate: u64, + ) -> anyhow::Result { + match self.0.clone().build_non_incentivizing(min_fee_rate) { + Ok(e) => Ok((*e).clone().into()), Err(e) => Err(e.into()), } } } -pub struct RequestContext(pub RustOpaque>); -impl From for RequestContext { +pub struct FfiRequestContext(pub RustOpaque); +impl From for FfiRequestContext { fn from(value: payjoin_ffi::send::v1::RequestContext) -> Self { - Self(RustOpaque::new(Arc::from(value))) - } -} - -impl From> for RequestContext { - fn from(value: Arc) -> Self { Self(RustOpaque::new(value)) } } -impl From for payjoin_ffi::send::v1::RequestContext { - fn from(value: RequestContext) -> Self { - (**value.0).clone() + +impl From for payjoin_ffi::send::v1::RequestContext { + fn from(value: FfiRequestContext) -> Self { + (*value.0).clone() } } -impl RequestContext { +impl FfiRequestContext { pub fn extract_v1(ptr: Self) -> Result { match ptr.0.extract_v1() { Ok(e) => Ok(e.into()), @@ -93,9 +86,9 @@ impl RequestContext { } pub fn extract_v2( ptr: Self, - ohttp_proxy_url: Url, + ohttp_proxy_url: FfiUrl, ) -> Result { - match ptr.0.extract_v2((*ohttp_proxy_url.0).clone()) { + match ptr.0.extract_v2(Arc::new((*ohttp_proxy_url.0).clone())) { Ok(e) => Ok(e.into()), Err(e) => Err(e.into()), } @@ -104,8 +97,8 @@ impl RequestContext { #[derive(Clone)] pub struct RequestContextV1 { - pub request: (Url, Vec), - pub context_v1: ContextV1, + pub request: (FfiUrl, Vec), + pub context_v1: FfiContextV1, } impl From> for RequestContextV1 { @@ -115,7 +108,7 @@ impl From> for RequestContextV1 { (*value.request.url).clone().into(), value.request.body.clone(), ), - context_v1: value.context_v1.clone().into(), + context_v1: (*value.context_v1).clone().into(), } } } @@ -124,13 +117,13 @@ impl From for RequestContextV1 { fn from(value: payjoin_ffi::send::v1::RequestContextV1) -> Self { Self { request: ((*value.request.url).clone().into(), value.request.body), - context_v1: value.context_v1.into(), + context_v1: (*value.context_v1).clone().into(), } } } pub struct RequestContextV2 { - pub request: (Url, Vec), - pub context_v2: ContextV2, + pub request: (FfiUrl, Vec), + pub context_v2: FfiContextV2, } impl From for RequestContextV2 { @@ -142,19 +135,14 @@ impl From for RequestContextV2 { } } #[derive(Clone)] -pub struct ContextV1(pub RustOpaque>); -impl From> for ContextV1 { - fn from(value: Arc) -> Self { - Self(RustOpaque::new(value)) - } -} -impl From for ContextV1 { +pub struct FfiContextV1(pub RustOpaque); +impl From for FfiContextV1 { fn from(value: payjoin_ffi::send::v1::ContextV1) -> Self { - Self(RustOpaque::new(Arc::new(value))) + Self(RustOpaque::new(value)) } } -impl ContextV1 { +impl FfiContextV1 { pub fn process_response(&self, response: Vec) -> anyhow::Result { match self.0.process_response(response) { Ok(e) => Ok(e), @@ -163,13 +151,13 @@ impl ContextV1 { } } -pub struct ContextV2(pub RustOpaque>); -impl From> for ContextV2 { +pub struct FfiContextV2(pub RustOpaque>); +impl From> for FfiContextV2 { fn from(value: Arc) -> Self { Self(RustOpaque::new(value)) } } -impl ContextV2 { +impl FfiContextV2 { pub fn process_response( &self, response: Vec, diff --git a/rust/src/api/uri.rs b/rust/src/api/uri.rs index 3498b3c..b6ed300 100644 --- a/rust/src/api/uri.rs +++ b/rust/src/api/uri.rs @@ -1,49 +1,122 @@ use crate::frb_generated::RustOpaque; use crate::utils::error::PayjoinError; -use std::sync::Arc; +use flutter_rust_bridge::frb; -#[derive(Clone, Debug)] -pub struct Url(pub RustOpaque>); -impl From for Url { +#[derive(Debug, Clone)] +pub struct FfiUrl(pub RustOpaque); +impl From for FfiUrl { fn from(value: payjoin_ffi::uri::Url) -> Self { - Self(RustOpaque::new(Arc::new(value))) - } -} -impl From> for Url { - fn from(value: Arc) -> Self { Self(RustOpaque::new(value)) } } -impl Url { - pub fn from_str(url: String) -> anyhow::Result { + +impl FfiUrl { + pub fn from_str(url: String) -> anyhow::Result { match payjoin_ffi::uri::Url::from_str(url) { Ok(e) => Ok(e.into()), Err(e) => Err(e.into()), } } + #[frb(sync)] pub fn query(&self) -> Option { self.0.query() } + #[frb(sync)] pub fn as_string(&self) -> String { self.0.as_string() } } +#[derive(Clone)] +pub struct FfiPjUri(pub RustOpaque); + +impl From for FfiPjUri { + fn from(value: payjoin_ffi::uri::PjUri) -> Self { + Self(RustOpaque::new(value)) + } +} + +impl FfiPjUri { + #[frb(sync)] + pub fn address(&self) -> String { + self.0.clone().address() + } + /// Number of btc requested as payment + #[frb(sync)] + pub fn amount(&self) -> Option { + self.0.clone().amount() + } + #[frb(sync)] + pub fn as_string(&self) -> String { + self.0.clone().as_string() + } +} #[derive(Clone)] -pub struct Uri(pub RustOpaque>); -impl From for Uri { - fn from(value: payjoin_ffi::uri::Uri) -> Self { - Self(RustOpaque::new(Arc::new(value))) +pub struct FfiPjUriBuilder { + pub internal: RustOpaque, +} + +impl From for FfiPjUriBuilder { + fn from(value: payjoin_ffi::uri::PjUriBuilder) -> Self { + Self { + internal: RustOpaque::new(value), + } } } -impl From> for Uri { - fn from(value: Arc) -> Self { + +impl FfiPjUriBuilder { + pub fn create( + address: String, + pj: FfiUrl, + ohttp_keys: Option, + expiry: Option, + ) -> Result { + payjoin_ffi::uri::PjUriBuilder::new( + address, + (*pj.0).clone(), + ohttp_keys.map(|e| (*e.0).clone().into()), + expiry, + ) + .map_err(|e| e.into()) + .map(|e| e.into()) + } + ///Accepts the amount you want to receive in sats and sets it in btc. + #[frb(sync)] + pub fn amount(&self, amount: u64) -> Self { + self.internal.amount(amount).into() + } + #[frb(sync)] + /// Set the message. + pub fn message(&self, message: String) -> Self { + self.internal.message(message).into() + } + #[frb(sync)] + ///Set the label. + pub fn label(&self, label: String) -> Self { + self.internal.label(label).into() + } + ///Set whether payjoin output substitution is allowed. + #[frb(sync)] + pub fn pjos(&self, pjos: bool) -> Self { + self.internal.pjos(pjos).into() + } + #[frb(sync)] + ///Constructs a Uri with PayjoinParams from the parameters set in the builder. + pub fn build(&self) -> FfiPjUri { + self.internal.build().into() + } +} + +#[derive(Clone)] +pub struct FfiUri(pub RustOpaque); +impl From for FfiUri { + fn from(value: payjoin_ffi::uri::Uri) -> Self { Self(RustOpaque::new(value)) } } -impl Uri { - pub fn from_str(uri: String) -> anyhow::Result { +impl FfiUri { + pub fn from_str(uri: String) -> anyhow::Result { match payjoin_ffi::uri::Uri::from_str(uri) { Ok(e) => Ok(e.into()), Err(e) => Err(PayjoinError::PjParseError { @@ -51,30 +124,76 @@ impl Uri { }), } } + #[frb(sync)] pub fn address(&self) -> String { self.0.address() } + #[frb(sync)] ///Gets the amount in btc. pub fn amount(&self) -> Option { self.0.amount() } + #[frb(sync)] + pub fn as_string(&self) -> String { + self.0.as_string() + } + #[frb(sync)] + pub fn check_pj_supported(&self) -> Result { + self.0 + .check_pj_supported() + .map(|e| e.into()) + .map_err(|e| e.into()) + } } -pub struct OhttpKeys(pub RustOpaque); +pub struct FfiOhttpKeys(pub RustOpaque); -impl From for payjoin_ffi::types::OhttpKeys{ - fn from(value: OhttpKeys) -> Self { +impl From for payjoin_ffi::types::OhttpKeys { + fn from(value: FfiOhttpKeys) -> Self { (*value.0).clone() } } -impl From for OhttpKeys{ - fn from(value:payjoin_ffi::types:: OhttpKeys) -> Self { - Self(RustOpaque::new(value)) +impl From for FfiOhttpKeys { + fn from(value: payjoin_ffi::types::OhttpKeys) -> Self { + Self(RustOpaque::new(value)) } } -impl OhttpKeys { +impl FfiOhttpKeys { pub fn decode(bytes: Vec) -> Result { - payjoin_ffi::types::OhttpKeys::decode(bytes).map(|e| e.into()).map_err(|e| e.into()) + payjoin_ffi::types::OhttpKeys::decode(bytes) + .map(|e| e.into()) + .map_err(|e| e.into()) + } +} +#[cfg(test)] +mod tests { + use crate::api::uri::{FfiPjUriBuilder, FfiUrl}; + + #[test] + fn test_ffi_builder() { + let https = "https://example.com/"; + let onion = "http://vjdpwgybvubne5hda6v4c5iaeeevhge6jvo3w2cl6eocbwwvwxp7b7qd.onion/"; + let base58 = "12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"; + let bech32_upper = "TB1Q6D3A2W975YNY0ASUVD9A67NER4NKS58FF0Q8G4"; + let bech32_lower = "tb1q6d3a2w975yny0asuvd9a67ner4nks58ff0q8g4"; + + for address in vec![base58, bech32_upper, bech32_lower] { + for pj in vec![https, onion] { + let builder = FfiPjUriBuilder::new( + address.to_string(), + FfiUrl::from_str(pj.to_string()).unwrap(), + None, + ) + .unwrap(); + let uri = builder + .amount(1) + .message("message".to_string()) + .pjos(true) + .label("label".to_string()) + .build(); + // assert_eq!(uri.amount(), Some(bitcoin::Amount::ONE_BTC.to_btc())); + print!("\n {}", uri.as_string()); + } + } } - } diff --git a/rust/src/frb_generated.io.rs b/rust/src/frb_generated.io.rs index 027613b..b6d026a 100644 --- a/rust/src/frb_generated.io.rs +++ b/rust/src/frb_generated.io.rs @@ -1,13 +1,12 @@ // This file is automatically generated, so please do not edit it. -// Generated by `flutter_rust_bridge`@ 2.0.0-dev.31. +// Generated by `flutter_rust_bridge`@ 2.0.0. // Section: imports use super::*; -use crate::api::receive::*; -use crate::api::send::*; +use crate::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::transform_result_dco; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -16,6 +15,14 @@ flutter_rust_bridge::frb_generated_boilerplate_io!(); // Section: dart2rust +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) -> flutter_rust_bridge::for_generated::anyhow::Error { + unimplemented!() + } +} 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 { @@ -40,147 +47,163 @@ impl CstDecode> vec.into_iter().collect() } } -impl CstDecode>> for usize { +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode>> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom> { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode>>> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom>> { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { + fn cst_decode(self) -> RustOpaqueNom { unsafe { decode_rust_opaque_nom(self as _) } } } -impl CstDecode> for usize { +impl CstDecode> for usize { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> RustOpaqueNom { + 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 _) } } } @@ -191,124 +214,224 @@ impl CstDecode for *mut wire_cst_list_prim_u_8_strict { String::from_utf8(vec).unwrap() } } -impl CstDecode for *mut wire_cst_client_response { +impl CstDecode for *mut f64 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> f64 { + unsafe { *flutter_rust_bridge::for_generated::box_from_leak_ptr(self) } + } +} +impl CstDecode for *mut wire_cst_ffi_active_session { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::receive::ClientResponse { + fn cst_decode(self) -> crate::api::receive::FfiActiveSession { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_context_v_1 { +impl CstDecode for *mut wire_cst_ffi_client_response { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::send::ContextV1 { + fn cst_decode(self) -> crate::api::receive::FfiClientResponse { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_context_v_2 { +impl CstDecode for *mut wire_cst_ffi_context_v_1 { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::send::ContextV2 { + fn cst_decode(self) -> crate::api::send::FfiContextV1 { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_enrolled { +impl CstDecode for *mut wire_cst_ffi_context_v_2 { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::receive::Enrolled { + fn cst_decode(self) -> crate::api::send::FfiContextV2 { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_enroller { +impl CstDecode for *mut wire_cst_ffi_maybe_inputs_owned { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::receive::Enroller { + fn cst_decode(self) -> crate::api::receive::FfiMaybeInputsOwned { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut f64 { +impl CstDecode for *mut wire_cst_ffi_maybe_inputs_seen { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> f64 { - unsafe { *flutter_rust_bridge::for_generated::box_from_leak_ptr(self) } + fn cst_decode(self) -> crate::api::receive::FfiMaybeInputsSeen { + 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 { +impl CstDecode + for *mut wire_cst_ffi_maybe_mixed_input_scripts +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::utils::types::Headers { + fn cst_decode(self) -> crate::api::receive::FfiMaybeMixedInputScripts { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_ffi_ohttp_keys { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::uri::FfiOhttpKeys { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_ffi_outputs_unknown { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiOutputsUnknown { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_ffi_payjoin_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiPayjoinProposal { + 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_owned { +impl CstDecode for *mut wire_cst_ffi_pj_uri { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::receive::MaybeInputsOwned { + fn cst_decode(self) -> crate::api::uri::FfiPjUri { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_maybe_inputs_seen { +impl CstDecode for *mut wire_cst_ffi_pj_uri_builder { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::receive::MaybeInputsSeen { + fn cst_decode(self) -> crate::api::uri::FfiPjUriBuilder { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode - for *mut wire_cst_maybe_mixed_input_scripts +impl CstDecode + for *mut wire_cst_ffi_provisional_proposal { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::receive::MaybeMixedInputScripts { + fn cst_decode(self) -> crate::api::receive::FfiProvisionalProposal { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_ohttp_keys { +impl CstDecode for *mut wire_cst_ffi_request_builder { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::uri::OhttpKeys { + fn cst_decode(self) -> crate::api::send::FfiRequestBuilder { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_out_point { +impl CstDecode for *mut wire_cst_ffi_request_context { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::utils::types::OutPoint { + fn cst_decode(self) -> crate::api::send::FfiRequestContext { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_outputs_unknown { +impl CstDecode + for *mut wire_cst_ffi_session_initializer +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiSessionInitializer { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_ffi_unchecked_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiUncheckedProposal { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_ffi_uri { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::uri::FfiUri { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_ffi_url { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::uri::FfiUrl { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode + for *mut wire_cst_ffi_v_2_maybe_inputs_owned +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiV2MaybeInputsOwned { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode + for *mut wire_cst_ffi_v_2_maybe_inputs_seen +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiV2MaybeInputsSeen { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode + for *mut wire_cst_ffi_v_2_maybe_mixed_input_scripts +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiV2MaybeMixedInputScripts { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode for *mut wire_cst_ffi_v_2_outputs_unknown { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::receive::OutputsUnknown { + fn cst_decode(self) -> crate::api::receive::FfiV2OutputsUnknown { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_payjoin_proposal { +impl CstDecode + for *mut wire_cst_ffi_v_2_payjoin_proposal +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiV2PayjoinProposal { + let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; + CstDecode::::cst_decode(*wrap).into() + } +} +impl CstDecode + for *mut wire_cst_ffi_v_2_provisional_proposal +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::receive::PayjoinProposal { + fn cst_decode(self) -> crate::api::receive::FfiV2ProvisionalProposal { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_provisional_proposal { +impl CstDecode + for *mut wire_cst_ffi_v_2_unchecked_proposal +{ // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::receive::ProvisionalProposal { + fn cst_decode(self) -> crate::api::receive::FfiV2UncheckedProposal { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_request_builder { +impl CstDecode for *mut wire_cst_headers { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::send::RequestBuilder { + fn cst_decode(self) -> crate::utils::types::Headers { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } -impl CstDecode for *mut wire_cst_request_context { +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::send::RequestContext { + fn cst_decode(self) -> crate::utils::types::OutPoint { let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + CstDecode::::cst_decode(*wrap).into() } } impl CstDecode for *mut wire_cst_tx_out { @@ -330,108 +453,170 @@ impl CstDecode for *mut u8 { unsafe { *flutter_rust_bridge::for_generated::box_from_leak_ptr(self) } } } -impl CstDecode for *mut wire_cst_unchecked_proposal { +impl CstDecode for wire_cst_ffi_active_session { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::receive::UncheckedProposal { - let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + fn cst_decode(self) -> crate::api::receive::FfiActiveSession { + crate::api::receive::FfiActiveSession(self.field0.cst_decode()) } } -impl CstDecode for *mut wire_cst_uri { +impl CstDecode for wire_cst_ffi_client_response { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::uri::Uri { - let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + fn cst_decode(self) -> crate::api::receive::FfiClientResponse { + crate::api::receive::FfiClientResponse(self.field0.cst_decode()) } } -impl CstDecode for *mut wire_cst_url { +impl CstDecode for wire_cst_ffi_context_v_1 { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::uri::Url { - let wrap = unsafe { flutter_rust_bridge::for_generated::box_from_leak_ptr(self) }; - CstDecode::::cst_decode(*wrap).into() + fn cst_decode(self) -> crate::api::send::FfiContextV1 { + crate::api::send::FfiContextV1(self.field0.cst_decode()) } } -impl CstDecode for *mut wire_cst_v_2_maybe_inputs_owned { +impl CstDecode for wire_cst_ffi_context_v_2 { // 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() + fn cst_decode(self) -> crate::api::send::FfiContextV2 { + crate::api::send::FfiContextV2(self.field0.cst_decode()) } } -impl CstDecode for *mut wire_cst_v_2_maybe_inputs_seen { +impl CstDecode for wire_cst_ffi_maybe_inputs_owned { // 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() + fn cst_decode(self) -> crate::api::receive::FfiMaybeInputsOwned { + crate::api::receive::FfiMaybeInputsOwned(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_ffi_maybe_inputs_seen { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiMaybeInputsSeen { + crate::api::receive::FfiMaybeInputsSeen(self.field0.cst_decode()) } } -impl CstDecode - for *mut wire_cst_v_2_maybe_mixed_input_scripts +impl CstDecode + for wire_cst_ffi_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() + fn cst_decode(self) -> crate::api::receive::FfiMaybeMixedInputScripts { + crate::api::receive::FfiMaybeMixedInputScripts(self.field0.cst_decode()) } } -impl CstDecode for *mut wire_cst_v_2_outputs_unknown { +impl CstDecode for wire_cst_ffi_ohttp_keys { // 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() + fn cst_decode(self) -> crate::api::uri::FfiOhttpKeys { + crate::api::uri::FfiOhttpKeys(self.field0.cst_decode()) } } -impl CstDecode for *mut wire_cst_v_2_payjoin_proposal { +impl CstDecode for wire_cst_ffi_outputs_unknown { // 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() + fn cst_decode(self) -> crate::api::receive::FfiOutputsUnknown { + crate::api::receive::FfiOutputsUnknown(self.field0.cst_decode()) } } -impl CstDecode - for *mut wire_cst_v_2_provisional_proposal -{ +impl CstDecode for wire_cst_ffi_payjoin_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() + fn cst_decode(self) -> crate::api::receive::FfiPayjoinProposal { + crate::api::receive::FfiPayjoinProposal(self.field0.cst_decode()) } } -impl CstDecode for *mut wire_cst_v_2_unchecked_proposal { +impl CstDecode for wire_cst_ffi_pj_uri { // 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() + fn cst_decode(self) -> crate::api::uri::FfiPjUri { + crate::api::uri::FfiPjUri(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_ffi_pj_uri_builder { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::uri::FfiPjUriBuilder { + crate::api::uri::FfiPjUriBuilder { + internal: self.internal.cst_decode(), + } + } +} +impl CstDecode for wire_cst_ffi_provisional_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiProvisionalProposal { + crate::api::receive::FfiProvisionalProposal(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_ffi_request_builder { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::send::FfiRequestBuilder { + crate::api::send::FfiRequestBuilder(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_ffi_request_context { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::send::FfiRequestContext { + crate::api::send::FfiRequestContext(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_ffi_session_initializer { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiSessionInitializer { + crate::api::receive::FfiSessionInitializer(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_ffi_unchecked_proposal { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiUncheckedProposal { + crate::api::receive::FfiUncheckedProposal(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_ffi_uri { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::uri::FfiUri { + crate::api::uri::FfiUri(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_ffi_url { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::uri::FfiUrl { + crate::api::uri::FfiUrl(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_ffi_v_2_maybe_inputs_owned { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiV2MaybeInputsOwned { + crate::api::receive::FfiV2MaybeInputsOwned(self.field0.cst_decode()) + } +} +impl CstDecode for wire_cst_ffi_v_2_maybe_inputs_seen { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::api::receive::FfiV2MaybeInputsSeen { + crate::api::receive::FfiV2MaybeInputsSeen(self.field0.cst_decode()) } } -impl CstDecode for wire_cst_client_response { +impl CstDecode + for wire_cst_ffi_v_2_maybe_mixed_input_scripts +{ // 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()) + fn cst_decode(self) -> crate::api::receive::FfiV2MaybeMixedInputScripts { + crate::api::receive::FfiV2MaybeMixedInputScripts(self.field0.cst_decode()) } } -impl CstDecode for wire_cst_context_v_1 { +impl CstDecode for wire_cst_ffi_v_2_outputs_unknown { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::send::ContextV1 { - crate::api::send::ContextV1(self.field0.cst_decode()) + fn cst_decode(self) -> crate::api::receive::FfiV2OutputsUnknown { + crate::api::receive::FfiV2OutputsUnknown(self.field0.cst_decode()) } } -impl CstDecode for wire_cst_context_v_2 { +impl CstDecode for wire_cst_ffi_v_2_payjoin_proposal { // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::send::ContextV2 { - crate::api::send::ContextV2(self.field0.cst_decode()) + fn cst_decode(self) -> crate::api::receive::FfiV2PayjoinProposal { + crate::api::receive::FfiV2PayjoinProposal(self.field0.cst_decode()) } } -impl CstDecode for wire_cst_enrolled { +impl CstDecode + for wire_cst_ffi_v_2_provisional_proposal +{ // 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()) + fn cst_decode(self) -> crate::api::receive::FfiV2ProvisionalProposal { + crate::api::receive::FfiV2ProvisionalProposal(self.field0.cst_decode()) } } -impl CstDecode for wire_cst_enroller { +impl CstDecode + for wire_cst_ffi_v_2_unchecked_proposal +{ // 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()) + fn cst_decode(self) -> crate::api::receive::FfiV2UncheckedProposal { + crate::api::receive::FfiV2UncheckedProposal(self.field0.cst_decode()) } } impl CstDecode for wire_cst_headers { @@ -501,30 +686,6 @@ impl CstDecode> 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_ohttp_keys { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::uri::OhttpKeys { - crate::api::uri::OhttpKeys(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::utils::types::OutPoint { @@ -534,12 +695,6 @@ impl CstDecode for wire_cst_out_point { } } } -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 { @@ -646,34 +801,36 @@ impl CstDecode for wire_cst_payjoin_error { message: ans.message.cst_decode(), } } + 17 => { + let ans = unsafe { self.kind.IoError }; + crate::utils::error::PayjoinError::IoError { + message: ans.message.cst_decode(), + } + } _ => unreachable!(), } } } -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 { +impl CstDecode<(crate::api::uri::FfiUrl, Vec)> + for wire_cst_record_ffi_url_list_prim_u_8_strict +{ // 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()) + fn cst_decode(self) -> (crate::api::uri::FfiUrl, Vec) { + (self.field0.cst_decode(), self.field1.cst_decode()) } } impl CstDecode<( - (crate::api::uri::Url, Vec), - crate::api::receive::ClientResponse, - )> for wire_cst_record_record_url_list_prim_u_8_strict_client_response + (crate::api::uri::FfiUrl, Vec), + crate::api::receive::FfiClientResponse, + )> for wire_cst_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode( self, ) -> ( - (crate::api::uri::Url, Vec), - crate::api::receive::ClientResponse, + (crate::api::uri::FfiUrl, Vec), + crate::api::receive::FfiClientResponse, ) { (self.field0.cst_decode(), self.field1.cst_decode()) } @@ -690,24 +847,6 @@ impl CstDecode<(u64, crate::utils::types::OutPoint)> for wire_cst_record_u_64_ou (self.field0.cst_decode(), self.field1.cst_decode()) } } -impl CstDecode<(crate::api::uri::Url, Vec)> for wire_cst_record_url_list_prim_u_8_strict { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> (crate::api::uri::Url, Vec) { - (self.field0.cst_decode(), self.field1.cst_decode()) - } -} -impl CstDecode for wire_cst_request_builder { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::send::RequestBuilder { - crate::api::send::RequestBuilder(self.field0.cst_decode()) - } -} -impl CstDecode for wire_cst_request_context { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::send::RequestContext { - crate::api::send::RequestContext(self.field0.cst_decode()) - } -} impl CstDecode for wire_cst_request_context_v_1 { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> crate::api::send::RequestContextV1 { @@ -735,635 +874,608 @@ impl CstDecode for wire_cst_tx_out { } } } -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 { - crate::api::receive::UncheckedProposal(self.field0.cst_decode()) - } -} -impl CstDecode for wire_cst_uri { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::uri::Uri { - crate::api::uri::Uri(self.field0.cst_decode()) - } -} -impl CstDecode for wire_cst_url { - // Codec=Cst (C-struct based), see doc to use other codecs - fn cst_decode(self) -> crate::api::uri::Url { - crate::api::uri::Url(self.field0.cst_decode()) - } -} -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 NewWithNullPtr for wire_cst_ffi_active_session { + fn new_with_null_ptr() -> Self { + Self { + field0: Default::default(), + } } } -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 Default for wire_cst_ffi_active_session { + fn default() -> Self { + Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_client_response { +impl NewWithNullPtr for wire_cst_ffi_client_response { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_client_response { +impl Default for wire_cst_ffi_client_response { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_context_v_1 { +impl NewWithNullPtr for wire_cst_ffi_context_v_1 { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_context_v_1 { +impl Default for wire_cst_ffi_context_v_1 { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_context_v_2 { +impl NewWithNullPtr for wire_cst_ffi_context_v_2 { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_context_v_2 { +impl Default for wire_cst_ffi_context_v_2 { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_enrolled { +impl NewWithNullPtr for wire_cst_ffi_maybe_inputs_owned { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_enrolled { +impl Default for wire_cst_ffi_maybe_inputs_owned { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_enroller { +impl NewWithNullPtr for wire_cst_ffi_maybe_inputs_seen { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_enroller { +impl Default for wire_cst_ffi_maybe_inputs_seen { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_headers { +impl NewWithNullPtr for wire_cst_ffi_maybe_mixed_input_scripts { fn new_with_null_ptr() -> Self { Self { - map: core::ptr::null_mut(), + field0: Default::default(), } } } -impl Default for wire_cst_headers { +impl Default for wire_cst_ffi_maybe_mixed_input_scripts { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_maybe_inputs_owned { +impl NewWithNullPtr for wire_cst_ffi_ohttp_keys { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_maybe_inputs_owned { +impl Default for wire_cst_ffi_ohttp_keys { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_maybe_inputs_seen { +impl NewWithNullPtr for wire_cst_ffi_outputs_unknown { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_maybe_inputs_seen { +impl Default for wire_cst_ffi_outputs_unknown { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_maybe_mixed_input_scripts { +impl NewWithNullPtr for wire_cst_ffi_payjoin_proposal { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_maybe_mixed_input_scripts { +impl Default for wire_cst_ffi_payjoin_proposal { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_ohttp_keys { +impl NewWithNullPtr for wire_cst_ffi_pj_uri { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_ohttp_keys { +impl Default for wire_cst_ffi_pj_uri { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_out_point { +impl NewWithNullPtr for wire_cst_ffi_pj_uri_builder { fn new_with_null_ptr() -> Self { Self { - txid: core::ptr::null_mut(), - vout: Default::default(), + internal: Default::default(), } } } -impl Default for wire_cst_out_point { +impl Default for wire_cst_ffi_pj_uri_builder { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_outputs_unknown { +impl NewWithNullPtr for wire_cst_ffi_provisional_proposal { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_outputs_unknown { +impl Default for wire_cst_ffi_provisional_proposal { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_payjoin_error { +impl NewWithNullPtr for wire_cst_ffi_request_builder { fn new_with_null_ptr() -> Self { Self { - tag: -1, - kind: PayjoinErrorKind { nil__: () }, + field0: Default::default(), } } } -impl Default for wire_cst_payjoin_error { +impl Default for wire_cst_ffi_request_builder { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_payjoin_proposal { +impl NewWithNullPtr for wire_cst_ffi_request_context { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_payjoin_proposal { +impl Default for wire_cst_ffi_request_context { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_provisional_proposal { +impl NewWithNullPtr for wire_cst_ffi_session_initializer { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_provisional_proposal { +impl Default for wire_cst_ffi_session_initializer { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_record_record_url_list_prim_u_8_strict_client_response { +impl NewWithNullPtr for wire_cst_ffi_unchecked_proposal { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), - field1: Default::default(), } } } -impl Default for wire_cst_record_record_url_list_prim_u_8_strict_client_response { +impl Default for wire_cst_ffi_unchecked_proposal { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_record_string_string { +impl NewWithNullPtr for wire_cst_ffi_uri { fn new_with_null_ptr() -> Self { Self { - field0: core::ptr::null_mut(), - field1: core::ptr::null_mut(), + field0: Default::default(), } } } -impl Default for wire_cst_record_string_string { +impl Default for wire_cst_ffi_uri { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_record_u_64_out_point { +impl NewWithNullPtr for wire_cst_ffi_url { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), - field1: Default::default(), } } } -impl Default for wire_cst_record_u_64_out_point { +impl Default for wire_cst_ffi_url { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_record_url_list_prim_u_8_strict { +impl NewWithNullPtr for wire_cst_ffi_v_2_maybe_inputs_owned { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), - field1: core::ptr::null_mut(), } } } -impl Default for wire_cst_record_url_list_prim_u_8_strict { +impl Default for wire_cst_ffi_v_2_maybe_inputs_owned { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_request_builder { +impl NewWithNullPtr for wire_cst_ffi_v_2_maybe_inputs_seen { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_request_builder { +impl Default for wire_cst_ffi_v_2_maybe_inputs_seen { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_request_context { +impl NewWithNullPtr for wire_cst_ffi_v_2_maybe_mixed_input_scripts { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_request_context { +impl Default for wire_cst_ffi_v_2_maybe_mixed_input_scripts { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_request_context_v_1 { +impl NewWithNullPtr for wire_cst_ffi_v_2_outputs_unknown { fn new_with_null_ptr() -> Self { Self { - request: Default::default(), - context_v1: Default::default(), + field0: Default::default(), } } } -impl Default for wire_cst_request_context_v_1 { +impl Default for wire_cst_ffi_v_2_outputs_unknown { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_request_context_v_2 { +impl NewWithNullPtr for wire_cst_ffi_v_2_payjoin_proposal { fn new_with_null_ptr() -> Self { Self { - request: Default::default(), - context_v2: Default::default(), + field0: Default::default(), } } } -impl Default for wire_cst_request_context_v_2 { +impl Default for wire_cst_ffi_v_2_payjoin_proposal { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_tx_out { +impl NewWithNullPtr for wire_cst_ffi_v_2_provisional_proposal { fn new_with_null_ptr() -> Self { Self { - value: Default::default(), - script_pubkey: core::ptr::null_mut(), + field0: Default::default(), } } } -impl Default for wire_cst_tx_out { +impl Default for wire_cst_ffi_v_2_provisional_proposal { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_unchecked_proposal { +impl NewWithNullPtr for wire_cst_ffi_v_2_unchecked_proposal { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), } } } -impl Default for wire_cst_unchecked_proposal { +impl Default for wire_cst_ffi_v_2_unchecked_proposal { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_uri { +impl NewWithNullPtr for wire_cst_headers { fn new_with_null_ptr() -> Self { Self { - field0: Default::default(), + map: core::ptr::null_mut(), } } } -impl Default for wire_cst_uri { +impl Default for wire_cst_headers { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_url { +impl NewWithNullPtr for wire_cst_out_point { fn new_with_null_ptr() -> Self { Self { - field0: Default::default(), + txid: core::ptr::null_mut(), + vout: Default::default(), } } } -impl Default for wire_cst_url { +impl Default for wire_cst_out_point { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_v_2_maybe_inputs_owned { +impl NewWithNullPtr for wire_cst_payjoin_error { fn new_with_null_ptr() -> Self { Self { - field0: Default::default(), + tag: -1, + kind: PayjoinErrorKind { nil__: () }, } } } -impl Default for wire_cst_v_2_maybe_inputs_owned { +impl Default for wire_cst_payjoin_error { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_v_2_maybe_inputs_seen { +impl NewWithNullPtr for wire_cst_record_ffi_url_list_prim_u_8_strict { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), + field1: core::ptr::null_mut(), } } } -impl Default for wire_cst_v_2_maybe_inputs_seen { +impl Default for wire_cst_record_ffi_url_list_prim_u_8_strict { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_v_2_maybe_mixed_input_scripts { +impl NewWithNullPtr for wire_cst_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response { fn new_with_null_ptr() -> Self { Self { field0: Default::default(), + field1: Default::default(), } } } -impl Default for wire_cst_v_2_maybe_mixed_input_scripts { +impl Default for wire_cst_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_v_2_outputs_unknown { +impl NewWithNullPtr for wire_cst_record_string_string { fn new_with_null_ptr() -> Self { Self { - field0: Default::default(), + field0: core::ptr::null_mut(), + field1: core::ptr::null_mut(), } } } -impl Default for wire_cst_v_2_outputs_unknown { +impl Default for wire_cst_record_string_string { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_v_2_payjoin_proposal { +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_context_v_1 { + fn new_with_null_ptr() -> Self { + Self { + request: Default::default(), + context_v1: Default::default(), } } } -impl Default for wire_cst_v_2_payjoin_proposal { +impl Default for wire_cst_request_context_v_1 { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_v_2_provisional_proposal { +impl NewWithNullPtr for wire_cst_request_context_v_2 { fn new_with_null_ptr() -> Self { Self { - field0: Default::default(), + request: Default::default(), + context_v2: Default::default(), } } } -impl Default for wire_cst_v_2_provisional_proposal { +impl Default for wire_cst_request_context_v_2 { fn default() -> Self { Self::new_with_null_ptr() } } -impl NewWithNullPtr for wire_cst_v_2_unchecked_proposal { +impl NewWithNullPtr for wire_cst_tx_out { fn new_with_null_ptr() -> Self { Self { - field0: Default::default(), + value: Default::default(), + script_pubkey: core::ptr::null_mut(), } } } -impl Default for wire_cst_v_2_unchecked_proposal { +impl Default for wire_cst_tx_out { fn default() -> Self { Self::new_with_null_ptr() } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_enrolled_extract_req( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__io__fetch_ohttp_keys( port_: i64, - ptr: *mut wire_cst_enrolled, + ohttp_relay: *mut wire_cst_ffi_url, + payjoin_directory: *mut wire_cst_ffi_url, + cert_der: *mut wire_cst_list_prim_u_8_loose, ) { - wire_enrolled_extract_req_impl(port_, ptr) + wire__crate__api__io__fetch_ohttp_keys_impl(port_, ohttp_relay, payjoin_directory, cert_der) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_enrolled_fallback_target( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_extract_req( port_: i64, - that: *mut wire_cst_enrolled, + ptr: *mut wire_cst_ffi_active_session, ) { - wire_enrolled_fallback_target_impl(port_, that) + wire__crate__api__receive__ffi_active_session_extract_req_impl(port_, ptr) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_enrolled_process_res( - port_: i64, - that: *mut wire_cst_enrolled, - body: *mut wire_cst_list_prim_u_8_loose, - ctx: *mut wire_cst_client_response, -) { - wire_enrolled_process_res_impl(port_, that, body, ctx) +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_pj_uri_builder( + ptr: *mut wire_cst_ffi_active_session, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__receive__ffi_active_session_pj_uri_builder_impl(ptr) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_enroller_extract_req( - port_: i64, - ptr: *mut wire_cst_enroller, -) { - wire_enroller_extract_req_impl(port_, ptr) +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_pj_url( + ptr: *mut wire_cst_ffi_active_session, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__receive__ffi_active_session_pj_url_impl(ptr) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_enroller_from_directory_config( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_process_res( port_: i64, - directory: *mut wire_cst_url, - ohttp_keys: *mut wire_cst_ohttp_keys, - ohttp_relay: *mut wire_cst_url, + that: *mut wire_cst_ffi_active_session, + body: *mut wire_cst_list_prim_u_8_loose, + ctx: *mut wire_cst_ffi_client_response, ) { - wire_enroller_from_directory_config_impl(port_, directory, ohttp_keys, ohttp_relay) + wire__crate__api__receive__ffi_active_session_process_res_impl(port_, that, body, ctx) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_enroller_process_res( - port_: i64, - that: *mut wire_cst_enroller, - body: *mut wire_cst_list_prim_u_8_loose, - ctx: *mut wire_cst_client_response, -) { - wire_enroller_process_res_impl(port_, that, body, ctx) +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_active_session_public_key( + that: *mut wire_cst_ffi_active_session, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__receive__ffi_active_session_public_key_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_maybe_inputs_owned_check_inputs_not_owned( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_owned( port_: i64, - ptr: *mut wire_cst_maybe_inputs_owned, + ptr: *mut wire_cst_ffi_maybe_inputs_owned, is_owned: *const std::ffi::c_void, ) { - wire_maybe_inputs_owned_check_inputs_not_owned_impl(port_, ptr, is_owned) + wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_owned_impl( + port_, ptr, is_owned, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_maybe_inputs_seen_check_no_inputs_seen_before( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_before( port_: i64, - ptr: *mut wire_cst_maybe_inputs_seen, + ptr: *mut wire_cst_ffi_maybe_inputs_seen, is_known: *const std::ffi::c_void, ) { - wire_maybe_inputs_seen_check_no_inputs_seen_before_impl(port_, ptr, is_known) + wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_before_impl( + port_, ptr, is_known, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts( port_: i64, - ptr: *mut wire_cst_maybe_mixed_input_scripts, + ptr: *mut wire_cst_ffi_maybe_mixed_input_scripts, ) { - wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts_impl(port_, ptr) + wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts_impl( + port_, ptr, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_outputs_unknown_identify_receiver_outputs( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputs( port_: i64, - ptr: *mut wire_cst_outputs_unknown, + ptr: *mut wire_cst_ffi_outputs_unknown, is_receiver_output: *const std::ffi::c_void, ) { - wire_outputs_unknown_identify_receiver_outputs_impl(port_, ptr, is_receiver_output) + wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputs_impl( + port_, + ptr, + is_receiver_output, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_payjoin_proposal_is_output_substitution_disabled( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabled( port_: i64, - that: *mut wire_cst_payjoin_proposal, + that: *mut wire_cst_ffi_payjoin_proposal, ) { - wire_payjoin_proposal_is_output_substitution_disabled_impl(port_, that) + wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabled_impl( + port_, that, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_payjoin_proposal_owned_vouts( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_owned_vouts( port_: i64, - that: *mut wire_cst_payjoin_proposal, + that: *mut wire_cst_ffi_payjoin_proposal, ) { - wire_payjoin_proposal_owned_vouts_impl(port_, that) + wire__crate__api__receive__ffi_payjoin_proposal_owned_vouts_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_payjoin_proposal_psbt( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_psbt( port_: i64, - that: *mut wire_cst_payjoin_proposal, + that: *mut wire_cst_ffi_payjoin_proposal, ) { - wire_payjoin_proposal_psbt_impl(port_, that) + wire__crate__api__receive__ffi_payjoin_proposal_psbt_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_payjoin_proposal_utxos_to_be_locked( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_locked( port_: i64, - that: *mut wire_cst_payjoin_proposal, + that: *mut wire_cst_ffi_payjoin_proposal, ) { - wire_payjoin_proposal_utxos_to_be_locked_impl(port_, that) + wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_locked_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_provisional_proposal_contribute_non_witness_input( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_input( port_: i64, - that: *mut wire_cst_provisional_proposal, + that: *mut wire_cst_ffi_provisional_proposal, tx: *mut wire_cst_list_prim_u_8_loose, outpoint: *mut wire_cst_out_point, ) { - wire_provisional_proposal_contribute_non_witness_input_impl(port_, that, tx, outpoint) + wire__crate__api__receive__ffi_provisional_proposal_contribute_non_witness_input_impl( + port_, that, tx, outpoint, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_provisional_proposal_contribute_witness_input( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_contribute_witness_input( port_: i64, - that: *mut wire_cst_provisional_proposal, + that: *mut wire_cst_ffi_provisional_proposal, txo: *mut wire_cst_tx_out, outpoint: *mut wire_cst_out_point, ) { - wire_provisional_proposal_contribute_witness_input_impl(port_, that, txo, outpoint) + wire__crate__api__receive__ffi_provisional_proposal_contribute_witness_input_impl( + port_, that, txo, outpoint, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_provisional_proposal_finalize_proposal( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_finalize_proposal( port_: i64, - ptr: *mut wire_cst_provisional_proposal, + ptr: *mut wire_cst_ffi_provisional_proposal, process_psbt: *const std::ffi::c_void, min_feerate_sat_per_vb: *mut u64, ) { - wire_provisional_proposal_finalize_proposal_impl( + wire__crate__api__receive__ffi_provisional_proposal_finalize_proposal_impl( port_, ptr, process_psbt, @@ -1372,39 +1484,86 @@ pub extern "C" fn frbgen_payjoin_flutter_wire_provisional_proposal_finalize_prop } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_provisional_proposal_substitute_output_address( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacy( + port_: i64, + that: *mut wire_cst_ffi_provisional_proposal, + candidate_inputs: *mut wire_cst_list_record_u_64_out_point, +) { + wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacy_impl( + port_, + that, + candidate_inputs, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_output( + port_: i64, + that: *mut wire_cst_ffi_provisional_proposal, + generate_script: *const std::ffi::c_void, +) { + wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_output_impl( + port_, + that, + generate_script, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_extract_req( + port_: i64, + ptr: *mut wire_cst_ffi_session_initializer, +) { + wire__crate__api__receive__ffi_session_initializer_extract_req_impl(port_, ptr) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_new( port_: i64, - that: *mut wire_cst_provisional_proposal, address: *mut wire_cst_list_prim_u_8_strict, + expire_after: *mut u64, + network: i32, + directory: *mut wire_cst_ffi_url, + ohttp_keys: *mut wire_cst_ffi_ohttp_keys, + ohttp_relay: *mut wire_cst_ffi_url, ) { - wire_provisional_proposal_substitute_output_address_impl(port_, that, address) + wire__crate__api__receive__ffi_session_initializer_new_impl( + port_, + address, + expire_after, + network, + directory, + ohttp_keys, + ohttp_relay, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_provisional_proposal_try_preserving_privacy( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_session_initializer_process_res( port_: i64, - that: *mut wire_cst_provisional_proposal, - candidate_inputs: *mut wire_cst_list_record_u_64_out_point, + that: *mut wire_cst_ffi_session_initializer, + body: *mut wire_cst_list_prim_u_8_loose, + ctx: *mut wire_cst_ffi_client_response, ) { - wire_provisional_proposal_try_preserving_privacy_impl(port_, that, candidate_inputs) + wire__crate__api__receive__ffi_session_initializer_process_res_impl(port_, that, body, ctx) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_unchecked_proposal_assume_interactive_receiver( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiver( port_: i64, - ptr: *mut wire_cst_unchecked_proposal, + ptr: *mut wire_cst_ffi_unchecked_proposal, ) { - wire_unchecked_proposal_assume_interactive_receiver_impl(port_, ptr) + wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiver_impl(port_, ptr) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_unchecked_proposal_check_broadcast_suitability( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitability( port_: i64, - ptr: *mut wire_cst_unchecked_proposal, + ptr: *mut wire_cst_ffi_unchecked_proposal, min_fee_rate: *mut u64, can_broadcast: *const std::ffi::c_void, ) { - wire_unchecked_proposal_check_broadcast_suitability_impl( + wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitability_impl( port_, ptr, min_fee_rate, @@ -1413,144 +1572,167 @@ pub extern "C" fn frbgen_payjoin_flutter_wire_unchecked_proposal_check_broadcast } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_unchecked_proposal_extract_tx_to_schedule_broadcast( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcast( port_: i64, - that: *mut wire_cst_unchecked_proposal, + that: *mut wire_cst_ffi_unchecked_proposal, ) { - wire_unchecked_proposal_extract_tx_to_schedule_broadcast_impl(port_, that) + wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcast_impl( + port_, that, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_unchecked_proposal_from_request( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_unchecked_proposal_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_unchecked_proposal_from_request_impl(port_, body, query, headers) + wire__crate__api__receive__ffi_unchecked_proposal_from_request_impl(port_, body, query, headers) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_maybe_inputs_owned_check_inputs_not_owned( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_owned( port_: i64, - that: *mut wire_cst_v_2_maybe_inputs_owned, + that: *mut wire_cst_ffi_v_2_maybe_inputs_owned, is_owned: *const std::ffi::c_void, ) { - wire_v_2_maybe_inputs_owned_check_inputs_not_owned_impl(port_, that, is_owned) + wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_owned_impl( + port_, that, is_owned, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_before( port_: i64, - that: *mut wire_cst_v_2_maybe_inputs_seen, + that: *mut wire_cst_ffi_v_2_maybe_inputs_seen, is_known: *const std::ffi::c_void, ) { - wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before_impl(port_, that, is_known) + wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_check_no_inputs_seen_before_impl( + port_, that, is_known, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts( port_: i64, - that: *mut wire_cst_v_2_maybe_mixed_input_scripts, + that: *mut wire_cst_ffi_v_2_maybe_mixed_input_scripts, ) { - wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts_impl(port_, that) + wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts_impl( + port_, that, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_outputs_unknown_identify_receiver_outputs( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputs( port_: i64, - that: *mut wire_cst_v_2_outputs_unknown, + that: *mut wire_cst_ffi_v_2_outputs_unknown, is_receiver_output: *const std::ffi::c_void, ) { - wire_v_2_outputs_unknown_identify_receiver_outputs_impl(port_, that, is_receiver_output) + wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputs_impl( + port_, + that, + is_receiver_output, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_deserialize_res( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_req( 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, + that: *mut wire_cst_ffi_v_2_payjoin_proposal, ) { - wire_v_2_payjoin_proposal_deserialize_res_impl(port_, that, res, ohttp_context) + wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_req_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_extract_v1_req( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_req( port_: i64, - that: *mut wire_cst_v_2_payjoin_proposal, + ptr: *mut wire_cst_ffi_v_2_payjoin_proposal, ) { - wire_v_2_payjoin_proposal_extract_v1_req_impl(port_, that) + wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_req_impl(port_, ptr) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_extract_v2_req( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabled( port_: i64, - ptr: *mut wire_cst_v_2_payjoin_proposal, + that: *mut wire_cst_ffi_v_2_payjoin_proposal, ) { - wire_v_2_payjoin_proposal_extract_v2_req_impl(port_, ptr) + wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabled_impl( + port_, that, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_is_output_substitution_disabled( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_vouts( port_: i64, - that: *mut wire_cst_v_2_payjoin_proposal, + that: *mut wire_cst_ffi_v_2_payjoin_proposal, ) { - wire_v_2_payjoin_proposal_is_output_substitution_disabled_impl(port_, that) + wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_vouts_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_owned_vouts( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_res( port_: i64, - that: *mut wire_cst_v_2_payjoin_proposal, + that: *mut wire_cst_ffi_v_2_payjoin_proposal, + res: *mut wire_cst_list_prim_u_8_loose, + ohttp_context: *mut wire_cst_ffi_client_response, ) { - wire_v_2_payjoin_proposal_owned_vouts_impl(port_, that) + wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_res_impl( + port_, + that, + res, + ohttp_context, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_psbt( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_psbt( port_: i64, - that: *mut wire_cst_v_2_payjoin_proposal, + that: *mut wire_cst_ffi_v_2_payjoin_proposal, ) { - wire_v_2_payjoin_proposal_psbt_impl(port_, that) + wire__crate__api__receive__ffi_v_2_payjoin_proposal_psbt_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_payjoin_proposal_utxos_to_be_locked( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_locked( port_: i64, - that: *mut wire_cst_v_2_payjoin_proposal, + that: *mut wire_cst_ffi_v_2_payjoin_proposal, ) { - wire_v_2_payjoin_proposal_utxos_to_be_locked_impl(port_, that) + wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_locked_impl(port_, that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_provisional_proposal_contribute_non_witness_input( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_input( port_: i64, - that: *mut wire_cst_v_2_provisional_proposal, + that: *mut wire_cst_ffi_v_2_provisional_proposal, tx: *mut wire_cst_list_prim_u_8_loose, outpoint: *mut wire_cst_out_point, ) { - wire_v_2_provisional_proposal_contribute_non_witness_input_impl(port_, that, tx, outpoint) + wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_non_witness_input_impl( + port_, that, tx, outpoint, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_provisional_proposal_contribute_witness_input( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_input( port_: i64, - that: *mut wire_cst_v_2_provisional_proposal, + that: *mut wire_cst_ffi_v_2_provisional_proposal, txo: *mut wire_cst_tx_out, outpoint: *mut wire_cst_out_point, ) { - wire_v_2_provisional_proposal_contribute_witness_input_impl(port_, that, txo, outpoint) + wire__crate__api__receive__ffi_v_2_provisional_proposal_contribute_witness_input_impl( + port_, that, txo, outpoint, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_provisional_proposal_finalize_proposal( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposal( port_: i64, - that: *mut wire_cst_v_2_provisional_proposal, + that: *mut wire_cst_ffi_v_2_provisional_proposal, process_psbt: *const std::ffi::c_void, min_feerate_sat_per_vb: *mut u64, ) { - wire_v_2_provisional_proposal_finalize_proposal_impl( + wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposal_impl( port_, that, process_psbt, @@ -1559,39 +1741,59 @@ pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_provisional_proposal_finalize_ } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_provisional_proposal_substitute_output_address( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabled( port_: i64, - that: *mut wire_cst_v_2_provisional_proposal, - address: *mut wire_cst_list_prim_u_8_strict, + that: *mut wire_cst_ffi_v_2_provisional_proposal, ) { - wire_v_2_provisional_proposal_substitute_output_address_impl(port_, that, address) + wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabled_impl( + port_, that, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_provisional_proposal_try_preserving_privacy( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacy( port_: i64, - that: *mut wire_cst_v_2_provisional_proposal, + that: *mut wire_cst_ffi_v_2_provisional_proposal, candidate_inputs: *mut wire_cst_list_record_u_64_out_point, ) { - wire_v_2_provisional_proposal_try_preserving_privacy_impl(port_, that, candidate_inputs) + wire__crate__api__receive__ffi_v_2_provisional_proposal_try_preserving_privacy_impl( + port_, + that, + candidate_inputs, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_output( + port_: i64, + that: *mut wire_cst_ffi_v_2_provisional_proposal, + generate_script: *const std::ffi::c_void, +) { + wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_output_impl( + port_, + that, + generate_script, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_assume_interactive_receiver( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiver( port_: i64, - that: *mut wire_cst_v_2_unchecked_proposal, + that: *mut wire_cst_ffi_v_2_unchecked_proposal, ) { - wire_v_2_unchecked_proposal_assume_interactive_receiver_impl(port_, that) + wire__crate__api__receive__ffi_v_2_unchecked_proposal_assume_interactive_receiver_impl( + port_, that, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_check_broadcast_suitability( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitability( port_: i64, - that: *mut wire_cst_v_2_unchecked_proposal, + that: *mut wire_cst_ffi_v_2_unchecked_proposal, min_fee_rate: *mut u64, can_broadcast: *const std::ffi::c_void, ) { - wire_v_2_unchecked_proposal_check_broadcast_suitability_impl( + wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitability_impl( port_, that, min_fee_rate, @@ -1600,67 +1802,76 @@ pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_check_broad } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast( port_: i64, - that: *mut wire_cst_v_2_unchecked_proposal, + that: *mut wire_cst_ffi_v_2_unchecked_proposal, ) { - wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast_impl(port_, that) + wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast_impl( + port_, that, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_context_v_1_process_response( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__send__ffi_context_v_1_process_response( port_: i64, - that: *mut wire_cst_context_v_1, + that: *mut wire_cst_ffi_context_v_1, response: *mut wire_cst_list_prim_u_8_loose, ) { - wire_context_v_1_process_response_impl(port_, that, response) + wire__crate__api__send__ffi_context_v_1_process_response_impl(port_, that, response) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_context_v_2_process_response( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__send__ffi_context_v_2_process_response( port_: i64, - that: *mut wire_cst_context_v_2, + that: *mut wire_cst_ffi_context_v_2, response: *mut wire_cst_list_prim_u_8_loose, ) { - wire_context_v_2_process_response_impl(port_, that, response) + wire__crate__api__send__ffi_context_v_2_process_response_impl(port_, that, response) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_request_builder_always_disable_output_substitution( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_always_disable_output_substitution( port_: i64, - that: *mut wire_cst_request_builder, + that: *mut wire_cst_ffi_request_builder, disable: bool, ) { - wire_request_builder_always_disable_output_substitution_impl(port_, that, disable) + wire__crate__api__send__ffi_request_builder_always_disable_output_substitution_impl( + port_, that, disable, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_request_builder_build_non_incentivizing( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_build_non_incentivizing( port_: i64, - that: *mut wire_cst_request_builder, + that: *mut wire_cst_ffi_request_builder, + min_fee_rate: u64, ) { - wire_request_builder_build_non_incentivizing_impl(port_, that) + wire__crate__api__send__ffi_request_builder_build_non_incentivizing_impl( + port_, + that, + min_fee_rate, + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_request_builder_build_recommended( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_build_recommended( port_: i64, - that: *mut wire_cst_request_builder, + that: *mut wire_cst_ffi_request_builder, min_fee_rate: u64, ) { - wire_request_builder_build_recommended_impl(port_, that, min_fee_rate) + wire__crate__api__send__ffi_request_builder_build_recommended_impl(port_, that, min_fee_rate) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_request_builder_build_with_additional_fee( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_build_with_additional_fee( port_: i64, - that: *mut wire_cst_request_builder, + that: *mut wire_cst_ffi_request_builder, max_fee_contribution: u64, change_index: *mut u8, min_fee_rate: u64, clamp_fee_contribution: bool, ) { - wire_request_builder_build_with_additional_fee_impl( + wire__crate__api__send__ffi_request_builder_build_with_additional_fee_impl( port_, that, max_fee_contribution, @@ -1671,738 +1882,877 @@ pub extern "C" fn frbgen_payjoin_flutter_wire_request_builder_build_with_additio } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_request_builder_from_psbt_and_uri( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_builder_from_psbt_and_uri( port_: i64, psbt_base64: *mut wire_cst_list_prim_u_8_strict, - uri: *mut wire_cst_uri, + pj_uri: *mut wire_cst_ffi_pj_uri, ) { - wire_request_builder_from_psbt_and_uri_impl(port_, psbt_base64, uri) + wire__crate__api__send__ffi_request_builder_from_psbt_and_uri_impl(port_, psbt_base64, pj_uri) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_request_context_extract_v1( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_context_extract_v1( port_: i64, - ptr: *mut wire_cst_request_context, + ptr: *mut wire_cst_ffi_request_context, ) { - wire_request_context_extract_v1_impl(port_, ptr) + wire__crate__api__send__ffi_request_context_extract_v1_impl(port_, ptr) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_request_context_extract_v2( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__send__ffi_request_context_extract_v2( port_: i64, - ptr: *mut wire_cst_request_context, - ohttp_proxy_url: *mut wire_cst_url, + ptr: *mut wire_cst_ffi_request_context, + ohttp_proxy_url: *mut wire_cst_ffi_url, ) { - wire_request_context_extract_v2_impl(port_, ptr, ohttp_proxy_url) + wire__crate__api__send__ffi_request_context_extract_v2_impl(port_, ptr, ohttp_proxy_url) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_ohttp_keys_decode( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_ohttp_keys_decode( port_: i64, bytes: *mut wire_cst_list_prim_u_8_loose, ) { - wire_ohttp_keys_decode_impl(port_, bytes) + wire__crate__api__uri__ffi_ohttp_keys_decode_impl(port_, bytes) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_address( + that: *mut wire_cst_ffi_pj_uri, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_pj_uri_address_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_amount( + that: *mut wire_cst_ffi_pj_uri, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_pj_uri_amount_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_as_string( + that: *mut wire_cst_ffi_pj_uri, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_pj_uri_as_string_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_amount( + that: *mut wire_cst_ffi_pj_uri_builder, + amount: u64, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_pj_uri_builder_amount_impl(that, amount) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_build( + that: *mut wire_cst_ffi_pj_uri_builder, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_pj_uri_builder_build_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_create( + port_: i64, + address: *mut wire_cst_list_prim_u_8_strict, + pj: *mut wire_cst_ffi_url, + ohttp_keys: *mut wire_cst_ffi_ohttp_keys, + expiry: *mut u64, +) { + wire__crate__api__uri__ffi_pj_uri_builder_create_impl(port_, address, pj, ohttp_keys, expiry) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_label( + that: *mut wire_cst_ffi_pj_uri_builder, + label: *mut wire_cst_list_prim_u_8_strict, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_pj_uri_builder_label_impl(that, label) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_message( + that: *mut wire_cst_ffi_pj_uri_builder, + message: *mut wire_cst_list_prim_u_8_strict, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_pj_uri_builder_message_impl(that, message) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_pj_uri_builder_pjos( + that: *mut wire_cst_ffi_pj_uri_builder, + pjos: bool, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_pj_uri_builder_pjos_impl(that, pjos) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_address( + that: *mut wire_cst_ffi_uri, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_uri_address_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_amount( + that: *mut wire_cst_ffi_uri, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_uri_amount_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_uri_address(port_: i64, that: *mut wire_cst_uri) { - wire_uri_address_impl(port_, that) +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_as_string( + that: *mut wire_cst_ffi_uri, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_uri_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_uri_amount(port_: i64, that: *mut wire_cst_uri) { - wire_uri_amount_impl(port_, that) +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_check_pj_supported( + that: *mut wire_cst_ffi_uri, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_uri_check_pj_supported_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_uri_from_str( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_uri_from_str( port_: i64, uri: *mut wire_cst_list_prim_u_8_strict, ) { - wire_uri_from_str_impl(port_, uri) + wire__crate__api__uri__ffi_uri_from_str_impl(port_, uri) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_url_as_string(port_: i64, that: *mut wire_cst_url) { - wire_url_as_string_impl(port_, that) +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_as_string( + that: *mut wire_cst_ffi_url, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_url_as_string_impl(that) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_wire_url_from_str( +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_from_str( port_: i64, url: *mut wire_cst_list_prim_u_8_strict, ) { - wire_url_from_str_impl(port_, url) + wire__crate__api__uri__ffi_url_from_str_impl(port_, url) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_wire__crate__api__uri__ffi_url_query( + that: *mut wire_cst_ffi_url, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__uri__ffi_url_query_impl(that) +} + +#[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_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_payjoin_ffireceivev1MaybeInputsOwned( 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_payjoin_ffireceivev1MaybeInputsOwned( 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_ffireceivev1MaybeInputsSeen( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( 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_ffireceivev1MaybeInputsSeen( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeInputsSeen( 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_ffireceivev1MaybeMixedInputScripts( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count( + StdArc::::increment_strong_count( ptr as _, ); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev1MaybeMixedInputScripts( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1MaybeMixedInputScripts( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count( + StdArc::::decrement_strong_count( ptr as _, ); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev1OutputsUnknown( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown( 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_ffireceivev1OutputsUnknown( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1OutputsUnknown( 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_ffireceivev1PayjoinProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal( 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_ffireceivev1PayjoinProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1PayjoinProposal( 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_ffireceivev1ProvisionalProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( 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_ffireceivev1ProvisionalProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev1ProvisionalProposal( 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_ffireceivev2Enrolled( +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_ffireceivev2Enrolled( +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_ffireceivev2V2MaybeInputsOwned( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession( 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_ffireceivev2V2MaybeInputsOwned( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2ActiveSession( 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_ffireceivev2V2MaybeInputsSeen( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer( 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_ffireceivev2V2MaybeInputsSeen( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2SessionInitializer( 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_ffireceivev2V2MaybeMixedInputScripts( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( 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_ffireceivev2V2MaybeMixedInputScripts( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsOwned( 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_ffireceivev2V2OutputsUnknown( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( 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_ffireceivev2V2OutputsUnknown( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeInputsSeen( 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_ffireceivev2V2PayjoinProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::increment_strong_count( + StdArc::::increment_strong_count( ptr as _, ); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2PayjoinProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2MaybeMixedInputScripts( ptr: *const std::ffi::c_void, ) { unsafe { - StdArc::>::decrement_strong_count( + StdArc::::decrement_strong_count( ptr as _, ); } } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffireceivev2V2ProvisionalProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( 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_ffireceivev2V2ProvisionalProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffireceivev2V2OutputsUnknown( 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_payjoin_ffireceivev2V2ProvisionalProposal( 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_payjoin_ffireceivev2V2ProvisionalProposal( 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_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_Arcpayjoin_ffisendv1RequestBuilder( +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_rust_arc_increment_strong_count_RustOpaque_Arcpayjoin_ffisendv1RequestContext( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffisendv1ContextV1( 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_payjoin_ffisendv1ContextV1( 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_payjoin_ffisendv1RequestBuilder( 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_payjoin_ffisendv1RequestBuilder( 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_ffisendv1RequestContext( 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_ffisendv1RequestContext( 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_ffitypesOhttpKeys( 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_ffitypesOhttpKeys( 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_MutexOptionohttpClientResponse( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_ffiuriPjUri( 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_MutexOptionohttpClientResponse( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_ffiuriPjUri( 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_ffiuriPjUriBuilder( 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_ffiuriPjUriBuilder( 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_ffireceivev2Enroller( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_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_payjoin_ffireceivev2Enroller( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_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_payjoin_ffireceivev2V2UncheckedProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_payjoin_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_payjoin_ffireceivev2V2UncheckedProposal( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_payjoin_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_payjoin_ffitypesOhttpKeys( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_increment_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( 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_ffitypesOhttpKeys( +pub extern "C" fn frbgen_payjoin_flutter_rust_arc_decrement_strong_count_RustOpaque_stdsyncMutexcoreoptionOptionohttpClientResponse( 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(), - ) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_f_64(value: f64) -> *mut f64 { + flutter_rust_bridge::for_generated::new_leak_box_ptr(value) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_1( -) -> *mut wire_cst_context_v_1 { - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_context_v_1::new_with_null_ptr()) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_active_session( +) -> *mut wire_cst_ffi_active_session { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_active_session::new_with_null_ptr(), + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_context_v_2( -) -> *mut wire_cst_context_v_2 { - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_context_v_2::new_with_null_ptr()) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_client_response( +) -> *mut wire_cst_ffi_client_response { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_client_response::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()) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_context_v_1( +) -> *mut wire_cst_ffi_context_v_1 { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_context_v_1::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()) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_context_v_2( +) -> *mut wire_cst_ffi_context_v_2 { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_context_v_2::new_with_null_ptr(), + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_f_64(value: f64) -> *mut f64 { - flutter_rust_bridge::for_generated::new_leak_box_ptr(value) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_inputs_owned( +) -> *mut wire_cst_ffi_maybe_inputs_owned { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_maybe_inputs_owned::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()) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_inputs_seen( +) -> *mut wire_cst_ffi_maybe_inputs_seen { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_maybe_inputs_seen::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 { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_maybe_mixed_input_scripts( +) -> *mut wire_cst_ffi_maybe_mixed_input_scripts { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_maybe_inputs_owned::new_with_null_ptr(), + wire_cst_ffi_maybe_mixed_input_scripts::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 { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_ohttp_keys( +) -> *mut wire_cst_ffi_ohttp_keys { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_maybe_inputs_seen::new_with_null_ptr(), + wire_cst_ffi_ohttp_keys::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 { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_outputs_unknown( +) -> *mut wire_cst_ffi_outputs_unknown { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_maybe_mixed_input_scripts::new_with_null_ptr(), + wire_cst_ffi_outputs_unknown::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ohttp_keys() -> *mut wire_cst_ohttp_keys -{ - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_ohttp_keys::new_with_null_ptr()) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_payjoin_proposal( +) -> *mut wire_cst_ffi_payjoin_proposal { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_payjoin_proposal::new_with_null_ptr(), + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_out_point() -> *mut wire_cst_out_point +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_pj_uri() -> *mut wire_cst_ffi_pj_uri { - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_out_point::new_with_null_ptr()) + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_ffi_pj_uri::new_with_null_ptr()) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_outputs_unknown( -) -> *mut wire_cst_outputs_unknown { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_pj_uri_builder( +) -> *mut wire_cst_ffi_pj_uri_builder { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_outputs_unknown::new_with_null_ptr(), + wire_cst_ffi_pj_uri_builder::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_payjoin_proposal( -) -> *mut wire_cst_payjoin_proposal { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_provisional_proposal( +) -> *mut wire_cst_ffi_provisional_proposal { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_payjoin_proposal::new_with_null_ptr(), + wire_cst_ffi_provisional_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 { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_request_builder( +) -> *mut wire_cst_ffi_request_builder { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_provisional_proposal::new_with_null_ptr(), + wire_cst_ffi_request_builder::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_request_builder( -) -> *mut wire_cst_request_builder { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_request_context( +) -> *mut wire_cst_ffi_request_context { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_request_builder::new_with_null_ptr(), + wire_cst_ffi_request_context::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_request_context( -) -> *mut wire_cst_request_context { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_session_initializer( +) -> *mut wire_cst_ffi_session_initializer { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_request_context::new_with_null_ptr(), + wire_cst_ffi_session_initializer::new_with_null_ptr(), ) } #[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()) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_unchecked_proposal( +) -> *mut wire_cst_ffi_unchecked_proposal { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_unchecked_proposal::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) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_uri() -> *mut wire_cst_ffi_uri { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_ffi_uri::new_with_null_ptr()) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_u_8(value: u8) -> *mut u8 { - flutter_rust_bridge::for_generated::new_leak_box_ptr(value) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_url() -> *mut wire_cst_ffi_url { + flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_ffi_url::new_with_null_ptr()) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_unchecked_proposal( -) -> *mut wire_cst_unchecked_proposal { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_inputs_owned( +) -> *mut wire_cst_ffi_v_2_maybe_inputs_owned { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_unchecked_proposal::new_with_null_ptr(), + wire_cst_ffi_v_2_maybe_inputs_owned::new_with_null_ptr(), ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_uri() -> *mut wire_cst_uri { - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_uri::new_with_null_ptr()) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_inputs_seen( +) -> *mut wire_cst_ffi_v_2_maybe_inputs_seen { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_v_2_maybe_inputs_seen::new_with_null_ptr(), + ) } #[no_mangle] -pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_url() -> *mut wire_cst_url { - flutter_rust_bridge::for_generated::new_leak_box_ptr(wire_cst_url::new_with_null_ptr()) +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_maybe_mixed_input_scripts( +) -> *mut wire_cst_ffi_v_2_maybe_mixed_input_scripts { + flutter_rust_bridge::for_generated::new_leak_box_ptr( + wire_cst_ffi_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_maybe_inputs_owned( -) -> *mut wire_cst_v_2_maybe_inputs_owned { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_outputs_unknown( +) -> *mut wire_cst_ffi_v_2_outputs_unknown { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_v_2_maybe_inputs_owned::new_with_null_ptr(), + wire_cst_ffi_v_2_outputs_unknown::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 { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_payjoin_proposal( +) -> *mut wire_cst_ffi_v_2_payjoin_proposal { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_v_2_maybe_inputs_seen::new_with_null_ptr(), + wire_cst_ffi_v_2_payjoin_proposal::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 { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_provisional_proposal( +) -> *mut wire_cst_ffi_v_2_provisional_proposal { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_v_2_maybe_mixed_input_scripts::new_with_null_ptr(), + wire_cst_ffi_v_2_provisional_proposal::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 { +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_ffi_v_2_unchecked_proposal( +) -> *mut wire_cst_ffi_v_2_unchecked_proposal { flutter_rust_bridge::for_generated::new_leak_box_ptr( - wire_cst_v_2_outputs_unknown::new_with_null_ptr(), + wire_cst_ffi_v_2_unchecked_proposal::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(), - ) +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_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(), - ) +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_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(), - ) +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) +} + +#[no_mangle] +pub extern "C" fn frbgen_payjoin_flutter_cst_new_box_autoadd_u_8(value: u8) -> *mut u8 { + flutter_rust_bridge::for_generated::new_leak_box_ptr(value) } #[no_mangle] @@ -2482,27 +2832,132 @@ pub extern "C" fn frbgen_payjoin_flutter_cst_new_list_record_u_64_out_point( #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_client_response { +pub struct wire_cst_ffi_active_session { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_client_response { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_context_v_1 { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_context_v_2 { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_maybe_inputs_owned { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_maybe_inputs_seen { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_maybe_mixed_input_scripts { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_ohttp_keys { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_outputs_unknown { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_payjoin_proposal { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_pj_uri { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_pj_uri_builder { + internal: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_provisional_proposal { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_request_builder { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_request_context { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_session_initializer { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_unchecked_proposal { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_uri { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_url { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_v_2_maybe_inputs_owned { field0: usize, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_context_v_1 { +pub struct wire_cst_ffi_v_2_maybe_inputs_seen { field0: usize, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_context_v_2 { +pub struct wire_cst_ffi_v_2_maybe_mixed_input_scripts { field0: usize, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_enrolled { +pub struct wire_cst_ffi_v_2_outputs_unknown { field0: usize, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_enroller { +pub struct wire_cst_ffi_v_2_payjoin_proposal { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_v_2_provisional_proposal { + field0: usize, +} +#[repr(C)] +#[derive(Clone, Copy)] +pub struct wire_cst_ffi_v_2_unchecked_proposal { field0: usize, } #[repr(C)] @@ -2548,37 +3003,12 @@ pub struct wire_cst_list_record_u_64_out_point { } #[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_ohttp_keys { - 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, @@ -2603,6 +3033,7 @@ pub union PayjoinErrorKind { UnexpectedError: wire_cst_PayjoinError_UnexpectedError, OhttpError: wire_cst_PayjoinError_OhttpError, UrlError: wire_cst_PayjoinError_UrlError, + IoError: wire_cst_PayjoinError_IoError, nil__: (), } #[repr(C)] @@ -2692,19 +3123,20 @@ pub struct wire_cst_PayjoinError_UrlError { } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_payjoin_proposal { - field0: usize, +pub struct wire_cst_PayjoinError_IoError { + message: *mut wire_cst_list_prim_u_8_strict, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_provisional_proposal { - field0: usize, +pub struct wire_cst_record_ffi_url_list_prim_u_8_strict { + field0: wire_cst_ffi_url, + field1: *mut wire_cst_list_prim_u_8_strict, } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_record_record_url_list_prim_u_8_strict_client_response { - field0: wire_cst_record_url_list_prim_u_8_strict, - field1: wire_cst_client_response, +pub struct wire_cst_record_record_ffi_url_list_prim_u_8_strict_ffi_client_response { + field0: wire_cst_record_ffi_url_list_prim_u_8_strict, + field1: wire_cst_ffi_client_response, } #[repr(C)] #[derive(Clone, Copy)] @@ -2720,31 +3152,15 @@ pub struct wire_cst_record_u_64_out_point { } #[repr(C)] #[derive(Clone, Copy)] -pub struct wire_cst_record_url_list_prim_u_8_strict { - field0: wire_cst_url, - field1: *mut wire_cst_list_prim_u_8_strict, -} -#[repr(C)] -#[derive(Clone, Copy)] -pub struct wire_cst_request_builder { - field0: usize, -} -#[repr(C)] -#[derive(Clone, Copy)] -pub struct wire_cst_request_context { - field0: usize, -} -#[repr(C)] -#[derive(Clone, Copy)] pub struct wire_cst_request_context_v_1 { - request: wire_cst_record_url_list_prim_u_8_strict, - context_v1: wire_cst_context_v_1, + request: wire_cst_record_ffi_url_list_prim_u_8_strict, + context_v1: wire_cst_ffi_context_v_1, } #[repr(C)] #[derive(Clone, Copy)] pub struct wire_cst_request_context_v_2 { - request: wire_cst_record_url_list_prim_u_8_strict, - context_v2: wire_cst_context_v_2, + request: wire_cst_record_ffi_url_list_prim_u_8_strict, + context_v2: wire_cst_ffi_context_v_2, } #[repr(C)] #[derive(Clone, Copy)] @@ -2752,53 +3168,3 @@ 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, -} -#[repr(C)] -#[derive(Clone, Copy)] -pub struct wire_cst_uri { - field0: usize, -} -#[repr(C)] -#[derive(Clone, Copy)] -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 71a0bc7..fb2ab99 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.31. +// Generated by `flutter_rust_bridge`@ 2.0.0. #![allow( non_camel_case_types, @@ -14,15 +14,20 @@ clippy::double_parens, clippy::let_and_return, clippy::too_many_arguments, - clippy::match_single_binding + clippy::match_single_binding, + clippy::clone_on_copy, + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports -use crate::api::receive::*; -use crate::api::send::*; +use crate::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::transform_result_dco; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -32,7 +37,8 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_opaque = RustOpaqueNom, default_rust_auto_opaque = RustAutoOpaqueNom, ); -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.31"; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0"; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -1575278373; // Section: executor @@ -40,339 +46,352 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire_enrolled_extract_req_impl( +fn wire__crate__api__io__fetch_ohttp_keys_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ohttp_relay: impl CstDecode, + payjoin_directory: impl CstDecode, + cert_der: impl CstDecode>, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + FLUTTER_RUST_BRIDGE_HANDLER.wrap_async::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "enrolled_extract_req", + debug_name: "fetch_ohttp_keys", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_ptr = ptr.cst_decode(); - move |context| { - transform_result_dco((move || { - crate::api::receive::Enrolled::extract_req(api_ptr) - })()) + let api_ohttp_relay = ohttp_relay.cst_decode(); + let api_payjoin_directory = payjoin_directory.cst_decode(); + let api_cert_der = cert_der.cst_decode(); + move |context| async move { + transform_result_dco::<_, _, crate::utils::error::PayjoinError>( + (move || async move { + let output_ok = crate::api::io::fetch_ohttp_keys( + api_ohttp_relay, + api_payjoin_directory, + api_cert_der, + ) + .await?; + Ok(output_ok) + })() + .await, + ) } }, ) } -fn wire_enrolled_fallback_target_impl( +fn wire__crate__api__receive__ffi_active_session_extract_req_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "enrolled_fallback_target", + debug_name: "ffi_active_session_extract_req", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_that = that.cst_decode(); + let api_ptr = ptr.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::receive::Enrolled::fallback_target(&api_that)) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiActiveSession::extract_req(api_ptr)?; + Ok(output_ok) + })( + )) } }, ) } -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::( +fn wire__crate__api__receive__ffi_active_session_pj_uri_builder_impl( + ptr: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "enrolled_process_res", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + debug_name: "ffi_active_session_pj_uri_builder", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, 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 || { - crate::api::receive::Enrolled::process_res(&api_that, api_body, api_ctx) - })()) - } + let api_ptr = ptr.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiActiveSession::pj_uri_builder(api_ptr), + )?; + Ok(output_ok) + })()) }, ) } -fn wire_enroller_extract_req_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +fn wire__crate__api__receive__ffi_active_session_pj_url_impl( + ptr: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "enroller_extract_req", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + debug_name: "ffi_active_session_pj_url", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_ptr = ptr.cst_decode(); - move |context| { - transform_result_dco((move || { - crate::api::receive::Enroller::extract_req(api_ptr) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::receive::FfiActiveSession::pj_url(api_ptr))?; + Ok(output_ok) + })()) }, ) } -fn wire_enroller_from_directory_config_impl( +fn wire__crate__api__receive__ffi_active_session_process_res_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - directory: impl CstDecode, - ohttp_keys: impl CstDecode, - ohttp_relay: impl CstDecode, + that: impl CstDecode, + body: impl CstDecode>, + ctx: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "enroller_from_directory_config", + debug_name: "ffi_active_session_process_res", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_directory = directory.cst_decode(); - let api_ohttp_keys = ohttp_keys.cst_decode(); - let api_ohttp_relay = ohttp_relay.cst_decode(); + 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::Enroller::from_directory_config( - api_directory, - api_ohttp_keys, - api_ohttp_relay, - )) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiActiveSession::process_res( + &api_that, api_body, api_ctx, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_enroller_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::( +fn wire__crate__api__receive__ffi_active_session_public_key_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "enroller_process_res", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + debug_name: "ffi_active_session_public_key", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, 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 || { - crate::api::receive::Enroller::process_res(&api_that, api_body, api_ctx) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiActiveSession::public_key(&api_that), + )?; + Ok(output_ok) + })()) }, ) } -fn wire_maybe_inputs_owned_check_inputs_not_owned_impl( +fn wire__crate__api__receive__ffi_maybe_inputs_owned_check_inputs_not_owned_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, is_owned: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "maybe_inputs_owned_check_inputs_not_owned", + debug_name: "ffi_maybe_inputs_owned_check_inputs_not_owned", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_ptr = ptr.cst_decode(); let api_is_owned = - decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool(is_owned.cst_decode()); + decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + is_owned.cst_decode(), + ); move |context| { - transform_result_dco((move || { - crate::api::receive::MaybeInputsOwned::check_inputs_not_owned( - api_ptr, - api_is_owned, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiMaybeInputsOwned::check_inputs_not_owned( + api_ptr, + api_is_owned, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_maybe_inputs_seen_check_no_inputs_seen_before_impl( +fn wire__crate__api__receive__ffi_maybe_inputs_seen_check_no_inputs_seen_before_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, is_known: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "maybe_inputs_seen_check_no_inputs_seen_before", + debug_name: "ffi_maybe_inputs_seen_check_no_inputs_seen_before", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_ptr = ptr.cst_decode(); - let api_is_known = decode_DartFn_Inputs_out_point_Output_bool(is_known.cst_decode()); + let api_is_known = + decode_DartFn_Inputs_out_point_Output_bool_AnyhowException(is_known.cst_decode()); move |context| { - transform_result_dco((move || { - crate::api::receive::MaybeInputsSeen::check_no_inputs_seen_before( - api_ptr, - api_is_known, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiMaybeInputsSeen::check_no_inputs_seen_before( + api_ptr, + api_is_known, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_maybe_mixed_input_scripts_check_no_mixed_input_scripts_impl( +fn wire__crate__api__receive__ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "maybe_mixed_input_scripts_check_no_mixed_input_scripts", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let api_ptr = ptr.cst_decode(); - move |context| { - transform_result_dco((move || { - crate::api::receive::MaybeMixedInputScripts::check_no_mixed_input_scripts( - api_ptr, - ) - })()) - } - }, - ) + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "ffi_maybe_mixed_input_scripts_check_no_mixed_input_scripts", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let api_ptr = ptr.cst_decode(); move |context| { + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiMaybeMixedInputScripts::check_no_mixed_input_scripts(api_ptr)?; Ok(output_ok) + })()) + } }) } -fn wire_outputs_unknown_identify_receiver_outputs_impl( +fn wire__crate__api__receive__ffi_outputs_unknown_identify_receiver_outputs_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, is_receiver_output: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "outputs_unknown_identify_receiver_outputs", + debug_name: "ffi_outputs_unknown_identify_receiver_outputs", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_ptr = ptr.cst_decode(); - let api_is_receiver_output = decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( - is_receiver_output.cst_decode(), - ); + let api_is_receiver_output = + decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + is_receiver_output.cst_decode(), + ); move |context| { - transform_result_dco((move || { - crate::api::receive::OutputsUnknown::identify_receiver_outputs( - api_ptr, - api_is_receiver_output, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiOutputsUnknown::identify_receiver_outputs( + api_ptr, + api_is_receiver_output, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_payjoin_proposal_is_output_substitution_disabled_impl( +fn wire__crate__api__receive__ffi_payjoin_proposal_is_output_substitution_disabled_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: "payjoin_proposal_is_output_substitution_disabled", + debug_name: "ffi_payjoin_proposal_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::PayjoinProposal::is_output_substitution_disabled( + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiPayjoinProposal::is_output_substitution_disabled( &api_that, ), - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_payjoin_proposal_owned_vouts_impl( +fn wire__crate__api__receive__ffi_payjoin_proposal_owned_vouts_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: "payjoin_proposal_owned_vouts", + debug_name: "ffi_payjoin_proposal_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::PayjoinProposal::owned_vouts( - &api_that, - )) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiPayjoinProposal::owned_vouts(&api_that), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_payjoin_proposal_psbt_impl( +fn wire__crate__api__receive__ffi_payjoin_proposal_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: "payjoin_proposal_psbt", + debug_name: "ffi_payjoin_proposal_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::PayjoinProposal::psbt(&api_that)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiPayjoinProposal::psbt(&api_that), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_payjoin_proposal_utxos_to_be_locked_impl( +fn wire__crate__api__receive__ffi_payjoin_proposal_utxos_to_be_locked_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: "payjoin_proposal_utxos_to_be_locked", + debug_name: "ffi_payjoin_proposal_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::PayjoinProposal::utxos_to_be_locked( - &api_that, - )) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiPayjoinProposal::utxos_to_be_locked(&api_that), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_provisional_proposal_contribute_non_witness_input_impl( +fn wire__crate__api__receive__ffi_provisional_proposal_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: "provisional_proposal_contribute_non_witness_input", + debug_name: "ffi_provisional_proposal_contribute_non_witness_input", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -381,26 +400,29 @@ fn wire_provisional_proposal_contribute_non_witness_input_impl( let api_tx = tx.cst_decode(); let api_outpoint = outpoint.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::receive::ProvisionalProposal::contribute_non_witness_input( - &api_that, - api_tx, - api_outpoint, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiProvisionalProposal::contribute_non_witness_input( + &api_that, + api_tx, + api_outpoint, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_provisional_proposal_contribute_witness_input_impl( +fn wire__crate__api__receive__ffi_provisional_proposal_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: "provisional_proposal_contribute_witness_input", + debug_name: "ffi_provisional_proposal_contribute_witness_input", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -409,129 +431,215 @@ fn wire_provisional_proposal_contribute_witness_input_impl( let api_txo = txo.cst_decode(); let api_outpoint = outpoint.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::receive::ProvisionalProposal::contribute_witness_input( - &api_that, - api_txo, - api_outpoint, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiProvisionalProposal::contribute_witness_input( + &api_that, + api_txo, + api_outpoint, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_provisional_proposal_finalize_proposal_impl( +fn wire__crate__api__receive__ffi_provisional_proposal_finalize_proposal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: 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: "provisional_proposal_finalize_proposal", + debug_name: "ffi_provisional_proposal_finalize_proposal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_ptr = ptr.cst_decode(); - let api_process_psbt = - decode_DartFn_Inputs_String_Output_String(process_psbt.cst_decode()); + let api_process_psbt = decode_DartFn_Inputs_String_Output_String_AnyhowException( + 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( + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiProvisionalProposal::finalize_proposal( api_ptr, api_process_psbt, api_min_feerate_sat_per_vb, - ) - })()) + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_provisional_proposal_substitute_output_address_impl( +fn wire__crate__api__receive__ffi_provisional_proposal_try_preserving_privacy_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - address: impl CstDecode, + that: impl CstDecode, + candidate_inputs: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "provisional_proposal_substitute_output_address", + debug_name: "ffi_provisional_proposal_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::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiProvisionalProposal::try_preserving_privacy( + &api_that, + api_candidate_inputs, + )?; + Ok(output_ok) + })( + )) + } + }, + ) +} +fn wire__crate__api__receive__ffi_provisional_proposal_try_substitute_receiver_output_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + that: impl CstDecode, + generate_script: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "ffi_provisional_proposal_try_substitute_receiver_output", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let api_that = that.cst_decode();let api_generate_script = decode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException(generate_script.cst_decode()); move |context| { + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiProvisionalProposal::try_substitute_receiver_output(&api_that, api_generate_script)?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__receive__ffi_session_initializer_extract_req_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_session_initializer_extract_req", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let api_ptr = ptr.cst_decode(); + move |context| { + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiSessionInitializer::extract_req(api_ptr)?; + Ok(output_ok) + })( + )) + } + }, + ) +} +fn wire__crate__api__receive__ffi_session_initializer_new_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + address: impl CstDecode, + expire_after: impl CstDecode>, + network: impl CstDecode, + directory: impl CstDecode, + ohttp_keys: impl CstDecode, + ohttp_relay: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_session_initializer_new", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { let api_address = address.cst_decode(); + let api_expire_after = expire_after.cst_decode(); + let api_network = network.cst_decode(); + let api_directory = directory.cst_decode(); + let api_ohttp_keys = ohttp_keys.cst_decode(); + let api_ohttp_relay = ohttp_relay.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::receive::ProvisionalProposal::substitute_output_address( - &api_that, + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiSessionInitializer::new( api_address, - ) - })()) + api_expire_after, + api_network, + api_directory, + api_ohttp_keys, + api_ohttp_relay, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_provisional_proposal_try_preserving_privacy_impl( +fn wire__crate__api__receive__ffi_session_initializer_process_res_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - candidate_inputs: impl CstDecode>, + that: impl CstDecode, + body: impl CstDecode>, + ctx: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "provisional_proposal_try_preserving_privacy", + debug_name: "ffi_session_initializer_process_res", 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(); + let api_body = body.cst_decode(); + let api_ctx = ctx.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::receive::ProvisionalProposal::try_preserving_privacy( - &api_that, - api_candidate_inputs, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiSessionInitializer::process_res( + &api_that, api_body, api_ctx, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_unchecked_proposal_assume_interactive_receiver_impl( +fn wire__crate__api__receive__ffi_unchecked_proposal_assume_interactive_receiver_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "unchecked_proposal_assume_interactive_receiver", + debug_name: "ffi_unchecked_proposal_assume_interactive_receiver", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_ptr = ptr.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok( - crate::api::receive::UncheckedProposal::assume_interactive_receiver( + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiUncheckedProposal::assume_interactive_receiver( api_ptr, ), - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_unchecked_proposal_check_broadcast_suitability_impl( +fn wire__crate__api__receive__ffi_unchecked_proposal_check_broadcast_suitability_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: 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: "unchecked_proposal_check_broadcast_suitability", + debug_name: "ffi_unchecked_proposal_check_broadcast_suitability", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -539,44 +647,50 @@ fn wire_unchecked_proposal_check_broadcast_suitability_impl( let api_ptr = ptr.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()); + decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + can_broadcast.cst_decode(), + ); move |context| { - transform_result_dco((move || { - crate::api::receive::UncheckedProposal::check_broadcast_suitability( - api_ptr, - api_min_fee_rate, - api_can_broadcast, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiUncheckedProposal::check_broadcast_suitability( + api_ptr, + api_min_fee_rate, + api_can_broadcast, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_unchecked_proposal_extract_tx_to_schedule_broadcast_impl( +fn wire__crate__api__receive__ffi_unchecked_proposal_extract_tx_to_schedule_broadcast_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: "unchecked_proposal_extract_tx_to_schedule_broadcast", + debug_name: "ffi_unchecked_proposal_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( + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiUncheckedProposal::extract_tx_to_schedule_broadcast( &api_that, ), - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_unchecked_proposal_from_request_impl( +fn wire__crate__api__receive__ffi_unchecked_proposal_from_request_impl( port_: flutter_rust_bridge::for_generated::MessagePort, body: impl CstDecode>, query: impl CstDecode, @@ -584,7 +698,7 @@ fn wire_unchecked_proposal_from_request_impl( ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "unchecked_proposal_from_request", + debug_name: "ffi_unchecked_proposal_from_request", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -593,312 +707,311 @@ fn wire_unchecked_proposal_from_request_impl( let api_query = query.cst_decode(); let api_headers = headers.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::receive::UncheckedProposal::from_request( + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiUncheckedProposal::from_request( api_body, api_query, api_headers, - ) - })()) + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_v_2_maybe_inputs_owned_check_inputs_not_owned_impl( +fn wire__crate__api__receive__ffi_v_2_maybe_inputs_owned_check_inputs_not_owned_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, is_owned: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "v_2_maybe_inputs_owned_check_inputs_not_owned", + debug_name: "ffi_v_2_maybe_inputs_owned_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()); + decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + is_owned.cst_decode(), + ); move |context| { - transform_result_dco((move || { - crate::api::receive::V2MaybeInputsOwned::check_inputs_not_owned( - &api_that, - api_is_owned, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiV2MaybeInputsOwned::check_inputs_not_owned( + &api_that, + api_is_owned, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_v_2_maybe_inputs_seen_check_no_inputs_seen_before_impl( +fn wire__crate__api__receive__ffi_v_2_maybe_inputs_seen_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: "v_2_maybe_inputs_seen_check_no_inputs_seen_before", + debug_name: "ffi_v_2_maybe_inputs_seen_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()); + let api_is_known = + decode_DartFn_Inputs_out_point_Output_bool_AnyhowException(is_known.cst_decode()); move |context| { - transform_result_dco((move || { - crate::api::receive::V2MaybeInputsSeen::check_no_inputs_seen_before( - &api_that, - api_is_known, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiV2MaybeInputsSeen::check_no_inputs_seen_before( + &api_that, + api_is_known, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts_impl( +fn wire__crate__api__receive__ffi_v_2_maybe_mixed_input_scripts_check_no_mixed_input_scripts_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: "v_2_maybe_mixed_input_scripts_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, - ) - })()) - } - }, - ) + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "ffi_v_2_maybe_mixed_input_scripts_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::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiV2MaybeMixedInputScripts::check_no_mixed_input_scripts(&api_that)?; Ok(output_ok) + })()) + } }) } -fn wire_v_2_outputs_unknown_identify_receiver_outputs_impl( +fn wire__crate__api__receive__ffi_v_2_outputs_unknown_identify_receiver_outputs_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, is_receiver_output: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "v_2_outputs_unknown_identify_receiver_outputs", + debug_name: "ffi_v_2_outputs_unknown_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(), - ); + let api_is_receiver_output = + decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + is_receiver_output.cst_decode(), + ); move |context| { - transform_result_dco((move || { - crate::api::receive::V2OutputsUnknown::identify_receiver_outputs( - &api_that, - api_is_receiver_output, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiV2OutputsUnknown::identify_receiver_outputs( + &api_that, + api_is_receiver_output, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_v_2_payjoin_proposal_deserialize_res_impl( +fn wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v1_req_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - res: impl CstDecode>, - ohttp_context: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "v_2_payjoin_proposal_deserialize_res", + debug_name: "ffi_v_2_payjoin_proposal_extract_v1_req", 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, - ) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiV2PayjoinProposal::extract_v1_req(&api_that), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_v_2_payjoin_proposal_extract_v1_req_impl( +fn wire__crate__api__receive__ffi_v_2_payjoin_proposal_extract_v2_req_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "v_2_payjoin_proposal_extract_v1_req", + debug_name: "ffi_v_2_payjoin_proposal_extract_v2_req", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_that = that.cst_decode(); + let api_ptr = ptr.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::receive::V2PayjoinProposal::extract_v1_req( - &api_that, - )) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiV2PayjoinProposal::extract_v2_req(api_ptr)?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_v_2_payjoin_proposal_extract_v2_req_impl( +fn wire__crate__api__receive__ffi_v_2_payjoin_proposal_is_output_substitution_disabled_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + that: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "v_2_payjoin_proposal_extract_v2_req", + debug_name: "ffi_v_2_payjoin_proposal_is_output_substitution_disabled", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_ptr = ptr.cst_decode(); + let api_that = that.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::receive::V2PayjoinProposal::extract_v2_req(api_ptr) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiV2PayjoinProposal::is_output_substitution_disabled( + &api_that, + ), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_v_2_payjoin_proposal_is_output_substitution_disabled_impl( +fn wire__crate__api__receive__ffi_v_2_payjoin_proposal_owned_vouts_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: "v_2_payjoin_proposal_is_output_substitution_disabled", + debug_name: "ffi_v_2_payjoin_proposal_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::is_output_substitution_disabled( - &api_that, - ), - ) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiV2PayjoinProposal::owned_vouts(&api_that), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_v_2_payjoin_proposal_owned_vouts_impl( +fn wire__crate__api__receive__ffi_v_2_payjoin_proposal_process_res_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, + res: impl CstDecode>, + ohttp_context: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "v_2_payjoin_proposal_owned_vouts", + debug_name: "ffi_v_2_payjoin_proposal_process_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 || { - Result::<_, ()>::Ok(crate::api::receive::V2PayjoinProposal::owned_vouts( + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiV2PayjoinProposal::process_res( &api_that, - )) - })()) + api_res, + api_ohttp_context, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_v_2_payjoin_proposal_psbt_impl( +fn wire__crate__api__receive__ffi_v_2_payjoin_proposal_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: "v_2_payjoin_proposal_psbt", + debug_name: "ffi_v_2_payjoin_proposal_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)) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiV2PayjoinProposal::psbt(&api_that), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_v_2_payjoin_proposal_utxos_to_be_locked_impl( +fn wire__crate__api__receive__ffi_v_2_payjoin_proposal_utxos_to_be_locked_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: "v_2_payjoin_proposal_utxos_to_be_locked", + debug_name: "ffi_v_2_payjoin_proposal_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, - )) + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiV2PayjoinProposal::utxos_to_be_locked(&api_that), + )?; + Ok(output_ok) })()) } }, ) } -fn wire_v_2_provisional_proposal_contribute_non_witness_input_impl( +fn wire__crate__api__receive__ffi_v_2_provisional_proposal_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: "v_2_provisional_proposal_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, - ) - })()) - } - }, - ) + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "ffi_v_2_provisional_proposal_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::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiV2ProvisionalProposal::contribute_non_witness_input(&api_that, api_tx, api_outpoint)?; Ok(output_ok) + })()) + } }) } -fn wire_v_2_provisional_proposal_contribute_witness_input_impl( +fn wire__crate__api__receive__ffi_v_2_provisional_proposal_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: "v_2_provisional_proposal_contribute_witness_input", + debug_name: "ffi_v_2_provisional_proposal_contribute_witness_input", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -907,79 +1020,71 @@ fn wire_v_2_provisional_proposal_contribute_witness_input_impl( 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, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiV2ProvisionalProposal::contribute_witness_input( + &api_that, + api_txo, + api_outpoint, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_v_2_provisional_proposal_finalize_proposal_impl( +fn wire__crate__api__receive__ffi_v_2_provisional_proposal_finalize_proposal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: 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: "v_2_provisional_proposal_finalize_proposal", + debug_name: "ffi_v_2_provisional_proposal_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_process_psbt = decode_DartFn_Inputs_String_Output_String_AnyhowException( + 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, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiV2ProvisionalProposal::finalize_proposal( + &api_that, + api_process_psbt, + api_min_feerate_sat_per_vb, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_v_2_provisional_proposal_substitute_output_address_impl( +fn wire__crate__api__receive__ffi_v_2_provisional_proposal_is_output_substitution_disabled_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, - address: impl CstDecode, + that: impl CstDecode, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "v_2_provisional_proposal_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, - ) - })()) - } - }, - ) + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "ffi_v_2_provisional_proposal_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 || { + let output_ok = Result::<_,()>::Ok(crate::api::receive::FfiV2ProvisionalProposal::is_output_substitution_disabled(&api_that))?; Ok(output_ok) + })()) + } }) } -fn wire_v_2_provisional_proposal_try_preserving_privacy_impl( +fn wire__crate__api__receive__ffi_v_2_provisional_proposal_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: "v_2_provisional_proposal_try_preserving_privacy", + debug_name: "ffi_v_2_provisional_proposal_try_preserving_privacy", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -987,49 +1092,64 @@ fn wire_v_2_provisional_proposal_try_preserving_privacy_impl( 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, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiV2ProvisionalProposal::try_preserving_privacy( + &api_that, + api_candidate_inputs, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_v_2_unchecked_proposal_assume_interactive_receiver_impl( +fn wire__crate__api__receive__ffi_v_2_provisional_proposal_try_substitute_receiver_output_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, + generate_script: impl CstDecode, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "ffi_v_2_provisional_proposal_try_substitute_receiver_output", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let api_that = that.cst_decode();let api_generate_script = decode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException(generate_script.cst_decode()); move |context| { + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::receive::FfiV2ProvisionalProposal::try_substitute_receiver_output(&api_that, api_generate_script)?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__receive__ffi_v_2_unchecked_proposal_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: "v_2_unchecked_proposal_assume_interactive_receiver", + debug_name: "ffi_v_2_unchecked_proposal_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( + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::receive::FfiV2UncheckedProposal::assume_interactive_receiver( &api_that, ), - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_v_2_unchecked_proposal_check_broadcast_suitability_impl( +fn wire__crate__api__receive__ffi_v_2_unchecked_proposal_check_broadcast_suitability_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + 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: "v_2_unchecked_proposal_check_broadcast_suitability", + debug_name: "ffi_v_2_unchecked_proposal_check_broadcast_suitability", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1037,51 +1157,42 @@ fn wire_v_2_unchecked_proposal_check_broadcast_suitability_impl( 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()); + decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( + 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, - ) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::receive::FfiV2UncheckedProposal::check_broadcast_suitability( + &api_that, + api_min_fee_rate, + api_can_broadcast, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast_impl( +fn wire__crate__api__receive__ffi_v_2_unchecked_proposal_extract_tx_to_schedule_broadcast_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: "v_2_unchecked_proposal_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, - ), - ) - })()) - } - }, - ) + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "ffi_v_2_unchecked_proposal_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 || { + let output_ok = Result::<_,()>::Ok(crate::api::receive::FfiV2UncheckedProposal::extract_tx_to_schedule_broadcast(&api_that))?; Ok(output_ok) + })()) + } }) } -fn wire_context_v_1_process_response_impl( +fn wire__crate__api__send__ffi_context_v_1_process_response_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, response: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "context_v_1_process_response", + debug_name: "ffi_context_v_1_process_response", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1089,21 +1200,24 @@ fn wire_context_v_1_process_response_impl( 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) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::send::FfiContextV1::process_response(&api_that, api_response)?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_context_v_2_process_response_impl( +fn wire__crate__api__send__ffi_context_v_2_process_response_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, response: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "context_v_2_process_response", + debug_name: "ffi_context_v_2_process_response", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1111,21 +1225,24 @@ fn wire_context_v_2_process_response_impl( 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) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = + crate::api::send::FfiContextV2::process_response(&api_that, api_response)?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_request_builder_always_disable_output_substitution_impl( +fn wire__crate__api__send__ffi_request_builder_always_disable_output_substitution_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, disable: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "request_builder_always_disable_output_substitution", + debug_name: "ffi_request_builder_always_disable_output_substitution", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1133,46 +1250,54 @@ fn wire_request_builder_always_disable_output_substitution_impl( 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( + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::send::FfiRequestBuilder::always_disable_output_substitution( &api_that, api_disable, ), - ) + )?; + Ok(output_ok) })()) } }, ) } -fn wire_request_builder_build_non_incentivizing_impl( +fn wire__crate__api__send__ffi_request_builder_build_non_incentivizing_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, + min_fee_rate: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "request_builder_build_non_incentivizing", + debug_name: "ffi_request_builder_build_non_incentivizing", 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_non_incentivizing(&api_that) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::send::FfiRequestBuilder::build_non_incentivizing( + &api_that, + api_min_fee_rate, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_request_builder_build_recommended_impl( +fn wire__crate__api__send__ffi_request_builder_build_recommended_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, min_fee_rate: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "request_builder_build_recommended", + debug_name: "ffi_request_builder_build_recommended", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1180,16 +1305,21 @@ fn wire_request_builder_build_recommended_impl( 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) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::send::FfiRequestBuilder::build_recommended( + &api_that, + api_min_fee_rate, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_request_builder_build_with_additional_fee_impl( +fn wire__crate__api__send__ffi_request_builder_build_with_additional_fee_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + that: impl CstDecode, max_fee_contribution: impl CstDecode, change_index: impl CstDecode>, min_fee_rate: impl CstDecode, @@ -1197,7 +1327,7 @@ fn wire_request_builder_build_with_additional_fee_impl( ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "request_builder_build_with_additional_fee", + debug_name: "ffi_request_builder_build_with_additional_fee", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1208,69 +1338,78 @@ fn wire_request_builder_build_with_additional_fee_impl( 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( + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::send::FfiRequestBuilder::build_with_additional_fee( &api_that, api_max_fee_contribution, api_change_index, api_min_fee_rate, api_clamp_fee_contribution, - ) - })()) + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_request_builder_from_psbt_and_uri_impl( +fn wire__crate__api__send__ffi_request_builder_from_psbt_and_uri_impl( port_: flutter_rust_bridge::for_generated::MessagePort, psbt_base64: impl CstDecode, - uri: impl CstDecode, + pj_uri: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "request_builder_from_psbt_and_uri", + debug_name: "ffi_request_builder_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(); + let api_pj_uri = pj_uri.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::send::RequestBuilder::from_psbt_and_uri(api_psbt_base64, api_uri) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::send::FfiRequestBuilder::from_psbt_and_uri( + api_psbt_base64, + api_pj_uri, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_request_context_extract_v1_impl( +fn wire__crate__api__send__ffi_request_context_extract_v1_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, + ptr: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "request_context_extract_v1", + debug_name: "ffi_request_context_extract_v1", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_ptr = ptr.cst_decode(); move |context| { - transform_result_dco((move || { - crate::api::send::RequestContext::extract_v1(api_ptr) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::send::FfiRequestContext::extract_v1(api_ptr)?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_request_context_extract_v2_impl( +fn wire__crate__api__send__ffi_request_context_extract_v2_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - ptr: impl CstDecode, - ohttp_proxy_url: impl CstDecode, + ptr: impl CstDecode, + ohttp_proxy_url: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "request_context_extract_v2", + debug_name: "ffi_request_context_extract_v2", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -1278,147 +1417,392 @@ fn wire_request_context_extract_v2_impl( let api_ptr = ptr.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_ptr, api_ohttp_proxy_url) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::send::FfiRequestContext::extract_v2( + api_ptr, + api_ohttp_proxy_url, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_ohttp_keys_decode_impl( +fn wire__crate__api__uri__ffi_ohttp_keys_decode_impl( port_: flutter_rust_bridge::for_generated::MessagePort, bytes: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "ohttp_keys_decode", + debug_name: "ffi_ohttp_keys_decode", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_bytes = bytes.cst_decode(); move |context| { - transform_result_dco((move || crate::api::uri::OhttpKeys::decode(api_bytes))()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::uri::FfiOhttpKeys::decode(api_bytes)?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_uri_address_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +fn wire__crate__api__uri__ffi_pj_uri_address_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "uri_address", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + debug_name: "ffi_pj_uri_address", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); - move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::uri::Uri::address(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiPjUri::address(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_pj_uri_amount_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_pj_uri_amount", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiPjUri::amount(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_pj_uri_as_string_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_pj_uri_as_string", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::uri::FfiPjUri::as_string(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_pj_uri_builder_amount_impl( + that: impl CstDecode, + amount: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_pj_uri_builder_amount", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + let api_amount = amount.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiPjUriBuilder::amount( + &api_that, api_amount, + ))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_pj_uri_builder_build_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_pj_uri_builder_build", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::uri::FfiPjUriBuilder::build(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_uri_amount_impl( +fn wire__crate__api__uri__ffi_pj_uri_builder_create_impl( port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, + address: impl CstDecode, + pj: impl CstDecode, + ohttp_keys: impl CstDecode>, + expiry: impl CstDecode>, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "uri_amount", + debug_name: "ffi_pj_uri_builder_create", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { - let api_that = that.cst_decode(); + let api_address = address.cst_decode(); + let api_pj = pj.cst_decode(); + let api_ohttp_keys = ohttp_keys.cst_decode(); + let api_expiry = expiry.cst_decode(); move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::uri::Uri::amount(&api_that)) - })()) + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::uri::FfiPjUriBuilder::create( + api_address, + api_pj, + api_ohttp_keys, + api_expiry, + )?; + Ok(output_ok) + })( + )) } }, ) } -fn wire_uri_from_str_impl( +fn wire__crate__api__uri__ffi_pj_uri_builder_label_impl( + that: impl CstDecode, + label: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_pj_uri_builder_label", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + let api_label = label.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiPjUriBuilder::label( + &api_that, api_label, + ))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_pj_uri_builder_message_impl( + that: impl CstDecode, + message: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_pj_uri_builder_message", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + let api_message = message.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiPjUriBuilder::message( + &api_that, + api_message, + ))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_pj_uri_builder_pjos_impl( + that: impl CstDecode, + pjos: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_pj_uri_builder_pjos", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + let api_pjos = pjos.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiPjUriBuilder::pjos( + &api_that, api_pjos, + ))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_uri_address_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_uri_address", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiUri::address(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_uri_amount_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_uri_amount", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiUri::amount(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_uri_as_string_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_uri_as_string", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiUri::as_string(&api_that))?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_uri_check_pj_supported_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "ffi_uri_check_pj_supported", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::uri::FfiUri::check_pj_supported(&api_that)?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__uri__ffi_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", + debug_name: "ffi_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))()) + move |context| { + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::uri::FfiUri::from_str(api_uri)?; + Ok(output_ok) + })( + )) + } }, ) } -fn wire_url_as_string_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +fn wire__crate__api__uri__ffi_url_as_string_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "url_as_string", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + debug_name: "ffi_url_as_string", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); - move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::uri::Url::as_string(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiUrl::as_string(&api_that))?; + Ok(output_ok) + })()) }, ) } -fn wire_url_from_str_impl( +fn wire__crate__api__uri__ffi_url_from_str_impl( port_: flutter_rust_bridge::for_generated::MessagePort, url: impl CstDecode, ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "url_from_str", + debug_name: "ffi_url_from_str", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, move || { let api_url = url.cst_decode(); - move |context| transform_result_dco((move || crate::api::uri::Url::from_str(api_url))()) + move |context| { + transform_result_dco::<_, _, crate::utils::error::PayjoinError>((move || { + let output_ok = crate::api::uri::FfiUrl::from_str(api_url)?; + Ok(output_ok) + })( + )) + } }, ) } -fn wire_url_query_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - that: impl CstDecode, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +fn wire__crate__api__uri__ffi_url_query_impl( + that: impl CstDecode, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "url_query", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + debug_name: "ffi_url_query", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let api_that = that.cst_decode(); - move |context| { - transform_result_dco((move || { - Result::<_, ()>::Ok(crate::api::uri::Url::query(&api_that)) - })()) - } + transform_result_dco::<_, _, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::uri::FfiUrl::query(&api_that))?; + Ok(output_ok) + })()) }, ) } // Section: related_funcs -fn decode_DartFn_Inputs_String_Output_String( +fn decode_DartFn_Inputs_String_Output_String_AnyhowException( dart_opaque: flutter_rust_bridge::DartOpaque, ) -> impl Fn(String) -> flutter_rust_bridge::DartFnFuture { use flutter_rust_bridge::IntoDart; @@ -1428,7 +1812,19 @@ fn decode_DartFn_Inputs_String_Output_String( let message = FLUTTER_RUST_BRIDGE_HANDLER .dart_fn_invoke(dart_opaque, args) .await; - ::sse_decode_single(message) + + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let action = deserializer.cursor.read_u8().unwrap(); + let ans = match action { + 0 => std::result::Result::Ok(::sse_decode(&mut deserializer)), + 1 => std::result::Result::Err( + ::sse_decode(&mut deserializer), + ), + _ => unreachable!(), + }; + deserializer.end(); + let ans = ans.expect("Dart throws exception but Rust side assume it is not failable"); + ans } move |arg0: String| { @@ -1438,7 +1834,36 @@ fn decode_DartFn_Inputs_String_Output_String( )) } } -fn decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( +fn decode_DartFn_Inputs__Output_list_prim_u_8_strict_AnyhowException( + dart_opaque: flutter_rust_bridge::DartOpaque, +) -> impl Fn() -> flutter_rust_bridge::DartFnFuture> { + use flutter_rust_bridge::IntoDart; + + async fn body(dart_opaque: flutter_rust_bridge::DartOpaque) -> Vec { + let args = vec![]; + let message = FLUTTER_RUST_BRIDGE_HANDLER + .dart_fn_invoke(dart_opaque, args) + .await; + + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let action = deserializer.cursor.read_u8().unwrap(); + let ans = match action { + 0 => std::result::Result::Ok(>::sse_decode(&mut deserializer)), + 1 => std::result::Result::Err( + ::sse_decode(&mut deserializer), + ), + _ => unreachable!(), + }; + deserializer.end(); + let ans = ans.expect("Dart throws exception but Rust side assume it is not failable"); + ans + } + + move || { + flutter_rust_bridge::for_generated::convert_into_dart_fn_future(body(dart_opaque.clone())) + } +} +fn decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool_AnyhowException( dart_opaque: flutter_rust_bridge::DartOpaque, ) -> impl Fn(Vec) -> flutter_rust_bridge::DartFnFuture { use flutter_rust_bridge::IntoDart; @@ -1448,7 +1873,19 @@ fn decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( let message = FLUTTER_RUST_BRIDGE_HANDLER .dart_fn_invoke(dart_opaque, args) .await; - ::sse_decode_single(message) + + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let action = deserializer.cursor.read_u8().unwrap(); + let ans = match action { + 0 => std::result::Result::Ok(::sse_decode(&mut deserializer)), + 1 => std::result::Result::Err( + ::sse_decode(&mut deserializer), + ), + _ => unreachable!(), + }; + deserializer.end(); + let ans = ans.expect("Dart throws exception but Rust side assume it is not failable"); + ans } move |arg0: Vec| { @@ -1458,7 +1895,7 @@ fn decode_DartFn_Inputs_list_prim_u_8_strict_Output_bool( )) } } -fn decode_DartFn_Inputs_out_point_Output_bool( +fn decode_DartFn_Inputs_out_point_Output_bool_AnyhowException( dart_opaque: flutter_rust_bridge::DartOpaque, ) -> impl Fn(crate::utils::types::OutPoint) -> flutter_rust_bridge::DartFnFuture { use flutter_rust_bridge::IntoDart; @@ -1471,7 +1908,19 @@ fn decode_DartFn_Inputs_out_point_Output_bool( let message = FLUTTER_RUST_BRIDGE_HANDLER .dart_fn_invoke(dart_opaque, args) .await; - ::sse_decode_single(message) + + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let action = deserializer.cursor.read_u8().unwrap(); + let ans = match action { + 0 => std::result::Result::Ok(::sse_decode(&mut deserializer)), + 1 => std::result::Result::Err( + ::sse_decode(&mut deserializer), + ), + _ => unreachable!(), + }; + deserializer.end(); + let ans = ans.expect("Dart throws exception but Rust side assume it is not failable"); + ans } move |arg0: crate::utils::types::OutPoint| { @@ -1496,6 +1945,24 @@ impl CstDecode for f64 { self } } +impl CstDecode for i32 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> i32 { + self + } +} +impl CstDecode for i32 { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> crate::utils::types::Network { + match self { + 0 => crate::utils::types::Network::Testnet, + 1 => crate::utils::types::Network::Regtest, + 2 => crate::utils::types::Network::Bitcoin, + 3 => crate::utils::types::Network::Signet, + _ => unreachable!("Invalid variant for Network: {}", self), + } + } +} impl CstDecode for u32 { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> u32 { @@ -1520,6 +1987,14 @@ impl CstDecode for usize { self } } +impl SseDecode for flutter_rust_bridge::for_generated::anyhow::Error { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::anyhow::anyhow!("{}", inner); + } +} + 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 { @@ -1544,7 +2019,7 @@ impl SseDecode for std::collections::HashMap } } -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); @@ -1552,7 +2027,7 @@ impl SseDecode for RustOpaqueNom } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1560,7 +2035,7 @@ impl SseDecode for RustOpaqueNom> } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1568,7 +2043,7 @@ 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); @@ -1576,7 +2051,7 @@ impl SseDecode for RustOpaqueNom> } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1584,7 +2059,7 @@ impl SseDecode for RustOpaqueNom> } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1592,7 +2067,7 @@ 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); @@ -1600,7 +2075,7 @@ impl SseDecode for RustOpaqueNom> { } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1608,7 +2083,7 @@ 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); @@ -1616,7 +2091,7 @@ 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); @@ -1624,7 +2099,7 @@ 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); @@ -1632,7 +2107,7 @@ impl SseDecode for RustOpaqueNom } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1640,7 +2115,7 @@ 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); @@ -1648,7 +2123,7 @@ 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); @@ -1656,7 +2131,7 @@ impl SseDecode for RustOpaqueNom> { } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1664,7 +2139,7 @@ impl SseDecode for RustOpaqueNom> { } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1672,7 +2147,7 @@ impl SseDecode for RustOpaqueNom> { } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1680,7 +2155,7 @@ impl SseDecode for RustOpaqueNom> { } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1688,7 +2163,7 @@ impl SseDecode for RustOpaqueNom> { } } -impl SseDecode for RustOpaqueNom> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1696,7 +2171,7 @@ impl SseDecode for RustOpaqueNom> { } } -impl SseDecode for RustOpaqueNom>> { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1704,7 +2179,7 @@ impl SseDecode for RustOpaqueNom>> { } } -impl SseDecode for RustOpaqueNom { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1712,7 +2187,7 @@ impl SseDecode for RustOpaqueNom { } } -impl SseDecode for RustOpaqueNom { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1720,7 +2195,7 @@ impl SseDecode for RustOpaqueNom { } } -impl SseDecode for RustOpaqueNom { +impl SseDecode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { let mut inner = ::sse_decode(deserializer); @@ -1728,7 +2203,23 @@ impl SseDecode for RustOpaqueNom } } -impl SseDecode for RustOpaqueNom { +impl SseDecode for RustOpaqueNom { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + 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); @@ -1751,219 +2242,388 @@ impl SseDecode for bool { } } -impl SseDecode for crate::api::receive::ClientResponse { +impl SseDecode for f64 { // 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); + deserializer.cursor.read_f64::().unwrap() } } -impl SseDecode for crate::api::send::ContextV1 { +impl SseDecode for crate::api::receive::FfiActiveSession { // 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::send::ContextV1(var_field0); + >::sse_decode(deserializer); + return crate::api::receive::FfiActiveSession(var_field0); } } -impl SseDecode for crate::api::send::ContextV2 { +impl SseDecode for crate::api::receive::FfiClientResponse { // 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::send::ContextV2(var_field0); + let mut var_field0 = >, + >>::sse_decode(deserializer); + return crate::api::receive::FfiClientResponse(var_field0); } } -impl SseDecode for crate::api::receive::Enrolled { +impl SseDecode for crate::api::send::FfiContextV1 { // 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); + >::sse_decode(deserializer); + return crate::api::send::FfiContextV1(var_field0); } } -impl SseDecode for crate::api::receive::Enroller { +impl SseDecode for crate::api::send::FfiContextV2 { // 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); + >>::sse_decode(deserializer); + return crate::api::send::FfiContextV2(var_field0); } } -impl SseDecode for f64 { +impl SseDecode for crate::api::receive::FfiMaybeInputsOwned { // 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_f64::().unwrap() + let mut var_field0 = + >::sse_decode(deserializer); + return crate::api::receive::FfiMaybeInputsOwned(var_field0); } } -impl SseDecode for crate::utils::types::Headers { +impl SseDecode for crate::api::receive::FfiMaybeInputsSeen { // 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_map = >::sse_decode(deserializer); - return crate::utils::types::Headers { map: var_map }; + let mut var_field0 = + >::sse_decode(deserializer); + return crate::api::receive::FfiMaybeInputsSeen(var_field0); } } -impl SseDecode for Vec { +impl SseDecode for crate::api::receive::FfiMaybeMixedInputScripts { // 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_; + let mut var_field0 = + >::sse_decode( + deserializer, + ); + return crate::api::receive::FfiMaybeMixedInputScripts(var_field0); } } -impl SseDecode for Vec { +impl SseDecode for crate::api::uri::FfiOhttpKeys { // 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_; + let mut var_field0 = + >::sse_decode(deserializer); + return crate::api::uri::FfiOhttpKeys(var_field0); } } -impl SseDecode for Vec { +impl SseDecode for crate::api::receive::FfiOutputsUnknown { // 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_; + let mut var_field0 = + >::sse_decode(deserializer); + return crate::api::receive::FfiOutputsUnknown(var_field0); } } -impl SseDecode for Vec<(String, String)> { +impl SseDecode for crate::api::receive::FfiPayjoinProposal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut len_ = ::sse_decode(deserializer); - let mut ans_ = vec![]; - for idx_ in 0..len_ { - ans_.push(<(String, String)>::sse_decode(deserializer)); - } - return ans_; + let mut var_field0 = + >::sse_decode(deserializer); + return crate::api::receive::FfiPayjoinProposal(var_field0); } } -impl SseDecode for Vec<(u64, crate::utils::types::OutPoint)> { +impl SseDecode for crate::api::uri::FfiPjUri { // 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::utils::types::OutPoint)>::sse_decode( - deserializer, - )); - } - return ans_; + let mut var_field0 = >::sse_decode(deserializer); + return crate::api::uri::FfiPjUri(var_field0); } } -impl SseDecode for crate::api::receive::MaybeInputsOwned { +impl SseDecode for crate::api::uri::FfiPjUriBuilder { // 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::MaybeInputsOwned(var_field0); + let mut var_internal = + >::sse_decode(deserializer); + return crate::api::uri::FfiPjUriBuilder { + internal: var_internal, + }; } } -impl SseDecode for crate::api::receive::MaybeInputsSeen { +impl SseDecode for crate::api::receive::FfiProvisionalProposal { // 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( + >::sse_decode( deserializer, ); - return crate::api::receive::MaybeInputsSeen(var_field0); + return crate::api::receive::FfiProvisionalProposal(var_field0); } } -impl SseDecode for crate::api::receive::MaybeMixedInputScripts { +impl SseDecode for crate::api::send::FfiRequestBuilder { // 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); + >::sse_decode(deserializer); + return crate::api::send::FfiRequestBuilder(var_field0); } } -impl SseDecode for crate::api::uri::OhttpKeys { +impl SseDecode for crate::api::send::FfiRequestContext { // 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::uri::OhttpKeys(var_field0); + >::sse_decode(deserializer); + return crate::api::send::FfiRequestContext(var_field0); } } -impl SseDecode for Option { +impl SseDecode for crate::api::receive::FfiSessionInitializer { // 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; - } + let mut var_field0 = + >::sse_decode(deserializer); + return crate::api::receive::FfiSessionInitializer(var_field0); } } -impl SseDecode for Option { +impl SseDecode for crate::api::receive::FfiUncheckedProposal { // 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; - } + let mut var_field0 = + >::sse_decode(deserializer); + return crate::api::receive::FfiUncheckedProposal(var_field0); } } -impl SseDecode for Option { +impl SseDecode for crate::api::uri::FfiUri { + // 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::uri::FfiUri(var_field0); + } +} + +impl SseDecode for crate::api::uri::FfiUrl { + // 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::uri::FfiUrl(var_field0); + } +} + +impl SseDecode for crate::api::receive::FfiV2MaybeInputsOwned { + // 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::FfiV2MaybeInputsOwned(var_field0); + } +} + +impl SseDecode for crate::api::receive::FfiV2MaybeInputsSeen { + // 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::FfiV2MaybeInputsSeen(var_field0); + } +} + +impl SseDecode for crate::api::receive::FfiV2MaybeMixedInputScripts { + // 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::FfiV2MaybeMixedInputScripts(var_field0); + } +} + +impl SseDecode for crate::api::receive::FfiV2OutputsUnknown { + // 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::FfiV2OutputsUnknown(var_field0); + } +} + +impl SseDecode for crate::api::receive::FfiV2PayjoinProposal { + // 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::FfiV2PayjoinProposal(var_field0); + } +} + +impl SseDecode for crate::api::receive::FfiV2ProvisionalProposal { + // 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::FfiV2ProvisionalProposal(var_field0); + } +} + +impl SseDecode for crate::api::receive::FfiV2UncheckedProposal { + // 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::FfiV2UncheckedProposal(var_field0); + } +} + +impl SseDecode for crate::utils::types::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_map = >::sse_decode(deserializer); + return crate::utils::types::Headers { map: var_map }; + } +} + +impl SseDecode for i32 { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + deserializer.cursor.read_i32::().unwrap() + } +} + +impl SseDecode for 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 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 len_ = ::sse_decode(deserializer); + let mut ans_ = vec![]; + for idx_ in 0..len_ { + ans_.push(::sse_decode(deserializer)); + } + return ans_; + } +} + +impl SseDecode for Vec<(String, String)> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut len_ = ::sse_decode(deserializer); + let mut ans_ = vec![]; + for idx_ in 0..len_ { + ans_.push(<(String, String)>::sse_decode(deserializer)); + } + return ans_; + } +} + +impl SseDecode for Vec<(u64, crate::utils::types::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::utils::types::OutPoint)>::sse_decode( + deserializer, + )); + } + return ans_; + } +} + +impl SseDecode for crate::utils::types::Network { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return match inner { + 0 => crate::utils::types::Network::Testnet, + 1 => crate::utils::types::Network::Regtest, + 2 => crate::utils::types::Network::Bitcoin, + 3 => crate::utils::types::Network::Signet, + _ => unreachable!("Invalid variant for Network: {}", inner), + }; + } +} + +impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { if (::sse_decode(deserializer)) { - return Some(::sse_decode(deserializer)); + return Some(::sse_decode(deserializer)); } else { return None; } } } -impl SseDecode for Option { +impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { if (::sse_decode(deserializer)) { - return Some(::sse_decode(deserializer)); + return Some(::sse_decode(deserializer)); + } else { + return None; + } + } +} + +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode(deserializer)); } else { return None; } } } -impl SseDecode for Option { +impl SseDecode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { if (::sse_decode(deserializer)) { - return Some(::sse_decode( + return Some(::sse_decode( deserializer, )); } else { @@ -1972,6 +2632,28 @@ impl SseDecode for Option { } } +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode(deserializer)); + } else { + return None; + } + } +} + +impl SseDecode for Option { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + if (::sse_decode(deserializer)) { + return Some(::sse_decode(deserializer)); + } else { + return None; + } + } +} + impl SseDecode for crate::utils::types::OutPoint { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -1984,17 +2666,6 @@ impl SseDecode for crate::utils::types::OutPoint { } } -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 { @@ -2102,6 +2773,12 @@ impl SseDecode for crate::utils::error::PayjoinError { message: var_message, }; } + 17 => { + let mut var_message = ::sse_decode(deserializer); + return crate::utils::error::PayjoinError::IoError { + message: var_message, + }; + } _ => { unimplemented!(""); } @@ -2109,38 +2786,25 @@ 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 { +impl SseDecode for (crate::api::uri::FfiUrl, 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::ProvisionalProposal(var_field0); + let mut var_field0 = ::sse_decode(deserializer); + let mut var_field1 = >::sse_decode(deserializer); + return (var_field0, var_field1); } } impl SseDecode for ( - (crate::api::uri::Url, Vec), - crate::api::receive::ClientResponse, + (crate::api::uri::FfiUrl, Vec), + crate::api::receive::FfiClientResponse, ) { // 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 = <(crate::api::uri::Url, Vec)>::sse_decode(deserializer); - let mut var_field1 = ::sse_decode(deserializer); + let mut var_field0 = <(crate::api::uri::FfiUrl, Vec)>::sse_decode(deserializer); + let mut var_field1 = ::sse_decode(deserializer); return (var_field0, var_field1); } } @@ -2163,38 +2827,11 @@ impl SseDecode for (u64, crate::utils::types::OutPoint) { } } -impl SseDecode for (crate::api::uri::Url, 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); - let mut var_field1 = >::sse_decode(deserializer); - return (var_field0, var_field1); - } -} - -impl SseDecode for crate::api::send::RequestBuilder { - // 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::send::RequestBuilder(var_field0); - } -} - -impl SseDecode for crate::api::send::RequestContext { - // 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::send::RequestContext(var_field0); - } -} - impl SseDecode for crate::api::send::RequestContextV1 { // 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 = <(crate::api::uri::Url, Vec)>::sse_decode(deserializer); - let mut var_contextV1 = ::sse_decode(deserializer); + let mut var_request = <(crate::api::uri::FfiUrl, Vec)>::sse_decode(deserializer); + let mut var_contextV1 = ::sse_decode(deserializer); return crate::api::send::RequestContextV1 { request: var_request, context_v1: var_contextV1, @@ -2205,8 +2842,8 @@ impl SseDecode for crate::api::send::RequestContextV1 { impl SseDecode for crate::api::send::RequestContextV2 { // 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 = <(crate::api::uri::Url, Vec)>::sse_decode(deserializer); - let mut var_contextV2 = ::sse_decode(deserializer); + let mut var_request = <(crate::api::uri::FfiUrl, Vec)>::sse_decode(deserializer); + let mut var_contextV2 = ::sse_decode(deserializer); return crate::api::send::RequestContextV2 { request: var_request, context_v2: var_contextV2, @@ -2247,137 +2884,28 @@ impl SseDecode for u8 { } } -impl SseDecode for crate::api::receive::UncheckedProposal { - // 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::UncheckedProposal(var_field0); - } -} - impl SseDecode for () { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {} } -impl SseDecode for crate::api::uri::Uri { - // 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::uri::Uri(var_field0); - } -} - -impl SseDecode for crate::api::uri::Url { +impl SseDecode for usize { // 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::uri::Url(var_field0); + deserializer.cursor.read_u64::().unwrap() as _ } } -impl SseDecode for usize { - // 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_u64::().unwrap() as _ - } -} - -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 { - deserializer.cursor.read_i32::().unwrap() - } -} - -fn pde_ffi_dispatcher_primary_impl( - func_id: i32, - port: flutter_rust_bridge::for_generated::MessagePort, - ptr: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len: i32, - data_len: i32, -) { - // Codec=Pde (Serialization + dispatch), see doc to use other codecs - match func_id { - _ => unreachable!(), +fn pde_ffi_dispatcher_primary_impl( + func_id: i32, + port: flutter_rust_bridge::for_generated::MessagePort, + ptr: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len: i32, + data_len: i32, +) { + // Codec=Pde (Serialization + dispatch), see doc to use other codecs + match func_id { + _ => unreachable!(), } } @@ -2396,580 +2924,659 @@ fn pde_ffi_dispatcher_sync_impl( // Section: rust2dart // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::ClientResponse { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiActiveSession { 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 + for crate::api::receive::FfiActiveSession { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::ClientResponse +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiActiveSession { - fn into_into_dart(self) -> crate::api::receive::ClientResponse { + fn into_into_dart(self) -> crate::api::receive::FfiActiveSession { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::send::ContextV1 { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiClientResponse { 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::ContextV1 {} -impl flutter_rust_bridge::IntoIntoDart - for crate::api::send::ContextV1 +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::receive::FfiClientResponse { - 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 +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiClientResponse { - fn into_into_dart(self) -> crate::api::send::ContextV2 { + fn into_into_dart(self) -> crate::api::receive::FfiClientResponse { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::Enrolled { +impl flutter_rust_bridge::IntoDart for crate::api::send::FfiContextV1 { 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 +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::send::FfiContextV1 +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::send::FfiContextV1 { - fn into_into_dart(self) -> crate::api::receive::Enrolled { + fn into_into_dart(self) -> crate::api::send::FfiContextV1 { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::Enroller { +impl flutter_rust_bridge::IntoDart for crate::api::send::FfiContextV2 { 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 +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::send::FfiContextV2 { - 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::utils::types::Headers { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.map.into_into_dart().into_dart()].into_dart() - } } -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::utils::types::Headers {} -impl flutter_rust_bridge::IntoIntoDart - for crate::utils::types::Headers +impl flutter_rust_bridge::IntoIntoDart + for crate::api::send::FfiContextV2 { - fn into_into_dart(self) -> crate::utils::types::Headers { + fn into_into_dart(self) -> crate::api::send::FfiContextV2 { 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::FfiMaybeInputsOwned { 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::FfiMaybeInputsOwned { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::MaybeInputsOwned +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiMaybeInputsOwned { - fn into_into_dart(self) -> crate::api::receive::MaybeInputsOwned { + fn into_into_dart(self) -> crate::api::receive::FfiMaybeInputsOwned { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::MaybeInputsSeen { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiMaybeInputsSeen { 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 + for crate::api::receive::FfiMaybeInputsSeen { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::MaybeInputsSeen +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiMaybeInputsSeen { - fn into_into_dart(self) -> crate::api::receive::MaybeInputsSeen { + fn into_into_dart(self) -> crate::api::receive::FfiMaybeInputsSeen { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::MaybeMixedInputScripts { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiMaybeMixedInputScripts { 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::MaybeMixedInputScripts + for crate::api::receive::FfiMaybeMixedInputScripts { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::MaybeMixedInputScripts +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiMaybeMixedInputScripts { - fn into_into_dart(self) -> crate::api::receive::MaybeMixedInputScripts { + fn into_into_dart(self) -> crate::api::receive::FfiMaybeMixedInputScripts { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::uri::OhttpKeys { +impl flutter_rust_bridge::IntoDart for crate::api::uri::FfiOhttpKeys { 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::OhttpKeys {} -impl flutter_rust_bridge::IntoIntoDart for crate::api::uri::OhttpKeys { - fn into_into_dart(self) -> crate::api::uri::OhttpKeys { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::utils::types::OutPoint { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [ - 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::utils::types::OutPoint {} -impl flutter_rust_bridge::IntoIntoDart - for crate::utils::types::OutPoint +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::uri::FfiOhttpKeys {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::uri::FfiOhttpKeys { - fn into_into_dart(self) -> crate::utils::types::OutPoint { + fn into_into_dart(self) -> crate::api::uri::FfiOhttpKeys { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::OutputsUnknown { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiOutputsUnknown { 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::OutputsUnknown + for crate::api::receive::FfiOutputsUnknown { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::OutputsUnknown +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiOutputsUnknown { - fn into_into_dart(self) -> crate::api::receive::OutputsUnknown { + fn into_into_dart(self) -> crate::api::receive::FfiOutputsUnknown { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::utils::error::PayjoinError { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiPayjoinProposal { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - match self { - crate::utils::error::PayjoinError::InvalidAddress { message } => { - [0.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::InvalidScript { message } => { - [1.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::NetworkValidation { message } => { - [2.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::PsbtParseError { message } => { - [3.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::ResponseError { message } => { - [4.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::RequestError { message } => { - [5.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::TransactionError { message } => { - [6.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::ServerError { message } => { - [7.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::SelectionError { message } => { - [8.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::CreateRequestError { message } => { - [9.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::PjParseError { message } => { - [10.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::PjNotSupported { message } => { - [11.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::ValidationError { message } => { - [12.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::V2Error { message } => { - [13.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::UnexpectedError { message } => { - [14.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::OhttpError { message } => { - [15.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - crate::utils::error::PayjoinError::UrlError { message } => { - [16.into_dart(), message.into_into_dart().into_dart()].into_dart() - } - } + [self.0.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::utils::error::PayjoinError + for crate::api::receive::FfiPayjoinProposal { } -impl flutter_rust_bridge::IntoIntoDart - for crate::utils::error::PayjoinError +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiPayjoinProposal { - fn into_into_dart(self) -> crate::utils::error::PayjoinError { + fn into_into_dart(self) -> crate::api::receive::FfiPayjoinProposal { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::PayjoinProposal { +impl flutter_rust_bridge::IntoDart for crate::api::uri::FfiPjUri { 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 { +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::uri::FfiPjUri {} +impl flutter_rust_bridge::IntoIntoDart for crate::api::uri::FfiPjUri { + fn into_into_dart(self) -> crate::api::uri::FfiPjUri { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::ProvisionalProposal { +impl flutter_rust_bridge::IntoDart for crate::api::uri::FfiPjUriBuilder { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [self.0.into_into_dart().into_dart()].into_dart() + [self.internal.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::receive::ProvisionalProposal + for crate::api::uri::FfiPjUriBuilder { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::ProvisionalProposal +impl flutter_rust_bridge::IntoIntoDart + for crate::api::uri::FfiPjUriBuilder { - fn into_into_dart(self) -> crate::api::receive::ProvisionalProposal { + fn into_into_dart(self) -> crate::api::uri::FfiPjUriBuilder { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::send::RequestBuilder { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiProvisionalProposal { 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::RequestBuilder + for crate::api::receive::FfiProvisionalProposal { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::send::RequestBuilder +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiProvisionalProposal { - fn into_into_dart(self) -> crate::api::send::RequestBuilder { + fn into_into_dart(self) -> crate::api::receive::FfiProvisionalProposal { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::send::RequestContext { +impl flutter_rust_bridge::IntoDart for crate::api::send::FfiRequestBuilder { 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::RequestContext + for crate::api::send::FfiRequestBuilder { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::send::RequestContext +impl flutter_rust_bridge::IntoIntoDart + for crate::api::send::FfiRequestBuilder { - fn into_into_dart(self) -> crate::api::send::RequestContext { + fn into_into_dart(self) -> crate::api::send::FfiRequestBuilder { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::send::RequestContextV1 { +impl flutter_rust_bridge::IntoDart for crate::api::send::FfiRequestContext { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [ - self.request.into_into_dart().into_dart(), - self.context_v1.into_into_dart().into_dart(), - ] - .into_dart() + [self.0.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::send::RequestContextV1 + for crate::api::send::FfiRequestContext { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::send::RequestContextV1 +impl flutter_rust_bridge::IntoIntoDart + for crate::api::send::FfiRequestContext { - fn into_into_dart(self) -> crate::api::send::RequestContextV1 { + fn into_into_dart(self) -> crate::api::send::FfiRequestContext { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::send::RequestContextV2 { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiSessionInitializer { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - [ - self.request.into_into_dart().into_dart(), - self.context_v2.into_into_dart().into_dart(), - ] - .into_dart() + [self.0.into_into_dart().into_dart()].into_dart() } } impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for crate::api::send::RequestContextV2 + for crate::api::receive::FfiSessionInitializer { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::send::RequestContextV2 +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiSessionInitializer { - fn into_into_dart(self) -> crate::api::send::RequestContextV2 { - self - } -} -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::utils::types::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::utils::types::TxOut {} -impl flutter_rust_bridge::IntoIntoDart for crate::utils::types::TxOut { - fn into_into_dart(self) -> crate::utils::types::TxOut { + fn into_into_dart(self) -> crate::api::receive::FfiSessionInitializer { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::UncheckedProposal { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiUncheckedProposal { 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::UncheckedProposal + for crate::api::receive::FfiUncheckedProposal { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::UncheckedProposal +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiUncheckedProposal { - fn into_into_dart(self) -> crate::api::receive::UncheckedProposal { + fn into_into_dart(self) -> crate::api::receive::FfiUncheckedProposal { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::uri::Uri { +impl flutter_rust_bridge::IntoDart for crate::api::uri::FfiUri { 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 { +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::uri::FfiUri {} +impl flutter_rust_bridge::IntoIntoDart for crate::api::uri::FfiUri { + fn into_into_dart(self) -> crate::api::uri::FfiUri { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::uri::Url { +impl flutter_rust_bridge::IntoDart for crate::api::uri::FfiUrl { 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 { +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::uri::FfiUrl {} +impl flutter_rust_bridge::IntoIntoDart for crate::api::uri::FfiUrl { + fn into_into_dart(self) -> crate::api::uri::FfiUrl { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::V2MaybeInputsOwned { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiV2MaybeInputsOwned { 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 + for crate::api::receive::FfiV2MaybeInputsOwned { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::V2MaybeInputsOwned +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiV2MaybeInputsOwned { - fn into_into_dart(self) -> crate::api::receive::V2MaybeInputsOwned { + fn into_into_dart(self) -> crate::api::receive::FfiV2MaybeInputsOwned { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::V2MaybeInputsSeen { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiV2MaybeInputsSeen { 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 + for crate::api::receive::FfiV2MaybeInputsSeen { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::V2MaybeInputsSeen +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiV2MaybeInputsSeen { - fn into_into_dart(self) -> crate::api::receive::V2MaybeInputsSeen { + fn into_into_dart(self) -> crate::api::receive::FfiV2MaybeInputsSeen { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::V2MaybeMixedInputScripts { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiV2MaybeMixedInputScripts { 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 + for crate::api::receive::FfiV2MaybeMixedInputScripts { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::V2MaybeMixedInputScripts +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiV2MaybeMixedInputScripts { - fn into_into_dart(self) -> crate::api::receive::V2MaybeMixedInputScripts { + fn into_into_dart(self) -> crate::api::receive::FfiV2MaybeMixedInputScripts { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::V2OutputsUnknown { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiV2OutputsUnknown { 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 + for crate::api::receive::FfiV2OutputsUnknown { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::V2OutputsUnknown +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiV2OutputsUnknown { - fn into_into_dart(self) -> crate::api::receive::V2OutputsUnknown { + fn into_into_dart(self) -> crate::api::receive::FfiV2OutputsUnknown { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::V2PayjoinProposal { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiV2PayjoinProposal { 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 + for crate::api::receive::FfiV2PayjoinProposal { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::V2PayjoinProposal +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiV2PayjoinProposal { - fn into_into_dart(self) -> crate::api::receive::V2PayjoinProposal { + fn into_into_dart(self) -> crate::api::receive::FfiV2PayjoinProposal { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::V2ProvisionalProposal { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiV2ProvisionalProposal { 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 + for crate::api::receive::FfiV2ProvisionalProposal { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::V2ProvisionalProposal +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiV2ProvisionalProposal { - fn into_into_dart(self) -> crate::api::receive::V2ProvisionalProposal { + fn into_into_dart(self) -> crate::api::receive::FfiV2ProvisionalProposal { self } } // Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for crate::api::receive::V2UncheckedProposal { +impl flutter_rust_bridge::IntoDart for crate::api::receive::FfiV2UncheckedProposal { 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 + for crate::api::receive::FfiV2UncheckedProposal { } -impl flutter_rust_bridge::IntoIntoDart - for crate::api::receive::V2UncheckedProposal +impl flutter_rust_bridge::IntoIntoDart + for crate::api::receive::FfiV2UncheckedProposal { - fn into_into_dart(self) -> crate::api::receive::V2UncheckedProposal { + fn into_into_dart(self) -> crate::api::receive::FfiV2UncheckedProposal { self } } - -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); +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::utils::types::Headers { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [self.map.into_into_dart().into_dart()].into_dart() } } - -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 flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::utils::types::Headers {} +impl flutter_rust_bridge::IntoIntoDart + for crate::utils::types::Headers +{ + fn into_into_dart(self) -> crate::utils::types::Headers { + self } } - -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, - ); +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + match self.0 { + crate::utils::types::Network::Testnet => 0.into_dart(), + crate::utils::types::Network::Regtest => 1.into_dart(), + crate::utils::types::Network::Bitcoin => 2.into_dart(), + crate::utils::types::Network::Signet => 3.into_dart(), + _ => unreachable!(), + } } } - -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(); +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} +impl flutter_rust_bridge::IntoIntoDart> + for crate::utils::types::Network +{ + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::utils::types::OutPoint { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [ + 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::utils::types::OutPoint {} +impl flutter_rust_bridge::IntoIntoDart + for crate::utils::types::OutPoint +{ + fn into_into_dart(self) -> crate::utils::types::OutPoint { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::utils::error::PayjoinError { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + match self { + crate::utils::error::PayjoinError::InvalidAddress { message } => { + [0.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::InvalidScript { message } => { + [1.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::NetworkValidation { message } => { + [2.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::PsbtParseError { message } => { + [3.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::ResponseError { message } => { + [4.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::RequestError { message } => { + [5.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::TransactionError { message } => { + [6.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::ServerError { message } => { + [7.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::SelectionError { message } => { + [8.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::CreateRequestError { message } => { + [9.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::PjParseError { message } => { + [10.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::PjNotSupported { message } => { + [11.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::ValidationError { message } => { + [12.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::V2Error { message } => { + [13.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::UnexpectedError { message } => { + [14.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::OhttpError { message } => { + [15.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::UrlError { message } => { + [16.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + crate::utils::error::PayjoinError::IoError { message } => { + [17.into_dart(), message.into_into_dart().into_dart()].into_dart() + } + _ => { + unimplemented!(""); + } + } + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::utils::error::PayjoinError +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::utils::error::PayjoinError +{ + fn into_into_dart(self) -> crate::utils::error::PayjoinError { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::send::RequestContextV1 { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [ + self.request.into_into_dart().into_dart(), + self.context_v1.into_into_dart().into_dart(), + ] + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::send::RequestContextV1 +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::send::RequestContextV1 +{ + fn into_into_dart(self) -> crate::api::send::RequestContextV1 { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::send::RequestContextV2 { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [ + self.request.into_into_dart().into_dart(), + self.context_v2.into_into_dart().into_dart(), + ] + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::send::RequestContextV2 +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::send::RequestContextV2 +{ + fn into_into_dart(self) -> crate::api::send::RequestContextV2 { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::utils::types::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::utils::types::TxOut {} +impl flutter_rust_bridge::IntoIntoDart for crate::utils::types::TxOut { + fn into_into_dart(self) -> crate::utils::types::TxOut { + self + } +} + +impl SseEncode for flutter_rust_bridge::for_generated::anyhow::Error { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(format!("{:?}", 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> { +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(); @@ -2978,7 +3585,7 @@ impl SseEncode for RustOpaqueNom> } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for RustOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { let (ptr, size) = self.sse_encode_raw(); @@ -2987,7 +3594,7 @@ 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(); @@ -2996,246 +3603,440 @@ impl SseEncode for RustOpaqueNom> } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for RustOpaqueNom { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::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 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 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 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) { + >::sse_encode(self.into_bytes(), serializer); + } +} + +impl SseEncode for bool { + // 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_u8(self as _).unwrap(); + } +} + +impl SseEncode for f64 { // 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); + serializer.cursor.write_f64::(self).unwrap(); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::receive::FfiActiveSession { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::receive::FfiClientResponse { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >>>::sse_encode( + self.0, serializer, + ); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::send::FfiContextV1 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::send::FfiContextV2 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >>::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::receive::FfiMaybeInputsOwned { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::receive::FfiMaybeInputsSeen { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::receive::FfiMaybeMixedInputScripts { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode( + self.0, serializer, + ); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::uri::FfiOhttpKeys { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::receive::FfiOutputsUnknown { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::receive::FfiPayjoinProposal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::uri::FfiPjUri { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::uri::FfiPjUriBuilder { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.internal, serializer); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::receive::FfiProvisionalProposal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode( + self.0, serializer, + ); } } -impl SseEncode for RustOpaqueNom> { +impl SseEncode for crate::api::send::FfiRequestBuilder { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom>> { +impl SseEncode for crate::api::send::FfiRequestContext { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom { +impl SseEncode for crate::api::receive::FfiSessionInitializer { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode( + self.0, serializer, + ); } } -impl SseEncode for RustOpaqueNom { +impl SseEncode for crate::api::receive::FfiUncheckedProposal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode( + self.0, serializer, + ); } } -impl SseEncode for RustOpaqueNom { +impl SseEncode for crate::api::uri::FfiUri { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for RustOpaqueNom { +impl SseEncode for crate::api::uri::FfiUrl { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); + >::sse_encode(self.0, serializer); } } -impl SseEncode for String { +impl SseEncode for crate::api::receive::FfiV2MaybeInputsOwned { // 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_bytes(), serializer); + >::sse_encode( + self.0, serializer, + ); } } -impl SseEncode for bool { +impl SseEncode for crate::api::receive::FfiV2MaybeInputsSeen { // 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_u8(self as _).unwrap(); + >::sse_encode( + self.0, serializer, + ); } } -impl SseEncode for crate::api::receive::ClientResponse { +impl SseEncode for crate::api::receive::FfiV2MaybeMixedInputScripts { // 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.0, serializer, + ); } } -impl SseEncode for crate::api::send::ContextV1 { +impl SseEncode for crate::api::receive::FfiV2OutputsUnknown { // 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.0, serializer); } } -impl SseEncode for crate::api::send::ContextV2 { +impl SseEncode for crate::api::receive::FfiV2PayjoinProposal { // 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.0, serializer, + ); } } -impl SseEncode for crate::api::receive::Enrolled { +impl SseEncode for crate::api::receive::FfiV2ProvisionalProposal { // 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.0, serializer, + ); } } -impl SseEncode for crate::api::receive::Enroller { +impl SseEncode for crate::api::receive::FfiV2UncheckedProposal { // 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.0, serializer, + ); } } -impl SseEncode for f64 { +impl SseEncode for crate::utils::types::Headers { // 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_f64::(self).unwrap(); + >::sse_encode(self.map, serializer); } } -impl SseEncode for crate::utils::types::Headers { +impl SseEncode for i32 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >::sse_encode(self.map, serializer); + serializer.cursor.write_i32::(self).unwrap(); } } @@ -3289,40 +4090,24 @@ impl SseEncode for Vec<(u64, crate::utils::types::OutPoint)> { } } -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) { - >>::sse_encode( - self.0, serializer, - ); - } -} - -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 { +impl SseEncode for crate::utils::types::Network { // 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( + match self { + crate::utils::types::Network::Testnet => 0, + crate::utils::types::Network::Regtest => 1, + crate::utils::types::Network::Bitcoin => 2, + crate::utils::types::Network::Signet => 3, + _ => { + unimplemented!(""); + } + }, + serializer, ); } } -impl SseEncode for crate::api::uri::OhttpKeys { - // 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) { @@ -3343,50 +4128,51 @@ impl SseEncode for Option { } } -impl SseEncode for Option { +impl SseEncode for Option { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { ::sse_encode(self.is_some(), serializer); if let Some(value) = self { - ::sse_encode(value, serializer); + ::sse_encode(value, serializer); } } } -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); + ::sse_encode(value, serializer); } } } -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); + ::sse_encode(value, serializer); } } } -impl SseEncode for crate::utils::types::OutPoint { +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.txid, serializer); - ::sse_encode(self.vout, serializer); + ::sse_encode(self.is_some(), serializer); + if let Some(value) = self { + ::sse_encode(value, serializer); + } } } -impl SseEncode for crate::api::receive::OutputsUnknown { +impl SseEncode for crate::utils::types::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.txid, serializer); + ::sse_encode(self.vout, serializer); } } @@ -3462,38 +4248,35 @@ impl SseEncode for crate::utils::error::PayjoinError { ::sse_encode(16, serializer); ::sse_encode(message, serializer); } + crate::utils::error::PayjoinError::IoError { message } => { + ::sse_encode(17, serializer); + ::sse_encode(message, serializer); + } + _ => { + unimplemented!(""); + } } } } -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 { +impl SseEncode for (crate::api::uri::FfiUrl, 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.0, serializer, - ); + ::sse_encode(self.0, serializer); + >::sse_encode(self.1, serializer); } } impl SseEncode for ( - (crate::api::uri::Url, Vec), - crate::api::receive::ClientResponse, + (crate::api::uri::FfiUrl, Vec), + crate::api::receive::FfiClientResponse, ) { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - <(crate::api::uri::Url, Vec)>::sse_encode(self.0, serializer); - ::sse_encode(self.1, serializer); + <(crate::api::uri::FfiUrl, Vec)>::sse_encode(self.0, serializer); + ::sse_encode(self.1, serializer); } } @@ -3513,41 +4296,19 @@ impl SseEncode for (u64, crate::utils::types::OutPoint) { } } -impl SseEncode for (crate::api::uri::Url, 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.0, serializer); - >::sse_encode(self.1, serializer); - } -} - -impl SseEncode for crate::api::send::RequestBuilder { - // 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::RequestContext { - // 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::RequestContextV1 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - <(crate::api::uri::Url, Vec)>::sse_encode(self.request, serializer); - ::sse_encode(self.context_v1, serializer); + <(crate::api::uri::FfiUrl, Vec)>::sse_encode(self.request, serializer); + ::sse_encode(self.context_v1, serializer); } } impl SseEncode for crate::api::send::RequestContextV2 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - <(crate::api::uri::Url, Vec)>::sse_encode(self.request, serializer); - ::sse_encode(self.context_v2, serializer); + <(crate::api::uri::FfiUrl, Vec)>::sse_encode(self.request, serializer); + ::sse_encode(self.context_v2, serializer); } } @@ -3580,34 +4341,11 @@ impl SseEncode for u8 { } } -impl SseEncode for crate::api::receive::UncheckedProposal { - // 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 () { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {} } -impl SseEncode for crate::api::uri::Uri { - // 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::uri::Url { - // 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 usize { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3618,85 +4356,8 @@ 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) { - serializer.cursor.write_i32::(self).unwrap(); - } -} - #[cfg(not(target_family = "wasm"))] #[path = "frb_generated.io.rs"] mod io; #[cfg(not(target_family = "wasm"))] pub use io::*; - -/// cbindgen:ignore -#[cfg(target_family = "wasm")] -#[path = "frb_generated.web.rs"] -mod web; -#[cfg(target_family = "wasm")] -pub use web::*; diff --git a/rust/src/utils/error.rs b/rust/src/utils/error.rs index 5e403ef..df305c2 100644 --- a/rust/src/utils/error.rs +++ b/rust/src/utils/error.rs @@ -45,7 +45,7 @@ pub enum PayjoinError { PjParseError { message: String, }, - PjNotSupported { + PjNotSupported{ message: String, }, ValidationError { @@ -63,6 +63,9 @@ pub enum PayjoinError { UrlError { message: String, }, + IoError { + message: String, + }, } macro_rules! from_payjoin_ffi_error { @@ -101,15 +104,16 @@ from_payjoin_ffi_error!( RequestError, TransactionError, ServerError, + PjNotSupported, SelectionError, CreateRequestError, PjParseError, - PjNotSupported, ValidationError, V2Error, UnexpectedError, OhttpError, - UrlError + UrlError, + IoError ); from_payjoin_error!( InvalidAddress, @@ -123,10 +127,11 @@ from_payjoin_error!( SelectionError, CreateRequestError, PjParseError, - PjNotSupported, ValidationError, V2Error, + PjNotSupported, UnexpectedError, OhttpError, - UrlError + UrlError, + IoError ); diff --git a/rust/src/utils/types.rs b/rust/src/utils/types.rs index 12c338f..632c8dc 100644 --- a/rust/src/utils/types.rs +++ b/rust/src/utils/types.rs @@ -1,5 +1,6 @@ +use flutter_rust_bridge::frb; +pub use payjoin_ffi::types::Network; use std::collections::HashMap; - // ///Represents data that needs to be transmitted to the receiver. // ///You need to send this request over HTTP(S) to the receiver. // #[derive(Clone, Debug)] @@ -103,3 +104,19 @@ impl From for TxOut { } } } + +// It works with basic enums too +// Enums with struct variants are not yet supported +#[derive(Default)] +#[frb(mirror(Network))] +pub enum _Network { + ///Bitcoin’s testnet + #[default] + Testnet, + ///Bitcoin’s regtest + Regtest, + ///Classic Bitcoin + Bitcoin, + ///Bitcoin’s signet + Signet, +}